查询已诊记录列表修改

master
chenfei 2 years ago
parent b093a6bbb6
commit 928e7940f3

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

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

Loading…
Cancel
Save