|
|
@ -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()); |
|
|
|
} |
|
|
|