|
@@ -122,10 +122,10 @@ public interface FsPrescribeMapper
|
|
|
" and p.status = 1 and p.drug_doctor_id = #{maps.doctorId} " +
|
|
" and p.status = 1 and p.drug_doctor_id = #{maps.doctorId} " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test=' maps.beginTime != null and maps.beginTime != \"\" '>" +
|
|
"<if test=' maps.beginTime != null and maps.beginTime != \"\" '>" +
|
|
|
- " AND date_format(p.create_time,'%y%m%d') >= date_format(#{maps.beginTime},'%y%m%d') " +
|
|
|
|
|
|
|
+ " AND p.create_time >= #{maps.beginTime}" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test='maps.endTime != null and maps.endTime != \"\" '>" +
|
|
"<if test='maps.endTime != null and maps.endTime != \"\" '>" +
|
|
|
- " AND date_format(p.create_time,'%y%m%d') <= date_format(#{maps.endTime},'%y%m%d') " +
|
|
|
|
|
|
|
+ " AND p.create_time <= CONCAT(#{maps.endTime}, ':59')" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
" order by p.status asc, p.create_time desc "+
|
|
" order by p.status asc, p.create_time desc "+
|
|
|
"</script>"})
|
|
"</script>"})
|