|  |  | 
 |  |  |  | 
 |  |  | import com.github.pagehelper.ISelect; | 
 |  |  | import com.ruoyi.common.annotation.Log; | 
 |  |  | import com.ruoyi.common.constant.HttpStatus; | 
 |  |  | import com.ruoyi.common.core.controller.BaseController; | 
 |  |  | import com.ruoyi.common.core.domain.AjaxResult; | 
 |  |  | import com.ruoyi.common.core.domain.entity.SysUser; | 
 |  |  | 
 |  |  | import com.ruoyi.common.core.redis.RedisCache; | 
 |  |  | import com.ruoyi.common.enums.BusinessType; | 
 |  |  | import com.ruoyi.common.enums.PreachFormEnum; | 
 |  |  | import com.ruoyi.common.exception.base.BaseException; | 
 |  |  | import com.ruoyi.common.utils.DtoConversionUtils; | 
 |  |  | import com.ruoyi.common.utils.PageUtils; | 
 |  |  | import com.ruoyi.common.utils.poi.ExcelUtil; | 
 |  |  | 
 |  |  | import com.smartor.service.IServiceSubtaskRecordService; | 
 |  |  | import com.smartor.service.IServiceSubtaskService; | 
 |  |  | import com.smartor.service.IServiceTaskService; | 
 |  |  | import com.sun.org.apache.bcel.internal.generic.NEW; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import net.bytebuddy.implementation.bytecode.Throw; | 
 |  |  | import org.apache.commons.collections4.CollectionUtils; | 
 |  |  | import org.apache.commons.lang3.ObjectUtils; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | 
 |  |  |  | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  | import java.util.ArrayList; | 
 |  |  | import java.util.HashMap; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  |  | 
 |  |  | 
 |  |  |         return success(serviceSubtaskService.getSfStatisticsJoydetails(serviceSubtaskCountReq)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 发送短信模板 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("发送短信模板") | 
 |  |  |     @PostMapping("/sendMsgTemplate") | 
 |  |  |     public Map<String, Object> sendMsgTemplate(@RequestBody List<PatArchiveSrmVO> patArchiveSrmVOS) { | 
 |  |  |         if (CollectionUtils.isEmpty(patArchiveSrmVOS)) { | 
 |  |  |             throw new BaseException("患者信息不能为空"); | 
 |  |  |         } | 
 |  |  |         List<PatArchiveSrmVO> pasList = serviceSubtaskService.sendMsgTemplate(patArchiveSrmVOS); | 
 |  |  |         Map<String, Object> map = new HashMap<>(); | 
 |  |  |         map.put("code", HttpStatus.SUCCESS); | 
 |  |  |         map.put("fail", CollectionUtils.isEmpty(pasList) ? null : pasList); | 
 |  |  |         return map; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |