java110
2023-05-30 f14c50cb0036d3ddd655ce4e34732ba396a836c4
java110-db/src/main/resources/mapper/community/MaintainanceTaskV1ServiceDaoImplMapper.xml
@@ -81,6 +81,15 @@
        <if test="mpsId !=null and mpsId != ''">
            and t.mps_id= #{mpsId}
        </if>
        <if test="state !=null and state != ''">
            and t.state= #{state}
        </if>
        <if test="states !=null ">
            and t.state in
            <foreach collection="states" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        order by t.create_time desc
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
@@ -139,6 +148,9 @@
        </if>
        <if test="mpsId !=null and mpsId != ''">
            , t.mps_id= #{mpsId}
        </if>
        <if test="state !=null and state != ''">
            , t.state= #{state}
        </if>
        where 1=1
        <if test="taskId !=null and taskId != ''">
@@ -203,6 +215,15 @@
        <if test="mpsId !=null and mpsId != ''">
            and t.mps_id= #{mpsId}
        </if>
        <if test="state !=null and state != ''">
            and t.state= #{state}
        </if>
        <if test="states !=null ">
            and t.state in
            <foreach collection="states" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
    </select>