From 4837d8e606a630945a8150cd8dff3fb0e48f0784 Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期四, 20 六月 2024 14:26:25 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceProductionLog.java | 228 ++----- pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLastMapper.java | 2 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLifeMapper.java | 2 pms-parent/pms-global/src/main/resources/mapper/StaWipSnExMapper.xml | 32 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkHistory.java | 191 ++---- pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java | 153 +--- pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml | 28 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceProductionLogMapper.java | 2 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDevOpsTaskClaimInfo.java | 113 +-- pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLife.java | 228 ++----- pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkLast.java | 191 ++---- pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml | 46 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaRepairInfoMapper.java | 2 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaWipSnEx.java | 131 +--- pms-parent/pms-global/src/main/resources/mapper/StaDeviceLifeMapper.xml | 46 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLast.java | 216 ++----- pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml | 46 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaWipSnExMapper.java | 2 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkHistoryMapper.java | 2 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDevOpsTaskClaimInfoMapper.java | 2 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkLastMapper.java | 2 21 files changed, 610 insertions(+), 1,055 deletions(-) diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkHistoryMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkHistoryMapper.java index c7e1ea6..cefdadb 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkHistoryMapper.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkHistoryMapper.java @@ -6,7 +6,7 @@ /** * @author User * @description 閽堝琛ㄣ�恠ta_assembly_work_history(鐢熶骇绾跨敓浜т换鍔¤棰嗚〃)銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-06-19 14:21:17 +* @createDate 2024-06-20 11:31:20 * @Entity com.dy.pmsGlobal.pojoSta.StaAssemblyWorkHistory */ @Mapper diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkLastMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkLastMapper.java index 1a315d7..2d41956 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkLastMapper.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaAssemblyWorkLastMapper.java @@ -6,7 +6,7 @@ /** * @author User * @description 閽堝琛ㄣ�恠ta_assembly_work_last(鐢熶骇绾跨敓浜т换鍔¤棰嗚〃)銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-06-19 14:21:17 +* @createDate 2024-06-20 11:31:20 * @Entity com.dy.pmsGlobal.pojoSta.StaAssemblyWorkLast */ @Mapper diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDevOpsTaskClaimInfoMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDevOpsTaskClaimInfoMapper.java index 5541143..fa142bd 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDevOpsTaskClaimInfoMapper.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDevOpsTaskClaimInfoMapper.java @@ -6,7 +6,7 @@ /** * @author User * @description 閽堝琛ㄣ�恠ta_dev_ops_task_claim_info(瀹夎杩愮淮浠诲姟璁ら琛�)銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-06-19 14:21:17 +* @createDate 2024-06-20 11:31:20 * @Entity com.dy.pmsGlobal.pojoSta.StaDevOpsTaskClaimInfo */ @Mapper diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLastMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLastMapper.java index 0ffcabb..df26ce6 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLastMapper.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLastMapper.java @@ -6,7 +6,7 @@ /** * @author User * @description 閽堝琛ㄣ�恠ta_device_last(璁惧鏈�鏂扮姸鎬佽〃)銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-06-19 14:21:17 +* @createDate 2024-06-20 11:31:20 * @Entity com.dy.pmsGlobal.pojoSta.StaDeviceLast */ @Mapper diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLifeMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLifeMapper.java index 6a131aa..c3efd9c 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLifeMapper.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceLifeMapper.java @@ -6,7 +6,7 @@ /** * @author User * @description 閽堝琛ㄣ�恠ta_device_life(璁惧鐢熷懡鍛ㄦ湡琛�)銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-06-19 14:21:17 +* @createDate 2024-06-20 11:31:20 * @Entity com.dy.pmsGlobal.pojoSta.StaDeviceLife */ @Mapper diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceProductionLogMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceProductionLogMapper.java index 8cf66bc..6d151e5 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceProductionLogMapper.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaDeviceProductionLogMapper.java @@ -6,7 +6,7 @@ /** * @author User * @description 閽堝琛ㄣ�恠ta_device_production_log(璁惧鐢熶骇鏃ュ織琛�)銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-06-19 14:21:17 +* @createDate 2024-06-20 11:31:20 * @Entity com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog */ @Mapper diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaRepairInfoMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaRepairInfoMapper.java index 843f697..e8cc328 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaRepairInfoMapper.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaRepairInfoMapper.java @@ -6,7 +6,7 @@ /** * @author User * @description 閽堝琛ㄣ�恠ta_repair_info銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-06-19 14:21:17 +* @createDate 2024-06-20 11:31:20 * @Entity com.dy.pmsGlobal.pojoSta.StaRepairInfo */ @Mapper diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaWipSnExMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaWipSnExMapper.java index 53cd18d..f78dd38 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaWipSnExMapper.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoSta/StaWipSnExMapper.java @@ -6,7 +6,7 @@ /** * @author User * @description 閽堝琛ㄣ�恠ta_wip_sn_ex(璁惧鍏宠仈琛�)銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-06-19 14:21:17 +* @createDate 2024-06-20 11:31:20 * @Entity com.dy.pmsGlobal.pojoSta.StaWipSnEx */ @Mapper diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkHistory.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkHistory.java index 067539d..5d09e91 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkHistory.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkHistory.java @@ -1,142 +1,89 @@ package com.dy.pmsGlobal.pojoSta; -import java.io.Serializable; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import jakarta.validation.constraints.NotNull; +import lombok.*; + + + import java.util.Date; -import lombok.Data; /** - * 鐢熶骇绾跨敓浜т换鍔¤棰嗚〃 - * @TableName sta_assembly_work_history - */ +* 鐢熶骇绾跨敓浜т换鍔¤棰嗚〃 +* @TableName sta_assembly_work_history +*/ +@TableName(value="sta_assembly_work_history", autoResultMap = true) @Data -public class StaAssemblyWorkHistory implements Serializable { - /** - * - */ - private Long id; +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +public class StaAssemblyWorkHistory implements BaseEntity { /** - * 鐢ㄦ埛瀹炰綋缂栧彿 - */ - private Long userId; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long id; /** - * 鐢熶骇绾垮疄浣撶紪鍙� - */ - private Long lineId; - + * 鐢ㄦ埛瀹炰綋缂栧彿 + */ + @NotNull(message="[鐢ㄦ埛瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long userId; /** - * 宸ョ珯瀹炰綋缂栧彿 - */ - private Long stationId; - + * 鐢熶骇绾垮疄浣撶紪鍙� + */ + @NotNull(message="[鐢熶骇绾垮疄浣撶紪鍙穄涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long lineId; /** - * 缁勮鐢熶骇浠诲姟瀹炰綋缂栧彿 - */ - private Long planId; - + * 宸ョ珯瀹炰綋缂栧彿 + */ + @NotNull(message="[宸ョ珯瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long stationId; /** - * 鐢熶骇娴佺▼瀹炰綋缂栧彿 - */ - private Long processId; - + * 缁勮鐢熶骇浠诲姟瀹炰綋缂栧彿 + */ + @NotNull(message="[缁勮鐢熶骇浠诲姟瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long planId; /** - * 鐢熶骇娴佺▼鑺傜偣瀹炰綋缂栧彿 - */ - private Long nodeId; - + * 鐢熶骇娴佺▼瀹炰綋缂栧彿 + */ + @NotNull(message="[鐢熶骇娴佺▼瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long processId; /** - * 浠诲姟璁ら鏃堕棿 - */ - private Date dt; - + * 鐢熶骇娴佺▼鑺傜偣瀹炰綋缂栧彿 + */ + @NotNull(message="[鐢熶骇娴佺▼鑺傜偣瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long nodeId; /** - * 鐘舵��:姝e父(1)銆佺粨鏉�(0) - */ - private Integer status; - + * 浠诲姟璁ら鏃堕棿 + */ + public Date dt; /** - * 寮�濮嬫椂闂� - */ - private Date startTime; - + * 鐘舵��:姝e父(1)銆佺粨鏉�(0) + */ + public Integer status; /** - * 缁撴潫鏃堕棿 - */ - private Date endTime; - + * 寮�濮嬫椂闂� + */ + public Date startTime; /** - * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 - */ - private String assistants; + * 缁撴潫鏃堕棿 + */ + public Date endTime; + /** + * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 + */ + public String assistants; - private static final long serialVersionUID = 1L; - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - StaAssemblyWorkHistory other = (StaAssemblyWorkHistory) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) - && (this.getLineId() == null ? other.getLineId() == null : this.getLineId().equals(other.getLineId())) - && (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId())) - && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) - && (this.getProcessId() == null ? other.getProcessId() == null : this.getProcessId().equals(other.getProcessId())) - && (this.getNodeId() == null ? other.getNodeId() == null : this.getNodeId().equals(other.getNodeId())) - && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime())) - && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime())) - && (this.getAssistants() == null ? other.getAssistants() == null : this.getAssistants().equals(other.getAssistants())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); - result = prime * result + ((getLineId() == null) ? 0 : getLineId().hashCode()); - result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode()); - result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); - result = prime * result + ((getProcessId() == null) ? 0 : getProcessId().hashCode()); - result = prime * result + ((getNodeId() == null) ? 0 : getNodeId().hashCode()); - result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); - result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); - result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); - result = prime * result + ((getAssistants() == null) ? 0 : getAssistants().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", userId=").append(userId); - sb.append(", lineId=").append(lineId); - sb.append(", stationId=").append(stationId); - sb.append(", planId=").append(planId); - sb.append(", processId=").append(processId); - sb.append(", nodeId=").append(nodeId); - sb.append(", dt=").append(dt); - sb.append(", status=").append(status); - sb.append(", startTime=").append(startTime); - sb.append(", endTime=").append(endTime); - sb.append(", assistants=").append(assistants); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file +} diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkLast.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkLast.java index 73fb711..8f4f11a 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkLast.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaAssemblyWorkLast.java @@ -1,142 +1,89 @@ package com.dy.pmsGlobal.pojoSta; -import java.io.Serializable; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import jakarta.validation.constraints.NotNull; +import lombok.*; + + + import java.util.Date; -import lombok.Data; /** - * 鐢熶骇绾跨敓浜т换鍔¤棰嗚〃 - * @TableName sta_assembly_work_last - */ +* 鐢熶骇绾跨敓浜т换鍔¤棰嗚〃 +* @TableName sta_assembly_work_last +*/ +@TableName(value="sta_assembly_work_last", autoResultMap = true) @Data -public class StaAssemblyWorkLast implements Serializable { - /** - * - */ - private Long id; +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +public class StaAssemblyWorkLast implements BaseEntity { /** - * 鐢ㄦ埛瀹炰綋缂栧彿 - */ - private Long userId; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long id; /** - * 鐢熶骇绾垮疄浣撶紪鍙� - */ - private Long lineId; - + * 鐢ㄦ埛瀹炰綋缂栧彿 + */ + @NotNull(message="[鐢ㄦ埛瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long userId; /** - * 宸ョ珯瀹炰綋缂栧彿 - */ - private Long stationId; - + * 鐢熶骇绾垮疄浣撶紪鍙� + */ + @NotNull(message="[鐢熶骇绾垮疄浣撶紪鍙穄涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long lineId; /** - * 缁勮鐢熶骇浠诲姟瀹炰綋缂栧彿 - */ - private Long planId; - + * 宸ョ珯瀹炰綋缂栧彿 + */ + @NotNull(message="[宸ョ珯瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long stationId; /** - * 鐢熶骇娴佺▼瀹炰綋缂栧彿 - */ - private Long processId; - + * 缁勮鐢熶骇浠诲姟瀹炰綋缂栧彿 + */ + @NotNull(message="[缁勮鐢熶骇浠诲姟瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long planId; /** - * 鐢熶骇娴佺▼鑺傜偣瀹炰綋缂栧彿 - */ - private Long nodeId; - + * 鐢熶骇娴佺▼瀹炰綋缂栧彿 + */ + @NotNull(message="[鐢熶骇娴佺▼瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long processId; /** - * 浠诲姟璁ら鏃堕棿 - */ - private Date dt; - + * 鐢熶骇娴佺▼鑺傜偣瀹炰綋缂栧彿 + */ + @NotNull(message="[鐢熶骇娴佺▼鑺傜偣瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long nodeId; /** - * 鐘舵��:姝e父(1)銆佺粨鏉�(0) - */ - private Integer status; - + * 浠诲姟璁ら鏃堕棿 + */ + public Date dt; /** - * 寮�濮嬫椂闂� - */ - private Date startTime; - + * 鐘舵��:姝e父(1)銆佺粨鏉�(0) + */ + public Integer status; /** - * 缁撴潫鏃堕棿 - */ - private Date endTime; - + * 寮�濮嬫椂闂� + */ + public Date startTime; /** - * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 - */ - private String assistants; + * 缁撴潫鏃堕棿 + */ + public Date endTime; + /** + * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 + */ + public String assistants; - private static final long serialVersionUID = 1L; - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - StaAssemblyWorkLast other = (StaAssemblyWorkLast) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) - && (this.getLineId() == null ? other.getLineId() == null : this.getLineId().equals(other.getLineId())) - && (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId())) - && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) - && (this.getProcessId() == null ? other.getProcessId() == null : this.getProcessId().equals(other.getProcessId())) - && (this.getNodeId() == null ? other.getNodeId() == null : this.getNodeId().equals(other.getNodeId())) - && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime())) - && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime())) - && (this.getAssistants() == null ? other.getAssistants() == null : this.getAssistants().equals(other.getAssistants())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); - result = prime * result + ((getLineId() == null) ? 0 : getLineId().hashCode()); - result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode()); - result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); - result = prime * result + ((getProcessId() == null) ? 0 : getProcessId().hashCode()); - result = prime * result + ((getNodeId() == null) ? 0 : getNodeId().hashCode()); - result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); - result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); - result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); - result = prime * result + ((getAssistants() == null) ? 0 : getAssistants().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", userId=").append(userId); - sb.append(", lineId=").append(lineId); - sb.append(", stationId=").append(stationId); - sb.append(", planId=").append(planId); - sb.append(", processId=").append(processId); - sb.append(", nodeId=").append(nodeId); - sb.append(", dt=").append(dt); - sb.append(", status=").append(status); - sb.append(", startTime=").append(startTime); - sb.append(", endTime=").append(endTime); - sb.append(", assistants=").append(assistants); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file +} diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDevOpsTaskClaimInfo.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDevOpsTaskClaimInfo.java index beb6954..eec6e72 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDevOpsTaskClaimInfo.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDevOpsTaskClaimInfo.java @@ -1,86 +1,53 @@ package com.dy.pmsGlobal.pojoSta; -import java.io.Serializable; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import jakarta.validation.constraints.NotNull; +import lombok.*; + + + import java.util.Date; -import lombok.Data; /** - * 瀹夎杩愮淮浠诲姟璁ら琛� - * @TableName sta_dev_ops_task_claim_info - */ +* 瀹夎杩愮淮浠诲姟璁ら琛� +* @TableName sta_dev_ops_task_claim_info +*/ +@TableName(value="sta_dev_ops_task_claim_info", autoResultMap = true) @Data -public class StaDevOpsTaskClaimInfo implements Serializable { - /** - * - */ - private Long id; +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +public class StaDevOpsTaskClaimInfo implements BaseEntity { /** - * 鐢ㄦ埛瀹炰綋缂栧彿 - */ - private Long userId; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long id; /** - * 瀹夎杩愮淮浠诲姟瀹炰綋缂栧彿 - */ - private Long planId; - + * 鐢ㄦ埛瀹炰綋缂栧彿 + */ + @NotNull(message="[鐢ㄦ埛瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long userId; /** - * 浠诲姟璁ら鏃堕棿 - */ - private Date dt; - + * 瀹夎杩愮淮浠诲姟瀹炰綋缂栧彿 + */ + @NotNull(message="[瀹夎杩愮淮浠诲姟瀹炰綋缂栧彿]涓嶈兘涓虹┖") + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long planId; /** - * 鐘舵��:姝e父(1)銆佺粨鏉�(0) - */ - private Integer status; + * 浠诲姟璁ら鏃堕棿 + */ + public Date dt; + /** + * 鐘舵��:姝e父(1)銆佺粨鏉�(0) + */ + public Integer status; - private static final long serialVersionUID = 1L; - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - StaDevOpsTaskClaimInfo other = (StaDevOpsTaskClaimInfo) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) - && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) - && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); - result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); - result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", userId=").append(userId); - sb.append(", planId=").append(planId); - sb.append(", dt=").append(dt); - sb.append(", status=").append(status); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file +} diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLast.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLast.java index b4ba4e4..c2c7ab5 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLast.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLast.java @@ -1,166 +1,96 @@ package com.dy.pmsGlobal.pojoSta; -import java.io.Serializable; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; +import lombok.*; + + + import java.util.Date; -import lombok.Data; /** - * 璁惧鏈�鏂扮姸鎬佽〃 - * @TableName sta_device_last - */ +* 璁惧鏈�鏂扮姸鎬佽〃 +* @TableName sta_device_last +*/ +@TableName(value="sta_device_last", autoResultMap = true) @Data -public class StaDeviceLast implements Serializable { - /** - * - */ - private Long id; +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +public class StaDeviceLast implements BaseEntity { /** - * 璁惧鐮� - */ - private String equipNo; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long id; /** - * 璁″垝id - */ - private String planId; - + * 璁惧鐮� + */ + @NotBlank(message="[璁惧鐮乚涓嶈兘涓虹┖") + public String equipNo; /** - * 宸ョ珯id - */ - private String stationId; - + * 璁″垝id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long planId; /** - * 褰撳墠鑺傜偣 - */ - private String currNode; - + * 宸ョ珯id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long stationId; /** - * 涓嬩竴鑺傜偣 - */ - private String nextNode; - + * 褰撳墠鑺傜偣 + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long currNode; /** - * 鐘舵��: 1:缁勮涓�,2:瀹屾垚,3:缁翠慨,4:鎶ュ簾 - */ - private Integer status; - + * 涓嬩竴鑺傜偣 + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long nextNode; /** - * 1:鎴愬姛,2:澶辫触 - */ - private Integer result; - + * 鐘舵��: 1:缁勮涓�,2:瀹屾垚,3:缁翠慨,4:鎶ュ簾 + */ + public Integer status; /** - * 缁翠慨鑺傜偣杩斿洖鐨勯敊璇爜 - */ - private String errorCode; - + * 1:鎴愬姛,2:澶辫触 + */ + public Integer result; /** - * 澶囨敞 - */ - private String memo; - + * 缁翠慨鑺傜偣杩斿洖鐨勯敊璇爜 + */ + public String errorCode; /** - * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 - */ - private String assistants; - + * 澶囨敞 + */ + public String memo; /** - * 鍒涘缓鏃堕棿 - */ - private Date createTime; - + * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 + */ + public String assistants; /** - * - */ - private Date updatedDate; - + * 鍒涘缓鏃堕棿 + */ + public Date createTime; /** - * 鎿嶄綔鍛榠d - */ - private String updatedBy; - + * + */ + public Date updatedDate; /** - * 鍏ョ珯鏃堕棿(涓婁竴鑺傜偣鐨勫嚭绔欐椂闂�) - */ - private Date inStationTime; + * 鎿嶄綔鍛榠d + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long updatedBy; + /** + * 鍏ョ珯鏃堕棿(涓婁竴鑺傜偣鐨勫嚭绔欐椂闂�) + */ + public Date inStationTime; - private static final long serialVersionUID = 1L; - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - StaDeviceLast other = (StaDeviceLast) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getEquipNo() == null ? other.getEquipNo() == null : this.getEquipNo().equals(other.getEquipNo())) - && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) - && (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId())) - && (this.getCurrNode() == null ? other.getCurrNode() == null : this.getCurrNode().equals(other.getCurrNode())) - && (this.getNextNode() == null ? other.getNextNode() == null : this.getNextNode().equals(other.getNextNode())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult())) - && (this.getErrorCode() == null ? other.getErrorCode() == null : this.getErrorCode().equals(other.getErrorCode())) - && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo())) - && (this.getAssistants() == null ? other.getAssistants() == null : this.getAssistants().equals(other.getAssistants())) - && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) - && (this.getUpdatedDate() == null ? other.getUpdatedDate() == null : this.getUpdatedDate().equals(other.getUpdatedDate())) - && (this.getUpdatedBy() == null ? other.getUpdatedBy() == null : this.getUpdatedBy().equals(other.getUpdatedBy())) - && (this.getInStationTime() == null ? other.getInStationTime() == null : this.getInStationTime().equals(other.getInStationTime())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getEquipNo() == null) ? 0 : getEquipNo().hashCode()); - result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); - result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode()); - result = prime * result + ((getCurrNode() == null) ? 0 : getCurrNode().hashCode()); - result = prime * result + ((getNextNode() == null) ? 0 : getNextNode().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); - result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode()); - result = prime * result + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); - result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode()); - result = prime * result + ((getAssistants() == null) ? 0 : getAssistants().hashCode()); - result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); - result = prime * result + ((getUpdatedDate() == null) ? 0 : getUpdatedDate().hashCode()); - result = prime * result + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode()); - result = prime * result + ((getInStationTime() == null) ? 0 : getInStationTime().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", equipNo=").append(equipNo); - sb.append(", planId=").append(planId); - sb.append(", stationId=").append(stationId); - sb.append(", currNode=").append(currNode); - sb.append(", nextNode=").append(nextNode); - sb.append(", status=").append(status); - sb.append(", result=").append(result); - sb.append(", errorCode=").append(errorCode); - sb.append(", memo=").append(memo); - sb.append(", assistants=").append(assistants); - sb.append(", createTime=").append(createTime); - sb.append(", updatedDate=").append(updatedDate); - sb.append(", updatedBy=").append(updatedBy); - sb.append(", inStationTime=").append(inStationTime); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file +} diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLife.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLife.java index 7dd25aa..c46df26 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLife.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceLife.java @@ -1,174 +1,102 @@ package com.dy.pmsGlobal.pojoSta; -import java.io.Serializable; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; +import lombok.*; + + + import java.util.Date; -import lombok.Data; /** - * 璁惧鐢熷懡鍛ㄦ湡琛� - * @TableName sta_device_life - */ +* 璁惧鐢熷懡鍛ㄦ湡琛� +* @TableName sta_device_life +*/ +@TableName(value="sta_device_life", autoResultMap = true) @Data -public class StaDeviceLife implements Serializable { - /** - * - */ - private Long id; +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +public class StaDeviceLife implements BaseEntity { /** - * 璁惧鐮� - */ - private String equipNo; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long id; /** - * 璁″垝id - */ - private String planId; - + * 璁惧鐮� + */ + @NotBlank(message="[璁惧鐮乚涓嶈兘涓虹┖") + public String equipNo; /** - * 宸ョ珯id - */ - private String stationId; - + * 璁″垝id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long planId; /** - * 褰撳墠鑺傜偣 - */ - private String currNode; - + * 宸ョ珯id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long stationId; /** - * 涓嬩竴鑺傜偣 - */ - private String nextNode; - + * 褰撳墠鑺傜偣 + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long currNode; /** - * 鎶曞叆鏃堕棿 - */ - private Date inLineTime; - + * 涓嬩竴鑺傜偣 + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long nextNode; /** - * 鐘舵��: 1:缁勮涓�,2:瀹屾垚,3:缁翠慨,4:鎶ュ簾 - */ - private Integer status; - + * 鎶曞叆鏃堕棿 + */ + public Date inLineTime; /** - * 1:鎴愬姛,2:澶辫触 - */ - private Integer result; - + * 鐘舵��: 1:缁勮涓�,2:瀹屾垚,3:缁翠慨,4:鎶ュ簾 + */ + public Integer status; /** - * 缁翠慨鑺傜偣杩斿洖鐨勯敊璇爜 - */ - private String errorCode; - + * 1:鎴愬姛,2:澶辫触 + */ + public Integer result; /** - * 澶囨敞 - */ - private String memo; - + * 缁翠慨鑺傜偣杩斿洖鐨勯敊璇爜 + */ + public String errorCode; /** - * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 - */ - private String assistants; - + * 澶囨敞 + */ + public String memo; /** - * - */ - private Date updatedDate; - + * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 + */ + public String assistants; /** - * 鎿嶄綔鍛榠d - */ - private String updatedBy; - + * + */ + public Date updatedDate; /** - * 鐢熶骇鐧诲綍id - */ - private Long claimId; - + * 鎿嶄綔鍛榠d + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long updatedBy; /** - * 缁翠慨id - */ - private Long repairId; + * 鐢熶骇鐧诲綍id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long claimId; + /** + * 缁翠慨id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long repairId; - private static final long serialVersionUID = 1L; - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - StaDeviceLife other = (StaDeviceLife) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getEquipNo() == null ? other.getEquipNo() == null : this.getEquipNo().equals(other.getEquipNo())) - && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) - && (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId())) - && (this.getCurrNode() == null ? other.getCurrNode() == null : this.getCurrNode().equals(other.getCurrNode())) - && (this.getNextNode() == null ? other.getNextNode() == null : this.getNextNode().equals(other.getNextNode())) - && (this.getInLineTime() == null ? other.getInLineTime() == null : this.getInLineTime().equals(other.getInLineTime())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult())) - && (this.getErrorCode() == null ? other.getErrorCode() == null : this.getErrorCode().equals(other.getErrorCode())) - && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo())) - && (this.getAssistants() == null ? other.getAssistants() == null : this.getAssistants().equals(other.getAssistants())) - && (this.getUpdatedDate() == null ? other.getUpdatedDate() == null : this.getUpdatedDate().equals(other.getUpdatedDate())) - && (this.getUpdatedBy() == null ? other.getUpdatedBy() == null : this.getUpdatedBy().equals(other.getUpdatedBy())) - && (this.getClaimId() == null ? other.getClaimId() == null : this.getClaimId().equals(other.getClaimId())) - && (this.getRepairId() == null ? other.getRepairId() == null : this.getRepairId().equals(other.getRepairId())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getEquipNo() == null) ? 0 : getEquipNo().hashCode()); - result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); - result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode()); - result = prime * result + ((getCurrNode() == null) ? 0 : getCurrNode().hashCode()); - result = prime * result + ((getNextNode() == null) ? 0 : getNextNode().hashCode()); - result = prime * result + ((getInLineTime() == null) ? 0 : getInLineTime().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); - result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode()); - result = prime * result + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); - result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode()); - result = prime * result + ((getAssistants() == null) ? 0 : getAssistants().hashCode()); - result = prime * result + ((getUpdatedDate() == null) ? 0 : getUpdatedDate().hashCode()); - result = prime * result + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode()); - result = prime * result + ((getClaimId() == null) ? 0 : getClaimId().hashCode()); - result = prime * result + ((getRepairId() == null) ? 0 : getRepairId().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", equipNo=").append(equipNo); - sb.append(", planId=").append(planId); - sb.append(", stationId=").append(stationId); - sb.append(", currNode=").append(currNode); - sb.append(", nextNode=").append(nextNode); - sb.append(", inLineTime=").append(inLineTime); - sb.append(", status=").append(status); - sb.append(", result=").append(result); - sb.append(", errorCode=").append(errorCode); - sb.append(", memo=").append(memo); - sb.append(", assistants=").append(assistants); - sb.append(", updatedDate=").append(updatedDate); - sb.append(", updatedBy=").append(updatedBy); - sb.append(", claimId=").append(claimId); - sb.append(", repairId=").append(repairId); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file +} diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceProductionLog.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceProductionLog.java index 0d5e3fd..535b3ca 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceProductionLog.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaDeviceProductionLog.java @@ -1,174 +1,102 @@ package com.dy.pmsGlobal.pojoSta; -import java.io.Serializable; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; +import lombok.*; + + + import java.util.Date; -import lombok.Data; /** - * 璁惧鐢熶骇鏃ュ織琛� - * @TableName sta_device_production_log - */ +* 璁惧鐢熶骇鏃ュ織琛� +* @TableName sta_device_production_log +*/ +@TableName(value="sta_device_production_log", autoResultMap = true) @Data -public class StaDeviceProductionLog implements Serializable { - /** - * - */ - private Long id; +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +public class StaDeviceProductionLog implements BaseEntity { /** - * 璁惧鐮� - */ - private String equipNo; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long id; /** - * 璁″垝id - */ - private String planId; - + * 璁惧鐮� + */ + @NotBlank(message="[璁惧鐮乚涓嶈兘涓虹┖") + public String equipNo; /** - * 宸ョ珯id - */ - private String stationId; - + * 璁″垝id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long planId; /** - * 褰撳墠鑺傜偣 - */ - private String currNode; - + * 宸ョ珯id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long stationId; /** - * - */ - private String nextNode; - + * 褰撳墠鑺傜偣 + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long currNode; /** - * 鎶曞叆鏃堕棿 - */ - private Date inLineTime; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long nextNode; /** - * 鐘舵��: 1:缁勮涓�,2:瀹屾垚,3:缁翠慨,4:鎶ュ簾 - */ - private Integer status; - + * 鎶曞叆鏃堕棿 + */ + public Date inLineTime; /** - * 1:鎴愬姛,2:澶辫触 - */ - private Integer result; - + * 鐘舵��: 1:缁勮涓�,2:瀹屾垚,3:缁翠慨,4:鎶ュ簾 + */ + public Integer status; /** - * - */ - private String errorCode; - + * 1:鎴愬姛,2:澶辫触 + */ + public Integer result; /** - * 澶囨敞 - */ - private String memo; - + * + */ + public String errorCode; /** - * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 - */ - private String assistants; - + * 澶囨敞 + */ + public String memo; /** - * - */ - private Date updatedDate; - + * 杈呭姪浜哄憳:杈呭姪鍛樺伐id,浠ラ�楀彿闅斿紑 + */ + public String assistants; /** - * 鎿嶄綔鍛榠d - */ - private String updatedBy; - + * + */ + public Date updatedDate; /** - * 鐢熶骇鐧诲綍id - */ - private Long claimId; - + * 鎿嶄綔鍛榠d + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long updatedBy; /** - * 缁翠慨id - */ - private Long repairId; + * 鐢熶骇鐧诲綍id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long claimId; + /** + * 缁翠慨id + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long repairId; - private static final long serialVersionUID = 1L; - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - StaDeviceProductionLog other = (StaDeviceProductionLog) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getEquipNo() == null ? other.getEquipNo() == null : this.getEquipNo().equals(other.getEquipNo())) - && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) - && (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId())) - && (this.getCurrNode() == null ? other.getCurrNode() == null : this.getCurrNode().equals(other.getCurrNode())) - && (this.getNextNode() == null ? other.getNextNode() == null : this.getNextNode().equals(other.getNextNode())) - && (this.getInLineTime() == null ? other.getInLineTime() == null : this.getInLineTime().equals(other.getInLineTime())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult())) - && (this.getErrorCode() == null ? other.getErrorCode() == null : this.getErrorCode().equals(other.getErrorCode())) - && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo())) - && (this.getAssistants() == null ? other.getAssistants() == null : this.getAssistants().equals(other.getAssistants())) - && (this.getUpdatedDate() == null ? other.getUpdatedDate() == null : this.getUpdatedDate().equals(other.getUpdatedDate())) - && (this.getUpdatedBy() == null ? other.getUpdatedBy() == null : this.getUpdatedBy().equals(other.getUpdatedBy())) - && (this.getClaimId() == null ? other.getClaimId() == null : this.getClaimId().equals(other.getClaimId())) - && (this.getRepairId() == null ? other.getRepairId() == null : this.getRepairId().equals(other.getRepairId())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getEquipNo() == null) ? 0 : getEquipNo().hashCode()); - result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); - result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode()); - result = prime * result + ((getCurrNode() == null) ? 0 : getCurrNode().hashCode()); - result = prime * result + ((getNextNode() == null) ? 0 : getNextNode().hashCode()); - result = prime * result + ((getInLineTime() == null) ? 0 : getInLineTime().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); - result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode()); - result = prime * result + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); - result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode()); - result = prime * result + ((getAssistants() == null) ? 0 : getAssistants().hashCode()); - result = prime * result + ((getUpdatedDate() == null) ? 0 : getUpdatedDate().hashCode()); - result = prime * result + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode()); - result = prime * result + ((getClaimId() == null) ? 0 : getClaimId().hashCode()); - result = prime * result + ((getRepairId() == null) ? 0 : getRepairId().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", equipNo=").append(equipNo); - sb.append(", planId=").append(planId); - sb.append(", stationId=").append(stationId); - sb.append(", currNode=").append(currNode); - sb.append(", nextNode=").append(nextNode); - sb.append(", inLineTime=").append(inLineTime); - sb.append(", status=").append(status); - sb.append(", result=").append(result); - sb.append(", errorCode=").append(errorCode); - sb.append(", memo=").append(memo); - sb.append(", assistants=").append(assistants); - sb.append(", updatedDate=").append(updatedDate); - sb.append(", updatedBy=").append(updatedBy); - sb.append(", claimId=").append(claimId); - sb.append(", repairId=").append(repairId); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file +} diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java index 0464d0d..25ae9c2 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java @@ -1,118 +1,69 @@ package com.dy.pmsGlobal.pojoSta; -import java.io.Serializable; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import jakarta.validation.constraints.NotNull; +import lombok.*; + + + import java.util.Date; -import lombok.Data; /** - * - * @TableName sta_repair_info - */ +* +* @TableName sta_repair_info +*/ +@TableName(value="sta_repair_info", autoResultMap = true) @Data -public class StaRepairInfo implements Serializable { - /** - * - */ - private Long id; +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +public class StaRepairInfo implements BaseEntity { /** - * 璁惧鐮� - */ - private String equipNo; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long id; /** - * 浠庡摢涓妭鐐硅繘鍏ョ淮淇� - */ - private String fromNode; - + * 璁惧鐮� + */ + public String equipNo; /** - * 缁翠慨鍘熷洜 - */ - private String repairReason; - + * 浠庡摢涓妭鐐硅繘鍏ョ淮淇� + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long fromNode; /** - * 鍘诲悜鑺傜偣 - */ - private String toNode; - + * 缁翠慨鍘熷洜 + */ + public String repairReason; /** - * 缁翠慨鍛樺伐 - */ - private String repairBy; - + * 鍘诲悜鑺傜偣 + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long toNode; /** - * 缁翠慨鏃堕棿 - */ - private Date repairTime; - + * 缁翠慨鍛樺伐 + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long repairBy; /** - * 鍒涘缓鏃堕棿 - */ - private Date createTime; - + * 缁翠慨鏃堕棿 + */ + public Date repairTime; /** - * 鎺ㄩ�佸憳宸� - */ - private Long createBy; + * 鍒涘缓鏃堕棿 + */ + public Date createTime; + /** + * 鎺ㄩ�佸憳宸� + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long createBy; - private static final long serialVersionUID = 1L; - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - StaRepairInfo other = (StaRepairInfo) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getEquipNo() == null ? other.getEquipNo() == null : this.getEquipNo().equals(other.getEquipNo())) - && (this.getFromNode() == null ? other.getFromNode() == null : this.getFromNode().equals(other.getFromNode())) - && (this.getRepairReason() == null ? other.getRepairReason() == null : this.getRepairReason().equals(other.getRepairReason())) - && (this.getToNode() == null ? other.getToNode() == null : this.getToNode().equals(other.getToNode())) - && (this.getRepairBy() == null ? other.getRepairBy() == null : this.getRepairBy().equals(other.getRepairBy())) - && (this.getRepairTime() == null ? other.getRepairTime() == null : this.getRepairTime().equals(other.getRepairTime())) - && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) - && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getEquipNo() == null) ? 0 : getEquipNo().hashCode()); - result = prime * result + ((getFromNode() == null) ? 0 : getFromNode().hashCode()); - result = prime * result + ((getRepairReason() == null) ? 0 : getRepairReason().hashCode()); - result = prime * result + ((getToNode() == null) ? 0 : getToNode().hashCode()); - result = prime * result + ((getRepairBy() == null) ? 0 : getRepairBy().hashCode()); - result = prime * result + ((getRepairTime() == null) ? 0 : getRepairTime().hashCode()); - result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); - result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", equipNo=").append(equipNo); - sb.append(", fromNode=").append(fromNode); - sb.append(", repairReason=").append(repairReason); - sb.append(", toNode=").append(toNode); - sb.append(", repairBy=").append(repairBy); - sb.append(", repairTime=").append(repairTime); - sb.append(", createTime=").append(createTime); - sb.append(", createBy=").append(createBy); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file +} diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaWipSnEx.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaWipSnEx.java index 7c078d4..b350773 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaWipSnEx.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaWipSnEx.java @@ -1,102 +1,59 @@ package com.dy.pmsGlobal.pojoSta; -import java.io.Serializable; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import jakarta.validation.constraints.NotNull; +import lombok.*; + + + import java.util.Date; -import lombok.Data; /** - * 璁惧鍏宠仈琛� - * @TableName sta_wip_sn_ex - */ +* 璁惧鍏宠仈琛� +* @TableName sta_wip_sn_ex +*/ +@TableName(value="sta_wip_sn_ex", autoResultMap = true) @Data -public class StaWipSnEx implements Serializable { - /** - * - */ - private String id; +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +public class StaWipSnEx implements BaseEntity { /** - * 璁惧鐮� - */ - private String deviceNo; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long id; /** - * - */ - private Integer productId; - + * 璁惧鐮� + */ + public String deviceNo; /** - * 鍏宠仈浜у搧鍚� - */ - private String productName; - + * + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long productId; /** - * 鍏宠仈璁惧鐮� - */ - private String productNo; - + * 鍏宠仈浜у搧鍚� + */ + public String productName; /** - * 鍒涘缓鏃堕棿 - */ - private Date createTime; - + * 鍏宠仈璁惧鐮� + */ + public String productNo; /** - * 鏇存柊浜� - */ - private String createBy; + * 鍒涘缓鏃堕棿 + */ + public Date createTime; + /** + * 鏇存柊浜� + */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + public Long createBy; - private static final long serialVersionUID = 1L; - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - StaWipSnEx other = (StaWipSnEx) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getDeviceNo() == null ? other.getDeviceNo() == null : this.getDeviceNo().equals(other.getDeviceNo())) - && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId())) - && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName())) - && (this.getProductNo() == null ? other.getProductNo() == null : this.getProductNo().equals(other.getProductNo())) - && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) - && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getDeviceNo() == null) ? 0 : getDeviceNo().hashCode()); - result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode()); - result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode()); - result = prime * result + ((getProductNo() == null) ? 0 : getProductNo().hashCode()); - result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); - result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", deviceNo=").append(deviceNo); - sb.append(", productId=").append(productId); - sb.append(", productName=").append(productName); - sb.append(", productNo=").append(productNo); - sb.append(", createTime=").append(createTime); - sb.append(", createBy=").append(createBy); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file +} diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml index e7b002b..50da7e0 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml @@ -7,10 +7,10 @@ <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoSta.StaDeviceLast"> <id property="id" column="id" jdbcType="BIGINT"/> <result property="equipNo" column="equip_no" jdbcType="VARCHAR"/> - <result property="planId" column="plan_id" jdbcType="VARCHAR"/> - <result property="stationId" column="station_id" jdbcType="VARCHAR"/> - <result property="currNode" column="curr_node" jdbcType="VARCHAR"/> - <result property="nextNode" column="next_node" jdbcType="VARCHAR"/> + <result property="planId" column="plan_id" jdbcType="BIGINT"/> + <result property="stationId" column="station_id" jdbcType="BIGINT"/> + <result property="currNode" column="curr_node" jdbcType="BIGINT"/> + <result property="nextNode" column="next_node" jdbcType="BIGINT"/> <result property="status" column="status" jdbcType="TINYINT"/> <result property="result" column="result" jdbcType="TINYINT"/> <result property="errorCode" column="error_code" jdbcType="VARCHAR"/> @@ -18,7 +18,7 @@ <result property="assistants" column="assistants" jdbcType="VARCHAR"/> <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> <result property="updatedDate" column="updated_date" jdbcType="TIMESTAMP"/> - <result property="updatedBy" column="updated_by" jdbcType="VARCHAR"/> + <result property="updatedBy" column="updated_by" jdbcType="BIGINT"/> <result property="inStationTime" column="in_station_time" jdbcType="TIMESTAMP"/> </resultMap> @@ -49,11 +49,11 @@ ,memo,assistants,create_time ,updated_date,updated_by,in_station_time ) - values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{planId,jdbcType=VARCHAR} - ,#{stationId,jdbcType=VARCHAR},#{currNode,jdbcType=VARCHAR},#{nextNode,jdbcType=VARCHAR} + values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{planId,jdbcType=BIGINT} + ,#{stationId,jdbcType=BIGINT},#{currNode,jdbcType=BIGINT},#{nextNode,jdbcType=BIGINT} ,#{status,jdbcType=TINYINT},#{result,jdbcType=TINYINT},#{errorCode,jdbcType=VARCHAR} ,#{memo,jdbcType=VARCHAR},#{assistants,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP} - ,#{updatedDate,jdbcType=TIMESTAMP},#{updatedBy,jdbcType=VARCHAR},#{inStationTime,jdbcType=TIMESTAMP} + ,#{updatedDate,jdbcType=TIMESTAMP},#{updatedBy,jdbcType=BIGINT},#{inStationTime,jdbcType=TIMESTAMP} ) </insert> <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaDeviceLast" useGeneratedKeys="true"> @@ -78,10 +78,10 @@ <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id,jdbcType=BIGINT},</if> <if test="equipNo != null">#{equipNo,jdbcType=VARCHAR},</if> - <if test="planId != null">#{planId,jdbcType=VARCHAR},</if> - <if test="stationId != null">#{stationId,jdbcType=VARCHAR},</if> - <if test="currNode != null">#{currNode,jdbcType=VARCHAR},</if> - <if test="nextNode != null">#{nextNode,jdbcType=VARCHAR},</if> + <if test="planId != null">#{planId,jdbcType=BIGINT},</if> + <if test="stationId != null">#{stationId,jdbcType=BIGINT},</if> + <if test="currNode != null">#{currNode,jdbcType=BIGINT},</if> + <if test="nextNode != null">#{nextNode,jdbcType=BIGINT},</if> <if test="status != null">#{status,jdbcType=TINYINT},</if> <if test="result != null">#{result,jdbcType=TINYINT},</if> <if test="errorCode != null">#{errorCode,jdbcType=VARCHAR},</if> @@ -89,7 +89,7 @@ <if test="assistants != null">#{assistants,jdbcType=VARCHAR},</if> <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> <if test="updatedDate != null">#{updatedDate,jdbcType=TIMESTAMP},</if> - <if test="updatedBy != null">#{updatedBy,jdbcType=VARCHAR},</if> + <if test="updatedBy != null">#{updatedBy,jdbcType=BIGINT},</if> <if test="inStationTime != null">#{inStationTime,jdbcType=TIMESTAMP},</if> </trim> </insert> @@ -100,16 +100,16 @@ equip_no = #{equipNo,jdbcType=VARCHAR}, </if> <if test="planId != null"> - plan_id = #{planId,jdbcType=VARCHAR}, + plan_id = #{planId,jdbcType=BIGINT}, </if> <if test="stationId != null"> - station_id = #{stationId,jdbcType=VARCHAR}, + station_id = #{stationId,jdbcType=BIGINT}, </if> <if test="currNode != null"> - curr_node = #{currNode,jdbcType=VARCHAR}, + curr_node = #{currNode,jdbcType=BIGINT}, </if> <if test="nextNode != null"> - next_node = #{nextNode,jdbcType=VARCHAR}, + next_node = #{nextNode,jdbcType=BIGINT}, </if> <if test="status != null"> status = #{status,jdbcType=TINYINT}, @@ -133,7 +133,7 @@ updated_date = #{updatedDate,jdbcType=TIMESTAMP}, </if> <if test="updatedBy != null"> - updated_by = #{updatedBy,jdbcType=VARCHAR}, + updated_by = #{updatedBy,jdbcType=BIGINT}, </if> <if test="inStationTime != null"> in_station_time = #{inStationTime,jdbcType=TIMESTAMP}, @@ -145,10 +145,10 @@ update sta_device_last set equip_no = #{equipNo,jdbcType=VARCHAR}, - plan_id = #{planId,jdbcType=VARCHAR}, - station_id = #{stationId,jdbcType=VARCHAR}, - curr_node = #{currNode,jdbcType=VARCHAR}, - next_node = #{nextNode,jdbcType=VARCHAR}, + plan_id = #{planId,jdbcType=BIGINT}, + station_id = #{stationId,jdbcType=BIGINT}, + curr_node = #{currNode,jdbcType=BIGINT}, + next_node = #{nextNode,jdbcType=BIGINT}, status = #{status,jdbcType=TINYINT}, result = #{result,jdbcType=TINYINT}, error_code = #{errorCode,jdbcType=VARCHAR}, @@ -156,7 +156,7 @@ assistants = #{assistants,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, updated_date = #{updatedDate,jdbcType=TIMESTAMP}, - updated_by = #{updatedBy,jdbcType=VARCHAR}, + updated_by = #{updatedBy,jdbcType=BIGINT}, in_station_time = #{inStationTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=BIGINT} </update> diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLifeMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLifeMapper.xml index 21d5a69..9bb4600 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLifeMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLifeMapper.xml @@ -7,10 +7,10 @@ <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoSta.StaDeviceLife"> <id property="id" column="id" jdbcType="BIGINT"/> <result property="equipNo" column="equip_no" jdbcType="VARCHAR"/> - <result property="planId" column="plan_id" jdbcType="VARCHAR"/> - <result property="stationId" column="station_id" jdbcType="VARCHAR"/> - <result property="currNode" column="curr_node" jdbcType="VARCHAR"/> - <result property="nextNode" column="next_node" jdbcType="VARCHAR"/> + <result property="planId" column="plan_id" jdbcType="BIGINT"/> + <result property="stationId" column="station_id" jdbcType="BIGINT"/> + <result property="currNode" column="curr_node" jdbcType="BIGINT"/> + <result property="nextNode" column="next_node" jdbcType="BIGINT"/> <result property="inLineTime" column="in_line_time" jdbcType="TIMESTAMP"/> <result property="status" column="status" jdbcType="TINYINT"/> <result property="result" column="result" jdbcType="TINYINT"/> @@ -18,7 +18,7 @@ <result property="memo" column="memo" jdbcType="VARCHAR"/> <result property="assistants" column="assistants" jdbcType="VARCHAR"/> <result property="updatedDate" column="updated_date" jdbcType="TIMESTAMP"/> - <result property="updatedBy" column="updated_by" jdbcType="VARCHAR"/> + <result property="updatedBy" column="updated_by" jdbcType="BIGINT"/> <result property="claimId" column="claim_id" jdbcType="BIGINT"/> <result property="repairId" column="repair_id" jdbcType="BIGINT"/> </resultMap> @@ -51,11 +51,11 @@ ,error_code,memo,assistants ,updated_date,updated_by,claim_id ,repair_id) - values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{planId,jdbcType=VARCHAR} - ,#{stationId,jdbcType=VARCHAR},#{currNode,jdbcType=VARCHAR},#{nextNode,jdbcType=VARCHAR} + values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{planId,jdbcType=BIGINT} + ,#{stationId,jdbcType=BIGINT},#{currNode,jdbcType=BIGINT},#{nextNode,jdbcType=BIGINT} ,#{inLineTime,jdbcType=TIMESTAMP},#{status,jdbcType=TINYINT},#{result,jdbcType=TINYINT} ,#{errorCode,jdbcType=VARCHAR},#{memo,jdbcType=VARCHAR},#{assistants,jdbcType=VARCHAR} - ,#{updatedDate,jdbcType=TIMESTAMP},#{updatedBy,jdbcType=VARCHAR},#{claimId,jdbcType=BIGINT} + ,#{updatedDate,jdbcType=TIMESTAMP},#{updatedBy,jdbcType=BIGINT},#{claimId,jdbcType=BIGINT} ,#{repairId,jdbcType=BIGINT}) </insert> <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaDeviceLife" useGeneratedKeys="true"> @@ -81,10 +81,10 @@ <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id,jdbcType=BIGINT},</if> <if test="equipNo != null">#{equipNo,jdbcType=VARCHAR},</if> - <if test="planId != null">#{planId,jdbcType=VARCHAR},</if> - <if test="stationId != null">#{stationId,jdbcType=VARCHAR},</if> - <if test="currNode != null">#{currNode,jdbcType=VARCHAR},</if> - <if test="nextNode != null">#{nextNode,jdbcType=VARCHAR},</if> + <if test="planId != null">#{planId,jdbcType=BIGINT},</if> + <if test="stationId != null">#{stationId,jdbcType=BIGINT},</if> + <if test="currNode != null">#{currNode,jdbcType=BIGINT},</if> + <if test="nextNode != null">#{nextNode,jdbcType=BIGINT},</if> <if test="inLineTime != null">#{inLineTime,jdbcType=TIMESTAMP},</if> <if test="status != null">#{status,jdbcType=TINYINT},</if> <if test="result != null">#{result,jdbcType=TINYINT},</if> @@ -92,7 +92,7 @@ <if test="memo != null">#{memo,jdbcType=VARCHAR},</if> <if test="assistants != null">#{assistants,jdbcType=VARCHAR},</if> <if test="updatedDate != null">#{updatedDate,jdbcType=TIMESTAMP},</if> - <if test="updatedBy != null">#{updatedBy,jdbcType=VARCHAR},</if> + <if test="updatedBy != null">#{updatedBy,jdbcType=BIGINT},</if> <if test="claimId != null">#{claimId,jdbcType=BIGINT},</if> <if test="repairId != null">#{repairId,jdbcType=BIGINT},</if> </trim> @@ -104,16 +104,16 @@ equip_no = #{equipNo,jdbcType=VARCHAR}, </if> <if test="planId != null"> - plan_id = #{planId,jdbcType=VARCHAR}, + plan_id = #{planId,jdbcType=BIGINT}, </if> <if test="stationId != null"> - station_id = #{stationId,jdbcType=VARCHAR}, + station_id = #{stationId,jdbcType=BIGINT}, </if> <if test="currNode != null"> - curr_node = #{currNode,jdbcType=VARCHAR}, + curr_node = #{currNode,jdbcType=BIGINT}, </if> <if test="nextNode != null"> - next_node = #{nextNode,jdbcType=VARCHAR}, + next_node = #{nextNode,jdbcType=BIGINT}, </if> <if test="inLineTime != null"> in_line_time = #{inLineTime,jdbcType=TIMESTAMP}, @@ -137,7 +137,7 @@ updated_date = #{updatedDate,jdbcType=TIMESTAMP}, </if> <if test="updatedBy != null"> - updated_by = #{updatedBy,jdbcType=VARCHAR}, + updated_by = #{updatedBy,jdbcType=BIGINT}, </if> <if test="claimId != null"> claim_id = #{claimId,jdbcType=BIGINT}, @@ -152,10 +152,10 @@ update sta_device_life set equip_no = #{equipNo,jdbcType=VARCHAR}, - plan_id = #{planId,jdbcType=VARCHAR}, - station_id = #{stationId,jdbcType=VARCHAR}, - curr_node = #{currNode,jdbcType=VARCHAR}, - next_node = #{nextNode,jdbcType=VARCHAR}, + plan_id = #{planId,jdbcType=BIGINT}, + station_id = #{stationId,jdbcType=BIGINT}, + curr_node = #{currNode,jdbcType=BIGINT}, + next_node = #{nextNode,jdbcType=BIGINT}, in_line_time = #{inLineTime,jdbcType=TIMESTAMP}, status = #{status,jdbcType=TINYINT}, result = #{result,jdbcType=TINYINT}, @@ -163,7 +163,7 @@ memo = #{memo,jdbcType=VARCHAR}, assistants = #{assistants,jdbcType=VARCHAR}, updated_date = #{updatedDate,jdbcType=TIMESTAMP}, - updated_by = #{updatedBy,jdbcType=VARCHAR}, + updated_by = #{updatedBy,jdbcType=BIGINT}, claim_id = #{claimId,jdbcType=BIGINT}, repair_id = #{repairId,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml index e68e809..1e10462 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml @@ -7,10 +7,10 @@ <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog"> <id property="id" column="id" jdbcType="BIGINT"/> <result property="equipNo" column="equip_no" jdbcType="VARCHAR"/> - <result property="planId" column="plan_id" jdbcType="VARCHAR"/> - <result property="stationId" column="station_id" jdbcType="VARCHAR"/> - <result property="currNode" column="curr_node" jdbcType="VARCHAR"/> - <result property="nextNode" column="next_node" jdbcType="VARCHAR"/> + <result property="planId" column="plan_id" jdbcType="BIGINT"/> + <result property="stationId" column="station_id" jdbcType="BIGINT"/> + <result property="currNode" column="curr_node" jdbcType="BIGINT"/> + <result property="nextNode" column="next_node" jdbcType="BIGINT"/> <result property="inLineTime" column="in_line_time" jdbcType="TIMESTAMP"/> <result property="status" column="status" jdbcType="TINYINT"/> <result property="result" column="result" jdbcType="TINYINT"/> @@ -18,7 +18,7 @@ <result property="memo" column="memo" jdbcType="VARCHAR"/> <result property="assistants" column="assistants" jdbcType="VARCHAR"/> <result property="updatedDate" column="updated_date" jdbcType="TIMESTAMP"/> - <result property="updatedBy" column="updated_by" jdbcType="VARCHAR"/> + <result property="updatedBy" column="updated_by" jdbcType="BIGINT"/> <result property="claimId" column="claim_id" jdbcType="BIGINT"/> <result property="repairId" column="repair_id" jdbcType="BIGINT"/> </resultMap> @@ -51,11 +51,11 @@ ,error_code,memo,assistants ,updated_date,updated_by,claim_id ,repair_id) - values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{planId,jdbcType=VARCHAR} - ,#{stationId,jdbcType=VARCHAR},#{currNode,jdbcType=VARCHAR},#{nextNode,jdbcType=VARCHAR} + values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{planId,jdbcType=BIGINT} + ,#{stationId,jdbcType=BIGINT},#{currNode,jdbcType=BIGINT},#{nextNode,jdbcType=BIGINT} ,#{inLineTime,jdbcType=TIMESTAMP},#{status,jdbcType=TINYINT},#{result,jdbcType=TINYINT} ,#{errorCode,jdbcType=VARCHAR},#{memo,jdbcType=VARCHAR},#{assistants,jdbcType=VARCHAR} - ,#{updatedDate,jdbcType=TIMESTAMP},#{updatedBy,jdbcType=VARCHAR},#{claimId,jdbcType=BIGINT} + ,#{updatedDate,jdbcType=TIMESTAMP},#{updatedBy,jdbcType=BIGINT},#{claimId,jdbcType=BIGINT} ,#{repairId,jdbcType=BIGINT}) </insert> <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog" useGeneratedKeys="true"> @@ -81,10 +81,10 @@ <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id,jdbcType=BIGINT},</if> <if test="equipNo != null">#{equipNo,jdbcType=VARCHAR},</if> - <if test="planId != null">#{planId,jdbcType=VARCHAR},</if> - <if test="stationId != null">#{stationId,jdbcType=VARCHAR},</if> - <if test="currNode != null">#{currNode,jdbcType=VARCHAR},</if> - <if test="nextNode != null">#{nextNode,jdbcType=VARCHAR},</if> + <if test="planId != null">#{planId,jdbcType=BIGINT},</if> + <if test="stationId != null">#{stationId,jdbcType=BIGINT},</if> + <if test="currNode != null">#{currNode,jdbcType=BIGINT},</if> + <if test="nextNode != null">#{nextNode,jdbcType=BIGINT},</if> <if test="inLineTime != null">#{inLineTime,jdbcType=TIMESTAMP},</if> <if test="status != null">#{status,jdbcType=TINYINT},</if> <if test="result != null">#{result,jdbcType=TINYINT},</if> @@ -92,7 +92,7 @@ <if test="memo != null">#{memo,jdbcType=VARCHAR},</if> <if test="assistants != null">#{assistants,jdbcType=VARCHAR},</if> <if test="updatedDate != null">#{updatedDate,jdbcType=TIMESTAMP},</if> - <if test="updatedBy != null">#{updatedBy,jdbcType=VARCHAR},</if> + <if test="updatedBy != null">#{updatedBy,jdbcType=BIGINT},</if> <if test="claimId != null">#{claimId,jdbcType=BIGINT},</if> <if test="repairId != null">#{repairId,jdbcType=BIGINT},</if> </trim> @@ -104,16 +104,16 @@ equip_no = #{equipNo,jdbcType=VARCHAR}, </if> <if test="planId != null"> - plan_id = #{planId,jdbcType=VARCHAR}, + plan_id = #{planId,jdbcType=BIGINT}, </if> <if test="stationId != null"> - station_id = #{stationId,jdbcType=VARCHAR}, + station_id = #{stationId,jdbcType=BIGINT}, </if> <if test="currNode != null"> - curr_node = #{currNode,jdbcType=VARCHAR}, + curr_node = #{currNode,jdbcType=BIGINT}, </if> <if test="nextNode != null"> - next_node = #{nextNode,jdbcType=VARCHAR}, + next_node = #{nextNode,jdbcType=BIGINT}, </if> <if test="inLineTime != null"> in_line_time = #{inLineTime,jdbcType=TIMESTAMP}, @@ -137,7 +137,7 @@ updated_date = #{updatedDate,jdbcType=TIMESTAMP}, </if> <if test="updatedBy != null"> - updated_by = #{updatedBy,jdbcType=VARCHAR}, + updated_by = #{updatedBy,jdbcType=BIGINT}, </if> <if test="claimId != null"> claim_id = #{claimId,jdbcType=BIGINT}, @@ -152,10 +152,10 @@ update sta_device_production_log set equip_no = #{equipNo,jdbcType=VARCHAR}, - plan_id = #{planId,jdbcType=VARCHAR}, - station_id = #{stationId,jdbcType=VARCHAR}, - curr_node = #{currNode,jdbcType=VARCHAR}, - next_node = #{nextNode,jdbcType=VARCHAR}, + plan_id = #{planId,jdbcType=BIGINT}, + station_id = #{stationId,jdbcType=BIGINT}, + curr_node = #{currNode,jdbcType=BIGINT}, + next_node = #{nextNode,jdbcType=BIGINT}, in_line_time = #{inLineTime,jdbcType=TIMESTAMP}, status = #{status,jdbcType=TINYINT}, result = #{result,jdbcType=TINYINT}, @@ -163,7 +163,7 @@ memo = #{memo,jdbcType=VARCHAR}, assistants = #{assistants,jdbcType=VARCHAR}, updated_date = #{updatedDate,jdbcType=TIMESTAMP}, - updated_by = #{updatedBy,jdbcType=VARCHAR}, + updated_by = #{updatedBy,jdbcType=BIGINT}, claim_id = #{claimId,jdbcType=BIGINT}, repair_id = #{repairId,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml index c7417e8..65c0f0d 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml @@ -7,10 +7,10 @@ <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoSta.StaRepairInfo"> <id property="id" column="id" jdbcType="BIGINT"/> <result property="equipNo" column="equip_no" jdbcType="VARCHAR"/> - <result property="fromNode" column="from_node" jdbcType="VARCHAR"/> + <result property="fromNode" column="from_node" jdbcType="BIGINT"/> <result property="repairReason" column="repair_reason" jdbcType="VARCHAR"/> - <result property="toNode" column="to_node" jdbcType="VARCHAR"/> - <result property="repairBy" column="repair_by" jdbcType="VARCHAR"/> + <result property="toNode" column="to_node" jdbcType="BIGINT"/> + <result property="repairBy" column="repair_by" jdbcType="BIGINT"/> <result property="repairTime" column="repair_time" jdbcType="TIMESTAMP"/> <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> <result property="createBy" column="create_by" jdbcType="BIGINT"/> @@ -39,8 +39,8 @@ ,repair_reason,to_node,repair_by ,repair_time,create_time,create_by ) - values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{fromNode,jdbcType=VARCHAR} - ,#{repairReason,jdbcType=VARCHAR},#{toNode,jdbcType=VARCHAR},#{repairBy,jdbcType=VARCHAR} + values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{fromNode,jdbcType=BIGINT} + ,#{repairReason,jdbcType=VARCHAR},#{toNode,jdbcType=BIGINT},#{repairBy,jdbcType=BIGINT} ,#{repairTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP},#{createBy,jdbcType=BIGINT} ) </insert> @@ -60,10 +60,10 @@ <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id,jdbcType=BIGINT},</if> <if test="equipNo != null">#{equipNo,jdbcType=VARCHAR},</if> - <if test="fromNode != null">#{fromNode,jdbcType=VARCHAR},</if> + <if test="fromNode != null">#{fromNode,jdbcType=BIGINT},</if> <if test="repairReason != null">#{repairReason,jdbcType=VARCHAR},</if> - <if test="toNode != null">#{toNode,jdbcType=VARCHAR},</if> - <if test="repairBy != null">#{repairBy,jdbcType=VARCHAR},</if> + <if test="toNode != null">#{toNode,jdbcType=BIGINT},</if> + <if test="repairBy != null">#{repairBy,jdbcType=BIGINT},</if> <if test="repairTime != null">#{repairTime,jdbcType=TIMESTAMP},</if> <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> <if test="createBy != null">#{createBy,jdbcType=BIGINT},</if> @@ -76,16 +76,16 @@ equip_no = #{equipNo,jdbcType=VARCHAR}, </if> <if test="fromNode != null"> - from_node = #{fromNode,jdbcType=VARCHAR}, + from_node = #{fromNode,jdbcType=BIGINT}, </if> <if test="repairReason != null"> repair_reason = #{repairReason,jdbcType=VARCHAR}, </if> <if test="toNode != null"> - to_node = #{toNode,jdbcType=VARCHAR}, + to_node = #{toNode,jdbcType=BIGINT}, </if> <if test="repairBy != null"> - repair_by = #{repairBy,jdbcType=VARCHAR}, + repair_by = #{repairBy,jdbcType=BIGINT}, </if> <if test="repairTime != null"> repair_time = #{repairTime,jdbcType=TIMESTAMP}, @@ -103,10 +103,10 @@ update sta_repair_info set equip_no = #{equipNo,jdbcType=VARCHAR}, - from_node = #{fromNode,jdbcType=VARCHAR}, + from_node = #{fromNode,jdbcType=BIGINT}, repair_reason = #{repairReason,jdbcType=VARCHAR}, - to_node = #{toNode,jdbcType=VARCHAR}, - repair_by = #{repairBy,jdbcType=VARCHAR}, + to_node = #{toNode,jdbcType=BIGINT}, + repair_by = #{repairBy,jdbcType=BIGINT}, repair_time = #{repairTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP}, create_by = #{createBy,jdbcType=BIGINT} diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaWipSnExMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaWipSnExMapper.xml index f66bc70..f8568f3 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/StaWipSnExMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/StaWipSnExMapper.xml @@ -5,13 +5,13 @@ <mapper namespace="com.dy.pmsGlobal.daoSta.StaWipSnExMapper"> <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoSta.StaWipSnEx"> - <id property="id" column="id" jdbcType="VARCHAR"/> + <id property="id" column="id" jdbcType="BIGINT"/> <result property="deviceNo" column="device_no" jdbcType="VARCHAR"/> - <result property="productId" column="product_id" jdbcType="INTEGER"/> + <result property="productId" column="product_id" jdbcType="BIGINT"/> <result property="productName" column="product_name" jdbcType="VARCHAR"/> <result property="productNo" column="product_no" jdbcType="VARCHAR"/> <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> - <result property="createBy" column="create_by" jdbcType="VARCHAR"/> + <result property="createBy" column="create_by" jdbcType="BIGINT"/> </resultMap> <sql id="Base_Column_List"> @@ -24,21 +24,21 @@ select <include refid="Base_Column_List" /> from sta_wip_sn_ex - where id = #{id,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from sta_wip_sn_ex - where id = #{id,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} </delete> <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaWipSnEx" useGeneratedKeys="true"> insert into sta_wip_sn_ex ( id,device_no,product_id ,product_name,product_no,create_time ,create_by) - values (#{id,jdbcType=VARCHAR},#{deviceNo,jdbcType=VARCHAR},#{productId,jdbcType=INTEGER} + values (#{id,jdbcType=BIGINT},#{deviceNo,jdbcType=VARCHAR},#{productId,jdbcType=BIGINT} ,#{productName,jdbcType=VARCHAR},#{productNo,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP} - ,#{createBy,jdbcType=VARCHAR}) + ,#{createBy,jdbcType=BIGINT}) </insert> <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaWipSnEx" useGeneratedKeys="true"> insert into sta_wip_sn_ex @@ -52,13 +52,13 @@ <if test="createBy != null">create_by,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="id != null">#{id,jdbcType=VARCHAR},</if> + <if test="id != null">#{id,jdbcType=BIGINT},</if> <if test="deviceNo != null">#{deviceNo,jdbcType=VARCHAR},</if> - <if test="productId != null">#{productId,jdbcType=INTEGER},</if> + <if test="productId != null">#{productId,jdbcType=BIGINT},</if> <if test="productName != null">#{productName,jdbcType=VARCHAR},</if> <if test="productNo != null">#{productNo,jdbcType=VARCHAR},</if> <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> - <if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if> + <if test="createBy != null">#{createBy,jdbcType=BIGINT},</if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoSta.StaWipSnEx"> @@ -68,7 +68,7 @@ device_no = #{deviceNo,jdbcType=VARCHAR}, </if> <if test="productId != null"> - product_id = #{productId,jdbcType=INTEGER}, + product_id = #{productId,jdbcType=BIGINT}, </if> <if test="productName != null"> product_name = #{productName,jdbcType=VARCHAR}, @@ -80,20 +80,20 @@ create_time = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="createBy != null"> - create_by = #{createBy,jdbcType=VARCHAR}, + create_by = #{createBy,jdbcType=BIGINT}, </if> </set> - where id = #{id,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} </update> <update id="updateByPrimaryKey" parameterType="com.dy.pmsGlobal.pojoSta.StaWipSnEx"> update sta_wip_sn_ex set device_no = #{deviceNo,jdbcType=VARCHAR}, - product_id = #{productId,jdbcType=INTEGER}, + product_id = #{productId,jdbcType=BIGINT}, product_name = #{productName,jdbcType=VARCHAR}, product_no = #{productNo,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, - create_by = #{createBy,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} + create_by = #{createBy,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} </update> </mapper> -- Gitblit v1.8.0