| | |
| | | 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; |
| | |
| | | public class WorkOrderService { |
| | | @Resource |
| | | private WorkOrderMapper workOrderMapper; |
| | | @Resource |
| | | private InoutNoticeService noticeService; |
| | | @Resource |
| | | private InoutNoticeInMapper noticeInMapper; |
| | | @Resource |
| | |
| | | |
| | | //更新入库通知单状态 |
| | | 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()); |
| | | } |
| | | } |
| | | |