Commit 1a10d8f1ced5f7029611bf8c27ac34cb574b183b
1 parent
91e7b43b
✨ feat(mes): 更新待检任务查询,优化字段描述和逻辑
- 修改待检任务查询的注释,提升可读性 - 在 IQC 相关逻辑中添加事务管理 - 更新表单字段,调整来源单据类型和名称
Showing
3 changed files
with
7 additions
and
7 deletions
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/MesBizTypeConstants.java
| ... | ... | @@ -22,7 +22,6 @@ public final class MesBizTypeConstants { |
| 22 | 22 | // ========== WM 仓库模块 [100, 200) ========== |
| 23 | 23 | |
| 24 | 24 | public static final int WM_ARRIVAL_NOTICE = 100; // 到货通知单:MesWmArrivalNoticeDO |
| 25 | - // public static final int WM_OUTSOURCE_RECPT = 101; // TODO 外协入库单:未实现,占位 | |
| 26 | 25 | public static final int WM_WAREHOUSE = 102; // 仓库:MesWmWarehouseDO |
| 27 | 26 | public static final int WM_LOCATION = 103; // 库位:MesWmLocationDO |
| 28 | 27 | public static final int WM_AREA = 104; // 库位:MesWmStorageAreaDO | ... | ... |
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/iqc/MesQcIqcServiceImpl.java
| ... | ... | @@ -117,6 +117,7 @@ public class MesQcIqcServiceImpl implements MesQcIqcService { |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | @Override |
| 120 | + @Transactional(rollbackFor = Exception.class) | |
| 120 | 121 | public void finishIqc(Long id) { |
| 121 | 122 | // 1.1 校验存在 + 草稿状态 |
| 122 | 123 | MesQcIqcDO iqc = validateIqcStatusPrepare(id); | ... | ... |
yudao-module-mes/src/main/resources/mapper/qc/pendinginspect/MesQcPendingInspectMapper.xml
| ... | ... | @@ -4,12 +4,12 @@ |
| 4 | 4 | |
| 5 | 5 | <!-- |
| 6 | 6 | 待检任务查询(UNION ALL 多来源),已实现的来源: |
| 7 | - 1. 到货通知单(IQC):状态=待质检(2),行的 iqc_check_flag=1 且 iqc_id IS NULL | |
| 8 | - 2. 外协入库单(IQC/OIQC):状态=待检验(1),行的 iqc_check=1 且 iqc_id IS NULL | |
| 9 | - 3. 生产报工(IPQC):状态=待检验(3) | |
| 10 | - 4. 销售出库单(OQC):行的 oqc_check=1 且 oqc_id IS NULL | |
| 11 | - 5. 生产退料单(RQC):状态=待检验(5),行的 qc_flag=1 且 quality_status=0(待检) | |
| 12 | - 6. 销售退货单(RQC):状态=待执行(10),行的 quality_status=0(待检) | |
| 7 | + 1. 到货通知单(IQC):单据状态=待质检(2),行的 iqc_check_flag=1 且 iqc_id 为空 | |
| 8 | + 2. 外协入库单(IQC):单据状态=待检验(1),行的 iqc_check=1 且 iqc_id 为空 | |
| 9 | + 3. 生产报工(IPQC):单据状态=待检验(3) | |
| 10 | + 4. 销售出库单(OQC):无单据状态要求,行的 oqc_check=1 且 oqc_id 为空 | |
| 11 | + 5. 生产退料单(RQC):单据状态=待检验(1),行的 qc_flag=1 且 quality_status=0(待检) | |
| 12 | + 6. 销售退货单(RQC):单据状态=待检验(1),行的 qc_flag=1 且 quality_status=0(待检) | |
| 13 | 13 | --> |
| 14 | 14 | <select id="selectQcPendingPage" resultType="cn.iocoder.yudao.module.mes.controller.admin.qc.pendinginspect.vo.MesQcPendingInspectRespVO"> |
| 15 | 15 | SELECT * FROM ( | ... | ... |