| | |
| | | return serviceSubtaskService.getHeLibraryCount(heLibraryCountVO); |
| | | } |
| | | |
| | | @ApiOperation("获取宣教统计超链接") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/gethelibraryCountHyperlink") |
| | | public AjaxResult gethelibraryCountHyperlink(@RequestBody HeLibraryCountVO heLibraryCountVO) { |
| | | return success(serviceSubtaskService.gethelibraryCountHyperlink(heLibraryCountVO)); |
| | | } |
| | | |
| | | /** |
| | | * 手动发送问卷模板的短信功能 |
| | | * |
| | |
| | | @ApiModelProperty(value = "diagType集合") |
| | | private List<String> diagTypes; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "发送时间") |
| | | private Date visittime; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "完成时间") |
| | | private Date finishtime; |
| | | |
| | | @ApiModelProperty(value = "就诊类型(1门诊 2出院 3.专病 4.外部导入 5急诊、6住院、7体检)") |
| | | private String hospType; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | |
| | | package com.smartor.domain.VO; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @ApiModelProperty(value = "就诊类型(1门诊 2出院 3.专病 4.外部导入 5急诊、6住院、7体检)") |
| | | private String hospType; |
| | | |
| | | @ApiModelProperty(value = "机构ID") |
| | | private String orgid; |
| | | |
| | | @ApiModelProperty("发送状态") |
| | | private String sendstate; |
| | | |
| | | @ApiModelProperty("完成状态(0未完成 1已完成 对应finishtime是否有值)") |
| | | private String isFinished; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | | @ApiModelProperty("pageNum") |
| | | private Integer pageNum; |
| | | |
| | | /** |
| | | * pageSize |
| | | */ |
| | | @ApiModelProperty("pageSize") |
| | | private Integer pageSize; |
| | | |
| | | } |
| | |
| | | List<Map<String, Object>> getHeLibraryCount(HeLibraryCountVO heLibraryCountVO); |
| | | |
| | | /** |
| | | * 宣教统计超链接 |
| | | */ |
| | | List<ServiceSubtask> gethelibraryCountHyperlink(HeLibraryCountVO heLibraryCountVO); |
| | | |
| | | /** |
| | | * 统计问题的选项的百分比 |
| | | * @param taskIds |
| | | * @return |
| | |
| | | |
| | | public Map<String, Object> getHeLibraryCount(@RequestBody HeLibraryCountVO heLibraryCountVO); |
| | | |
| | | public List<ServiceSubtask> gethelibraryCountHyperlink(@RequestBody HeLibraryCountVO heLibraryCountVO); |
| | | |
| | | Map<String, Object> smsSubTask(Long subid); |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ServiceSubtask> gethelibraryCountHyperlink(HeLibraryCountVO heLibraryCountVO){ |
| | | List<ServiceSubtask> serviceSubtasks = serviceSubtaskMapper.gethelibraryCountHyperlink(heLibraryCountVO); |
| | | return serviceSubtasks; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> smsSubTask(Long subid) { |
| | | log.info("smsSubTask的入参为:{}", subid); |
| | | Map<String, Object> resultMap = new HashMap<>(); |
| | |
| | | <if test="longSendTime != null"> |
| | | AND DATE_FORMAT(long_send_time,'%y%m%d') <= DATE_FORMAT(#{longSendTime},'%y%m%d') |
| | | </if> |
| | | // |
| | | <if test="deptOrDistrict == 1"> |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0"> |
| | | AND leavehospitaldistrictcode IN |
| | |
| | | FROM service_subtask |
| | | WHERE del_flag = 0 |
| | | AND service_type = 4 |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="sendstate != null"> |
| | | AND sendstate = #{sendstate} |
| | | </if> |
| | | <if test="isFinished != null and isFinished != '0'"> |
| | | AND finishtime is not null |
| | | </if> |
| | | <if test="starttime != null">AND starttime >= #{starttime}</if> |
| | | <if test="endtime != null">AND endtime <= #{endtime}</if> |
| | | <if test="visittime != null">AND DATE(visit_time) = DATE(#{visittime})</if> |
| | |
| | | </choose> |
| | | </select> |
| | | |
| | | <select id="gethelibraryCountHyperlink" parameterType="com.smartor.domain.ServiceSubtaskCountReq" |
| | | resultMap="ServiceSubtaskResult"> |
| | | select id, |
| | | visit_count, |
| | | is_visit_again, |
| | | type, |
| | | orgid, |
| | | drcode, |
| | | drname, |
| | | leavehospitaldistrictcode, |
| | | leavehospitaldistrictname, |
| | | deptcode, |
| | | deptname, |
| | | sendstate, |
| | | preachform, |
| | | current_preachform, |
| | | excep, |
| | | nurse_id, |
| | | nurse_name, |
| | | taskid, |
| | | task_name, |
| | | visit_time, |
| | | finishtime, |
| | | endtime, |
| | | senddate, |
| | | suggest, |
| | | result, |
| | | templateid, |
| | | templatename, |
| | | patid, |
| | | sendname, |
| | | send_type, |
| | | recordid, |
| | | exrecallcount, |
| | | continue_flag, |
| | | continue_time_now, |
| | | continue_content, |
| | | continue_count, |
| | | continue_time_next, |
| | | task_situation |
| | | from service_subtask |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | AND service_type = 4 |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="sendstate != null and isFinished != '0'"> |
| | | AND sendstate = #{sendstate} |
| | | </if> |
| | | <if test="isFinished != null"> |
| | | AND finishtime is not null |
| | | </if> |
| | | <if test="hospitaldistrictcodes != null and hospitaldistrictcodes.size() > 0"> |
| | | AND leavehospitaldistrictcode IN |
| | | <foreach collection="hospitaldistrictcodes" item="hospitaldistrictcode" open="(" separator="," |
| | | close=")"> |
| | | #{hospitaldistrictcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="deptcodes != null and deptcodes.size() > 0"> |
| | | AND deptcode IN |
| | | <foreach collection="deptcodes" item="deptcode" open="(" separator="," |
| | | close=")"> |
| | | #{deptcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="starttime != null">AND starttime >= #{starttime}</if> |
| | | <if test="endtime != null">AND endtime <= #{endtime}</if> |
| | | <if test="visittime != null">AND DATE(visit_time) = DATE(#{visittime})</if> |
| | | <if test="finishtime != null">AND DATE(finishtime) = DATE(#{finishtime})</if> |
| | | <if test="hospType != null and hospType != ''">AND hosp_type = #{hospType}</if> |
| | | order by endtime desc |
| | | <if test="pageSize != null and pageNum != null"> |
| | | limit ${pageSize} OFFSET ${pageNum} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="statQuestionOption" resultType="com.smartor.domain.ServiceSubtaskDetailRatioExport"> |
| | | SELECT |
| | | d.questiontext AS questiontext, |