Fancy
2024-10-17 451eada4d42593de866b6fe150129ec12079a452
pms-parent/pms-global/src/main/resources/mapper/TstCommandMapper.xml
@@ -51,14 +51,14 @@
            <if test="name != null and name !=''">
                name like concat('%', #{name}, '%') and
            </if>
            <if test="factory != null and factory !=''">
                factory like concat('%', #{factory}, '%') and
            <if test="proId != null">
                proId = #{proId,jdbcType=BIGINT}
            </if>
            <if test="director != null and director !=''">
                director like concat('%', #{director}, '%') and
            <if test="value != null and value !=''">
                value like concat('%', #{value}, '%') and
            </if>
            <if test="dMobile != null and dMobile !=''">
                d_mobile = #{dMobile,jdbcType=VARCHAR} and
            <if test="type != null">
                type = #{type,jdbcType=TINYINT} and
            </if>
        </trim>
        order by id desc
@@ -76,14 +76,14 @@
            <if test="name != null and name !=''">
                name like concat('%', #{name}, '%') and
            </if>
            <if test="factory != null and factory !=''">
                factory like concat('%', #{factory}, '%') and
            <if test="proId != null">
                proId = #{proId,jdbcType=BIGINT}
            </if>
            <if test="director != null and director !=''">
                director like concat('%', #{director}, '%') and
            <if test="value != null and value !=''">
                value like concat('%', #{value}, '%') and
            </if>
            <if test="dMobile != null and dMobile !=''">
                d_mobile = #{dMobile,jdbcType=VARCHAR} and
            <if test="type != null">
                type = #{type,jdbcType=TINYINT} and
            </if>
        </trim>
    </select>