Browse Source
feat(pms): 添加检验模板项目操作记录功能
feat(pms): 添加检验模板项目操作记录功能
- 在 QcMapper 中新增 insertTemplateItemRecord 方法 - 在 QcMapper.xml 中新增检验模板项目操作记录的插入 SQL - 修改查询模板详细信息的 SQL 以包含 order_id 字段 - 在 QcServiceImpl 中实现新增和删除操作时同步记录操作历史 - 新增 QcTemplateItemRecordData 实体类用于存储操作记录数据 - 实现添加和删除操作的审计日志记录机制ecss-tx
4 changed files with 192 additions and 1 deletions
-
137src/main/java/com/xujie/sys/modules/pms/data/QcTemplateItemRecordData.java
-
2src/main/java/com/xujie/sys/modules/pms/mapper/QcMapper.java
-
43src/main/java/com/xujie/sys/modules/pms/service/Impl/QcServiceImpl.java
-
11src/main/resources/mapper/pms/QcMapper.xml
@ -0,0 +1,137 @@ |
|||
package com.xujie.sys.modules.pms.data; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @description: 检验模板项目操作记录实体类 |
|||
* @date: 2026/8/13 |
|||
*/ |
|||
public class QcTemplateItemRecordData { |
|||
|
|||
// 自增主键 |
|||
private Integer id; |
|||
// 模板编码 |
|||
private String templateId; |
|||
// 检验项目编码 |
|||
private String itemNo; |
|||
// 默认值 |
|||
private String defaultValue; |
|||
// 最大值 |
|||
private BigDecimal maxValue; |
|||
// 最小值 |
|||
private BigDecimal minValue; |
|||
// 设备编码 |
|||
private String objectId; |
|||
// 工厂编码 |
|||
private String site; |
|||
// BU编码 |
|||
private String buNo; |
|||
// 排序 |
|||
private Integer orderId; |
|||
// 操作类型: ADD / DELETE |
|||
private String operationType; |
|||
// 操作时间 |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date operateTime; |
|||
|
|||
public Integer getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Integer id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getTemplateId() { |
|||
return templateId; |
|||
} |
|||
|
|||
public void setTemplateId(String templateId) { |
|||
this.templateId = templateId; |
|||
} |
|||
|
|||
public String getItemNo() { |
|||
return itemNo; |
|||
} |
|||
|
|||
public void setItemNo(String itemNo) { |
|||
this.itemNo = itemNo; |
|||
} |
|||
|
|||
public String getDefaultValue() { |
|||
return defaultValue; |
|||
} |
|||
|
|||
public void setDefaultValue(String defaultValue) { |
|||
this.defaultValue = defaultValue; |
|||
} |
|||
|
|||
public BigDecimal getMaxValue() { |
|||
return maxValue; |
|||
} |
|||
|
|||
public void setMaxValue(BigDecimal maxValue) { |
|||
this.maxValue = maxValue; |
|||
} |
|||
|
|||
public BigDecimal getMinValue() { |
|||
return minValue; |
|||
} |
|||
|
|||
public void setMinValue(BigDecimal minValue) { |
|||
this.minValue = minValue; |
|||
} |
|||
|
|||
public String getObjectId() { |
|||
return objectId; |
|||
} |
|||
|
|||
public void setObjectId(String objectId) { |
|||
this.objectId = objectId; |
|||
} |
|||
|
|||
public String getSite() { |
|||
return site; |
|||
} |
|||
|
|||
public void setSite(String site) { |
|||
this.site = site; |
|||
} |
|||
|
|||
public String getBuNo() { |
|||
return buNo; |
|||
} |
|||
|
|||
public void setBuNo(String buNo) { |
|||
this.buNo = buNo; |
|||
} |
|||
|
|||
public Integer getOrderId() { |
|||
return orderId; |
|||
} |
|||
|
|||
public void setOrderId(Integer orderId) { |
|||
this.orderId = orderId; |
|||
} |
|||
|
|||
public String getOperationType() { |
|||
return operationType; |
|||
} |
|||
|
|||
public void setOperationType(String operationType) { |
|||
this.operationType = operationType; |
|||
} |
|||
|
|||
public Date getOperateTime() { |
|||
return operateTime; |
|||
} |
|||
|
|||
public void setOperateTime(Date operateTime) { |
|||
this.operateTime = operateTime; |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue