Fancy
2024-10-18 3f4c3b0257ae514e2f07f554c33eb95b1ce01b05
command
2个文件已修改
12 ■■■■ 已修改文件
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoTst/TstCommand.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-global/src/main/resources/mapper/TstCommandMapper.xml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoTst/TstCommand.java
@@ -35,6 +35,10 @@
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long proId;
    @TableField(exist = false)
    public String proName;
    @TableField(exist = false)
    public String proType;
    /**
     * 指令类型:测试指令(1)、设置指令(2)
pms-parent/pms-global/src/main/resources/mapper/TstCommandMapper.xml
@@ -19,6 +19,10 @@
            <result property="updatedDate" column="updated_date" jdbcType="TIMESTAMP"/>
            <association property="creatorName" column="creator" javaType="java.lang.Long"
                     select="com.dy.pmsGlobal.daoBa.BaUserMapper.selectNameByUserId" fetchType="eager"/>
            <association property="proName" column="pro_id" javaType="java.lang.Long"
                     select="com.dy.pmsGlobal.daoPlt.PltProductMapper.selectProNameById" fetchType="eager" />
            <association property="proType" column="pro_id" javaType="java.lang.Long"
                     select="com.dy.pmsGlobal.daoPlt.PltProductMapper.selectProTypeById" fetchType="eager" />
    </resultMap>
    <sql id="Base_Column_List">
@@ -54,7 +58,7 @@
                name like concat('%', #{name}, '%') and
            </if>
            <if test="proId != null">
                proId = #{proId,jdbcType=BIGINT}
                pro_id = #{proId,jdbcType=BIGINT} and
            </if>
            <if test="value != null and value !=''">
                value like concat('%', #{value}, '%') and
@@ -79,7 +83,7 @@
                name like concat('%', #{name}, '%') and
            </if>
            <if test="proId != null">
                proId = #{proId,jdbcType=BIGINT}
                pro_id = #{proId,jdbcType=BIGINT} and
            </if>
            <if test="value != null and value !=''">
                value like concat('%', #{value}, '%') and