|
@@ -113,19 +113,19 @@ public interface FsPrescribeMapper
|
|
|
" and p.drug_doctor_id = #{maps.doctorId} " +
|
|
" and p.drug_doctor_id = #{maps.doctorId} " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = ' maps.type==2 and maps.status != null and maps.status == 0 '> " +
|
|
"<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>" +
|
|
|
"<if test = ' maps.type==2 and maps.status != null and maps.status == 2 '> " +
|
|
"<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>" +
|
|
|
"<if test = ' maps.type==2 and maps.status != null and maps.status == 1 '> " +
|
|
"<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>" +
|
|
|
"<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 date_format(p.create_time,'%y%m%d') >= date_format(#{maps.beginTime},'%y%m%d') " +
|
|
|
"</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 date_format(p.create_time,'%y%m%d') <= date_format(#{maps.endTime},'%y%m%d') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
" order by p.status asc, p.create_time desc "+
|
|
" order by p.status asc, p.create_time desc "+
|
|
|
"</script>"})
|
|
"</script>"})
|