feat(mill): 添加设备部件负责人字段
- 在 EqpEquipmentPart 实体类中新增负责人属性 - 更新数据库映射文件中的结果映射配置 - 修改 SQL 查询语句以包含负责人字段 - 为新增字段添加插入和更新逻辑的支持 - 在数据库表结构中添加负责人列定义
This commit is contained in:
@@ -24,6 +24,9 @@ public class EqpEquipmentPart extends BaseEntity {
|
|||||||
@Excel(name = "产线段")
|
@Excel(name = "产线段")
|
||||||
private String lineSection;
|
private String lineSection;
|
||||||
|
|
||||||
|
@Excel(name = "负责人")
|
||||||
|
private String responsiblePerson;
|
||||||
|
|
||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,9 @@
|
|||||||
<id property="partId" column="part_id" />
|
<id property="partId" column="part_id" />
|
||||||
<result property="inspectPart" column="inspect_part" />
|
<result property="inspectPart" column="inspect_part" />
|
||||||
<result property="productionLine" column="production_line" />
|
<result property="productionLine" column="production_line" />
|
||||||
<result property="lineSection" column="line_section" />
|
<result property="lineSection" column="line_section" />
|
||||||
<result property="remark" column="remark" />
|
<result property="responsiblePerson" column="responsible_person" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
<result property="delFlag" column="del_flag" />
|
<result property="delFlag" column="del_flag" />
|
||||||
<result property="createBy" column="create_by" />
|
<result property="createBy" column="create_by" />
|
||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
@@ -16,8 +17,9 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectEqpPartVo">
|
<sql id="selectEqpPartVo">
|
||||||
select part_id, inspect_part, production_line, line_section, remark,
|
select part_id, inspect_part, production_line, line_section,
|
||||||
del_flag, create_by, create_time, update_by, update_time
|
responsible_person, remark, del_flag,
|
||||||
|
create_by, create_time, update_by, update_time
|
||||||
from eqp_equipment_part
|
from eqp_equipment_part
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@@ -44,6 +46,7 @@
|
|||||||
<if test="productionLine != null">production_line,</if>
|
<if test="productionLine != null">production_line,</if>
|
||||||
<if test="lineSection != null">line_section,</if>
|
<if test="lineSection != null">line_section,</if>
|
||||||
<if test="remark != null">remark,</if>
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="responsiblePerson != null">responsible_person,</if>
|
||||||
<if test="createBy != null">create_by,</if>
|
<if test="createBy != null">create_by,</if>
|
||||||
<if test="createTime != null">create_time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
del_flag,
|
del_flag,
|
||||||
@@ -53,6 +56,7 @@
|
|||||||
<if test="productionLine != null">#{productionLine},</if>
|
<if test="productionLine != null">#{productionLine},</if>
|
||||||
<if test="lineSection != null">#{lineSection},</if>
|
<if test="lineSection != null">#{lineSection},</if>
|
||||||
<if test="remark != null">#{remark},</if>
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="responsiblePerson != null">#{responsiblePerson},</if>
|
||||||
<if test="createBy != null">#{createBy},</if>
|
<if test="createBy != null">#{createBy},</if>
|
||||||
<if test="createTime != null">#{createTime},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
'0',
|
'0',
|
||||||
@@ -66,6 +70,7 @@
|
|||||||
<if test="productionLine != null">production_line = #{productionLine},</if>
|
<if test="productionLine != null">production_line = #{productionLine},</if>
|
||||||
<if test="lineSection != null">line_section = #{lineSection},</if>
|
<if test="lineSection != null">line_section = #{lineSection},</if>
|
||||||
<if test="remark != null">remark = #{remark},</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="updateBy != null">update_by = #{updateBy},</if>
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
</trim>
|
</trim>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ CREATE TABLE IF NOT EXISTS `mill_eqp_part` (
|
|||||||
`inspect_part` varchar(200) NOT NULL COMMENT '巡检部位名称',
|
`inspect_part` varchar(200) NOT NULL COMMENT '巡检部位名称',
|
||||||
`production_line` varchar(100) DEFAULT NULL COMMENT '产线',
|
`production_line` varchar(100) DEFAULT NULL COMMENT '产线',
|
||||||
`line_section` 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 '备注',
|
`remark` varchar(500) DEFAULT NULL COMMENT '备注',
|
||||||
`del_flag` char(1) DEFAULT '0' COMMENT '删除标志 0正常 2删除',
|
`del_flag` char(1) DEFAULT '0' COMMENT '删除标志 0正常 2删除',
|
||||||
`create_by` varchar(64) DEFAULT '' COMMENT '创建者',
|
`create_by` varchar(64) DEFAULT '' COMMENT '创建者',
|
||||||
|
|||||||
Reference in New Issue
Block a user