查询已诊记录列表修改

master
chenfei 2 years ago
parent b093a6bbb6
commit 928e7940f3

@ -129,14 +129,12 @@ public class TRecordController extends BaseController
if(id == null){ if(id == null){
return AjaxResult.error("未获取到id"); return AjaxResult.error("未获取到id");
} }
Map<String,List<Object>> data = new HashMap<>(); Map<String,Object> data = new HashMap<>();
List<TRecordResp> list = new ArrayList<>(); data.put("result", tRecordService.selectById(id));
list.add(tRecordService.selectById(id));
data.put("result", Collections.singletonList(list));
TImage tImage = new TImage(); TImage tImage = new TImage();
tImage.setThirdId(id); tImage.setThirdId(id);
List<TImage> images = imageService.selectTImageList(tImage); List<TImage> images = imageService.selectTImageList(tImage);
data.put("image", Collections.singletonList(images)); data.put("image", images);
return AjaxResult.success(data); return AjaxResult.success(data);
} }

@ -208,7 +208,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="delFlag == null"> <if test="delFlag == null">
and td.del_flag = '0' and tp.del_flag = '0' and td.del_flag = '0' and tp.del_flag = '0'
</if> </if>
<if test="createTime != null"> <if test="createTime != null and createTime !=''">
and DATE_FORMAT(tp.create_time,'%Y-%m') = #{createTime} and DATE_FORMAT(tp.create_time,'%Y-%m') = #{createTime}
</if> </if>
<if test="startTime != null and startTime != '' and endTime == null "> and tr.create_time &gt;= #{startTime}</if> <if test="startTime != null and startTime != '' and endTime == null "> and tr.create_time &gt;= #{startTime}</if>

Loading…
Cancel
Save