|
@@ -423,6 +423,15 @@ public class PushFacade {
|
|
|
eq("dept_id", deptInfo.getId()).
|
|
|
orderByAsc("order_no");
|
|
|
List<DeptVital> deptVitalList = deptVitalFacade.list(deptVitalQueryWrapper);
|
|
|
+ //科室模板为空时,取全科模板
|
|
|
+ if(deptVitalList.size()==0) {
|
|
|
+ deptVitalQueryWrapper = new QueryWrapper<>();
|
|
|
+ String sql = "select id from icss_dept_info where name='全科' and is_deleted='N'";
|
|
|
+ deptVitalQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey()).
|
|
|
+ inSql("dept_id", sql).
|
|
|
+ orderByAsc("order_no");
|
|
|
+ deptVitalList = deptVitalFacade.list(deptVitalQueryWrapper);
|
|
|
+ }
|
|
|
//标签列表
|
|
|
for (DeptVital deptVital : deptVitalList) {
|
|
|
QuestionVO questionVO = new QuestionVO();
|