Commit 7ec985b3 by liulei

新增厂区的查询条件

parent 8ae1f816
......@@ -214,7 +214,7 @@ public class ServiceHPKC001 extends ServiceBase {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
// 入库单号
List<String> otherEnterNos = ObjectUtils.listKey(resultRows, "otherEnterNo");
List<String> otherEnterNos = ObjectUtils.listKey(resultRows, "purchaseNo");
// 锁记录
HPKCTools.HpKc001. lock(otherEnterNos);
// 查询数据库记录
......
......@@ -103,6 +103,9 @@
<isNotEmpty prepend=" AND " property="factoryName">
FACTORY_NAME = #factoryName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="purchaseNos">
PURCHASE_NO IN <iterate close=")" open="(" conjunction="," property="purchaseNos">#purchaseNos[]#</iterate>
</isNotEmpty>
</sql>
<sql id="customCondition">
......@@ -190,6 +193,18 @@
WHERE ID = #id#
</update>
<update id="lock">
UPDATE ${hpjxSchema}.t_hpkc001
SET CREATED_TIME = CREATED_TIME
WHERE 1=1
<isNotEmpty prepend=" AND " property="purchaseNo">
PURCHASE_NO = #purchaseNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="purchaseNos">
PURCHASE_NO IN <iterate close=")" open="(" conjunction="," property="purchaseNos">#purchaseNos[]#</iterate>
</isNotEmpty>
</update>
<!-- 统计库存 -->
<select id="statDate" resultClass="com.baosight.hpjx.hp.kc.domain.HPKC001">
SELECT
......
......@@ -49,7 +49,7 @@ public class HPKCTools {
return;
}
Map queryMap = new HashMap();
queryMap.put("otherEnterNos", otherEnterNos);
queryMap.put("purchaseNos", otherEnterNos);
DaoBase.getInstance().update(HPSqlConstant.HPKC001.LOCK, queryMap);
}
......@@ -64,7 +64,7 @@ public class HPKCTools {
return null;
}
Map queryMap = new HashMap();
queryMap.put("otherEnterNos", otherEnterNos);
queryMap.put("purchaseNos", otherEnterNos);
return DaoBase.getInstance().query(HPKC001.QUERY, queryMap);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment