赵宏斌 3 weeks ago
parent
commit
f2e733f19a
  1. 19
      src/main/java/com/heai/modules/pms/data/QcPartAttributeData.java
  2. 7
      src/main/resources/mapper/pms/QcMapper.xml

19
src/main/java/com/heai/modules/pms/data/QcPartAttributeData.java

@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import com.heai.common.utils.QueryPage; import com.heai.common.utils.QueryPage;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
public class QcPartAttributeData extends QueryPage { public class QcPartAttributeData extends QueryPage {
@ -129,11 +130,11 @@ public class QcPartAttributeData extends QueryPage {
// 最小值 // 最小值
private String minValue; private String minValue;
// 首次IPQC巡检时间 // 首次IPQC巡检时间
private String firstIPQCPatrolTime;
private BigDecimal firstIPQCPatrolTime;
// 下次IPQC巡检时间 // 下次IPQC巡检时间
private String lastIPQCPatrolTime;
private BigDecimal lastIPQCPatrolTime;
// 累计巡检时间 // 累计巡检时间
private String cycleIPQCPatrolTime;
private BigDecimal cycleIPQCPatrolTime;
public String getDefaultValue() { public String getDefaultValue() {
return defaultValue; return defaultValue;
@ -167,27 +168,27 @@ public class QcPartAttributeData extends QueryPage {
this.minValue = minValue; this.minValue = minValue;
} }
public String getFirstIPQCPatrolTime() {
public BigDecimal getFirstIPQCPatrolTime() {
return firstIPQCPatrolTime; return firstIPQCPatrolTime;
} }
public void setFirstIPQCPatrolTime(String firstIPQCPatrolTime) {
public void setFirstIPQCPatrolTime(BigDecimal firstIPQCPatrolTime) {
this.firstIPQCPatrolTime = firstIPQCPatrolTime; this.firstIPQCPatrolTime = firstIPQCPatrolTime;
} }
public String getLastIPQCPatrolTime() {
public BigDecimal getLastIPQCPatrolTime() {
return lastIPQCPatrolTime; return lastIPQCPatrolTime;
} }
public void setLastIPQCPatrolTime(String lastIPQCPatrolTime) {
public void setLastIPQCPatrolTime(BigDecimal lastIPQCPatrolTime) {
this.lastIPQCPatrolTime = lastIPQCPatrolTime; this.lastIPQCPatrolTime = lastIPQCPatrolTime;
} }
public String getCycleIPQCPatrolTime() {
public BigDecimal getCycleIPQCPatrolTime() {
return cycleIPQCPatrolTime; return cycleIPQCPatrolTime;
} }
public void setCycleIPQCPatrolTime(String cycleIPQCPatrolTime) {
public void setCycleIPQCPatrolTime(BigDecimal cycleIPQCPatrolTime) {
this.cycleIPQCPatrolTime = cycleIPQCPatrolTime; this.cycleIPQCPatrolTime = cycleIPQCPatrolTime;
} }

7
src/main/resources/mapper/pms/QcMapper.xml

@ -25,7 +25,7 @@
LEFT JOIN qc_inspection_type as qit on qm.site = qit.site and qm.inspection_type_no = qit.inspection_type_no LEFT JOIN qc_inspection_type as qit on qm.site = qit.site and qm.inspection_type_no = qit.inspection_type_no
<where> <where>
<if test="query.site != null and query.site != ''"> <if test="query.site != null and query.site != ''">
AND qm.site = #{query.methodNo}
AND qm.site = #{query.site}
</if> </if>
<if test="query.methodNo != null and query.methodNo != ''"> <if test="query.methodNo != null and query.methodNo != ''">
AND qm.method_no LIKE '%' + #{query.methodNo} +'%' AND qm.method_no LIKE '%' + #{query.methodNo} +'%'
@ -4260,7 +4260,10 @@
<select id="getQcIPQCInspection" resultType="com.heai.modules.pms.data.QcFAIRecordData"> <select id="getQcIPQCInspection" resultType="com.heai.modules.pms.data.QcFAIRecordData">
select * select *
from qc_ipqc_record from qc_ipqc_record
where site = #{site} and seq_no = #{seqNo} and order_no = #{orderNo} and inspection_type_no = #{inspectionTypeNo}
where site = #{site} and seq_no = #{seqNo} and order_no = #{orderNo}
<if test=" inspectionTypeNo != null and inspectionTypeNo != ''">
and inspection_type_no = #{inspectionTypeNo}
</if>
</select> </select>
<update id="updateEquipmentFolderLocation"> <update id="updateEquipmentFolderLocation">
UPDATE Equipment_folder_location UPDATE Equipment_folder_location

Loading…
Cancel
Save