fix:检查报告导出接口提交

pg_adapter
wangxy 8 months ago
parent 7f7c9e3315
commit be5f47e305

@ -18,6 +18,7 @@ import javax.annotation.Resource;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Objects;
/** /**
* packageName com.ruoyi.web.controller.manager * packageName com.ruoyi.web.controller.manager
@ -51,7 +52,9 @@ public class CheckReportManager {
.eq(TdCheckType::getCheckId, checkReportDTO.getCheckId()) .eq(TdCheckType::getCheckId, checkReportDTO.getCheckId())
.remove(); .remove();
} else { } else {
tdCheckReport.setCheckState("2"); if(Objects.isNull(tdCheckReport.getCheckState())){
tdCheckReport.setCheckState("2");
}
tdCheckReport.setDepart(ShiroUtils.getSysUser().getDept().getDeptName()); tdCheckReport.setDepart(ShiroUtils.getSysUser().getDept().getDeptName());
tdCheckReport.setAdduser(ShiroUtils.getSysUser().getLoginName()); tdCheckReport.setAdduser(ShiroUtils.getSysUser().getLoginName());
tdCheckReport.setCreateTime(new Date()); tdCheckReport.setCreateTime(new Date());

Loading…
Cancel
Save