Commit 60106249 by yukang

合同管理

parent b4280439
...@@ -280,10 +280,12 @@ public class HGCWTools { ...@@ -280,10 +280,12 @@ public class HGCWTools {
public static void batchUpdate(List<Map> rows, Long id) { public static void batchUpdate(List<Map> rows, Long id) {
AssertUtils.isNull(id, "业务ID不能为空!"); AssertUtils.isNull(id, "业务ID不能为空!");
String[] docIds = rows.stream().map(row -> row.get("docId").toString()).toArray(String[]::new); String[] docIds = rows.stream().map(row -> row.get("docId").toString()).toArray(String[]::new);
DaoUtils.update("HGCW999.batchUpdate", new HashMap<String,Object>(){ if (docIds.length > 0) {
{put("docIds",docIds);} DaoUtils.update("HGCW999.batchUpdate", new HashMap<String,Object>(){
{put("matId",id);} {put("docIds",docIds);}
}); {put("matId",id);}
});
}
} }
public static List<HGCW999> queryByBiz(Long matId, String bizType) { public static List<HGCW999> queryByBiz(Long matId, String bizType) {
......
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