|  |  | 
 |  |  |     @Autowired | 
 |  |  |     private IBaseSmsaccountService baseSmsaccountService; | 
 |  |  |  | 
 |  |  |     @Value("${visitHosp}") | 
 |  |  |     private Integer visitHosp; | 
 |  |  |  | 
 |  |  |     @Value("${xhsmsPath}") | 
 |  |  |     private String xhsmsPath; | 
 |  |  |  | 
 |  |  | 
 |  |  |     @Value("${xhsmsPwd}") | 
 |  |  |     private String xhsmsPwd; | 
 |  |  |  | 
 |  |  |     @Value("${spring.profiles.active}") | 
 |  |  |     private String active; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 查询短信账号列表 | 
 |  |  |      */ | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:list')") | 
 |  |  |    @PostMapping("/list") | 
 |  |  |     @PostMapping("/list") | 
 |  |  |     public TableDataInfo list(@RequestBody BaseSmsaccount baseSmsaccount) { | 
 |  |  |         startPage(); | 
 |  |  |         List<BaseSmsaccount> list = baseSmsaccountService.selectBaseSmsaccountList(baseSmsaccount); | 
 |  |  | 
 |  |  |     @PostMapping("/sendMsg") | 
 |  |  |     @RepeatSubmit | 
 |  |  |     public AjaxResult sendMsg(@RequestBody BaseSmsRequest baseSmsRequest) { | 
 |  |  |         String sendMsg=""; | 
 |  |  |         if(visitHosp.equals("3")) { | 
 |  |  |             try{ | 
 |  |  |         String sendMsg = ""; | 
 |  |  |         if (active.equals("hzszlyy")) { | 
 |  |  |             try { | 
 |  |  |                 JSONObject jsTemp = JSON.parseObject(baseSmsRequest.getTemplateParam()); | 
 |  |  |                 String content=jsTemp.getString("name"); | 
 |  |  |                 sendMsg= smsUtils.sendSms(xhsmsPath,xhsmsAccount,xhsmsPwd,baseSmsRequest.getPhoneNumber(),content); | 
 |  |  |                 String content = jsTemp.getString("name"); | 
 |  |  |                 sendMsg = smsUtils.sendSms(xhsmsPath, xhsmsAccount, xhsmsPwd, baseSmsRequest.getPhoneNumber(), content); | 
 |  |  |             } catch (Exception ex) { | 
 |  |  |                 return AjaxResult.error(ex.getMessage()) ; | 
 |  |  |                 return AjaxResult.error(ex.getMessage()); | 
 |  |  |             } | 
 |  |  |             return AjaxResult.success(sendMsg); | 
 |  |  |         }else { | 
 |  |  |         } else { | 
 |  |  |             if (baseSmsaccountService.sendMsg(baseSmsRequest) == null) { | 
 |  |  |                 return error(); | 
 |  |  |             } |