|
@@ -44,7 +44,11 @@ public class TemplateInfoFacade extends TemplateInfoServiceImpl {
|
|
|
mapAll.put("hospital_id", templateInfoVO.getHospitalId());
|
|
|
mapAll.put("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
mapAll.put("type", templateInfoVO.getType());
|
|
|
- templateInfoQuery.allEq(mapAll).orderByDesc("gmt_create");
|
|
|
+ if(templateInfoVO.getSex()!=null){
|
|
|
+ templateInfoQuery.allEq(mapAll).in("sex", 3,templateInfoVO.getSex()).orderByDesc("gmt_create");
|
|
|
+ }else {
|
|
|
+ templateInfoQuery.allEq(mapAll).orderByDesc("gmt_create");
|
|
|
+ }
|
|
|
List<TemplateInfoDTO> data = new ArrayList<TemplateInfoDTO>();
|
|
|
List<TemplateInfo> datas = list(templateInfoQuery);
|
|
|
//过滤
|
|
@@ -124,6 +128,7 @@ public class TemplateInfoFacade extends TemplateInfoServiceImpl {
|
|
|
templateInfo.setGmtCreate(DateUtil.now());//创建时间
|
|
|
templateInfo.setHospitalDeptId(templateInfosVO.getHospitalDeptId());//部门id
|
|
|
templateInfo.setHospitalId(templateInfosVO.getHospitalId());//医院id
|
|
|
+ templateInfo.setSex(templateInfosVO.getSex());
|
|
|
templateInfo.setPreview(GsonUtil.toJson(templateInfosVO.getPreview()));//文本的展示
|
|
|
templateInfo.setDataJson(templateInfosVO.getDataJson());//页面json
|
|
|
templateInfo.setName(templateInfosVO.getModeName());//模板名称
|