| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<MesWmArrivalNoticeLineDO> getArrivalNoticeLineListByNoticeIds(Collection<Long> noticeIds) { |
| | | return arrivalNoticeLineMapper.selectListByNoticeIds(noticeIds); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteArrivalNoticeLineByNoticeId(Long noticeId) { |
| | | arrivalNoticeLineMapper.deleteByNoticeId(noticeId); |
| | | } |
| | | |
| | | @Override |
| | | public void updateArrivalNoticeLineWhenIqcFinish(Long lineId, Long iqcId, BigDecimal qualifiedQuantity) { |
| | | public void updateArrivalNoticeLineWhenIqcFinish(Long lineId, Long iqcId, Integer checkResult, BigDecimal qualifiedQuantity) { |
| | | // 校验行存在 |
| | | validateArrivalNoticeLineExists(lineId); |
| | | // 更新 |
| | | // 更新:绑定 iqcId + 质检结果 + 合格数量 |
| | | arrivalNoticeLineMapper.updateById(new MesWmArrivalNoticeLineDO() |
| | | .setId(lineId).setIqcId(iqcId).setQualifiedQuantity(qualifiedQuantity)); |
| | | .setId(lineId).setIqcId(iqcId).setIqcCheckResult(checkResult).setQualifiedQuantity(qualifiedQuantity)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | arrivalNoticeLineMapper.insert(line); |
| | | } |
| | | |
| | | @Override |
| | | public void updateArrivalNoticeLineIqcId(Long lineId, Long iqcId) { |
| | | arrivalNoticeLineMapper.updateById(new MesWmArrivalNoticeLineDO() |
| | | .setId(lineId).setIqcId(iqcId)); |
| | | } |
| | | |
| | | } |