yinq 11 months ago
commit 7199ef5c8f

@ -84,14 +84,18 @@ public class PdaApiController {
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
ReportQualityInspection inspection = new ReportQualityInspection(); ReportQualityInspection inspection = new ReportQualityInspection();
inspection.setBarCode(checkInfo.getCode()); inspection.setBarCode(checkInfo.getCode());
// inspection.setMaterialName(boxName); inspection.setMaterialName(checkInfo.getName());
inspection.setTreatmentMeasure(checkInfo.getMeasure()); String measure = checkInfo.getMeasure();
inspection.setProcessResult(checkInfo.getMeasureName()); inspection.setTreatmentMeasure(measure);
if (measure.equals("3")){ inspection.setIsFlag(1L);}
//检测人
inspection.setInspectorCode(checkInfo.getUserName()); inspection.setInspectorCode(checkInfo.getUserName());
inspection.setInspectorTime(new Date()); inspection.setInspectorTime(new Date());
inspection.setStationCode(checkInfo.getStationCode());
assert list != null; assert list != null;
if (!list.isEmpty()) { if (!list.isEmpty()) {
CheckInfoDto.DefectBeen defectBeen = list.get(i);
inspection.setSubmitQualtyId(defectBeen.getObjId());
inspection.setTestItemCode(list.get(i).getStationCode()); inspection.setTestItemCode(list.get(i).getStationCode());
inspection.setQualityDefectCode(list.get(i).getQualityDefectCode()); inspection.setQualityDefectCode(list.get(i).getQualityDefectCode());
inspection.setQualityDefectName(list.get(i).getQualityDefectName()); inspection.setQualityDefectName(list.get(i).getQualityDefectName());

@ -8,28 +8,18 @@ import java.util.List;
*/ */
public class CheckInfoDto { public class CheckInfoDto {
private String code;//产品条码 private String code;//产品条码
private String name;//产品型号
private String measure;//处置措施 3=放行,1=返修
private List<DefectBeen> list;//缺陷列表 private List<DefectBeen> list;//缺陷列表
private String measure;//处理措施TREATMENT_MEASURE private String stationCode;
private String measureName;//处理措施TREATMENT_MEASURE
private String offline;
private String processCode;
private String userName; private String userName;
public String getProcessCode() { public String getMeasure() {
return processCode; return measure;
}
public void setProcessCode(String processCode) {
this.processCode = processCode;
}
public String getUserName() {
return userName;
} }
public void setUserName(String userName) { public void setMeasure(String measure) {
this.userName = userName; this.measure = measure;
} }
public String getCode() { public String getCode() {
@ -40,12 +30,12 @@ public class CheckInfoDto {
this.code = code; this.code = code;
} }
public String getMeasureName() { public String getName() {
return measureName; return name;
} }
public void setMeasureName(String measureName) { public void setName(String name) {
this.measureName = measureName; this.name = name;
} }
public List<DefectBeen> getList() { public List<DefectBeen> getList() {
@ -56,32 +46,43 @@ public class CheckInfoDto {
this.list = list; this.list = list;
} }
public String getMeasure() { public String getStationCode() {
return measure; return stationCode;
} }
public void setMeasure(String measure) { public void setStationCode(String stationCode) {
this.measure = measure; this.stationCode = stationCode;
} }
public String getOffline() { public String getUserName() {
return offline; return userName;
} }
public void setOffline(String offline) { public void setUserName(String userName) {
this.offline = offline; this.userName = userName;
} }
public static class DefectBeen { public static class DefectBeen {
private int objId;
private String qualityDefectCode; private String qualityDefectCode;
private String qualityDefectName; private String qualityDefectName;
private String stationCode; private String stationCode;
public DefectBeen() { public DefectBeen() {
} }
public int getObjId() {
return objId;
}
public void setObjId(int objId) {
this.objId = objId;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
public String getQualityDefectCode() { public String getQualityDefectCode() {
return qualityDefectCode; return qualityDefectCode;
} }

@ -51,11 +51,12 @@
<select id="checkSelectRepairInfo" resultMap="com.aucma.report.mapper.ReportQualityInspectionMapper.ReportQualityInspectionResult"> <select id="checkSelectRepairInfo" resultMap="com.aucma.report.mapper.ReportQualityInspectionMapper.ReportQualityInspectionResult">
select OBJ_ID, select OBJ_ID,
MATERIAL_NAME, MATERIAL_NAME,
TEST_ITEM_CODE as STATION_CODE,
QUALITY_DEFECT_CODE, QUALITY_DEFECT_CODE,
QUALITY_DEFECT_NAME QUALITY_DEFECT_NAME
from AUCMA_MES.REPORT_QUALITY_INSPECTION from AUCMA_MES.REPORT_QUALITY_INSPECTION
where BAR_CODE = #{code} where BAR_CODE = #{code}
and IS_FLAG = 1 and IS_FLAG = 1 and IS_FLAG=1
</select> </select>
</mapper> </mapper>

@ -119,6 +119,9 @@ public class ReportQualityInspection extends BaseEntity {
*/ */
@Excel(name = "更新人") @Excel(name = "更新人")
private String updatedBy; private String updatedBy;
//新增字段
private String stationCode;
private int submitQualtyId;
/** /**
* *
@ -139,6 +142,14 @@ public class ReportQualityInspection extends BaseEntity {
this.barCode = barCode; this.barCode = barCode;
} }
public int getSubmitQualtyId() {
return submitQualtyId;
}
public void setSubmitQualtyId(int submitQualtyId) {
this.submitQualtyId = submitQualtyId;
}
public String getBarCode() { public String getBarCode() {
return barCode; return barCode;
} }
@ -147,6 +158,14 @@ public class ReportQualityInspection extends BaseEntity {
this.materialName = materialName; this.materialName = materialName;
} }
public String getStationCode() {
return stationCode;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
public String getMaterialName() { public String getMaterialName() {
return materialName; return materialName;
} }

@ -23,6 +23,8 @@
<result property="isFlag" column="is_flag"/> <result property="isFlag" column="is_flag"/>
<result property="updatedBy" column="updated_by"/> <result property="updatedBy" column="updated_by"/>
<result property="updatedTime" column="updated_time"/> <result property="updatedTime" column="updated_time"/>
<result property="stationCode" column="STATION_CODE"/>
<result property="submitQualtyId" column="SUBMINT_QUALTY_ID"/>
</resultMap> </resultMap>
<sql id="selectReportQualityInspectionVo"> <sql id="selectReportQualityInspectionVo">
@ -108,6 +110,9 @@
<if test="isFlag != null">is_flag,</if> <if test="isFlag != null">is_flag,</if>
<if test="updatedBy != null">updated_by,</if> <if test="updatedBy != null">updated_by,</if>
<if test="updatedTime != null">updated_time,</if> <if test="updatedTime != null">updated_time,</if>
<if test="updatedTime != null">updated_time,</if>
<if test="stationCode != null">STATION_CODE,</if>
<if test="submitQualtyId != null">SUBMINT_QUALTY_ID,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="objId != null">#{objId},</if> <if test="objId != null">#{objId},</if>
@ -128,6 +133,8 @@
<if test="isFlag != null">#{isFlag},</if> <if test="isFlag != null">#{isFlag},</if>
<if test="updatedBy != null">#{updatedBy},</if> <if test="updatedBy != null">#{updatedBy},</if>
<if test="updatedTime != null">#{updatedTime},</if> <if test="updatedTime != null">#{updatedTime},</if>
<if test="stationCode != null">#{stationCode},</if>
<if test="submitQualtyId != null">#{submitQualtyId},</if>
</trim> </trim>
</insert> </insert>

Loading…
Cancel
Save