Fancy
2024-06-18 2728dc8b359aa0a600db8ed73539ec888c454b83
PrProductionNode table add node_type
2个文件已修改
17 ■■■■ 已修改文件
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrProductionNode.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrProductionNode.java
@@ -49,6 +49,12 @@
    public String content;
    /**
     * 排序
     */
    @NotNull(message = "节点类型不能为空")
    public Integer nodeType;
    /**
     * 是否开始节点,1是,0否
     */
    @NotNull(message = "请选择是否生产开始")
pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
@@ -9,6 +9,7 @@
        <result property="processId" column="process_id" jdbcType="BIGINT"/>
        <result property="sort" column="sort" jdbcType="INTEGER"/>
        <result property="content" column="content" jdbcType="VARCHAR"/>
        <result property="nodeType" column="node_type" jdbcType="INTEGER"/>
        <result property="isStart" column="is_start" jdbcType="TINYINT"/>
        <result property="isEnd" column="is_end" jdbcType="TINYINT"/>
        <result property="isRecord" column="is_record" jdbcType="TINYINT"/>
@@ -21,7 +22,7 @@
    <sql id="Base_Column_List">
        id,process_id,sort,
        content,is_start,is_end,
        content,node_type,is_start,is_end,
        is_record,equip_cycle_content,deleted,
        remark
    </sql>
@@ -53,6 +54,7 @@
                <if test="processId != null">process_id,</if>
                <if test="sort != null">sort,</if>
                <if test="content != null">content,</if>
                <if test="nodeType != null">node_type,</if>
                <if test="isStart != null">is_start,</if>
                <if test="isEnd != null">is_end,</if>
                <if test="isRecord != null">is_record,</if>
@@ -65,6 +67,7 @@
                <if test="processId != null">#{processId,jdbcType=BIGINT},</if>
                <if test="sort != null">#{sort,jdbcType=INTEGER},</if>
                <if test="content != null">#{content,jdbcType=VARCHAR},</if>
                <if test="nodeType != null">#{nodeType,jdbcType=INTEGER},</if>
                <if test="isStart != null">#{isStart,jdbcType=TINYINT},</if>
                <if test="isEnd != null">#{isEnd,jdbcType=TINYINT},</if>
                <if test="isRecord != null">#{isRecord,jdbcType=TINYINT},</if>
@@ -76,7 +79,7 @@
    <insert id="insertMany" parameterType="java.util.List">
       INSERT INTO pr_production_node (id,process_id,sort,
        content,is_start,is_end,
        content,node_type,is_start,is_end,
        is_record,equip_cycle_content,deleted,
        remark) VALUES
       <foreach item="item" index="index" collection="list" open="(" separator="),(" close=")">
@@ -84,6 +87,7 @@
           #{item.processId},
           #{item.sort},
           #{item.content},
           #{item.nodeType},
           #{item.isStart},
           #{item.isEnd},
           #{item.isRecord},
@@ -106,6 +110,9 @@
                <if test="content != null">
                    content = #{content,jdbcType=VARCHAR},
                </if>
                <if test="nodeType != null">
                    node_type = #{nodeType,jdbcType=INTEGER},
                </if>
                <if test="isStart != null">
                    is_start = #{isStart,jdbcType=TINYINT},
                </if>