异常模块bug提交

master
赵嘉伟 3 years ago
parent e012a18f87
commit bab0b194ba

@ -208,6 +208,8 @@ public class AbnormalBillDisposeDto extends AbnormalBillDispose {
private String routerDescription;; private String routerDescription;;
private String stepId;
public String getAbnormalNo() { public String getAbnormalNo() {
return abnormalNo; return abnormalNo;
} }
@ -547,4 +549,12 @@ public class AbnormalBillDisposeDto extends AbnormalBillDispose {
public void setRouterDescription(String routerDescription) { public void setRouterDescription(String routerDescription) {
this.routerDescription = routerDescription; this.routerDescription = routerDescription;
} }
public String getStepId() {
return stepId;
}
public void setStepId(String stepId) {
this.stepId = stepId;
}
} }

@ -535,8 +535,8 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
sfcDto.setAbnormalNo(abnormalBill2.getAbnormalNo()); sfcDto.setAbnormalNo(abnormalBill2.getAbnormalNo());
sfcDto.setQty(sfc.getQty()); sfcDto.setQty(sfc.getQty());
Map map = sfcMapper.findOperationBySfc(site, sfc.getSfc()); Map map = sfcMapper.findOperationBySfc(site, sfc.getSfc());
if(StringUtils.isBlank((String)map.get("STEP_ID"))){ if(map != null && StringUtils.isBlank((String)map.get("STEP_ID"))){
throw new BaseException("整批返修失败,根据产品条码找不到STEP_ID"); throw new BaseException("整批返修失败,根据产品条码"+sfc.getSfc()+"找不到STEP_ID");
} }
sfcDto.setStepId((String) map.get("STEP_ID")); sfcDto.setStepId((String) map.get("STEP_ID"));
this.batchRepair(sfcDto); this.batchRepair(sfcDto);

@ -78,6 +78,8 @@
<result column="DUTY_TYPE" property="dutyType"/> <result column="DUTY_TYPE" property="dutyType"/>
<result column="DUTY_CAUSE_TYPE" property="dutyCauseType"/> <result column="DUTY_CAUSE_TYPE" property="dutyCauseType"/>
<result column="ROUTER_DESCRIPTION" property="routerDescription"/> <result column="ROUTER_DESCRIPTION" property="routerDescription"/>
<result column="PRODUCT_CATEGORY" property="productCategory"/>
<result column="STEP_ID" property="stepId"/>
</resultMap> </resultMap>
@ -722,7 +724,8 @@
listagg(ZANC.NC_CODE_GROUP || '/'||ZANC.NC_CODE || ',') within GROUP(ORDER BY zab.ABNORMAL_NO) NC_CODE, listagg(ZANC.NC_CODE_GROUP || '/'||ZANC.NC_CODE || ',') within GROUP(ORDER BY zab.ABNORMAL_NO) NC_CODE,
ZABD.ROUTER_BO ROUTER_BO,ZAB.OPERATION OPERATION,I.HANDLE ITEM_BO,ZAB.REPORT_SEND_USER_GROUP REPORT_SEND_USER_GROUP, ZABD.ROUTER_BO ROUTER_BO,ZAB.OPERATION OPERATION,I.HANDLE ITEM_BO,ZAB.REPORT_SEND_USER_GROUP REPORT_SEND_USER_GROUP,
ZAB.CORRECTION CORRECTION,ZAB.PROGRAM PROGRAM,WCT.DESCRIPTION WORK_CENTER_DESCRIPTION,ZAB.SHUT_DOWN SHUT_DOWN, ZAB.CORRECTION CORRECTION,ZAB.PROGRAM PROGRAM,WCT.DESCRIPTION WORK_CENTER_DESCRIPTION,ZAB.SHUT_DOWN SHUT_DOWN,
RS.DESCRIPTION RESRCE_DESCRIPTION,OT.DESCRIPTION OPERATION_DESCRIPTION,R.DESCRIPTION ROUTER_DESCRIPTION RS.DESCRIPTION RESRCE_DESCRIPTION,OT.DESCRIPTION OPERATION_DESCRIPTION,R.DESCRIPTION ROUTER_DESCRIPTION,
ZAB.PRODUCT_CATEGORY PRODUCT_CATEGORY,ZAB.STEP_ID STEP_ID
FROM Z_ABNORMAL_BILL ZAB FROM Z_ABNORMAL_BILL ZAB
LEFT JOIN Z_ABNORMAL_BILL_DISPOSE ZABD ON ZAB.HANDLE = ZABD.ABNORMAL_BILL_BO LEFT JOIN Z_ABNORMAL_BILL_DISPOSE ZABD ON ZAB.HANDLE = ZABD.ABNORMAL_BILL_BO
LEFT JOIN ITEM I ON I.HANDLE = ZAB.ITEM_BO LEFT JOIN ITEM I ON I.HANDLE = ZAB.ITEM_BO
@ -766,7 +769,7 @@
R.ROUTER ,ZABD.RESOLVE_SHOP_ORDER ,ZABD.RESOLVE_REMARK ,ZABD.RESOLVE_SEND_USER_GROUP , R.ROUTER ,ZABD.RESOLVE_SHOP_ORDER ,ZABD.RESOLVE_REMARK ,ZABD.RESOLVE_SEND_USER_GROUP ,
ZABD.ABNORMAL_REASON ,ZABD.BEFORE_MEASURE ,"MAP".VALUE,ZABD.ROUTER_BO,ZAB.OPERATION,I.HANDLE, ZABD.ABNORMAL_REASON ,ZABD.BEFORE_MEASURE ,"MAP".VALUE,ZABD.ROUTER_BO,ZAB.OPERATION,I.HANDLE,
ZAB.REPORT_SEND_USER_GROUP,ZAB.CORRECTION,ZAB.PROGRAM,WCT.DESCRIPTION,ZAB.SHUT_DOWN,RS.DESCRIPTION, ZAB.REPORT_SEND_USER_GROUP,ZAB.CORRECTION,ZAB.PROGRAM,WCT.DESCRIPTION,ZAB.SHUT_DOWN,RS.DESCRIPTION,
OT.DESCRIPTION,R.DESCRIPTION OT.DESCRIPTION,R.DESCRIPTION, ZAB.PRODUCT_CATEGORY ,ZAB.STEP_ID
</select> </select>

@ -221,7 +221,7 @@ public enum AnomalyConstant {
public enum AnomalyMethod{ public enum AnomalyMethod{
AnomalyMethod1("X","线下换料"), AnomalyMethod1("X","线下换料"),
AnomalyMethod2("S","试装"), AnomalyMethod2("S","试装"),
AnomalyMethod3("R","让步放"), AnomalyMethod3("R","让步放"),
AnomalyMethod4("C","产品报废"), AnomalyMethod4("C","产品报废"),
AnomalyMethod5("P","配作"), AnomalyMethod5("P","配作"),
AnomalyMethod6("F","返修"); AnomalyMethod6("F","返修");

Loading…
Cancel
Save