Procházet zdrojové kódy

过滤没有处方图片的待审核的处方图片

wjj před 2 týdny
rodič
revize
4cf698a08b

+ 5 - 5
fs-service/src/main/java/com/fs/his/mapper/FsPrescribeMapper.java

@@ -113,19 +113,19 @@ public interface FsPrescribeMapper
             " and p.drug_doctor_id = #{maps.doctorId} " +
             "</if>" +
             "<if test = ' maps.type==2 and maps.status != null and maps.status == 0  '> " +
-            "and p.status = 0 " +
+            " and p.status = 0 and p.prescribe_img_url is not null " +
             "</if>" +
             "<if test = ' maps.type==2 and maps.status != null and maps.status == 2  '> " +
-            "and p.status = 2 and p.drug_doctor_id = #{maps.doctorId} " +
+            " and p.status = 2 and p.drug_doctor_id = #{maps.doctorId} " +
             "</if>" +
             "<if test = ' maps.type==2 and maps.status != null and maps.status == 1  '> " +
-            "and p.status = 1 and p.drug_doctor_id = #{maps.doctorId} " +
+            " and p.status = 1 and p.drug_doctor_id = #{maps.doctorId} " +
             "</if>" +
             "<if test=' maps.beginTime != null and maps.beginTime != \"\" '>" +
-            "AND date_format(p.create_time,'%y%m%d') &gt;= date_format(#{maps.beginTime},'%y%m%d')  " +
+            " AND date_format(p.create_time,'%y%m%d') &gt;= date_format(#{maps.beginTime},'%y%m%d')  " +
             "</if>" +
             "<if test='maps.endTime != null and maps.endTime != \"\" '>" +
-            "AND date_format(p.create_time,'%y%m%d') &lt;= date_format(#{maps.endTime},'%y%m%d')  " +
+            " AND date_format(p.create_time,'%y%m%d') &lt;= date_format(#{maps.endTime},'%y%m%d')  " +
             "</if>" +
             " order by p.status asc, p.create_time desc "+
             "</script>"})