Browse Source

2023-12-22 日底稿表生成增加修改人,修改该时间

develop
zhousq 11 months ago
parent
commit
d711b66556
  1. 3
      lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiParamDraftDayService.java

3
lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiParamDraftDayService.java

@ -7,6 +7,7 @@ import java.util.Optional;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson2.JSONObject;
import com.lzbi.common.utils.DateUtils;
import com.lzbi.common.utils.SecurityUtils;
@ -136,6 +137,8 @@ public class DcBusiParamDraftDayService extends ServiceImpl<DcBusiParamDraftDayM
draftDay.setParamFieldCode(sub.get(0).getFieldCode());
draftDay.setParamFieldName(sub.get(0).getFieldName());
DcBusiParamDraftDay target =Optional.ofNullable(baseMapper.selectOneByParam(draftDay)).orElse(draftDay);
target.setUpdatedBy(SecurityUtils.getUsername());
target.setUpdatedTime(DateUtil.date());
for(int i=0;i<sub.size();i++){
target.setValForSeq(sub.get(i).getCountHour(),sub.get(i).getParamValue());
}

Loading…
Cancel
Save