| | |
| | | import cn.gistack.alerts.sms.mapper.SmsTemplateMapper; |
| | | import cn.gistack.alerts.sms.service.ISmsTemplateService; |
| | | import cn.gistack.alerts.sms.vo.SmsTemplateVO; |
| | | import cn.gistack.common.node.TreeNode; |
| | | import cn.gistack.common.utils.NodeTreeUtil; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 短信发送模板服务实现层 |
| | |
| | | } |
| | | return page.setRecords(baseMapper.selectSmsTemplatePage(page,smsTemplate)); |
| | | } |
| | | |
| | | /** |
| | | * 查询当前任务未接通的人员信息(包含水库编号) |
| | | * @param taskId |
| | | * @param callId |
| | | * @return |
| | | */ |
| | | @Override |
| | | @DS("znwh") |
| | | public List<Map<String, Object>> getNotConnectPatrolPersonList(List<String> taskId,String callId) { |
| | | return baseMapper.getNotConnectPatrolPersonList(taskId,callId); |
| | | } |
| | | |
| | | /** |
| | | * 查询符合当前时间外呼任务id集合 |
| | | * @param time |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<String> getTaskIdListByTime(String time) { |
| | | return baseMapper.getTaskIdListByTime(time); |
| | | } |
| | | |
| | | /** |
| | | * 获取短信类型树(当为告警是显示告警规则名称) |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Object getSmsTypeTree() { |
| | | List<TreeNode> nodeTree = NodeTreeUtil.getNodeTree(baseMapper.getSmsTypeTree()); |
| | | // 返回 |
| | | return nodeTree; |
| | | } |
| | | } |