• YunaiV authored
     
    Browse Dir »
  • 1. MesQcIqcSaveReqVO: 新增 @AssertTrue 校验 qualifiedQuantity + unqualifiedQuantity == receivedQuantity
    2. MesQcIqcLineDO/ServiceImpl/RespVO/Controller: toolId(Long) 改为 tool(String),从 MesQcIndicatorDO 冗余读取,移除 MesTmToolService 依赖
    3. MesWmArrivalNoticeService/Impl: 新增 validateArrivalNoticeAndLineExists 方法,校验通知单+行存在且匹配
    4. MesQcIqcServiceImpl: 抽取 validateSourceDoc 私有方法校验来源单据;completeIqc 增加 checkResult 必填校验并移除重复数量校验;writeBackSourceDoc 使用 ObjectUtil.hasNull 简化判断
    5. ErrorCodeConstants: 新增 QC_IQC_SOURCE_DOC_PARAMS_MISSING、QC_IQC_CHECK_RESULT_EMPTY
    YunaiV authored
     
    Browse Dir »
  • 1. 拆分 MesQcTemplateService → MesQcTemplateDetailService
       - 检测指标项、产品关联 CRUD 迁移至 DetailService
       - 新增 getRequiredTemplateByItemIdAndType 方法
    2. MesQcIqcSaveReqVO 字段清理
       - 删除 templateId/minCheckQuantity/maxUnqualifiedQuantity/checkQuantity/inspectorUserId
       - 增加 qualifiedQuantity/unqualifiedQuantity @NotNull + @DecimalMin 校验
       - 增加 receiveDate/inspectDate @NotNull 校验
    3. MesQcIqcServiceImpl 业务逻辑调整
       - createIqc/updateIqc 增加 inspectorUserId 参数,由 Controller 传入 getLoginUserId()
       - templateId 不再由前端传递,后端根据 itemId + IQC 类型自动查找模板
       - checkQuantity 由后端计算(= qualifiedQuantity + unqualifiedQuantity)
       - updateIqc 禁止修改 sourceDocType/sourceDocId/sourceLineId/templateId
    4. MesQcIqcDO/RespVO 删除 minCheckQuantity、maxUnqualifiedQuantity 字段
    5. 更新调用方:IndicatorController、ItemController、IQC/OQC/IPQC ServiceImpl
    YunaiV authored
     
    Browse Dir »