1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-07-24 08:31:45 +08:00

#794 调整服务类型点击为空,对后端返回值tags赋值逻辑进行修改,目前修改的逻辑为:查询同机构下,类型为ccsummry 下的服务类型

Signed-off-by: guozhong <17853522814@163.com>
This commit is contained in:
guozhong 2023-09-01 00:12:28 +08:00
parent df24cd57c7
commit a684d6d20b

View File

@ -1020,12 +1020,14 @@
map.addAttribute("summary", summaries.get(0)); map.addAttribute("summary", summaries.get(0));
} }
} }
AgentService service = agentServiceRes.findById(agentserviceid).orElse(null); Organ currentOrgan = super.getOrgan(request);
if (service != null) { if(null!=currentOrgan){
map.addAttribute( map.addAttribute(
"tags", tagRes.findByTagtypeAndSkill( "tags", tagRes.findByTagtypeAndSkill(
MainContext.ModelType.SUMMARY.toString(), service.getSkill())); MainContext.ModelType.CCSUMMARY.toString(), currentOrgan.getParent()));
} }
map.addAttribute("userid", userid); map.addAttribute("userid", userid);
map.addAttribute("agentserviceid", agentserviceid); map.addAttribute("agentserviceid", agentserviceid);
map.addAttribute("agentuserid", agentuserid); map.addAttribute("agentuserid", agentuserid);