异常BUG修改

master
赵嘉伟 3 years ago
parent ee1611a1e0
commit a2f9e5ffb8

@ -162,6 +162,8 @@ public class AbnormalBillLogServiceImpl extends ServiceImpl<AbnormalBillLogMappe
ncGroup.append(ncGroups.get(i)).append(","); ncGroup.append(ncGroups.get(i)).append(",");
} }
} }
abnormalBillLog.setInspector(abnormalBillLog.getInspector());
abnormalBillLog.setPbUser(abnormalBillLog.getPbUser());
abnormalBillLog.setNcCodeGroup(ncGroup.toString()); abnormalBillLog.setNcCodeGroup(ncGroup.toString());
abnormalBillLog.setCreatedUser(user); abnormalBillLog.setCreatedUser(user);
abnormalBillLog.setCreatedDataTime(now); abnormalBillLog.setCreatedDataTime(now);

@ -232,7 +232,7 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
//判断是否是用户自报,如果是自报的话,调用孙豪的方法 //判断是否是用户自报,如果是自报的话,调用孙豪的方法
if(!StringUtil.isBlank(abnormalBill.getInspector()) && Constants.NEW.equals(abnormalBill.getStatus())){ if(!StringUtil.isBlank(abnormalBill.getInspector()) && Constants.NEW.equals(abnormalBill.getStatus()) &&"B".equals(abnormalBill.getReportFrom())){
abnormalBill.setObjectBo(HandleEnum.SELF_REPORT.getHandle(abnormalBill.getSite(),abnormalBill.getObjectBo())); abnormalBill.setObjectBo(HandleEnum.SELF_REPORT.getHandle(abnormalBill.getSite(),abnormalBill.getObjectBo()));
selfReportService.updateState(abnormalBill.getObjectBo(), Constants.STATE_CONFIRM); selfReportService.updateState(abnormalBill.getObjectBo(), Constants.STATE_CONFIRM);
} }
@ -274,8 +274,9 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
abnormalNcCode.setModifiedDateTime(now); abnormalNcCode.setModifiedDateTime(now);
abnormalNcCodes.add(abnormalNcCode); abnormalNcCodes.add(abnormalNcCode);
} }
if(abnormalNcCodes.size() > 0){
abnormalNcCodeService.saveOrUpdateBatch(abnormalNcCodes); abnormalNcCodeService.saveOrUpdateBatch(abnormalNcCodes);
}
abnormalBillDisposeService.saveOrUpdate(abnormalBillDispose); abnormalBillDisposeService.saveOrUpdate(abnormalBillDispose);
this.saveOrUpdate(abnormalBill); this.saveOrUpdate(abnormalBill);
/** /**

@ -28,6 +28,12 @@ public class ShopOrderDto extends ShopOrder {
*/ */
private String workCenter; private String workCenter;
/**
*
* @return
*/
private String map;
public String getWorkOrder() { public String getWorkOrder() {
return workOrder; return workOrder;
} }
@ -59,4 +65,12 @@ public class ShopOrderDto extends ShopOrder {
public void setWorkCenter(String workCenter) { public void setWorkCenter(String workCenter) {
this.workCenter = workCenter; this.workCenter = workCenter;
} }
public String getMap() {
return map;
}
public void setMap(String map) {
this.map = map;
}
} }

@ -1009,11 +1009,12 @@
<!--根据工单找出工作令号,项目号,产品类别--> <!--根据工单找出工作令号,项目号,产品类别-->
<select id="findByShopOrderBo" resultType="com.foreverwin.mesnac.meapi.dto.ShopOrderDto"> <select id="findByShopOrderBo" resultType="com.foreverwin.mesnac.meapi.dto.ShopOrderDto">
SELECT WO.VALUE WORK_ORDER,ITEM.VALUE ITEM_NUMBER,PC.VALUE PRODUCT_CATEGORY,WC.WORK_CENTER SELECT WO.VALUE WORK_ORDER,ITEM.VALUE ITEM_NUMBER,PC.VALUE PRODUCT_CATEGORY,WC.WORK_CENTER,MAP.VALUE MAP
FROM SHOP_ORDER SO FROM SHOP_ORDER SO
LEFT JOIN CUSTOM_FIELDS WO ON WO.HANDLE = SO.HANDLE AND WO."ATTRIBUTE" = 'WORK_ORDER' LEFT JOIN CUSTOM_FIELDS WO ON WO.HANDLE = SO.HANDLE AND WO."ATTRIBUTE" = 'WORK_ORDER'
LEFT JOIN CUSTOM_FIELDS ITEM ON ITEM.HANDLE = SO.HANDLE AND ITEM."ATTRIBUTE" = 'ITEM_NUMBER' LEFT JOIN CUSTOM_FIELDS ITEM ON ITEM.HANDLE = SO.HANDLE AND ITEM."ATTRIBUTE" = 'ITEM_NUMBER'
LEFT JOIN CUSTOM_FIELDS PC ON PC.HANDLE = SO.HANDLE AND PC."ATTRIBUTE" = 'PRODUCT_CATEGORY' LEFT JOIN CUSTOM_FIELDS PC ON PC.HANDLE = SO.HANDLE AND PC."ATTRIBUTE" = 'PRODUCT_CATEGORY'
LEFT JOIN CUSTOM_FIELDS MAP ON MAP.HANDLE = SO.HANDLE AND MAP."ATTRIBUTE" = 'MAP'
LEFT JOIN WORK_CENTER WC ON WC.HANDLE = SO.PLANNED_WORK_CENTER_BO LEFT JOIN WORK_CENTER WC ON WC.HANDLE = SO.PLANNED_WORK_CENTER_BO
WHERE SO.HANDLE = #{handle} WHERE SO.HANDLE = #{handle}
</select> </select>

@ -29,6 +29,7 @@ public class InspectionTaskManage implements Serializable {
private LocalDateTime createdDateTime; private LocalDateTime createdDateTime;
private String modifyUser; private String modifyUser;
private LocalDateTime modifiedDateTime; private LocalDateTime modifiedDateTime;
private String fullName;
private List<InspectionTaskManageDetail> inspectionTaskDetailList; private List<InspectionTaskManageDetail> inspectionTaskDetailList;
@ -215,4 +216,12 @@ public class InspectionTaskManage implements Serializable {
public void setInspectionTaskDetailList(List<InspectionTaskManageDetail> inspectionTaskDetailList) { public void setInspectionTaskDetailList(List<InspectionTaskManageDetail> inspectionTaskDetailList) {
this.inspectionTaskDetailList = inspectionTaskDetailList; this.inspectionTaskDetailList = inspectionTaskDetailList;
} }
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
} }

@ -151,6 +151,13 @@ public class SelfReport extends Model<SelfReport> {
@TableField(exist = false) @TableField(exist = false)
private String productCategory; private String productCategory;
/**
* User
* @return
*/
@TableField(exist = false)
private String pbUser;
public String getProductCategory() { public String getProductCategory() {
return productCategory; return productCategory;
} }
@ -343,6 +350,14 @@ public class SelfReport extends Model<SelfReport> {
this.description = description; this.description = description;
} }
public String getPbUser() {
return pbUser;
}
public void setPbUser(String pbUser) {
this.pbUser = pbUser;
}
public static final String HANDLE = "HANDLE"; public static final String HANDLE = "HANDLE";
public static final String SITE = "SITE"; public static final String SITE = "SITE";

@ -25,15 +25,17 @@
<result column="CREATED_DATE_TIME" property="createdDateTime" /> <result column="CREATED_DATE_TIME" property="createdDateTime" />
<result column="MODIFY_USER" property="modifyUser" /> <result column="MODIFY_USER" property="modifyUser" />
<result column="MODIFIED_DATE_TIME" property="modifiedDateTime" /> <result column="MODIFIED_DATE_TIME" property="modifiedDateTime" />
<result column="FULL_NAME" property="fullName"/>
</resultMap> </resultMap>
<select id="findInspectionTask" resultMap="BaseResultMap"> <select id="findInspectionTask" resultMap="BaseResultMap">
SELECT B.HANDLE, B.SITE, B.CATEGORY, B.TASK_NO, B.DESCRIPTION, B.STATUS, B.INSPECTION_ITEM_BO, B.WORK_CENTER, B.SHOP_ORDER, B.SFC, B.OPERATION, B.STEP_ID, B.RESRCE, B.RESULT, B.COMMENTS, B.CREATE_USER, B.CREATED_DATE_TIME, B.MODIFY_USER, B.MODIFIED_DATE_TIME, SELECT B.HANDLE, B.SITE, B.CATEGORY, B.TASK_NO, B.DESCRIPTION, B.STATUS, B.INSPECTION_ITEM_BO, B.WORK_CENTER, B.SHOP_ORDER, B.SFC, B.OPERATION, B.STEP_ID, B.RESRCE, B.RESULT, B.COMMENTS, B.CREATE_USER, B.CREATED_DATE_TIME, B.MODIFY_USER, B.MODIFIED_DATE_TIME,
M.ITEM, Z.DESCRIPTION ITEM_DESCRIPTION M.ITEM, Z.DESCRIPTION ITEM_DESCRIPTION,ZNU.FULL_NAME FULL_NAME
FROM Z_INSPECTION_TASK B FROM Z_INSPECTION_TASK B
INNER JOIN SFC S ON S.SITE = B.SITE AND S.SFC = B.SFC INNER JOIN SFC S ON S.SITE = B.SITE AND S.SFC = B.SFC
INNER JOIN SHOP_ORDER P ON P.HANDLE = S.SHOP_ORDER_BO INNER JOIN SHOP_ORDER P ON P.HANDLE = S.SHOP_ORDER_BO
INNER JOIN ITEM M ON M.HANDLE = P.ITEM_BO INNER JOIN ITEM M ON M.HANDLE = P.ITEM_BO
LEFT JOIN Z_NWA_USER ZNU ON ZNU.USER_NAME = B.CREATE_USER
LEFT JOIN ITEM_T Z ON Z.ITEM_BO = M.HANDLE AND Z.LOCALE = 'zh' LEFT JOIN ITEM_T Z ON Z.ITEM_BO = M.HANDLE AND Z.LOCALE = 'zh'
WHERE B.SITE = #{site} WHERE B.SITE = #{site}
<if test="workCenter != null and workCenter != ''"> <if test="workCenter != null and workCenter != ''">

@ -24,6 +24,7 @@
<result column="MODIFIED_DATE_TIME" property="modifiedDateTime" /> <result column="MODIFIED_DATE_TIME" property="modifiedDateTime" />
<result column="NC_CODE_DESC" property="ncCodeDesc" /> <result column="NC_CODE_DESC" property="ncCodeDesc" />
<result column="REPORT_USER_GROUP" property="reportUserGroup" /> <result column="REPORT_USER_GROUP" property="reportUserGroup" />
<result column="PB_USER" property="pbUser" />
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
@ -559,7 +560,7 @@
</delete> </delete>
<!-- BaseMapper标准查询/修改/删除 --> <!-- BaseMapper标准查询/修改/删除 -->
<select id="selectListByCondition" resultMap="BaseResultMap"> <select id="selectListByCondition" resultMap="BaseResultMap">
SELECT ZSR.HANDLE, ZSR.SITE, ZSR.TASK_NO, ZSR.WORK_CENTER,ZSR.NC_CODE_DESC, ZSR.SHOP_ORDER, ZSR.ITEM, ZSR.OP_STEP, ZSR.RESRCE, ZSR.SFC, ZSR.NC_CODE, ZSR.NC_QTY, ZSR.LOCATION, ZSR.STATE, ZSR.REMARK, B.FULL_NAME CREATE_USER,ZSR. CREATED_DATE_TIME,IT.DESCRIPTION FROM Z_SELF_REPORT ZSR SELECT ZSR.HANDLE, ZSR.SITE, ZSR.TASK_NO, ZSR.WORK_CENTER,ZSR.NC_CODE_DESC, ZSR.SHOP_ORDER, ZSR.ITEM, ZSR.OP_STEP, ZSR.RESRCE, ZSR.SFC, ZSR.NC_CODE, ZSR.NC_QTY, ZSR.LOCATION, ZSR.STATE, ZSR.REMARK, B.FULL_NAME CREATE_USER,ZSR. CREATED_DATE_TIME,IT.DESCRIPTION,ZSR.CREATE_USER PB_USER FROM Z_SELF_REPORT ZSR
JOIN ITEM I ON I.ITEM = ZSR.ITEM AND I.CURRENT_REVISION='true' JOIN ITEM I ON I.ITEM = ZSR.ITEM AND I.CURRENT_REVISION='true'
LEFT JOIN ITEM_T IT ON I.HANDLE = IT.ITEM_BO AND IT.LOCALE = #{locale} LEFT JOIN ITEM_T IT ON I.HANDLE = IT.ITEM_BO AND IT.LOCALE = #{locale}
LEFT JOIN Z_NWA_USER B ON ZSR.SITE = B.SITE AND ZSR.CREATE_USER = B.USER_NAME LEFT JOIN Z_NWA_USER B ON ZSR.SITE = B.SITE AND ZSR.CREATE_USER = B.USER_NAME

Loading…
Cancel
Save