|
@ -261,7 +261,7 @@ public class DoctorGuidanceTempService extends BaseService {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public List<Map<String, Object>> listByTitle(String filter,String type, Integer teamId, int pageSize, int pageNo) throws Exception {
|
|
|
public List<Map<String, Object>> listByTitle(String filter,String type, int pageSize, int pageNo) throws Exception {
|
|
|
PageRequest pageRequest = new PageRequest(pageNo, pageSize);
|
|
|
List<Map<String, Object>> listMap = new ArrayList<>();
|
|
|
|
|
@ -293,14 +293,15 @@ public class DoctorGuidanceTempService extends BaseService {
|
|
|
tem.put("modelName", dgt.getModelName());
|
|
|
listMap.add(tem);
|
|
|
}
|
|
|
} else if("3".equals(type) && teamId!=null){
|
|
|
Page<DoctorTeamGuidanceTemplate> temps = doctorTeamGuidanceTemplateDao.listByTile(teamId,"%"+filter+"%", pageRequest);
|
|
|
} else if("3".equals(type)){
|
|
|
Page<DoctorTeamGuidanceTemplate> temps = doctorTeamGuidanceTemplateDao.listByTile("%"+filter+"%", pageRequest);
|
|
|
|
|
|
List<DoctorTeamGuidanceTemplate> list = temps.getContent();
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
DoctorTeamGuidanceTemplate dgt = list.get(i);
|
|
|
Map<String, Object> tem = new HashMap<>();
|
|
|
tem.put("teamId", dgt.getTeamId());
|
|
|
tem.put("teamName", dgt.getTeamName());
|
|
|
tem.put("code", dgt.getTeamTemplateCode());
|
|
|
tem.put("owner", dgt.getCreater());
|
|
|
tem.put("sendTimes", dgt.getUseTimes());
|