Jelajahi Sumber

获取任务列表sql更新

wangsy 4 tahun lalu
induk
melakukan
9b750d0b37
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      src/main/resources/mapper/MedCheckInfoMapper.xml

+ 5 - 2
src/main/resources/mapper/MedCheckInfoMapper.xml

@@ -149,8 +149,11 @@
         <if test="endDate != null">
             <![CDATA[ AND mbi.behospital_date < #{endDate}]]>
         </if>
-        <if test="creatStatus != null and creatStatus != ''">
-            AND mci.create_status = #{creatStatus}
+        <if test="creatStatus != null and creatStatus == 1">
+            AND mci.job_create_time is not null
+        </if>
+        <if test="creatStatus != null and creatStatus == 0">
+            AND mci.job_create_time is null
         </if>
         <if test="name != null and name != ''">
             AND mbi.name like CONCAT('%',#{name},'%')