feat(mill): 添加设备部件负责人字段

- 在 EqpEquipmentPart 实体类中新增负责人属性
- 更新数据库映射文件中的结果映射配置
- 修改 SQL 查询语句以包含负责人字段
- 为新增字段添加插入和更新逻辑的支持
- 在数据库表结构中添加负责人列定义
This commit is contained in:
2026-06-08 13:41:28 +08:00
parent 7899b31c08
commit 022312d02c
3 changed files with 13 additions and 4 deletions

View File

@@ -24,6 +24,9 @@ public class EqpEquipmentPart extends BaseEntity {
@Excel(name = "产线段")
private String lineSection;
@Excel(name = "负责人")
private String responsiblePerson;
@Excel(name = "备注")
private String remark;

View File

@@ -6,8 +6,9 @@
<id property="partId" column="part_id" />
<result property="inspectPart" column="inspect_part" />
<result property="productionLine" column="production_line" />
<result property="lineSection" column="line_section" />
<result property="remark" column="remark" />
<result property="lineSection" column="line_section" />
<result property="responsiblePerson" column="responsible_person" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
@@ -16,8 +17,9 @@
</resultMap>
<sql id="selectEqpPartVo">
select part_id, inspect_part, production_line, line_section, remark,
del_flag, create_by, create_time, update_by, update_time
select part_id, inspect_part, production_line, line_section,
responsible_person, remark, del_flag,
create_by, create_time, update_by, update_time
from eqp_equipment_part
</sql>
@@ -44,6 +46,7 @@
<if test="productionLine != null">production_line,</if>
<if test="lineSection != null">line_section,</if>
<if test="remark != null">remark,</if>
<if test="responsiblePerson != null">responsible_person,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
del_flag,
@@ -53,6 +56,7 @@
<if test="productionLine != null">#{productionLine},</if>
<if test="lineSection != null">#{lineSection},</if>
<if test="remark != null">#{remark},</if>
<if test="responsiblePerson != null">#{responsiblePerson},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
'0',
@@ -66,6 +70,7 @@
<if test="productionLine != null">production_line = #{productionLine},</if>
<if test="lineSection != null">line_section = #{lineSection},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="responsiblePerson != null">responsible_person = #{responsiblePerson},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>

View File

@@ -6,6 +6,7 @@ CREATE TABLE IF NOT EXISTS `mill_eqp_part` (
`inspect_part` varchar(200) NOT NULL COMMENT '巡检部位名称',
`production_line` varchar(100) DEFAULT NULL COMMENT '产线',
`line_section` varchar(100) DEFAULT NULL COMMENT '产线段',
`responsible_person` varchar(64) DEFAULT NULL COMMENT '负责人',
`remark` varchar(500) DEFAULT NULL COMMENT '备注',
`del_flag` char(1) DEFAULT '0' COMMENT '删除标志 0正常 2删除',
`create_by` varchar(64) DEFAULT '' COMMENT '创建者',