| | |
| | | import com.dy.common.mw.protocol.Command; |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.config.DingTalk; |
| | | import com.dy.pipIrrGlobal.daoPr.PrDivideMapper; |
| | | import com.dy.pipIrrGlobal.daoPr.PrIntakeMapper; |
| | | import com.dy.pipIrrGlobal.pojoPr.PrIntake; |
| | |
| | | |
| | | protected static String mwUrlSendCom = "http://127.0.0.1:8070/rtuMw/com/send" ; |
| | | |
| | | @Autowired |
| | | private DingTalk dingTalk; |
| | | |
| | | public String sendMessage(String message) { |
| | | try { |
| | | dingTalk.sendMessage(message); |
| | | } catch (Exception e) { |
| | | return "发送失败"; |
| | | } |
| | | return "发送成功"; |
| | | } |
| | | |
| | | /** |
| | | * 添加取水口 |
| | |
| | | return response.getBody(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 得到所有取水口名称 |
| | | * 取水口名称换取水口ID,验证是否重复名称使用 |
| | | * @param intakeName |
| | | * @return |
| | | */ |
| | | public List<String> getIntakeName() { |
| | | return prIntakeMapper.getIntakeName(); |
| | | public List<Long> getIntakeIdsByName(String intakeName) { |
| | | return prIntakeMapper.getIntakeIdsByName(intakeName); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param intakeName |
| | | * @return |
| | | */ |
| | | public List<Long> getIntakeIdByName1(String intakeName) { |
| | | return prIntakeMapper.getIntakeIdByName1(intakeName); |
| | | public List<Long> getIntakeIdByNameExcludeId(Long id, String intakeName) { |
| | | return prIntakeMapper.getIntakeIdByNameExcludeId(id, intakeName); |
| | | } |
| | | |
| | | |
| | | } |