|
|
@@ -96,7 +96,7 @@ public interface FsPrescribeMapper
|
|
|
@Select({"<script> " +
|
|
|
"select p.*,d.doctor_name from fs_prescribe p " +
|
|
|
" left join fs_doctor d on d.doctor_id = p.doctor_id " +
|
|
|
- " where p.prescribe_img_url is not null " +
|
|
|
+ "where 1=1 " +
|
|
|
"<if test = ' maps.patientName!=null and maps.patientName != \"\" '> " +
|
|
|
"and p.patient_name like concat('%', #{maps.patientName}, '%') " +
|
|
|
"</if>" +
|
|
|
@@ -127,7 +127,7 @@ public interface FsPrescribeMapper
|
|
|
"<if test='maps.endTime != null and maps.endTime != \"\" '>" +
|
|
|
"AND date_format(p.create_time,'%y%m%d') <= date_format(#{maps.endTime},'%y%m%d') " +
|
|
|
"</if>" +
|
|
|
- " order by p.create_time desc "+
|
|
|
+ " order by p.status asc, p.create_time desc "+
|
|
|
"</script>"})
|
|
|
List<FsPrescribeListDVO> selectFsPrescribeListDVO(@Param("maps") FsPrescribeListDParam param);
|
|
|
@Select({"<script> " +
|