| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.domain.SysConfig; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.smartor.common.LSHospTokenUtil; |
| | | import com.smartor.domain.ServiceSubtask; |
| | | import com.smartor.mapper.ServiceSubtaskMapper; |
| | | import com.ruoyi.common.core.service.ISubtaskSmsService; |
| | | import com.ruoyi.common.utils.spring.SpringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | |
| | | |
| | | @Autowired |
| | | private ISysConfigService iSysConfigService; |
| | | |
| | | @Autowired |
| | | private ServiceSubtaskMapper serviceSubtaskMapper; |
| | | |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | |
| | | List<SmsRecords> selectSmsRecordsList = smsRecordsMapper.selectSmsRecordsList(smsRecords); |
| | | for (SmsRecords record : selectSmsRecordsList) { |
| | | Boolean aBoolean = sendSMS(record.getOrgid(), record.getPhone(), record.getMsg()); |
| | | ServiceSubtask serviceSubtask = new ServiceSubtask(); |
| | | serviceSubtask.setId(record.getSubId()); |
| | | if (aBoolean) serviceSubtask.setVisitNotice(1); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | if (aBoolean) { |
| | | ISubtaskSmsService subtaskSmsService = SpringUtils.getBean(ISubtaskSmsService.class); |
| | | subtaskSmsService.updateSubtaskVisitNotice(record.getSubId(), 1); |
| | | } |
| | | } |
| | | |
| | | return true; |
| | |
| | | } |
| | | log.info("-----------map的值为:{}", msgInfo); |
| | | |
| | | String token = LSHospTokenUtil.getToken(orgid,msgInfo.get("tokenUrl")); |
| | | ISubtaskSmsService subtaskSmsService = SpringUtils.getBean(ISubtaskSmsService.class); |
| | | String token = subtaskSmsService.getLSHospToken(orgid, msgInfo.get("tokenUrl")); |
| | | log.info("【sfHandlle】丽水短信发送,地址:{},参数:{},机构ID:{}", msgInfo.get("address"), orgid); |
| | | String dxCode = getDXCode(msgInfo.get("address"), phone, content, msgInfo.get("sendPersonId"), msgInfo.get("sendPersonName"), MsgLSEnum.getHeaderByCode(msgInfo), token); |
| | | log.info("【sfHandlle】丽水短信发送结果:{}", dxCode); |