| | |
| | | <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> |