Browse Source

优化药师处方审核时间查询条件

cgp 1 week ago
parent
commit
2cbe67a826
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fs-service/src/main/java/com/fs/his/mapper/FsPrescribeMapper.java

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

@@ -122,10 +122,10 @@ public interface FsPrescribeMapper
             " 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 p.create_time &gt;= #{maps.beginTime}" +
             "</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 p.create_time &lt;= CONCAT(#{maps.endTime}, ':59')" +
             "</if>" +
             " order by p.status asc, p.create_time desc "+
             "</script>"})