Commit 7a21ed77 by wuwenlong

项目立项修改BUGFIX;

parent fda66056
......@@ -52,11 +52,13 @@ public class HGSCTools {
public static List<HGSC001A> save(List<HGSC001A> hgsc001AList, Long projId){
if(CollectionUtils.isNotEmpty(hgsc001AList)&&Objects.nonNull(projId)) {
//删除历史数据
DaoUtils.update(HGSC001A.DELETE_BY_PROJID, projId);
hgsc001AList.forEach(obj -> {
obj.setProjId(projId);
DaoUtils.insert(HGSC001A.INSERT,obj);
if(Objects.nonNull(obj.getId())&&obj.getId()>0){
DaoUtils.insert(HGSC001A.UPDATE, obj);
}else {
obj.setProjId(projId);
DaoUtils.insert(HGSC001A.INSERT, obj);
}
});
}
return hgsc001AList;
......
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