Fancy
2024-09-14 8d9286db8d1388019ffd326fc17f36f78080b594
pms-parent/pms-global/src/main/resources/mapper/PltProductionLineMapper.xml
@@ -51,25 +51,25 @@
    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPlt.PltProductionLine" useGeneratedKeys="true">
        insert into plt_production_line
        <trim prefix="(" suffix=")" suffixOverrides=",">
                <if test="id != null and id !=''">id,</if>
                <if test="id != null">id,</if>
                <if test="name != null and name !=''">name,</if>
                <if test="type != null and type !=''">type,</if>
                <if test="factory != null and factory !=''">factory,</if>
                <if test="director != null and director !=''">director,</if>
                <if test="dMobile != null and dMobile !=''">d_mobile,</if>
                <if test="installTime != null and installTime !=''">install_time,</if>
                <if test="deleted != null and deleted !=''">deleted,</if>
                <if test="deleted != null">deleted,</if>
                <if test="remark != null and remark !=''">remark,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
                <if test="id != null and id !=''">#{id,jdbcType=BIGINT},</if>
                <if test="id != null">#{id,jdbcType=BIGINT},</if>
                <if test="name != null and name !=''">#{name,jdbcType=VARCHAR},</if>
                <if test="type != null and type !=''">#{type,jdbcType=VARCHAR},</if>
                <if test="factory != null and factory !=''">#{factory,jdbcType=VARCHAR},</if>
                <if test="director != null and director !=''">#{director,jdbcType=VARCHAR},</if>
                <if test="dMobile != null and dMobile !=''">#{dMobile,jdbcType=VARCHAR},</if>
                <if test="installTime != null and installTime !=''">#{installTime,jdbcType=VARCHAR},</if>
                <if test="deleted != null and deleted !=''">#{deleted,jdbcType=TINYINT},</if>
                <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if>
                <if test="remark != null and remark !=''">#{remark,jdbcType=VARCHAR},</if>
        </trim>
    </insert>
@@ -94,10 +94,10 @@
            <if test="installTime != null and installTime !=''">
                install_time = #{installTime,jdbcType=VARCHAR},
            </if>
            <if test="disabled != null and disabled !=''">
            <if test="disabled != null">
                disabled = #{disabled},
            </if>
            <if test="deleted != null and deleted !=''">
            <if test="deleted != null">
                deleted = #{deleted,jdbcType=TINYINT},
            </if>
            <if test="remark != null and remark !=''">
@@ -166,7 +166,7 @@
    </select>
    <select id="selectByNameId" resultType="java.lang.Long">
        select count(1) from plt_production_line where name = #{name} and deleted != 1
        <if test="id != null and id !=''">
        <if test="id != null">
            and id != #{id}
        </if>
    </select>