From bcd950216084a6208de0c636f9430e47601acc01 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期五, 26 七月 2024 08:30:23 +0800
Subject: [PATCH] 修改
---
modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml b/modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml
index 06f1274..e0091ac 100644
--- a/modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml
+++ b/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>
--
Gitblit v1.9.1