jinlin
2024-07-26 bcd950216084a6208de0c636f9430e47601acc01
modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml
@@ -4,17 +4,19 @@
<mapper namespace="com.zt.life.modules.mainPart.taskReliability.dao.SimulatAssessDao">
    <select id="getList" resultType="com.zt.life.modules.mainPart.taskReliability.model.SimulatAssess">
        select a.*
        from simulat_assess a
        <where>
            a.is_delete = 0
            <if test="whereSql!=null">
                and ${whereSql}
            </if>
        </where>
        <if test="orderBySql!=null">
            ORDER BY ${orderBySql}
        </if>
        select *
        from simulat_assess
        where product_id = ${productId}
          and task_model_id = ${taskModelId}
          and IS_DELETE = 0
        order by name desc
    </select>
    <select id="getNumById" resultType="java.lang.Integer">
        select COUNT(*)
        from simulat_assess
        where product_id = ${productId}
          and task_model_id = ${taskModelId}
          and IS_DELETE = 0
    </select>
</mapper>