瀏覽代碼

去除空值接口

callm 5 月之前
父節點
當前提交
62920c616e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

+ 1 - 1
src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

@@ -860,7 +860,7 @@ public class MESHelperServiceImpl implements MESHelperService {
 		iSN=map.get("iSN").toString();
 		String prcode=baseDao.getFieldDataByCondition("makeserial","ms_prodcode","ms_id=(select max(ms_id) from makeserial where ms_sncode='"+iSN+"')").toString();
 		SqlRowList rs=baseDao.queryForRowSet("select pid_item,pid_value from productitem left join productitemdetail on pi_id=pid_piid " +
-				"where pi_prodcode='"+prcode+"'");
+				"where pi_prodcode='"+prcode+"' and pid_item is not null");
 		while(rs.next()){
 			rmap.put(rs.getString("pid_item"),rs.getString("pid_value"));
 		}