فهرست منبع

fix:刀具任务优化

wang.sq@aliyun.com 3 هفته پیش
والد
کامیت
46a863cb36

+ 11 - 0
imcs-admin-boot/imcs-business-biz/src/main/java/com/github/zuihou/business/externalApi/service/impl/MesNoticeServiceImpl.java

@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.github.zuihou.base.R;
 import com.github.zuihou.base.service.SuperServiceImpl;
+import com.github.zuihou.business.externalApi.dao.MesNoticeLogMapper;
 import com.github.zuihou.business.externalApi.dao.MesNoticeMapper;
 import com.github.zuihou.business.externalApi.dto.MesNoticeUpdateDTO;
 import com.github.zuihou.business.externalApi.entity.MesNotice;
@@ -34,6 +35,9 @@ public class MesNoticeServiceImpl extends SuperServiceImpl<MesNoticeMapper, MesN
     @Autowired
     private MsgUtil msgUtil;
 
+    @Autowired
+    private MesNoticeLogMapper mesNoticeLogMapper;
+
     @Autowired
     private MesNoticeLogService mesNoticeLogService;
 
@@ -85,6 +89,13 @@ public class MesNoticeServiceImpl extends SuperServiceImpl<MesNoticeMapper, MesN
             throw new BizException("此订单已存在");
         }
         baseMapper.insert(model);
+
+        MesNoticeLog mesNoticeLog = new MesNoticeLog();
+        BeanUtils.copyProperties(model, mesNoticeLog);
+        mesNoticeLog.setNoticeId(model.getId());
+        mesNoticeLog.setId(null);
+        mesNoticeLogMapper.insert(mesNoticeLog);
+
         return true;
     }