Commit 97999a1f by liuyang

2024-08-16 安全记录APP附件上传调整修改不再删除附件

parent 3e5883c1
......@@ -109,15 +109,17 @@ public class ServiceHPSB008 extends ServiceEPBase {
HPSB008 hpsb008 = new HPSB008();
hpsb008.fromMap(resultMap);
if (hpsb008.getId() == null || hpsb008.getId() == 0) {
this.add(hpsb008);
hpsb008.setRecordCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.RECORD_CODE));
DaoUtils.insert(HPSB008.INSERT, hpsb008);
}else {
this.modify(hpsb008);
List<HPSB099> hpsb099List = HPSBTools.Hpsb099.getMatId(hpsb008.getId());
/*List<HPSB099> hpsb099List = HPSBTools.Hpsb099.getMatId(hpsb008.getId());
if (hpsb099List.size() > 0) {
for (HPSB099 hpsb099 : hpsb099List) {
DaoUtils.update(HPSB099.DELETE, hpsb099);
Iplat4jUtils.deleteFileByDocId(hpsb099.getDocId());
}
}
}*/
this.modify(hpsb008);
}
if (StringUtils.isNotEmpty(docId)) {
String [] docIds = docId.split(",");
......
......@@ -180,7 +180,7 @@ public class HPSBTools {
Map queryMap = new HashMap();
queryMap.put(HPSB099.FIELD_MAT_ID, matId);
List<HPSB099> results = DaoBase.getInstance().query(HPSB099.QUERY, queryMap);
AssertUtils.isEmpty(results, "附件清单不存在");
//AssertUtils.isEmpty(results, "附件清单不存在");
return results;
}
......
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