czt
2026-02-04 9ad1c8159544ed36729cffa66cb13b7e60fa46ec
fzzy-igdss-core/src/main/java/com/fzzy/work/service/WorkOrderService.java
@@ -5,6 +5,7 @@
import com.fzzy.igds.constant.Constant;
import com.fzzy.igds.mapper.InoutNoticeInMapper;
import com.fzzy.igds.mapper.InoutNoticeOutMapper;
import com.fzzy.igds.service.InoutNoticeService;
import com.fzzy.igds.utils.ContextUtil;
import com.fzzy.igds.utils.DateUtil;
import com.fzzy.work.data.WorkNode;
@@ -34,6 +35,8 @@
public class WorkOrderService {
    @Resource
    private WorkOrderMapper workOrderMapper;
    @Resource
    private InoutNoticeService noticeService;
    @Resource
    private InoutNoticeInMapper noticeInMapper;
    @Resource
@@ -249,12 +252,12 @@
        //更新入库通知单状态
        if (work.getBizType().equals(WorkBizType.TYPE_10.getCode())) {
            noticeInMapper.auditComplete(work.getBusinessId(), work.getStatus());
            noticeService.updateNoticeInStatus(work.getBusinessId(), work.getStatus());
        }
        //更新入库通知单状态
        //更新出库通知单状态
        if (work.getBizType().equals(WorkBizType.TYPE_20.getCode())) {
            noticeOutMapper.auditComplete(work.getBusinessId(), work.getStatus());
            noticeService.updateNoticeOutStatus(work.getBusinessId(), work.getStatus());
        }
    }