|
@@ -1,8 +1,10 @@
|
|
|
package cn.iocoder.yudao.module.pms.service.iotrddailyreport;
|
|
package cn.iocoder.yudao.module.pms.service.iotrddailyreport;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.util.ObjUtil;
|
|
import cn.hutool.core.util.ObjUtil;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
|
|
+import cn.iocoder.yudao.module.pms.controller.admin.iotattachment.vo.IotAttachmentSaveReqVO;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.iotrddailyreport.vo.IotRdDailyReportPageReqVO;
|
|
import cn.iocoder.yudao.module.pms.controller.admin.iotrddailyreport.vo.IotRdDailyReportPageReqVO;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.iotrddailyreport.vo.IotRdDailyReportSaveReqVO;
|
|
import cn.iocoder.yudao.module.pms.controller.admin.iotrddailyreport.vo.IotRdDailyReportSaveReqVO;
|
|
|
import cn.iocoder.yudao.module.pms.dal.dataobject.iotrddailyreport.IotRdDailyReportDO;
|
|
import cn.iocoder.yudao.module.pms.dal.dataobject.iotrddailyreport.IotRdDailyReportDO;
|
|
@@ -50,6 +52,12 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
// 设置 日报审批状态为 审批中 auditStatus = 10
|
|
// 设置 日报审批状态为 审批中 auditStatus = 10
|
|
|
updateObj.setAuditStatus(10);
|
|
updateObj.setAuditStatus(10);
|
|
|
iotRdDailyReportMapper.updateById(updateObj);
|
|
iotRdDailyReportMapper.updateById(updateObj);
|
|
|
|
|
+ // 如果上传了附件 保存附件
|
|
|
|
|
+ if (CollUtil.isNotEmpty(updateReqVO.getAttachments())) {
|
|
|
|
|
+ List<IotAttachmentSaveReqVO> attachments = updateReqVO.getAttachments();
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ ;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|