| | |
| | | import io.swagger.annotations.Api; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.base.BaseEntity; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | for (BaiYiTestEntity item : list ) { |
| | | String skName = item.getSkName(); |
| | | String termitePointNum = item.getTermitePointNum(); |
| | | personInCharge = item.getPersonInCharge(); |
| | | phone = item.getPhone(); |
| | | |
| | | |
| | | if(sknm.equals(skName)){ |
| | | |
| | | personInCharge = item.getPersonInCharge(); |
| | | phone = item.getPhone(); |
| | | statListStr = statListStr + termitePointNum + ","; // 同一个水库的报警白蚁测点拼接起来 |
| | | |
| | | } |
| | |
| | | String phone = item.getPhone(); |
| | | String bayistate = item.getBayistate(); |
| | | |
| | | |
| | | SMSSendRequest request = new SMSSendRequest(); |
| | | request.setUserNumber(phone); |
| | | request.setTemplateId("2431012268292");//短信模版编号 |
| | | request.setMessageContent("紧急通知:"+skName+" 中 "+bayistate+" 以上白蚁监测点发生白蚁预警,请立安排人前去检查是否真实存在白蚁。"); |
| | | request.setTemplateId("2431012282799");//短信模版编号 |
| | | request.setMessageContent("紧急通知:"+skName+" 中以下白蚁监测点发生白蚁预警,请立安排人前去检查是否真实存在白蚁:"+ bayistate); |
| | | SmsUtils.sendMsg(request); |
| | | |
| | | } |