| | |
| | | private IvrLibaTemplateScriptMapper ivrLibaTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | private TemplateDeptMapper tempDetpRelevanceMapper; |
| | | |
| | | /** |
| | | * 查询模板库 |
| | |
| | | } |
| | | |
| | | //对科室进行处理 |
| | | for (TempDetpRelevance tempDetpRelevance : ivrLibaTemplateVO.getTempDetpRelevances()) { |
| | | for (TemplateDept tempDetpRelevance : ivrLibaTemplateVO.getTempDetpRelevances()) { |
| | | if (tempDetpRelevance.getId() == null) { |
| | | //新增 |
| | | tempDetpRelevance.setTempid(ivrLibaTemplate.getId()); |
| | | tempDetpRelevance.setType(2L); |
| | | tempDetpRelevance.setCreateTime(new Date()); |
| | | tempDetpRelevanceMapper.insertTempDetpRelevance(tempDetpRelevance); |
| | | tempDetpRelevanceMapper.insertTemplateDept(tempDetpRelevance); |
| | | } else { |
| | | tempDetpRelevance.setUpdateTime(new Date()); |
| | | tempDetpRelevanceMapper.updateTempDetpRelevance(tempDetpRelevance); |
| | | tempDetpRelevanceMapper.updateTemplateDept(tempDetpRelevance); |
| | | } |
| | | } |
| | | |