| | |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | |
| | | // å建åºå®å¤§å°ççº¿ç¨æ± |
| | | private static final ExecutorService executorService = Executors.newFixedThreadPool(10); |
| | | |
| | | public RedisMqReceiver(RedisMessageListenerContainer listenerContainer) { |
| | | super(listenerContainer); |
| | | } |
| | |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(Long.valueOf(commonTaskcallMQ.getTaskid())); |
| | | |
| | | //å¨é®å·ä¸ï¼éä¸æä¸ªé项è¦è¿è¡æå¡è¡¥å¿æ¶ï¼åªæ¯åç¨è¯¥æå¡çå¤å£³ï¼ä¸å¯¹è¯¥æå¡æä»»å¡å½±å |
| | | if (commonTaskcallMQ.getUpdateSendstate() == null || commonTaskcallMQ.getUpdateSendstate() == 1) { |
| | | serviceTask.setSendState(5L); |
| | | serviceTask.setFail(1L); |
| | | serviceTaskMapper.updateServiceTask(serviceTask); |
| | | } |
| | | // //å¨é®å·ä¸ï¼éä¸æä¸ªé项è¦è¿è¡æå¡è¡¥å¿æ¶ï¼åªæ¯åç¨è¯¥æå¡çå¤å£³ï¼ä¸å¯¹è¯¥æå¡æä»»å¡å½±å |
| | | // if (commonTaskcallMQ.getUpdateSendstate() == null || commonTaskcallMQ.getUpdateSendstate() == 1) { |
| | | // serviceTask.setSendState(5L); |
| | | // serviceTask.setFail(1L); |
| | | // serviceTaskMapper.updateServiceTask(serviceTask); |
| | | // } |
| | | } catch (Exception e) { |
| | | Integer integer = redisCache.getCacheObject(commonTaskcallMQ.getTaskid().toString()); |
| | | if (integer != null && integer == 3) { |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.smartor.domain.VO.PatSatisfactionReqVO; |
| | | import com.smartor.domain.VO.PatSatisfactionResVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patSatisfactionService.deletePatSatisfactionByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * æ£è
满æåº¦ç»è®¡ |
| | | */ |
| | | @ApiOperation("æ£è
满æåº¦ç»è®¡") |
| | | @PostMapping("/statistics") |
| | | public Map<String, Object> statistics(@RequestBody PatSatisfactionReqVO patSatisfactionReqVO) { |
| | | //å端ä¸åå页äºï¼ç±å端å |
| | | PatSatisfactionResVO statistics = patSatisfactionService.statistics(patSatisfactionReqVO); |
| | | return getDataTable3(CollectionUtils.isNotEmpty(statistics.getPatSatisfactionDetailEntities()) ? statistics.getPatSatisfactionDetailEntities().size() : 0, statistics); |
| | | } |
| | | /** |
| | | * æ£è
满æåº¦æ±ç¶å¾ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ£è
满æåº¦æ±ç¶å¾ä¿¡æ¯") |
| | | @PostMapping("/satisfactionGraph") |
| | | public Map<String, Object> satisfactionGraph(@RequestBody PatSatisfactionReqVO patSatisfactionReqVO) { |
| | | Map<String, Object> patSatisfactionGraphResVOS = patSatisfactionService.satisfactionGraph(patSatisfactionReqVO); |
| | | return getDataTable3(0, patSatisfactionGraphResVOS); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | return toAjax(serviceSubtaskAnswerService.saveQuestionCache(serviceSubTaskCacheReq, 1L)); |
| | | } |
| | | |
| | | @ApiOperation("æ£è
é®é¢ç»æä¿å") |
| | | @PostMapping("/savequestiondetail") |
| | | public AjaxResult saveQuestionDetail(@RequestBody ServiceSubTaskCacheReq serviceSubTaskCacheReq) { |
| | | log.info("ãsaveQuestionDetail-----saveQuestionCacheãçprarm1ï¼{},prarm2ï¼{},typeï¼{},prarm6:{}", serviceSubTaskCacheReq.getParam1(), serviceSubTaskCacheReq.getParam2(), serviceSubTaskCacheReq.getType(), serviceSubTaskCacheReq.getParam6()); |
| | | return toAjax(serviceSubtaskAnswerService.saveQuestionDetail(serviceSubTaskCacheReq, 0L)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æ£è
é®é¢ç»æè®°å½(å°ç¨å
å¤é¾)") |
| | | @PostMapping("/saveQuestionAnswerXCH") |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.ServiceSubTaskCacheReq; |
| | | import com.smartor.domain.ServiceSubTaskDetailReq; |
| | | import com.smartor.domain.ServiceSubtask; |
| | | import com.smartor.domain.ServiceSubtaskDetail; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.DTO.DetailTraceDealDTO; |
| | | import com.smartor.domain.ServiceSubtaskDetailTrace; |
| | | import com.smartor.domain.VO.DetailTraceDealVO; |
| | | import com.smartor.domain.VO.SatisfactionExceptConfigQuestionReqVO; |
| | | import com.smartor.service.IServiceSubtaskDetailTraceService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * é访任å¡å¼å¸¸è®°å½è·è¸ªController |
| | | * |
| | | * @author lihu |
| | | * @date 2026-03-24 |
| | | */ |
| | | @Slf4j |
| | | @Api("é访任å¡å¼å¸¸è®°å½è·è¸ª") |
| | | @RestController |
| | | @RequestMapping("/smartor/trace") |
| | | public class ServiceSubtaskDetailTraceController extends BaseController { |
| | | @Autowired |
| | | private IServiceSubtaskDetailTraceService serviceSubtaskDetailTraceService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡å¼å¸¸è®°å½è·è¸ªå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é访任å¡å¼å¸¸è®°å½è·è¸ªå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ltrace:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/list") |
| | | public Map<String, Object> list(@RequestBody ServiceSubtaskDetailTrace serviceSubtaskDetailTrace) { |
| | | Integer offset = PageUtils.getOffset(serviceSubtaskDetailTrace.getPageNum(), serviceSubtaskDetailTrace.getPageSize()); |
| | | serviceSubtaskDetailTrace.setPageNum(offset); |
| | | List<ServiceSubtaskDetailTrace> list = serviceSubtaskDetailTraceService.selectServiceSubtaskDetailTtraceList(serviceSubtaskDetailTrace); |
| | | |
| | | serviceSubtaskDetailTrace.setPageNum(null); |
| | | serviceSubtaskDetailTrace.setPageSize(null); |
| | | List<ServiceSubtaskDetailTrace> total = serviceSubtaskDetailTraceService.selectServiceSubtaskDetailTtraceList(serviceSubtaskDetailTrace); |
| | | |
| | | return getDataTable3(CollectionUtils.isNotEmpty(total) ? total.size() : 0, list); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("å¼å¸¸é®é¢å¤çæ
嵿¥è¯¢") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ltrace:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/tracedeallist") |
| | | public Map<String, Object> tracedeallist(@RequestBody DetailTraceDealVO detailTraceDealVO) { |
| | | Integer offset = PageUtils.getOffset(detailTraceDealVO.getPageNum(), detailTraceDealVO.getPageSize()); |
| | | detailTraceDealVO.setPageNum(offset); |
| | | List<DetailTraceDealDTO> list = serviceSubtaskDetailTraceService.tracedeallist(detailTraceDealVO); |
| | | |
| | | detailTraceDealVO.setPageNum(null); |
| | | detailTraceDealVO.setPageSize(null); |
| | | List<DetailTraceDealDTO> total = serviceSubtaskDetailTraceService.tracedeallist(detailTraceDealVO); |
| | | |
| | | return getDataTable3(CollectionUtils.isNotEmpty(total) ? total.size() : 0, list); |
| | | } |
| | | |
| | | /** |
| | | * è·å满æåº¦å¼å¸¸é
ç½®é¢ç® |
| | | */ |
| | | @ApiOperation("è·å满æåº¦å¼å¸¸é
ç½®é¢ç®") |
| | | @PostMapping("/getSatisfactionExceptConfigQuestion") |
| | | public Map<String, Object> getSatisfactionExceptConfigQuestion(@RequestBody SatisfactionExceptConfigQuestionReqVO questionReqVO) { |
| | | log.info("è·å满æåº¦å¼å¸¸é
ç½®é¢ç®çå
¥å: {}", questionReqVO); |
| | | Map<String, Object> satisfactionExceptConfigQuestion = serviceSubtaskDetailTraceService.getSatisfactionExceptConfigQuestion(questionReqVO); |
| | | return satisfactionExceptConfigQuestion; |
| | | } |
| | | |
| | | /** |
| | | * 导åºé访任å¡å¼å¸¸è®°å½è·è¸ªå表 |
| | | */ |
| | | @ApiOperation("导åºé访任å¡å¼å¸¸è®°å½è·è¸ªå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ltrace:export')") |
| | | @Log(title = "é访任å¡å¼å¸¸è®°å½è·è¸ª", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtaskDetailTrace serviceSubtaskDetailTrace) { |
| | | List<ServiceSubtaskDetailTrace> list = serviceSubtaskDetailTraceService.selectServiceSubtaskDetailTtraceList(serviceSubtaskDetailTrace); |
| | | ExcelUtil<ServiceSubtaskDetailTrace> util = new ExcelUtil<ServiceSubtaskDetailTrace>(ServiceSubtaskDetailTrace.class); |
| | | util.exportExcel(response, list, "é访任å¡å¼å¸¸è®°å½è·è¸ªæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé访任å¡å¼å¸¸è®°å½è·è¸ªè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé访任å¡å¼å¸¸è®°å½è·è¸ªè¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ltrace:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceSubtaskDetailTraceService.selectServiceSubtaskDetailTtraceById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | */ |
| | | @ApiOperation("æ°å¢é访任å¡å¼å¸¸è®°å½è·è¸ª") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ltrace:add')") |
| | | @Log(title = "é访任å¡å¼å¸¸è®°å½è·è¸ª", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceSubtaskDetailTrace serviceSubtaskDetailTrace) { |
| | | return toAjax(serviceSubtaskDetailTraceService.insertServiceSubtaskDetailTtrace(serviceSubtaskDetailTrace)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é访任å¡å¼å¸¸è®°å½è·è¸ª") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ltrace:edit')") |
| | | @Log(title = "é访任å¡å¼å¸¸è®°å½è·è¸ª", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskDetailTrace serviceSubtaskDetailTrace) { |
| | | return toAjax(serviceSubtaskDetailTraceService.updateServiceSubtaskDetailTtrace(serviceSubtaskDetailTrace)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | */ |
| | | @ApiOperation("å é¤é访任å¡å¼å¸¸è®°å½è·è¸ª") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ltrace:remove')") |
| | | @Log(title = "é访任å¡å¼å¸¸è®°å½è·è¸ª", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceSubtaskDetailTraceService.deleteServiceSubtaskDetailTtraceByIds(ids)); |
| | | } |
| | | } |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * é®å·æ¨¡æ¿Controller |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.ServiceSubtaskCountReq; |
| | | import com.smartor.domain.SvyLibTemplateScript; |
| | | import com.smartor.service.ISvyLibTemplateScriptService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 模æ¿é®å·é¢ç®Controller |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytemplatescript") |
| | | public class SvyLibTemplateScriptController extends BaseController |
| | | { |
| | | public class SvyLibTemplateScriptController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibTemplateScriptService svyLibTemplateScriptService; |
| | | |
| | |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç®å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | startPage(); |
| | | @PostMapping("/list") |
| | | public Map<String, Object> list(SvyLibTemplateScript svyLibTemplateScript) { |
| | | Integer offset = PageUtils.getOffset(svyLibTemplateScript.getPageNum(), svyLibTemplateScript.getPageSize()); |
| | | svyLibTemplateScript.setPageNum(offset); |
| | | List<SvyLibTemplateScript> list = svyLibTemplateScriptService.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | return getDataTable(list); |
| | | |
| | | svyLibTemplateScript.setPageNum(null); |
| | | svyLibTemplateScript.setPageSize(null); |
| | | List<SvyLibTemplateScript> count = svyLibTemplateScriptService.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | return getDataTable3(CollectionUtils.isNotEmpty(count) ? Long.valueOf(count.size()) : 0L, list); |
| | | } |
| | | |
| | | /** |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | public void export(HttpServletResponse response, SvyLibTemplateScript svyLibTemplateScript) { |
| | | List<SvyLibTemplateScript> list = svyLibTemplateScriptService.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | ExcelUtil<SvyLibTemplateScript> util = new ExcelUtil<SvyLibTemplateScript>(SvyLibTemplateScript.class); |
| | | util.exportExcel(response, list, "模æ¿é®å·é¢ç®æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{topicid}") |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) { |
| | | return success(svyLibTemplateScriptService.selectSvyLibTemplateScriptByTopicid(topicid)); |
| | | } |
| | | |
| | |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | public AjaxResult add(@RequestBody SvyLibTemplateScript svyLibTemplateScript) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | svyLibTemplateScript.setOrgid(user.getOrgid()); |
| | | return toAjax(svyLibTemplateScriptService.insertSvyLibTemplateScript(svyLibTemplateScript)); |
| | |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateScript svyLibTemplateScript) { |
| | | return toAjax(svyLibTemplateScriptService.updateSvyLibTemplateScript(svyLibTemplateScript)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{topicids}") |
| | | public AjaxResult remove(@PathVariable Long[] topicids) |
| | | { |
| | | @DeleteMapping("/{topicids}") |
| | | public AjaxResult remove(@PathVariable Long[] topicids) { |
| | | return toAjax(svyLibTemplateScriptService.deleteSvyLibTemplateScriptByTopicids(topicids)); |
| | | } |
| | | |
| | |
| | | Application Version: ${ruoyi.version} |
| | | Spring Boot Version: ${spring-boot.version} |
| | | //////////////////////////////////////////////////////////////////// |
| | | // _ooOoo_ // |
| | | // o8888888o // |
| | | // 88" . "88 // |
| | | // (| ^_^ |) // |
| | | // O\ = /O // |
| | | // ____/`---'\____ // |
| | | // .' \\| |// `. // |
| | | // / \\||| : |||// \ // |
| | | // / _||||| -:- |||||- \ // |
| | | // | | \\\ - /// | | // |
| | | // | \_| ''\---/'' | | // |
| | | // \ .-\__ `-` ___/-. / // |
| | | // ___`. .' /--.--\ `. . ___ // |
| | | // ."" '< `.___\_<|>_/___.' >'"". // |
| | | // | | : `- \`.;`\ _ /`;.`/ - ` : | | // |
| | | // \ \ `-. \_ __\ /__ _/ .-` / / // |
| | | // ========`-.____`-.___\_____/___.-`____.-'======== // |
| | | // `=---=' // |
| | | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // |
| | | // ä½ç¥ä¿ä½ æ°¸ä¸å®æº æ°¸æ BUG // |
| | | //////////////////////////////////////////////////////////////////// |
| | | |
| | | âââ âââ âââââââ âââââââ |
| | | âââ âââ ââââââââ ââââââââ |
| | | ââââââââ ââââââââ ââââââ |
| | | ââââââââ ââââââââ ââââââââ |
| | | âââ âââ âââ âââ ââââââââ |
| | | âââ âââ âââ âââ âââââââ |
| | | 亥 å° æ¶ |
| | |
| | | rspData.setTotal(total); |
| | | return rspData; |
| | | } |
| | | protected Map<String,Object> getDataTable3(long total, List<?> list) { |
| | | Map<String,Object> rspData = new TreeMap<>(); |
| | | rspData.put("code",HttpStatus.SUCCESS); |
| | | rspData.put("msg","æ¥è¯¢æå"); |
| | | rspData.put("rows",list); |
| | | rspData.put("total",total); |
| | | |
| | | protected Map<String, Object> getDataTable3(long total, Object object) { |
| | | Map<String, Object> rspData = new TreeMap<>(); |
| | | rspData.put("code", HttpStatus.SUCCESS); |
| | | rspData.put("msg", "æ¥è¯¢æå"); |
| | | rspData.put("rows", object); |
| | | rspData.put("total", total); |
| | | return rspData; |
| | | } |
| | | |
| | |
| | | public String getUsername() { |
| | | return getLoginUser().getUsername(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæºæID |
| | | */ |
| | |
| | | import javax.validation.constraints.Email; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * ç¨æ·å¯¹è±¡ sys_user |
| | |
| | | @ApiModelProperty("ç§å®¤éå") |
| | | private List<Map<String, Object>> belongDepts = new ArrayList(); |
| | | |
| | | /** |
| | | * 满æåº¦åç±» |
| | | */ |
| | | @ApiModelProperty("满æåº¦åç±»ï¼é®å·/è¯é³ï¼") |
| | | private Map<String, Object> satisfactionCategories = new HashMap<>(); |
| | | |
| | | |
| | | public SysUser() { |
| | | |
| | | } |
| | | |
| | | public Map<String, Object> getSatisfactionCategories() { |
| | | return satisfactionCategories; |
| | | } |
| | | |
| | | public void setSatisfactionCategories(Map<String, Object> satisfactionCategories) { |
| | | this.satisfactionCategories = satisfactionCategories; |
| | | } |
| | | |
| | | public List<Map<String, Object>> getBelongWards() { |
| | | return this.belongWards; |
| | | } |
| | |
| | | // è¿æ»¤è¯·æ± |
| | | .authorizeRequests() |
| | | // 对äºç»å½login 注åregister éªè¯ç captchaImage å
许å¿åè®¿é® |
| | | .antMatchers("/login","/test", "/register", "/captchaImage", "/qrcode/generateStaticHtml", "/qrcode/getQRcode", "/qrcode/getFormDate", "/chat", "/system/file/admin/uploadFile", "/smartor/dingtalk/sendNotification", "/patient/read/patientInfo", "/socket", "/API_ESB_Service", "/API_ESB_Service/Run", "/magic/web/**", "/smartor/serviceSubtask/phoneCallBack", "/smartor/serviceSubtask/taskPull", "/smartor/serviceSubtask/phoneCallBackYQ", "/smartor/robot/callstatus", "/smartor/robot/aidialog", "/smartor/robot/cdrinfo", "/getToken", "/smartor/subtaskAnswer/getQuestionCache", "/smartor/subtaskAnswer/saveQuestionCache", "/smartor/servicetask/getScriptInfoByCondition", "/smartor/subtaskAnswer/saveQuestionAnswer", "/smartor/import/download", "/smartor/serviceSubtask/recordAccept", "/smartor/outPath/getInfoByParam", "/smartor/serviceExternal/addDeptInfo", "/smartor/serviceExternal/**", "/sso/**","/smartor/sltdHealthcareRecord/**","/smartor/servicetask/getScriptByCondition","/smartor/subtaskAnswer/saveMYDQuestionAnswer").permitAll() |
| | | .antMatchers("/login","/test/**", "/register", "/captchaImage", "/qrcode/generateStaticHtml", "/qrcode/getQRcode", "/qrcode/getFormDate", "/chat", "/system/file/admin/uploadFile", "/smartor/dingtalk/sendNotification", "/patient/read/patientInfo", "/socket", "/API_ESB_Service", "/API_ESB_Service/Run", "/magic/web/**", "/smartor/serviceSubtask/phoneCallBack", "/smartor/serviceSubtask/taskPull", "/smartor/serviceSubtask/phoneCallBackYQ", "/smartor/robot/callstatus", "/smartor/robot/aidialog", "/smartor/robot/cdrinfo", "/getToken", "/smartor/subtaskAnswer/getQuestionCache", "/smartor/subtaskAnswer/saveQuestionCache", "/smartor/servicetask/getScriptInfoByCondition", "/smartor/subtaskAnswer/saveQuestionAnswer", "/smartor/import/download", "/smartor/serviceSubtask/recordAccept", "/smartor/outPath/getInfoByParam", "/smartor/serviceExternal/addDeptInfo", "/smartor/serviceExternal/**", "/sso/**","/smartor/sltdHealthcareRecord/**","/smartor/servicetask/getScriptByCondition","/smartor/subtaskAnswer/saveMYDQuestionAnswer").permitAll() |
| | | // éæèµæºï¼å¯å¿åè®¿é® |
| | | .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**","/getDept/*","/SSOLogin/**").permitAll().antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |
| | | // .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**","/getDept/*","/SSOLogin/**").permitAll().antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |
| | | .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**","/getDept/*","/SSOLogin/**").permitAll().antMatchers( "/druid/**").permitAll() |
| | | .antMatchers("/smartor/organization/list").permitAll() |
| | | // é¤ä¸é¢å¤çææè¯·æ±å
¨é¨éè¦é´æè®¤è¯ |
| | | .anyRequest().authenticated().and().headers().frameOptions().disable(); |
| | |
| | | |
| | | <select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult"> |
| | | <include refid="selectGenTableVo"/> |
| | | where 1=1 |
| | | where |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | |
| | | serviceSubtaskPreachform.setPreachform(nextPreachform); |
| | | serviceSubtaskPreachformMapper.updateSSPByCondition(serviceSubtaskPreachform); |
| | | } |
| | | |
| | | return nextPreachform; |
| | | } |
| | | |
| | | return null; |
| | | } |
| | | |
| | |
| | | import com.ruoyi.system.mapper.*; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import com.smartor.domain.IvrLibaScriptAssort; |
| | | import com.smartor.domain.SvyLibScriptCategory; |
| | | import com.smartor.domain.SvyTaskVO; |
| | | import com.smartor.domain.SysUserOrg; |
| | | import com.smartor.mapper.IvrLibaScriptAssortMapper; |
| | | import com.smartor.mapper.SvyLibScriptCategoryMapper; |
| | | import com.smartor.mapper.SysUserDeptMapper; |
| | | import com.smartor.mapper.SysUserOrgMapper; |
| | | import org.slf4j.Logger; |
| | |
| | | |
| | | @Autowired |
| | | private SysUserDeptMapper sysUserDeptMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaScriptAssortMapper ivrLibaScriptAssortMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibScriptCategoryMapper svyLibScriptCategoryMapper; |
| | | |
| | | @Autowired |
| | | private SysRoleMapper roleMapper; |
| | |
| | | if (StringUtils.isNotEmpty(sud.getDeptName())) map.put("deptName", sud.getDeptName()); |
| | | list.add(map); |
| | | } |
| | | //è·åå½åæºæçæ»¡æåº¦é®é¢åç±» |
| | | sysUser.setBelongDepts(list); |
| | | Map<String, Object> satisfactionCategories = new HashMap<>(); |
| | | //è·åè¯é³é®é¢åç±» |
| | | IvrLibaScriptAssort ivrLibaScriptAssort = new IvrLibaScriptAssort(); |
| | | ivrLibaScriptAssort.setOrgid(sysUser.getOrgid()); |
| | | ivrLibaScriptAssort.setType("myd"); |
| | | List<IvrLibaScriptAssort> ivrLibaScriptAssorts = ivrLibaScriptAssortMapper.selectIvrLibaScriptAssortList(ivrLibaScriptAssort); |
| | | List<Map<String, Object>> categoryList = new ArrayList<>(); |
| | | if (!CollectionUtils.isEmpty(ivrLibaScriptAssorts)) { |
| | | for (IvrLibaScriptAssort assort : ivrLibaScriptAssorts) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("categoryid", assort.getId()); |
| | | map.put("categoryName", assort.getIndexAssortName()); |
| | | categoryList.add(map); |
| | | } |
| | | } |
| | | satisfactionCategories.put("voiceCategories", categoryList); |
| | | |
| | | //è·åé®å·é®é¢åç±» |
| | | SvyLibScriptCategory svyLibScriptCategory = new SvyLibScriptCategory(); |
| | | svyLibScriptCategory.setOrgid(sysUser.getOrgid()); |
| | | svyLibScriptCategory.setType("myd"); |
| | | List<SvyLibScriptCategory> svyLibScriptCategories = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | List<Map<String, Object>> questionnaireCategorys = new ArrayList<>(); |
| | | if (!CollectionUtils.isEmpty(svyLibScriptCategories)) { |
| | | for (SvyLibScriptCategory scriptCategory : svyLibScriptCategories) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("categoryid", scriptCategory.getId()); |
| | | map.put("categoryName", scriptCategory.getName()); |
| | | questionnaireCategorys.add(map); |
| | | } |
| | | } |
| | | satisfactionCategories.put("questionnaireCategorys", CollectionUtils.isEmpty(questionnaireCategorys) ? null : questionnaireCategorys); |
| | | |
| | | //设置å½åç¨æ·ç声é³é®é¢åç±»åé®å·é®é¢åç±» |
| | | sysUser.setSatisfactionCategories(satisfactionCategories); |
| | | } |
| | | return sysUser; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.common; |
| | | |
| | | /** |
| | | * @author ls |
| | | * @content |
| | | * @date 2026/4/1 |
| | | */ |
| | | public class PinYinUtil { |
| | | /** |
| | | * è·åæ¼é³ |
| | | * @param name |
| | | * @return |
| | | */ |
| | | public static String getpy(String name) { |
| | | if (name == null || name.isEmpty()) return ""; |
| | | StringBuilder sb = new StringBuilder(); |
| | | for (char c : name.toCharArray()) { |
| | | if (c >= '\u4e00' && c <= '\u9fa5') { |
| | | sb.append(getFirstPinyinLetter(c)); |
| | | } else if (Character.isLetter(c)) { |
| | | sb.append(Character.toLowerCase(c)); |
| | | } |
| | | } |
| | | return sb.toString(); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ±å GBK ç¼ç åºé´è¿åå¯¹åºæ¼é³é¦åæ¯ï¼å¸¸ç¨æ±åè¦çç > 99%ï¼ |
| | | */ |
| | | private static char getFirstPinyinLetter(char c) { |
| | | try { |
| | | byte[] bytes = String.valueOf(c).getBytes("GBK"); |
| | | if (bytes.length == 2) { |
| | | int hb = bytes[0] & 0xFF; |
| | | int lb = bytes[1] & 0xFF; |
| | | int gbk = (hb << 8) | lb; |
| | | if (gbk >= 0xB0A1 && gbk <= 0xB0C4) return 'a'; |
| | | if (gbk >= 0xB0C5 && gbk <= 0xB2C0) return 'b'; |
| | | if (gbk >= 0xB2C1 && gbk <= 0xB4ED) return 'c'; |
| | | if (gbk >= 0xB4EE && gbk <= 0xB6E9) return 'd'; |
| | | if (gbk >= 0xB6EA && gbk <= 0xB7A1) return 'e'; |
| | | if (gbk >= 0xB7A2 && gbk <= 0xB8C0) return 'f'; |
| | | if (gbk >= 0xB8C1 && gbk <= 0xB9FD) return 'g'; |
| | | if (gbk >= 0xB9FE && gbk <= 0xBBF6) return 'h'; |
| | | if (gbk >= 0xBBF7 && gbk <= 0xBFA5) return 'j'; |
| | | if (gbk >= 0xBFA6 && gbk <= 0xC0AB) return 'k'; |
| | | if (gbk >= 0xC0AC && gbk <= 0xC2E7) return 'l'; |
| | | if (gbk >= 0xC2E8 && gbk <= 0xC4C2) return 'm'; |
| | | if (gbk >= 0xC4C3 && gbk <= 0xC5B5) return 'n'; |
| | | if (gbk >= 0xC5B6 && gbk <= 0xC5BD) return 'o'; |
| | | if (gbk >= 0xC5BE && gbk <= 0xC6D9) return 'p'; |
| | | if (gbk >= 0xC6DA && gbk <= 0xC8BA) return 'q'; |
| | | if (gbk >= 0xC8BB && gbk <= 0xC8F5) return 'r'; |
| | | if (gbk >= 0xC8F6 && gbk <= 0xCBF0) return 's'; |
| | | if (gbk >= 0xCBFA && gbk <= 0xCDD9) return 't'; |
| | | if (gbk >= 0xCDDA && gbk <= 0xCEF3) return 'w'; |
| | | if (gbk >= 0xCEF4 && gbk <= 0xD188) return 'x'; |
| | | if (gbk >= 0xD1B9 && gbk <= 0xD4D0) return 'y'; |
| | | if (gbk >= 0xD4D1 && gbk <= 0xD7F9) return 'z'; |
| | | } |
| | | } catch (Exception ignored) { |
| | | } |
| | | return c; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.DTO; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 满æåº¦å¼å¸¸å¤çæ
åµè¯·æ±å¯¹è±¡ |
| | | * |
| | | * @author lihu |
| | | * @date 2026-03-24 |
| | | */ |
| | | @Data |
| | | @ApiModel("满æåº¦å¼å¸¸å¤çæ
åµååºå¯¹è±¡") |
| | | public class DetailTraceDealDTO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * é®é¢å
容 |
| | | */ |
| | | @ApiModelProperty("é®é¢å
容") |
| | | @Excel(name = "é®é¢å
容") |
| | | private String questiontext; |
| | | |
| | | /** |
| | | * [{ |
| | | * "deptName": "ç§å®¤åç§°", |
| | | * "deptCode": "ç§å®¤ç¼å·" |
| | | * }, |
| | | * { |
| | | * "deptName": "ç§å®¤åç§°", |
| | | * "deptCode": "ç§å®¤ç¼å·" |
| | | * } |
| | | * ] |
| | | */ |
| | | @ApiModelProperty("è´è´£ç§å®¤") |
| | | @Excel(name = "è´è´£ç§å®¤") |
| | | private List<Map<String, Object>> responsibleDept; |
| | | |
| | | /** |
| | | * { |
| | | * "effectiveFillNum": "ææå¡«å", |
| | | * "exceptionFillNum": "å¼å¸¸å¡«å" |
| | | * } |
| | | */ |
| | | @ApiModelProperty("å¡«åæ
åµ") |
| | | @Excel(name = "å¡«åæ
åµ") |
| | | private Map<String, Object> fillSituation; |
| | | |
| | | |
| | | /** |
| | | * { |
| | | * "yesDeal": "å·²å¤çå¼å¸¸æ°æ®é", |
| | | * "noDeal": "æªå¤çå¼å¸¸æ°æ®é" |
| | | * "all": "æ»å¼å¸¸æ°æ®é" |
| | | * } |
| | | */ |
| | | @ApiModelProperty("å¼å¸¸é®é¢å¤çæ°é") |
| | | @Excel(name = "å¼å¸¸é®é¢å¤çæ°é") |
| | | private Map<String, Object> exceptionQuesNum; |
| | | |
| | | /** |
| | | * å¤ç人 |
| | | */ |
| | | @ApiModelProperty("ææ°å¤ç人") |
| | | @Excel(name = "å¤ç人") |
| | | private String handleBy; |
| | | |
| | | /** |
| | | * å¤çæ¶é´ |
| | | */ |
| | | @ApiModelProperty("ææ°å¤çæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å¤çæ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date handleTime; |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.DTO; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¼å«æç»å¯¹è±¡ ivr_taskcalldetail |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ServiceSubtaskDetailDTO", description = "é®é¢åçæç»") |
| | | public class ServiceSubtaskDetailDTO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "é®é¢ææ¬") |
| | | private String questiontext; |
| | | |
| | | @ApiModelProperty(value = "éè¿æ£åè§£æçå¼") |
| | | private String matchedtext; |
| | | |
| | | @ApiModelProperty(value = "é®é¢id") |
| | | private Long scriptid; |
| | | |
| | | @ApiModelProperty(value = "ææ å¼(该é®é¢çææé项å
容ç¨â&âåå²)") |
| | | private String targetvalue; |
| | | |
| | | @ApiModelProperty(value = "åæ°") |
| | | private String score; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("åºå·") |
| | | @Excel(name = "åºå·") |
| | | private Integer seqno; |
| | | |
| | | /** |
| | | * é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ... |
| | | */ |
| | | @ApiModelProperty("é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...") |
| | | @Excel(name = "é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...") |
| | | private String type; |
| | | |
| | | |
| | | } |
| | |
| | | private String groupid; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | * æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å |
| | | */ |
| | | @ApiModelProperty("æ¯å¦å¼å¸¸æ è¯") |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯") |
| | | @ApiModelProperty("æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "æ¯å¦ç»æ 0ï¼ä¸ç»æ 1ï¼ç»æ") |
| | | private Integer isEnd; |
| | | |
| | | /** |
| | | * é®é¢id |
| | | */ |
| | | @Excel(name = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | @ApiModelProperty(value = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | private Long isException; |
| | | |
| | | } |
| | |
| | | private Long scriptno; |
| | | |
| | | /** |
| | | * ç±»å«ID |
| | | * è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼ |
| | | */ |
| | | @Excel(name = "ç±»å«ID") |
| | | @ApiModelProperty(value = "ç±»å«ID") |
| | | private Long assortid; |
| | | @Excel(name = "è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | @ApiModelProperty(value = "è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | private Long scriptAssortid; |
| | | |
| | | /** |
| | | * è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼ |
| | | */ |
| | | @Excel(name = "è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | @ApiModelProperty(value = "è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | private String scriptAssortname; |
| | | |
| | | /** |
| | | * é项忝æ è¯(0:æ 忝1:æåæ¯) |
| | |
| | | /** |
| | | * é®é¢ç±»å |
| | | */ |
| | | @Excel(name = "é®é¢ç±»å") |
| | | @ApiModelProperty(value = "é®é¢ç±»å") |
| | | @Excel(name = "é®é¢ç±»åï¼1.åé 2å¤é 3填空 4å
¶å®ï¼") |
| | | @ApiModelProperty(value = "é®é¢ç±»åï¼1.åé 2å¤é 3填空 4å
¶å®ï¼") |
| | | private String scriptType; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯è¯é³") |
| | | private String noClearlyVoice; |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @Excel(name = "ç±»å«å") |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | |
| | | |
| | | |
| | | // /** |
| | | // * ææ é项 |
| | |
| | | @ApiModelProperty(value = "ç»å«") |
| | | private String groupName; |
| | | |
| | | @Excel(name = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptName; |
| | | |
| | | @Excel(name = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptCode; |
| | | |
| | | // /** |
| | | // * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼ |
| | | // */ |
| | |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * ç±»å«ID |
| | | * è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼ |
| | | */ |
| | | @Excel(name = "ç±»å«ID") |
| | | @ApiModelProperty(value = "ç±»å«ID") |
| | | private Long assortid; |
| | | @Excel(name = "è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | @ApiModelProperty(value = "è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | private Long scriptAssortid; |
| | | |
| | | |
| | | /** |
| | | * è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼ |
| | | */ |
| | | @Excel(name = "è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | @ApiModelProperty(value = "è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | private String scriptAssortname; |
| | | |
| | | |
| | | // /** |
| | | // * ææ é项 |
| | |
| | | @ApiModelProperty(value = "éç¨åºå¹é
çå¼") |
| | | private String commonValue = ""; |
| | | |
| | | @Excel(name = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptName; |
| | | |
| | | @Excel(name = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptCode; |
| | | |
| | | /** |
| | | * è¯æ¯é项 |
| | | */ |
| | |
| | | private String groupid; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | * æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å |
| | | */ |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | * é项忰 |
| | | */ |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | @Excel(name = "é项忰") |
| | | @ApiModelProperty(value = "é项忰") |
| | | private BigDecimal score; |
| | | |
| | | // /** |
| | |
| | | */ |
| | | @ApiModelProperty(value = "æå¡çåç§°") |
| | | private String sendTaskname; |
| | | |
| | | /** |
| | | * é®é¢id |
| | | */ |
| | | @Excel(name = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | @ApiModelProperty(value = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | private Long isException; |
| | | } |
| | |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯è¯é³") |
| | | private String noClearlyVoice; |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @Excel(name = "ç±»å«å") |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * ç±»å«ID |
| | | * è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼ |
| | | */ |
| | | @Excel(name = "ç±»å«ID") |
| | | @ApiModelProperty(value = "ç±»å«ID") |
| | | private Long assortid; |
| | | @Excel(name = "è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | @ApiModelProperty(value = "è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | private String scriptAssortname; |
| | | |
| | | |
| | | /** |
| | | * è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼ |
| | | */ |
| | | @Excel(name = "è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | @ApiModelProperty(value = "è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | private Long scriptAssortid; |
| | | |
| | | |
| | | |
| | | /** |
| | | * ææ é项 |
| | |
| | | @ApiModelProperty(value = "é项忝çä¸ä¸ä¸ªè¯æ¯ç¼å·") |
| | | private Long nextScriptno; |
| | | |
| | | @Excel(name = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptName; |
| | | |
| | | @Excel(name = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptCode; |
| | | |
| | | /** |
| | | * é®é¢é项 |
| | | */ |
| | |
| | | private String groupName; |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | * è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼ |
| | | */ |
| | | @Excel(name = "ç±»å«å") |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | @Excel(name = "è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | @ApiModelProperty(value = "è¯é³é®é¢ç±»å«åç§°ï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | private String scriptAssortname; |
| | | |
| | | /** |
| | | * ç±»å«ID |
| | | * è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼ |
| | | */ |
| | | @Excel(name = "ç±»å«ID") |
| | | @ApiModelProperty(value = "ç±»å«ID") |
| | | private Long assortid; |
| | | @Excel(name = "è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | @ApiModelProperty(value = "è¯é³é®é¢ç±»å«IDï¼å¯¹åºçæ¯ivr_liba_script_ssortï¼") |
| | | private Long scriptAssortid; |
| | | /** |
| | | * ææ é项 |
| | | */ |
| | |
| | | private Integer sort; |
| | | |
| | | /** |
| | | * å¼å¸¸é¢è¦ï¼0绿è²ï¼1红è²ï¼2é»è² |
| | | * å¼å¸¸é¢è¦ï¼0绿è²ï¼ 1çº¢è² 2é»è²ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼å¸¸é¢è¦ï¼0绿è²ï¼1红è²ï¼2é»è²") |
| | | @ApiModelProperty(value = "å¼å¸¸é¢è¦ï¼0绿è²ï¼ 1çº¢è² 2é»è²ï¼") |
| | | private Long isabnormal; |
| | | |
| | | private List<Integer> sendTaskids; |
| | | |
| | | @Excel(name = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptName; |
| | | |
| | | @Excel(name = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptCode; |
| | | |
| | | /** |
| | | * è¯æ¯é项 |
| | | */ |
| | |
| | | private String groupid; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | * æ¯å¦é¢è¦æ è¯ |
| | | */ |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | |
| | | private Long scriptid; |
| | | |
| | | /** |
| | | * é®é¢id |
| | | */ |
| | | @Excel(name = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | @ApiModelProperty(value = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | private Long isException; |
| | | |
| | | /** |
| | | * æ£åå
³é®å(å«) |
| | | */ |
| | | @Excel(name = "æ£åå
³é®å(å«)") |
| | |
| | | */ |
| | | @Excel(name = "ç§å®¤ç¼ç ") |
| | | @ApiModelProperty("ç§å®¤ç¼ç ") |
| | | private String deptCode; |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * ç§å®¤ |
| | |
| | | @ApiModelProperty(value = "è¯å·ç±»å:1 é访 2 é®å·") |
| | | private Integer type; |
| | | |
| | | |
| | | } |
| | |
| | | * ä»»å¡ç±»å(é¨è¯ï¼ä½é¢ï¼å¤è¯â¦) |
| | | */ |
| | | @Excel(name = "ä»»å¡ç±»åï¼1ï¼æºå¨äººè¯é³ï¼éè®¿ï¼ 2ï¼é®å·ï¼3ï¼éç¥ï¼å®£æï¼") |
| | | @ApiModelProperty(value = "ä»»å¡ç±»åï¼1ï¼æºå¨äººè¯é³ï¼éè®¿ï¼ 2ï¼é®å·ï¼3ï¼å®£æï¼ 4.éç¥)") |
| | | @ApiModelProperty(value = "ä»»å¡ç±»åï¼1ï¼è¯é³ï¼éè®¿ï¼ 2ï¼é®å·ï¼3ï¼å®£æï¼ 4.éç¥)") |
| | | private String type; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "çµè¯å·ç ") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "åæ°") |
| | | private String score; |
| | | |
| | | @ApiModelProperty(value = "æä½äºº ") |
| | | private String operate; |
| | | |
| | |
| | | @ApiModelProperty(value = "åçæ¶é´") |
| | | private Long answertime; |
| | | |
| | | @ApiModelProperty(value = "") |
| | | @ApiModelProperty(value = "æ£è
ä¸ååºï¼æ ååºï¼ï¼1å¦ 2æ¯") |
| | | private Long silent; |
| | | |
| | | @ApiModelProperty(value = "") |
| | |
| | | @ApiModelProperty(value = "模æ¿é®é¢ç¼å·") |
| | | private Long templatequestionnum; |
| | | |
| | | @ApiModelProperty(value = "模æ¿ç±»åï¼1.è¯é³ 2.é®å·") |
| | | private Integer templateType; |
| | | |
| | | @ApiModelProperty(value = "åºç¡æ¨¡æ¿ID") |
| | | private Integer libTemplateid; |
| | | |
| | | @ApiModelProperty(value = "äº¤æ¢æºID") |
| | | private Long switchid; |
| | |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | @ApiModelProperty(value = "é®é¢ç±»å") |
| | | @ApiModelProperty(value = "é®é¢ç±»åï¼1.åé 2å¤é 3é®ç 4填空 5å
¶å®ï¼") |
| | | private String valueType; |
| | | |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * é访任å¡å¼å¸¸è®°å½è·è¸ªå¯¹è±¡ service_subtask_detail_trace |
| | | * |
| | | * @author lihu |
| | | * @date 2026-03-24 |
| | | */ |
| | | @Data |
| | | @ApiModel("é访任å¡å¼å¸¸è®°å½è·è¸ª") |
| | | public class ServiceSubtaskDetailTrace extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty("主é®") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * æç»id |
| | | */ |
| | | @ApiModelProperty("æç»id") |
| | | @Excel(name = "æç»id") |
| | | private Long detailId; |
| | | |
| | | /** |
| | | * åä»»å¡ID |
| | | */ |
| | | @ApiModelProperty("åä»»å¡ID") |
| | | @Excel(name = "åä»»å¡ID") |
| | | private Long subId; |
| | | |
| | | /** |
| | | * ä»»å¡ID |
| | | */ |
| | | @ApiModelProperty("ä»»å¡ID") |
| | | @Excel(name = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 任塿¨¡æ¿ID |
| | | */ |
| | | @ApiModelProperty("任塿¨¡æ¿ID") |
| | | @Excel(name = "任塿¨¡æ¿ID") |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * 任塿¨¡æ¿é®é¢é¢å· |
| | | */ |
| | | @ApiModelProperty("任塿¨¡æ¿é®é¢é¢å·") |
| | | @Excel(name = "任塿¨¡æ¿é®é¢é¢å·") |
| | | private Long templatequestionnum; |
| | | |
| | | /** |
| | | * é®é¢é项id |
| | | */ |
| | | @ApiModelProperty("é®é¢é项id") |
| | | @Excel(name = "é®é¢é项id") |
| | | private Long switchid; |
| | | |
| | | /** |
| | | * é®é¢ææ¬ |
| | | */ |
| | | @ApiModelProperty("é®é¢ææ¬ ") |
| | | @Excel(name = "é®é¢ææ¬ ") |
| | | private String questiontext; |
| | | |
| | | /** |
| | | * é®é¢è¯é³ |
| | | */ |
| | | @ApiModelProperty("é®é¢è¯é³ ") |
| | | @Excel(name = "é®é¢è¯é³ ") |
| | | private String questionvoice; |
| | | |
| | | /** |
| | | * ç±»å« |
| | | */ |
| | | @ApiModelProperty("ç±»å«") |
| | | @Excel(name = "ç±»å«") |
| | | private String categoryname; |
| | | |
| | | // /** ææ é项 */ |
| | | // @ApiModelProperty("ææ é项") |
| | | // @Excel(name = "ææ é项") |
| | | // private String targetoptions; |
| | | |
| | | /** |
| | | * ææ id |
| | | */ |
| | | @ApiModelProperty("ææ id") |
| | | @Excel(name = "ææ id") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * ææ é项å¼ï¼æ£åå¹é
çé项å¼ï¼ |
| | | */ |
| | | @ApiModelProperty("ææ é项å¼ï¼æ£åå¹é
çé项å¼ï¼") |
| | | @Excel(name = "ææ é项å¼", readConverterExp = "æ£=åå¹é
çé项å¼") |
| | | private String targetvalue; |
| | | |
| | | /** |
| | | * éè¿æ£åè§£æçå¼ |
| | | */ |
| | | @ApiModelProperty("éè¿æ£åè§£æçå¼") |
| | | @Excel(name = "éè¿æ£åè§£æçå¼") |
| | | private String matchedtext; |
| | | |
| | | /** |
| | | * æ¨å·uuid |
| | | */ |
| | | @ApiModelProperty("æ¨å·uuid") |
| | | @Excel(name = "æ¨å·uuid") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty("GUID") |
| | | @Excel(name = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * é®é¢ç±»å:è¯é³ãé®å· |
| | | */ |
| | | @ApiModelProperty("é®é¢ç±»å:è¯é³ãé®å·") |
| | | @Excel(name = "é®é¢ç±»å:ï¼1.åé 2å¤é 3é®ç 4填空 5å
¶å®ï¼") |
| | | private String valueType; |
| | | |
| | | /** |
| | | * é®é¢ç±»å:è¯é³ãé®å· |
| | | */ |
| | | @ApiModelProperty("é®é¢ç±»å:è¯é³ãé®å·") |
| | | @Excel(name = "模æ¿ç±»åï¼1.è¯é³ 2.é®å·") |
| | | private Integer templateType; |
| | | |
| | | /** |
| | | * é®é¢ç±»å |
| | | */ |
| | | @ApiModelProperty("é®é¢åç±»ï¼ï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼") |
| | | @Excel(name = "é®é¢åç±»:ï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼") |
| | | private String type; |
| | | |
| | | /** |
| | | * é®é¢ID |
| | | */ |
| | | @ApiModelProperty("é®é¢ID") |
| | | @Excel(name = "é®é¢ID") |
| | | private Long scriptid; |
| | | |
| | | /** |
| | | * éé¡¹çæ¡çéå ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty("éé¡¹çæ¡çéå ä¿¡æ¯") |
| | | @Excel(name = "éé¡¹çæ¡çéå ä¿¡æ¯") |
| | | private String answerps; |
| | | |
| | | /** |
| | | * å¯¹çæ¡çè¯è¯ |
| | | */ |
| | | @ApiModelProperty("å¯¹çæ¡çè¯è¯") |
| | | @Excel(name = "å¯¹çæ¡çè¯è¯") |
| | | private String comment; |
| | | |
| | | /** |
| | | * åçç»æ |
| | | */ |
| | | @ApiModelProperty("åçç»æ") |
| | | @Excel(name = "åçç»æ") |
| | | private String asrtext; |
| | | |
| | | /** |
| | | * å½é³å°å |
| | | */ |
| | | @ApiModelProperty("å½é³å°å") |
| | | @Excel(name = "å½é³å°å") |
| | | private String recordpath; |
| | | |
| | | /** |
| | | * å½é³URL |
| | | */ |
| | | @ApiModelProperty("å½é³URL") |
| | | @Excel(name = "å½é³URL") |
| | | private String recordurl; |
| | | |
| | | /** |
| | | * æ£è
ID |
| | | */ |
| | | @ApiModelProperty("æ£è
ID") |
| | | @Excel(name = "æ£è
ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * å
嫿£è
å§åãæ£è
çµè¯ãå°±è¯ç§å®¤ç |
| | | */ |
| | | @ApiModelProperty("å
嫿£è
å§åãæ£è
çµè¯ãå°±è¯ç§å®¤ç") |
| | | @Excel(name = "å
嫿£è
å§åãæ£è
çµè¯ãå°±è¯ç§å®¤ç") |
| | | private String patdesc; |
| | | |
| | | /** |
| | | * å¤çç§å®¤id |
| | | */ |
| | | @ApiModelProperty("å¤çç§å®¤id") |
| | | @Excel(name = "å¤çç§å®¤id") |
| | | private Long todeptid; |
| | | |
| | | /** |
| | | * å¤çç§å®¤ç¼å· |
| | | */ |
| | | @ApiModelProperty("å¤çç§å®¤ç¼å·") |
| | | @Excel(name = "å¤çç§å®¤ç¼å·") |
| | | private String todeptcode; |
| | | |
| | | /** |
| | | * å¤çç§å®¤åç§° |
| | | */ |
| | | @ApiModelProperty("å¤çç§å®¤åç§°") |
| | | @Excel(name = "å¤çç§å®¤åç§°") |
| | | private String todeptname; |
| | | |
| | | /** |
| | | * å¤çç»æï¼å¤çç§å®¤ï¼ |
| | | */ |
| | | @ApiModelProperty("å¤çç»æï¼å¤çç§å®¤ï¼") |
| | | @Excel(name = "å¤çç»æ", readConverterExp = "å¤=çç§å®¤") |
| | | private String handleresult; |
| | | |
| | | /** |
| | | * å¤ç详ç»è¯´æï¼å¤çç§å®¤ï¼ |
| | | */ |
| | | @ApiModelProperty("å¤ç详ç»è¯´æï¼å¤çç§å®¤ï¼") |
| | | @Excel(name = "å¤ç详ç»è¯´æ", readConverterExp = "å¤=çç§å®¤") |
| | | private String handledesc; |
| | | |
| | | /** |
| | | * å¤çæ è®°ï¼0æªå¤çï¼1å·²å¤ç |
| | | */ |
| | | @ApiModelProperty("å¤çæ è®°ï¼0æªå¤çï¼1å·²å¤ç") |
| | | @Excel(name = "å¤çæ è®°ï¼0æªå¤çï¼1å·²å¤ç") |
| | | private String handleFlag; |
| | | |
| | | /** |
| | | * å¤ç人 |
| | | */ |
| | | @ApiModelProperty("å¤ç人") |
| | | @Excel(name = "å¤ç人") |
| | | private String handleBy; |
| | | |
| | | /** |
| | | * å¤çæ¶é´ |
| | | */ |
| | | @ApiModelProperty("å¤çæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å¤çæ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date handleTime; |
| | | |
| | | /** |
| | | * æéç§å®¤ï¼å¤ä¸ªç§å®¤ |
| | | */ |
| | | @ApiModelProperty("æéç§å®¤ï¼å¤ä¸ªç§å®¤") |
| | | @Excel(name = "æéç§å®¤ï¼å¤ä¸ªç§å®¤") |
| | | private String ccdepts; |
| | | |
| | | /** |
| | | * æç»ï¼è´¨ç®¡é¨é¨ï¼æè§ |
| | | */ |
| | | @ApiModelProperty("æç»ï¼è´¨ç®¡é¨é¨ï¼æè§") |
| | | @Excel(name = "æç»", readConverterExp = "è´¨=管é¨é¨") |
| | | private String finaloption; |
| | | |
| | | /** |
| | | * æç»ï¼è´¨ç®¡é¨é¨ï¼æè§æ¶é´ |
| | | */ |
| | | @ApiModelProperty("æç»ï¼è´¨ç®¡é¨é¨ï¼æè§æ¶é´") |
| | | @Excel(name = "æç»", readConverterExp = "è´¨=管é¨é¨") |
| | | private Date finaltime; |
| | | |
| | | /** |
| | | * æä½äºº |
| | | */ |
| | | @ApiModelProperty("æä½äºº ") |
| | | @Excel(name = "æä½äºº ") |
| | | private String operate; |
| | | |
| | | /** |
| | | * å»é¢æºæID |
| | | */ |
| | | @ApiModelProperty("å»é¢æºæID") |
| | | @Excel(name = "å»é¢æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼") |
| | | @Excel(name = "ä¸ä¼ æ å¿", readConverterExp = "0=ï¼æªä¸ä¼ ,1=ï¼å·²ä¸ä¼ ") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ä¸ä¼ æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | @ApiModelProperty("å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ç¶GUID |
| | | */ |
| | | @ApiModelProperty("ç¶GUID") |
| | | @Excel(name = "ç¶GUID") |
| | | private String pguid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty("ç¶ID") |
| | | @Excel(name = "ç¶ID") |
| | | private Integer pid; |
| | | |
| | | /** |
| | | * ç±»å«ID |
| | | */ |
| | | @ApiModelProperty("ç±»å«ID") |
| | | @Excel(name = "ç±»å«ID") |
| | | private Long categoryid; |
| | | |
| | | } |
| | | |
| | |
| | | @ApiModelProperty(value = "模æ¿é®é¢ç¼å·") |
| | | private Long templatequestionnum; |
| | | |
| | | @ApiModelProperty(value = "åºç¡æ¨¡æ¿ID") |
| | | private Integer libTemplateid; |
| | | |
| | | @ApiModelProperty(value = "模æ¿ç±»åï¼1.è¯é³ 2.é®å·") |
| | | private Integer templateType; |
| | | |
| | | |
| | | @ApiModelProperty(value = "äº¤æ¢æºID") |
| | | private Long switchid; |
| | |
| | | @ApiModelProperty(value = "é®é¢ææ¬") |
| | | private String questiontext; |
| | | |
| | | @ApiModelProperty(value = "åæ°") |
| | | private String score; |
| | | |
| | | @ApiModelProperty(value = "é®é¢è¯é³") |
| | | private String questionvoice; |
| | |
| | | private String valueType; |
| | | |
| | | |
| | | @ApiModelProperty(value = "é®é¢id") |
| | | @ApiModelProperty(value = "é®é¢idï¼å¯¹åºçtaskTemplateScriptçID") |
| | | private Long scriptid; |
| | | |
| | | @ApiModelProperty(value = "éé¡¹çæ¡çéå ä¿¡æ¯") |
| | |
| | | * <p> |
| | | * 人工éè®¿ç¶æï¼1æªæ§è¡ 2å¾
人工确认 3ææ¥æè®¿ 4å·ç é误 5æ§è¡å¤±è´¥ 6䏿§è¡ 7 è¶
æ¶ 9宿 |
| | | * <p> |
| | | * é¢è®¿ç¶æï¼1æªæ§è¡ 9宿 |
| | | * |
| | | */ |
| | | @ApiModelProperty("åéç¶æ") |
| | | private String sendstate; |
| | |
| | | @ApiModelProperty("åºå·") |
| | | private Integer seqno; |
| | | |
| | | /** |
| | | * é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼ |
| | | */ |
| | | @Excel(name = "é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼") |
| | | @ApiModelProperty("é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼") |
| | | private String type; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("é®å·é¢ç®id") |
| | | private Long topicid; |
| | | |
| | | |
| | | /** |
| | | * é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼ |
| | | */ |
| | | @Excel(name = "é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼") |
| | | @ApiModelProperty("é®é¢ç±»åï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼") |
| | | private String type; |
| | | |
| | | /** |
| | | * å对象 |
| | | */ |
| | | @ApiModelProperty("å对象é") |
| | | private List<SvyLibScriptCategory> svyLibScriptCategoryList = new ArrayList<>(); |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | |
| | | @Excel(name = "å»é¢æºæid") |
| | | @ApiModelProperty("å»é¢æºæid") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å对象 |
| | | */ |
| | | @ApiModelProperty("å对象é") |
| | | private List<SvyLibScriptCategory> svyLibScriptCategoryList = new ArrayList<>(); |
| | | |
| | | } |
| | |
| | | private Long detailismandatory; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸é¡¹ç® |
| | | * æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸é¡¹ç®") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "éä»¶ä¿¡æ¯") |
| | | private String appenddesc; |
| | | |
| | | /** |
| | | * å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | private Integer isException; |
| | | |
| | | } |
| | | |
| | |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | |
| | | private String guid; |
| | | |
| | | /** |
| | | * åç±»id |
| | | * 对åºçæ¯svy_lib_script_categoryçä¸»é® |
| | | */ |
| | | @Excel(name = "åç±»id") |
| | | @ApiModelProperty("åç±»id") |
| | | @Excel(name = "对åºçæ¯svy_lib_script_categoryç主é®") |
| | | @ApiModelProperty("对åºçæ¯svy_lib_script_categoryç主é®") |
| | | private Long categoryid; |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @ApiModelProperty(value = "对åºçæ¯svy_lib_script_categoryçç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * é¢ç®å
容 |
| | | */ |
| | |
| | | @ApiModelProperty(value = "ç»å«") |
| | | private String groupName; |
| | | |
| | | @Excel(name = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptName; |
| | | |
| | | @Excel(name = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "åç±»IDéå") |
| | | @ApiModelProperty(value = "åç±»IDéå") |
| | | private List<Long> categoryids; |
| | | } |
| | |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | @Excel(name = "åç±»id") |
| | | @ApiModelProperty("åç±»id") |
| | | @Excel(name = "对åºçæ¯svy_lib_script_categoryçid") |
| | | @ApiModelProperty("对åºçæ¯svy_lib_script_categoryçid") |
| | | private Long categoryid; |
| | | |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @ApiModelProperty(value = "对åºçæ¯svy_lib_script_categoryçç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * é¢ç®å
容 |
| | |
| | | @ApiModelProperty("éé¡¹çæ¡çéå ä¿¡æ¯") |
| | | private String answerps; |
| | | |
| | | @Excel(name = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptName; |
| | | |
| | | @Excel(name = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "åç±»IDéå") |
| | | @ApiModelProperty(value = "åç±»IDéå") |
| | | private List<Long> categoryids; |
| | | } |
| | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | */ |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | private Long isabnormal; |
| | | |
| | | // /** |
| | |
| | | */ |
| | | @ApiModelProperty(value = "æå¡çåç§°") |
| | | private String sendTaskname; |
| | | // |
| | | // /** |
| | | // * å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯ |
| | | // */ |
| | | // @ApiModelProperty(value = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | // private Integer isException; |
| | | } |
| | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | @ApiModelProperty(value = "对åºçæ¯svy_lib_script_categoryçç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * ç±»å«ID |
| | | */ |
| | | @Excel(name = "ç±»å«ID") |
| | | @ApiModelProperty(value = "ç±»å«ID") |
| | | @Excel(name = "对åºçæ¯svy_lib_script_categoryçç±»å«ID") |
| | | @ApiModelProperty(value = "对åºçæ¯svy_lib_script_categoryçç±»å«ID") |
| | | private Long categoryid; |
| | | /** |
| | | * è¯æ¯å
容 |
| | |
| | | @ApiModelProperty(value = "ç»å«") |
| | | private String groupName; |
| | | |
| | | @Excel(name = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptName; |
| | | |
| | | @Excel(name = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptCode; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "éä¸è¯¥é项åï¼éè¦ç»å½åæ£è
ç«å³åéçæå¡çidéå") |
| | | private List<Integer> sendTaskids; |
| | | |
| | | @Excel(name = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptName; |
| | | |
| | | @Excel(name = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "责任ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String dutyDeptCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptCode; |
| | | |
| | | /** |
| | | * è¯æ¯é项 |
| | | */ |
| | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯ï¼0æ£å¸¸ 1å¼å¸¸ 2è¦å") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "æ¯å¦æ¯ç¨æ·éæ©çé项") |
| | | private Boolean isUserOperation = false; |
| | | |
| | | // /** |
| | | // * å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯ |
| | | // */ |
| | | // @ApiModelProperty(value = "å¼å¸¸é项ï¼1å¦ï¼é»è®¤ï¼ 2æ¯") |
| | | // private Integer isException; |
| | | } |
| | |
| | | |
| | | /** ç¨æ·ID */ |
| | | @ApiModelProperty("ç¨æ·ID") |
| | | @Excel(name = "ç¨æ·ID") |
| | | @Excel(name = "ç¨æ·ID") |
| | | private String userId; |
| | | |
| | | /** é¢åºID */ |
| | | @ApiModelProperty("é¢åºID") |
| | | @Excel(name = "é¢åºID") |
| | | @Excel(name = "é¢åºID") |
| | | private String campusid; |
| | | |
| | | /** æºæID */ |
| | | @ApiModelProperty("æºæID") |
| | | @Excel(name = "æºæID") |
| | | @Excel(name = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ */ |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.VO; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 满æåº¦å¼å¸¸å¤çæ
åµè¯·æ±å¯¹è±¡ |
| | | * |
| | | * @author lihu |
| | | * @date 2026-03-24 |
| | | */ |
| | | @Data |
| | | @ApiModel("满æåº¦å¼å¸¸å¤çæ
åµè¯·æ±å¯¹è±¡") |
| | | public class DetailTraceDealVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /** |
| | | * å¤çç§å®¤ç¼å· |
| | | */ |
| | | @ApiModelProperty("å¤çç§å®¤ç¼å·") |
| | | @Excel(name = "å¤çç§å®¤ç¼å·") |
| | | private String todeptcode; |
| | | |
| | | /** |
| | | * å¤çç§å®¤åç§° |
| | | */ |
| | | @ApiModelProperty("å¤çç§å®¤åç§°") |
| | | @Excel(name = "å¤çç§å®¤åç§°") |
| | | private String todeptname; |
| | | |
| | | |
| | | /** |
| | | * 任塿¨¡æ¿ID |
| | | */ |
| | | @ApiModelProperty("任塿¨¡æ¿ID") |
| | | @Excel(name = "任塿¨¡æ¿ID") |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * å¤çæ¶é´ |
| | | */ |
| | | @ApiModelProperty("å¤çå¼å§æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å¤çæ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date handleStartTime; |
| | | /** |
| | | * å¤çæ¶é´ |
| | | */ |
| | | @ApiModelProperty("å¤çç»ææ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å¤çæ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date handleEndTime; |
| | | |
| | | /** |
| | | * é®é¢ç±»å |
| | | */ |
| | | @ApiModelProperty("é®é¢åç±»ï¼ï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼") |
| | | @Excel(name = "é®é¢åç±»:ï¼ä¾å¦,é¨è¯æ»¡æåº¦ï¼mzmyd ä½é¢æ»¡æåº¦ï¼zymyd ...ï¼") |
| | | private String type; |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.VO; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import com.smartor.domain.entity.PatSatisfactionDetailEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * æ£è
满æåº¦ç»è®¡è¯·æ±å
¥å |
| | | * |
| | | * @author ls |
| | | * @date 2026-03-27 |
| | | */ |
| | | |
| | | @ApiModel(value = "PatSatisfactionReqVO", description = "æ£è
满æåº¦ç»è®¡è¯·æ±å
¥å") |
| | | @Data |
| | | public class PatSatisfactionReqVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | // /** |
| | | // * 主é®idéå |
| | | // */ |
| | | // @ApiModelProperty(value = "åºç¡æ¨¡æ¿é®é¢idéå") |
| | | // private List<Long> scriptids; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Integer templateid; |
| | | |
| | | /** |
| | | * scriptidséçé®é¢idåªè½æ¯ä¸ä¸ªç±»åï¼ä¸è½æ¯æ··åç±»å |
| | | * 模æ¿ç±»åï¼1.è¯é³ 2.é®å· |
| | | */ |
| | | @NotNull(message = "模æ¿ç±»åä¸è½ä¸ºç©º") |
| | | @ApiModelProperty(value = "模æ¿ç±»åï¼scriptidséçé®é¢idåªè½æ¯ä¸ä¸ªç±»åï¼ä¸è½æ¯æ··åç±»åï¼ï¼1.è¯é³ 2.é®å·") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * æ¥è¯¢å¼å§æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @NotNull(message = "æ¥è¯¢å¼å§æ¶é´") |
| | | @ApiModelProperty(value = "æ¥è¯¢å¼å§æ¶é´") |
| | | private Date startTime; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»ææ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @NotNull(message = "æ¥è¯¢ç»ææ¶é´") |
| | | @ApiModelProperty(value = "æ¥è¯¢ç»ææ¶é´") |
| | | private Date endTime; |
| | | |
| | | /** |
| | | * é¨é¨éå |
| | | */ |
| | | @NotNull(message = "é¨é¨éå") |
| | | @ApiModelProperty(value = "é¨é¨éå") |
| | | private List<String> deptcodes; |
| | | |
| | | /** |
| | | * é¨é¨éå |
| | | */ |
| | | @NotNull(message = "é®å·ç±»åï¼1è¯é³ 2é®å¸") |
| | | @ApiModelProperty(value = "é®å·ç±»åï¼1è¯é³ 2é®å¸") |
| | | private Integer questionType; |
| | | |
| | | |
| | | /** |
| | | * æ£è
æå¡ç±»åï¼6ãåºé¢æ»¡æåº¦è°æ¥ 14ä½é¢æ»¡æåº¦ 15é¨è¯æ»¡æåº¦ 16å¸¸ç¨æ»¡æåº¦ |
| | | */ |
| | | @ApiModelProperty(value = "æ£è
æå¡ç±»åï¼6ãåºé¢æ»¡æåº¦è°æ¥ 14ä½é¢æ»¡æåº¦ 15é¨è¯æ»¡æåº¦ 16å¸¸ç¨æ»¡æåº¦ (é»è®¤æ¥å
¨é¨)") |
| | | private List<String> serviceTypes = new ArrayList<>(Arrays.asList("6", "14", "15", "16")); |
| | | |
| | | /** |
| | | * ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "ç
åºéå") |
| | | private List<String> hospitaldistrictcodes; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.VO; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import com.smartor.domain.entity.PatSatisfactionDetailEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
满æåº¦ç»è®¡è¿å |
| | | * |
| | | * @author ls |
| | | * @date 2026-03-30 |
| | | */ |
| | | |
| | | @ApiModel(value = "PatSatisfactionReqVO", description = "æ£è
满æåº¦ç»è®¡è¿å") |
| | | @Data |
| | | public class PatSatisfactionResVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主é®idéå |
| | | */ |
| | | @ApiModelProperty(value = "ç颿»äººæ°(å·²ç»åçé®é¢ç)") |
| | | private Integer totalPerson; |
| | | |
| | | /** |
| | | * æ»çé¢ç |
| | | */ |
| | | @ApiModelProperty(value = "æ»çé¢ç") |
| | | private Double totalAnswerRate; |
| | | |
| | | /** |
| | | * ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "é¢ç®æç»ç»è®¡éå") |
| | | private List<PatSatisfactionDetailEntity> patSatisfactionDetailEntities; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.VO; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 满æåº¦å¼å¸¸é
ç½®é¢ç®è¯·æ±ä¿¡æ¯ |
| | | * |
| | | * @author lihu |
| | | * @date 2026-03-31 |
| | | */ |
| | | @Data |
| | | @ApiModel("满æåº¦å¼å¸¸é
ç½®é¢ç®è¯·æ±ä¿¡æ¯") |
| | | public class SatisfactionExceptConfigQuestionReqVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ä»»å¡ç±»å(é¨è¯ï¼ä½é¢ï¼å¤è¯â¦) |
| | | */ |
| | | @Excel(name = "ä»»å¡ç±»åï¼1 è¯é³ 2 é®å·ï¼") |
| | | @ApiModelProperty(value = "ä»»å¡ç±»åï¼1.è¯é³ 2.é®å·") |
| | | private String scriptType; |
| | | |
| | | /** |
| | | * é¢ç®ä¸»é¢ |
| | | */ |
| | | @ApiModelProperty("é¢ç®ä¸»é¢") |
| | | @Excel(name = "é¢ç®ä¸»é¢") |
| | | private String questionTopic; |
| | | |
| | | /** |
| | | * é¢ç®å
容 |
| | | */ |
| | | @ApiModelProperty("é¢ç®å
容") |
| | | @Excel(name = "é¢ç®å
容") |
| | | private String questionContent; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨ |
| | | */ |
| | | @ApiModelProperty("æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨") |
| | | @Excel(name = "æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨") |
| | | private String isavailable; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨ |
| | | */ |
| | | @ApiModelProperty("æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨") |
| | | @Excel(name = "满æåº¦ç±»åï¼ä¾å¦ï¼mzmydã zymydã cymyd ï¼") |
| | | private String type; |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | /** åºé¢æ¥æ */ |
| | | @ApiModelProperty("åºé¢æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "åºé¢æ¥æ", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "åºé¢æ¥æ", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date outHospDate; |
| | | |
| | | /** 计åéè®¿æ¥æ */ |
| | | @ApiModelProperty("计åéè®¿æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "计åéè®¿æ¥æ", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "计åéè®¿æ¥æ", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date planVisitDate; |
| | | |
| | | /** è¯é³åºç¡æ¨¡æ¿IDï¼åè®®çåºå®æ¨¡æ¿æ¾è¿ä¸ªè¡¨éï¼ */ |
| | | @ApiModelProperty("è¯é³åºç¡æ¨¡æ¿IDï¼åè®®çåºå®æ¨¡æ¿æ¾è¿ä¸ªè¡¨éï¼") |
| | | @Excel(name = "è¯é³åºç¡æ¨¡æ¿ID", readConverterExp = "å=è®®çåºå®æ¨¡æ¿æ¾è¿ä¸ªè¡¨é") |
| | | @Excel(name = "è¯é³åºç¡æ¨¡æ¿ID", readConverterExp = "å=è®®çåºå®æ¨¡æ¿æ¾è¿ä¸ªè¡¨é") |
| | | private Long ivrLibaTemplateId; |
| | | |
| | | /** æ£è
ID */ |
| | | @ApiModelProperty("æ£è
ID") |
| | | @Excel(name = "æ£è
ID") |
| | | @Excel(name = "æ£è
ID") |
| | | private Long patid; |
| | | |
| | | /** æ£è
ææºå· */ |
| | | @ApiModelProperty("æ£è
ææºå·") |
| | | @Excel(name = "æ£è
ææºå·") |
| | | @Excel(name = "æ£è
ææºå·") |
| | | private String phone; |
| | | |
| | | /** service_taskä¸»é® */ |
| | | @ApiModelProperty("service_task主é®") |
| | | @Excel(name = "service_task主é®") |
| | | @Excel(name = "service_task主é®") |
| | | private Long taskId; |
| | | |
| | | /** åä»»å¡ID */ |
| | | @ApiModelProperty("åä»»å¡ID") |
| | | @Excel(name = "åä»»å¡ID") |
| | | @Excel(name = "åä»»å¡ID") |
| | | private Long subTaskId; |
| | | |
| | | /** 任塿¨¡æ¿ID */ |
| | | @ApiModelProperty("任塿¨¡æ¿ID") |
| | | @Excel(name = "任塿¨¡æ¿ID") |
| | | @Excel(name = "任塿¨¡æ¿ID") |
| | | private Long taskTemplateId; |
| | | |
| | | /** 0 æªæ§è¡ 1å·²æ§è¡ */ |
| | | @ApiModelProperty("0 æªæ§è¡ 1å·²æ§è¡") |
| | | @Excel(name = "0 æªæ§è¡ 1å·²æ§è¡") |
| | | @Excel(name = "0 æªæ§è¡ 1å·²æ§è¡") |
| | | private Long isExecute; |
| | | |
| | | /** å
¬ä¼å·ID */ |
| | | @ApiModelProperty("å
¬ä¼å·ID") |
| | | @Excel(name = "å
¬ä¼å·ID") |
| | | @Excel(name = "å
¬ä¼å·ID") |
| | | private String openid; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.entity; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æ£è
满æåº¦ç»è¯¦æ
|
| | | * |
| | | * @author ls |
| | | * @date 2026-03-30 |
| | | */ |
| | | |
| | | @ApiModel(value = "PatSatisfactionDetailEntity", description = "æ£è
满æåº¦ç»è¯¦æ
") |
| | | @Data |
| | | public class PatSatisfactionDetailEntity extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * é®é¢å
容 |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢å
容") |
| | | private String scriptContent; |
| | | |
| | | /** |
| | | * çé¢äººæ° |
| | | */ |
| | | @ApiModelProperty(value = "çé¢äººæ°") |
| | | private Integer answerPerson; |
| | | |
| | | /** |
| | | * çé¢äººæ° |
| | | */ |
| | | @ApiModelProperty(value = "æªçé¢äººæ°") |
| | | private Integer noAnswerPerson; |
| | | |
| | | /** |
| | | * å¹³åå |
| | | */ |
| | | @ApiModelProperty(value = "å¹³åå") |
| | | private Double averageScore; |
| | | |
| | | /** |
| | | * æé«å |
| | | */ |
| | | @ApiModelProperty(value = "æé«å") |
| | | private Double maxScore; |
| | | |
| | | /** |
| | | * æä½å |
| | | */ |
| | | @ApiModelProperty(value = "æä½å") |
| | | private Double minScore; |
| | | |
| | | /** |
| | | * çé¢ç |
| | | */ |
| | | @ApiModelProperty(value = "çé¢ç") |
| | | private Double answerRate; |
| | | |
| | | /** |
| | | * åé项ï¼matchedtextï¼æ°éåå æ¯ |
| | | * key=matchedtextï¼value={count: æ°é, ratio: å æ¯} |
| | | */ |
| | | @ApiModelProperty(value = "åé项æ°éåå æ¯") |
| | | private Map<String, Map<String, Object>> matchedtextStats; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.entity; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import com.smartor.domain.TaskSendTimeVO; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æ£è
满æåº¦åé人æ°ç»è®¡ |
| | | * |
| | | * @author ls |
| | | * @date 2026-03-27 |
| | | */ |
| | | |
| | | @ApiModel(value = "ServiceSubtaskSatisfactionEntity", description = "åä¸é访任å¡å
¥å") |
| | | @Data |
| | | public class ServiceSubtaskSatisfactionEntity extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "ä»»å¡ç±»å(1ãè¯é³ï¼2ãé®å·è¡¨ï¼)") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * åºç¡æ¨¡æ¿Ids |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡æ¨¡æ¿Ids") |
| | | private List<Long> libTemplateIds; |
| | | |
| | | /** |
| | | * æ¥è¯¢å¼å§æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @NotNull(message = "æ¥è¯¢å¼å§æ¶é´") |
| | | @ApiModelProperty(value = "æ¥è¯¢å¼å§æ¶é´") |
| | | private Date startTime; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»ææ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @NotNull(message = "æ¥è¯¢ç»ææ¶é´") |
| | | @ApiModelProperty(value = "æ¥è¯¢ç»ææ¶é´") |
| | | private Date endTime; |
| | | |
| | | /** |
| | | * é¨é¨éå |
| | | */ |
| | | @NotNull(message = "é¨é¨éå") |
| | | @ApiModelProperty(value = "é¨é¨éå") |
| | | private List<String> deptcodes; |
| | | |
| | | /** |
| | | * ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "ç
åºéå") |
| | | private List<String> hospitaldistrictcodes; |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.IvrLibaTemplateScript; |
| | | import com.smartor.domain.VO.PatSatisfactionReqVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 模çé®é¢è¯æ¯åºMapperæ¥å£ |
| | |
| | | * @date 2023-12-23 |
| | | */ |
| | | @Mapper |
| | | public interface IvrLibaTemplateScriptMapper |
| | | { |
| | | public interface IvrLibaTemplateScriptMapper { |
| | | /** |
| | | * æ¥è¯¢æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrLibaTemplateScriptByIDs(Long[] IDs); |
| | | |
| | | public List<IvrLibaTemplateScript> queryLibTemplateIds(@Param("scriptAssortids") List<Long> scriptAssortids); |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.DTO.ServiceSubtaskDetailDTO; |
| | | import com.smartor.domain.ServiceSubtaskDetail; |
| | | import com.smartor.domain.ServiceSubtaskDetailTarget; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @date 2023-03-24 |
| | | */ |
| | | @Mapper |
| | | public interface ServiceSubtaskDetailMapper |
| | | { |
| | | public interface ServiceSubtaskDetailMapper { |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | |
| | | * @return è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | public ServiceSubtaskDetail selectServiceSubtaskDetailByCalldetailid(String calldetailid); |
| | | |
| | | public List<ServiceSubtaskDetailDTO> queryFillCount(@Param("subids") List<Long> subids, @Param("questiontext") String questiontext); |
| | | |
| | | public ServiceSubtaskDetailDTO isExistServiceSubtaskDetail(@Param("subid") Long subid, @Param("scriptid") Long scriptid); |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç»å表 |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int updateServiceSubtaskDetail(ServiceSubtaskDetail serviceSubtaskDetail); |
| | | |
| | | public int updateSSDByCondition(ServiceSubtaskDetail serviceSubtaskDetail); |
| | | |
| | | /** |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.VO.DetailTraceDealVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.smartor.domain.ServiceSubtaskDetailTrace; |
| | | |
| | | /** |
| | | * é访任å¡å¼å¸¸è®°å½è·è¸ªMapperæ¥å£ |
| | | * |
| | | * @author lihu |
| | | * @date 2026-03-24 |
| | | */ |
| | | @Mapper |
| | | public interface ServiceSubtaskDetailTraceMapper { |
| | | /** |
| | | * æ¥è¯¢é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param id é访任å¡å¼å¸¸è®°å½è·è¸ªä¸»é® |
| | | * @return é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | */ |
| | | public ServiceSubtaskDetailTrace selectServiceSubtaskDetailTtraceById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡å¼å¸¸è®°å½è·è¸ªå表 |
| | | * |
| | | * @param ServiceSubtaskDetailTtrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return é访任å¡å¼å¸¸è®°å½è·è¸ªéå |
| | | */ |
| | | public List<ServiceSubtaskDetailTrace> selectServiceSubtaskDetailTtraceList(ServiceSubtaskDetailTrace ServiceSubtaskDetailTtrace); |
| | | |
| | | |
| | | public List<ServiceSubtaskDetailTrace> tracedeallist(DetailTraceDealVO detailTraceDealVO); |
| | | |
| | | /** |
| | | * æ°å¢é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param ServiceSubtaskDetailTtrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return ç»æ |
| | | */ |
| | | public int insertServiceSubtaskDetailTtrace(ServiceSubtaskDetailTrace ServiceSubtaskDetailTtrace); |
| | | |
| | | /** |
| | | * ä¿®æ¹é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param ServiceSubtaskDetailTtrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return ç»æ |
| | | */ |
| | | public int updateServiceSubtaskDetailTtrace(ServiceSubtaskDetailTrace ServiceSubtaskDetailTtrace); |
| | | |
| | | /** |
| | | * å é¤é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param id é访任å¡å¼å¸¸è®°å½è·è¸ªä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskDetailTtraceById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskDetailTtraceByIds(Long[] ids); |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.VO.PatSatisfactionReqVO; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.domain.entity.ServiceSubtaskSatisfactionEntity; |
| | | import org.apache.ibatis.annotations.MapKey; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | */ |
| | | public List<ServiceSubtask> selectServiceSubtaskList(ServiceSubtaskEntity serviceSubtaskVO); |
| | | |
| | | public List<ServiceSubtask> selectSatisfactionSubtaskList(PatSatisfactionReqVO serviceSubtaskVO); |
| | | |
| | | /** |
| | | * ç¨äºè¡¥å¿æ¥è¯¢ |
| | | * |
| | | * @param ServiceSubtaskEntity |
| | | * @param serviceSubtaskVO |
| | | * @return |
| | | */ |
| | | public List<ServiceSubtask> getCompensateServiceSubtaskList(ServiceSubtaskEntity serviceSubtaskVO); |
| | |
| | | * |
| | | * @param serviceSubtaskVO æ¥è¯¢æ¡ä»¶ |
| | | * @return Map<String, Object> å
å«åç¶æç»è®¡æ°æ® |
| | | * wzx: æªæ§è¡æ°é |
| | | * ysf: å·²é访æ°é |
| | | * fssb: åé失败æ°é |
| | | * yfs: å·²åéæ°é |
| | | * dsf: å¾
é访æ°é |
| | | * blq: ä¸çç¬æ°é |
| | | * yc: å¼å¸¸æ°é |
| | | * wzx: æªæ§è¡æ°é |
| | | * ysf: å·²é访æ°é |
| | | * fssb: åé失败æ°é |
| | | * yfs: å·²åéæ°é |
| | | * dsf: å¾
é访æ°é |
| | | * blq: ä¸çç¬æ°é |
| | | * yc: å¼å¸¸æ°é |
| | | */ |
| | | public Map<String, Object> countByCondition(ServiceSubtaskEntity serviceSubtaskVO); |
| | | |
| | | /** |
| | | * ç»è®¡ä»»å¡åç§ç¶æçæ°éï¼ä¼åçï¼ |
| | | * |
| | | * @param serviceSubtaskVO æ¥è¯¢æ¡ä»¶ |
| | | * @return Map<String, Object> å
å«åç¶æç»è®¡æ°æ® |
| | | * pendingVisitCount: å½åç»å½äººæªæ¢ä»æ¥å¾
é访æ»é |
| | | * failedVisitCount: å½åç»å½äººé访任å¡å¤±è´¥æ»é |
| | | * abnormalVisitVount: å½åç»å½äººé访任å¡å¼å¸¸æ»é |
| | | * allVisitCount: å½åç»å½äººéè®¿ä»»å¡æ»é |
| | | * pendingVisitCount: å½åç»å½äººæªæ¢ä»æ¥å¾
é访æ»é |
| | | * failedVisitCount: å½åç»å½äººé访任å¡å¤±è´¥æ»é |
| | | * abnormalVisitVount: å½åç»å½äººé访任å¡å¼å¸¸æ»é |
| | | * allVisitCount: å½åç»å½äººéè®¿ä»»å¡æ»é |
| | | */ |
| | | public Map<String, Object> getCurrentUserServiceSubtaskCount(ServiceSubtaskEntity serviceSubtaskVO); |
| | | |
| | | /** |
| | | * è·åé¨è¯éè®¿äººæ° |
| | | * |
| | |
| | | */ |
| | | PatMedRes selectVisitCount(PatMedReq patMedReq); |
| | | |
| | | List<Long> querySendCount(ServiceSubtaskSatisfactionEntity serviceSubtaskSatisfactionEntity); |
| | | |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.IvrLibaTemplateScript; |
| | | import com.smartor.domain.SvyLibTemplateScript; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateScriptByTopicids(Long[] topicids); |
| | | |
| | | |
| | | public List<SvyLibTemplateScript> querySvyLibTemplateIds(@Param("scriptCategoryids") List<Long> scriptCategoryids); |
| | | |
| | | |
| | | } |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.smartor.domain.PatSatisfaction; |
| | | import com.smartor.domain.VO.PatSatisfactionReqVO; |
| | | import com.smartor.domain.VO.PatSatisfactionResVO; |
| | | |
| | | /** |
| | | * æ£è
满æåº¦Serviceæ¥å£ |
| | | * |
| | | * |
| | | * @author lihu |
| | | * @date 2025-06-30 |
| | | */ |
| | | public interface IPatSatisfactionService |
| | | public interface IPatSatisfactionService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ£è
满æåº¦ |
| | | * |
| | | * |
| | | * @param id æ£è
满æåº¦ä¸»é® |
| | | * @return æ£è
满æåº¦ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
满æåº¦å表 |
| | | * |
| | | * |
| | | * @param patSatisfaction æ£è
满æåº¦ |
| | | * @return æ£è
满æåº¦éå |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ°å¢æ£è
满æåº¦ |
| | | * |
| | | * |
| | | * @param patSatisfaction æ£è
满æåº¦ |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
满æåº¦ |
| | | * |
| | | * |
| | | * @param patSatisfaction æ£è
满æåº¦ |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
满æåº¦ |
| | | * |
| | | * |
| | | * @param ids éè¦å é¤çæ£è
满æåº¦ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * å 餿£è
满æåº¦ä¿¡æ¯ |
| | | * |
| | | * |
| | | * @param id æ£è
满æåº¦ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatSatisfactionById(Long id); |
| | | |
| | | /** |
| | | * æ£è
满æåº¦ç»è®¡ |
| | | * |
| | | * @param patSatisfactionReqVO æ£è
满æåº¦ç»è®¡æ¡ä»¶ |
| | | * @return æ£è
满æåº¦ç»è®¡ç»æ |
| | | */ |
| | | public PatSatisfactionResVO statistics( PatSatisfactionReqVO patSatisfactionReqVO); |
| | | |
| | | |
| | | /** |
| | | * æ£è
满æåº¦æ±ç¶å¾ä¿¡æ¯ |
| | | * |
| | | * @param patSatisfactionReqVO æ£è
满æåº¦æ±ç¶å¾ä¿¡æ¯ |
| | | * @return æ£è
满æåº¦æ±ç¶å¾ä¿¡æ¯ |
| | | */ |
| | | public Map<String, Object> satisfactionGraph(PatSatisfactionReqVO patSatisfactionReqVO); |
| | | } |
| | |
| | | */ |
| | | public Integer saveQuestionAnswer(ServiceSubTaskAnswerReq serviceSubTaskAnswerReq,Long flag); |
| | | |
| | | public Integer saveQuestionDetail(ServiceSubTaskCacheReq serviceSubTaskCacheReq,Long flag); |
| | | |
| | | public Boolean saveMYDQuestionAnswer(ServiceSubTaskMYDAnswerReq serviceSubTaskMYDAnswerReq); |
| | | |
| | | /** |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.smartor.domain.DTO.DetailTraceDealDTO; |
| | | import com.smartor.domain.ServiceSubtaskDetailTrace; |
| | | import com.smartor.domain.VO.DetailTraceDealVO; |
| | | import com.smartor.domain.VO.SatisfactionExceptConfigQuestionReqVO; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | /** |
| | | * é访任å¡å¼å¸¸è®°å½è·è¸ªServiceæ¥å£ |
| | | * |
| | | * @author lihu |
| | | * @date 2026-03-24 |
| | | */ |
| | | public interface IServiceSubtaskDetailTraceService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param id é访任å¡å¼å¸¸è®°å½è·è¸ªä¸»é® |
| | | * @return é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | */ |
| | | public ServiceSubtaskDetailTrace selectServiceSubtaskDetailTtraceById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡å¼å¸¸è®°å½è·è¸ªå表 |
| | | * |
| | | * @param serviceSubtaskDetailTtrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return é访任å¡å¼å¸¸è®°å½è·è¸ªéå |
| | | */ |
| | | public List<ServiceSubtaskDetailTrace> selectServiceSubtaskDetailTtraceList(ServiceSubtaskDetailTrace serviceSubtaskDetailTtrace); |
| | | |
| | | /** |
| | | * å¼å¸¸é®é¢å¤çæ
嵿¥è¯¢ |
| | | * @param detailTraceDealVO |
| | | * @return |
| | | */ |
| | | public List<DetailTraceDealDTO> tracedeallist(DetailTraceDealVO detailTraceDealVO); |
| | | |
| | | /** |
| | | * æ°å¢é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param serviceSubtaskDetailTtrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return ç»æ |
| | | */ |
| | | public int insertServiceSubtaskDetailTtrace(ServiceSubtaskDetailTrace serviceSubtaskDetailTtrace); |
| | | |
| | | /** |
| | | * ä¿®æ¹é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param serviceSubtaskDetailTtrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return ç»æ |
| | | */ |
| | | public int updateServiceSubtaskDetailTtrace(ServiceSubtaskDetailTrace serviceSubtaskDetailTtrace); |
| | | |
| | | /** |
| | | * æ¹éå é¤é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param ids éè¦å é¤çé访任å¡å¼å¸¸è®°å½è·è¸ªä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskDetailTtraceByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é访任å¡å¼å¸¸è®°å½è·è¸ªä¿¡æ¯ |
| | | * |
| | | * @param id é访任å¡å¼å¸¸è®°å½è·è¸ªä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskDetailTtraceById(Long id); |
| | | |
| | | /** |
| | | * è·å满æåº¦å¼å¸¸é
ç½®é¢ç® |
| | | * @param questionReqVO |
| | | * @return |
| | | */ |
| | | public Map<String, Object> getSatisfactionExceptConfigQuestion(SatisfactionExceptConfigQuestionReqVO questionReqVO); |
| | | } |
| | |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.common.PinYinUtil; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.IvrLibaScriptAssortMapper; |
| | | import com.smartor.service.IIvrLibaScriptAssortService; |
| | |
| | | } else { |
| | | ivrLibaScriptAssort.setSeqno(seqMax + 1); |
| | | } |
| | | if (ivrLibaScriptAssort.getIndexAssortName() != null && ivrLibaScriptAssort.getIndexAssortName().contains("满æåº¦") && ivrLibaScriptAssort.getPid() != -1) { |
| | | ivrLibaScriptAssort.setType(PinYinUtil.getpy(ivrLibaScriptAssort.getIndexAssortName())); |
| | | } |
| | | i = ivrLibaScriptAssortMapper.insertIvrLibaScriptAssort(ivrLibaScriptAssort); |
| | | log.info("é®é¢è¯æ¯åç±»åºä¸çº§æ ç主é®:{}", ivrLibaScriptAssort.getId()); |
| | | |
| | |
| | | @Override |
| | | public int updateIvrLibaScriptAssort(IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | | ivrLibaScriptAssort.setUpdateTime(DateUtils.getNowDate()); |
| | | if (ivrLibaScriptAssort.getIndexAssortName() != null && ivrLibaScriptAssort.getIndexAssortName().contains("满æåº¦") && ivrLibaScriptAssort.getPid() != -1) { |
| | | ivrLibaScriptAssort.setType(PinYinUtil.getpy(ivrLibaScriptAssort.getIndexAssortName())); |
| | | } |
| | | return ivrLibaScriptAssortMapper.updateIvrLibaScriptAssort(ivrLibaScriptAssort); |
| | | } |
| | | |
| | |
| | | log.info("ivrTaskTemplatesçæ¥è¯¢ç»æä¸º:{},æ°é为 : {}", ivrTaskTemplates.get(0), ivrTaskTemplates.size()); |
| | | //å®ä¹IvrLibaTemplateVO ç¨äºè¿å |
| | | IvrTaskTemplateVO templateVO = DtoConversionUtils.sourceToTarget(ivrTaskTemplates.get(0), IvrTaskTemplateVO.class); |
| | | // |
| | | // //è·åtagä¿¡æ¯ |
| | | // IvrLibaTemplateTag ivrLibaTemplateTag = new IvrLibaTemplateTag(); |
| | | // ivrLibaTemplateTag.setTemplateid(ivrTaskTemplates.get(0).getID()); |
| | | // List<IvrLibaTemplateTag> ivrLibaTemplateTags = ivrLibaTemplateTagMapper.selectIvrLibaTemplateTagList(ivrLibaTemplateTag); |
| | | |
| | | //æ¥è¯¢è¯æ¯ |
| | | IvrTaskTemplateScript ivrTaskTemplateScript = new IvrTaskTemplateScript(); |
| | |
| | | } |
| | | ivrTaskTemplateScriptVO.setIvrTaskScriptTargetoptionList(ivrTaskTemplateTargetoptions); |
| | | } |
| | | Collections.sort(ivrTaskTemplateScriptVOS, Comparator.comparing(IvrTaskTemplateScriptVO::getTargetid)); |
| | | Collections.sort(ivrTaskTemplateScriptVOS, Comparator.comparing(IvrTaskTemplateScriptVO::getSort)); |
| | | //æ°æ®ç»è£
|
| | | // templateVO.setIvrTaskTemplateTagList(ivrLibaTemplateTags); |
| | | templateVO.setIvrTaskTemplateScriptVOList(ivrTaskTemplateScriptVOS); |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import java.util.List; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.ruoyi.common.utils.Arith; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.DTO.ServiceSubtaskDetailDTO; |
| | | import com.smartor.domain.VO.PatSatisfactionReqVO; |
| | | import com.smartor.domain.VO.PatSatisfactionResVO; |
| | | import com.smartor.domain.entity.PatSatisfactionDetailEntity; |
| | | import com.smartor.domain.entity.ServiceSubtaskSatisfactionEntity; |
| | | import com.smartor.mapper.*; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.smartor.mapper.PatSatisfactionMapper; |
| | | import com.smartor.domain.PatSatisfaction; |
| | | import com.smartor.service.IPatSatisfactionService; |
| | | |
| | | /** |
| | |
| | | public class PatSatisfactionServiceImpl implements IPatSatisfactionService { |
| | | @Autowired |
| | | private PatSatisfactionMapper patSatisfactionMapper; |
| | | |
| | | @Autowired |
| | | private ServiceSubtaskMapper serviceSubtaskMapper; |
| | | |
| | | @Autowired |
| | | private ServiceSubtaskDetailMapper serviceSubtaskDetailMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaTemplateScriptMapper ivrLibaTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaScriptAssortMapper ivrLibaScriptAssortMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibScriptCategoryMapper svyLibScriptCategoryMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaTemplateTargetoptionMapper ivrLibaTemplateTargetoptionMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibTemplateTargetoptionMapper svyLibTemplateTargetoptionMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibTemplateScriptMapper svyLibTemplateScriptMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
满æåº¦ |
| | |
| | | public int deletePatSatisfactionById(Long id) { |
| | | return patSatisfactionMapper.deletePatSatisfactionById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ£è
满æåº¦ç»è®¡ |
| | | * |
| | | * @param patSatisfactionReqVO æ£è
满æåº¦ç»è®¡æ¡ä»¶ |
| | | * @return æ£è
满æåº¦ç»è®¡ç»æ |
| | | */ |
| | | @Override |
| | | public PatSatisfactionResVO statistics(PatSatisfactionReqVO patSatisfactionReqVO) { |
| | | //å®ä¹è¿å |
| | | PatSatisfactionResVO result = new PatSatisfactionResVO(); |
| | | //ç颿»äººæ°(å·²ç»åçé®é¢ç) |
| | | int totalPerson = 0; |
| | | // æ»äººæ°ï¼å
嫿ªåççï¼ |
| | | int allPerson = 0; |
| | | //æ£è
满æåº¦ç»è¯¦æ
|
| | | List<PatSatisfactionDetailEntity> patSatisfactionDetailEntities = new ArrayList<>(); |
| | | |
| | | List<ServiceSubtask> serviceSubtasks = serviceSubtaskMapper.selectSatisfactionSubtaskList(patSatisfactionReqVO); |
| | | // ætypeåç»ï¼1-è¯é³ï¼2-é®å· |
| | | Map<String, List<ServiceSubtask>> groupByType = serviceSubtasks.stream().filter(s -> s.getType() != null).collect(Collectors.groupingBy(ServiceSubtask::getType)); |
| | | List<ServiceSubtask> voiceList = groupByType.getOrDefault("1", Collections.emptyList()); |
| | | List<ServiceSubtask> questionnaireList = groupByType.getOrDefault("2", Collections.emptyList()); |
| | | |
| | | if (CollectionUtils.isNotEmpty(voiceList)) { |
| | | //1. å
è·åivr_liba_script_assortçæ»¡æåº¦åç±»ID |
| | | IvrLibaScriptAssort ivrLibaScriptAssort = new IvrLibaScriptAssort(); |
| | | ivrLibaScriptAssort.setOrgid(patSatisfactionReqVO.getOrgid()); |
| | | List<IvrLibaScriptAssort> ivrLibaScriptAssorts = ivrLibaScriptAssortMapper.selectIvrLibaScriptAssortList(ivrLibaScriptAssort); |
| | | |
| | | List<Long> mydIdList = ivrLibaScriptAssorts.stream().filter(item -> item.getType() != null && item.getType().contains("myd")).map(IvrLibaScriptAssort::getId).collect(Collectors.toList()); |
| | | |
| | | //2 åè·å该é®é¢æ»¡æåº¦åç±»ä¸çIvrLibaTemplateScriptçéå |
| | | List<IvrLibaTemplateScript> ivrLibaTemplateScripts = ivrLibaTemplateScriptMapper.queryLibTemplateIds(mydIdList); |
| | | |
| | | //3 åéè¿å个ivr_liba_templateè·åå°ææç满æåº¦é®é¢ å 使ç¨è¯¥æ¨¡æ¿çsubTaskäººæ° |
| | | for (IvrLibaTemplateScript ivrLibaTemplateScript : ivrLibaTemplateScripts) { |
| | | //è®°å½å个æç»ä¿¡æ¯ |
| | | PatSatisfactionDetailEntity patSatisfactionDetailEntity = new PatSatisfactionDetailEntity(); |
| | | |
| | | //éè¿é®é¢IDï¼è·åé®é¢é项(为äºè·åé项ä¸çæé«åæä½å) |
| | | IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption = new IvrLibaTemplateTargetoption(); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScript.getScriptid()); |
| | | List<IvrLibaTemplateTargetoption> ivrLibaTemplateTargetoptions = ivrLibaTemplateTargetoptionMapper.selectIvrLibaTemplateTargetoptionList(ivrLibaTemplateTargetoption); |
| | | |
| | | //è·ålibTemplateId |
| | | List<Long> libTemplateIds = new ArrayList<>(); |
| | | libTemplateIds.add(ivrLibaTemplateScript.getTemplateid()); |
| | | |
| | | // åéè¿æ¨¡æ¿idè·åé®é¢åéæ»é |
| | | ServiceSubtaskSatisfactionEntity serviceSubtaskSatisfactionEntity = DtoConversionUtils.sourceToTarget(patSatisfactionReqVO, ServiceSubtaskSatisfactionEntity.class); |
| | | serviceSubtaskSatisfactionEntity.setLibTemplateIds(libTemplateIds); |
| | | serviceSubtaskSatisfactionEntity.setType(1); |
| | | List<Long> subids = serviceSubtaskMapper.querySendCount(serviceSubtaskSatisfactionEntity); |
| | | |
| | | //è·åå¡«æ¥æ°é |
| | | List<ServiceSubtaskDetailDTO> fillCount = null; |
| | | if (CollectionUtils.isNotEmpty(subids)) |
| | | fillCount = serviceSubtaskDetailMapper.queryFillCount(subids, ivrLibaTemplateScript.getScriptContent()); |
| | | |
| | | // æ ¹æ®matchedtextåç»ï¼ç»è®¡åé项æ°éåå æ¯ |
| | | Map<String, Map<String, Object>> matchedtextStats = new HashMap<>(); |
| | | if (CollectionUtils.isNotEmpty(fillCount)) { |
| | | int totalFill = fillCount.size(); |
| | | fillCount.stream().filter(dto -> dto.getMatchedtext() != null).collect(Collectors.groupingBy(ServiceSubtaskDetailDTO::getMatchedtext, Collectors.counting())).forEach((matchedtext, count) -> { |
| | | Map<String, Object> stat = new HashMap<>(); |
| | | stat.put("count", count); |
| | | stat.put("ratio", new BigDecimal((double) count / totalFill * 100).setScale(1, RoundingMode.HALF_UP).doubleValue()); |
| | | matchedtextStats.put(matchedtext, stat); |
| | | }); |
| | | // ä»fillCountä¸åtargetvalueï¼&åéçå½åé®é¢çææé项ï¼ï¼è¡¥å
¨æªåºç°çé项ï¼countåratioå为0 |
| | | fillCount.stream().filter(dto -> dto.getTargetvalue() != null).findFirst().ifPresent(dto -> { |
| | | for (String option : dto.getTargetvalue().split("&")) { |
| | | String optionTrim = option.trim(); |
| | | if (!matchedtextStats.containsKey(optionTrim)) { |
| | | Map<String, Object> emptyStat = new HashMap<>(); |
| | | emptyStat.put("count", 0L); |
| | | emptyStat.put("ratio", 0.0); |
| | | matchedtextStats.put(optionTrim, emptyStat); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | patSatisfactionDetailEntity.setScriptContent(ivrLibaTemplateScript.getScriptContent()); |
| | | patSatisfactionDetailEntity.setAnswerPerson(CollectionUtils.isEmpty(fillCount) ? 0 : fillCount.size()); |
| | | patSatisfactionDetailEntity.setNoAnswerPerson(CollectionUtils.isNotEmpty(fillCount) && CollectionUtils.isNotEmpty(subids) ? (subids.size() - fillCount.size()) : CollectionUtils.isNotEmpty(subids) ? subids.size() : 0); |
| | | patSatisfactionDetailEntity.setAverageScore(averageScore(fillCount)); |
| | | patSatisfactionDetailEntity.setMaxScore(maxScore(ivrLibaTemplateTargetoptions)); |
| | | patSatisfactionDetailEntity.setMinScore(minScore(ivrLibaTemplateTargetoptions)); |
| | | patSatisfactionDetailEntity.setAnswerRate(CollectionUtils.isEmpty(subids) ? 0 : CollectionUtils.isEmpty(fillCount) ? 0 : fillCount.size() * 1.0 / subids.size()); |
| | | patSatisfactionDetailEntity.setMatchedtextStats(matchedtextStats); |
| | | patSatisfactionDetailEntities.add(patSatisfactionDetailEntity); |
| | | |
| | | totalPerson += CollectionUtils.isEmpty(fillCount) ? 0 : fillCount.size(); |
| | | allPerson += subids.size(); |
| | | } |
| | | } |
| | | |
| | | if (CollectionUtils.isNotEmpty(questionnaireList)) { |
| | | //1. å
è·åsvy_lib_script_categoryçæ»¡æåº¦åç±»ID |
| | | SvyLibScriptCategory svyLibScriptCategory = new SvyLibScriptCategory(); |
| | | svyLibScriptCategory.setOrgid(patSatisfactionReqVO.getOrgid()); |
| | | List<SvyLibScriptCategory> svyLibScriptCategories = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | List<Long> mydIdList = svyLibScriptCategories.stream().filter(item -> item.getType() != null && item.getType().contains("myd")).map(SvyLibScriptCategory::getId).collect(Collectors.toList()); |
| | | |
| | | //2 åè·å该é®é¢æ»¡æåº¦åç±»ä¸çIvrLibaTemplateScriptçéå |
| | | List<SvyLibTemplateScript> svyLibTemplateScripts = svyLibTemplateScriptMapper.querySvyLibTemplateIds(mydIdList); |
| | | |
| | | for (SvyLibTemplateScript svyLibTemplateScript : svyLibTemplateScripts) { |
| | | //è®°å½å个æç»ä¿¡æ¯ |
| | | PatSatisfactionDetailEntity patSatisfactionDetailEntity = new PatSatisfactionDetailEntity(); |
| | | |
| | | //éè¿é®é¢IDï¼è·åé®é¢é项(为äºè·åé项ä¸çæé«åæä½å) |
| | | SvyLibTemplateTargetoption svyLibTemplateTargetoption = new SvyLibTemplateTargetoption(); |
| | | svyLibTemplateTargetoption.setScriptid(svyLibTemplateScript.getId()); |
| | | List<SvyLibTemplateTargetoption> svyLibTemplateTargetoptions = svyLibTemplateTargetoptionMapper.selectSvyLibTemplateTargetoptionList(svyLibTemplateTargetoption); |
| | | |
| | | //è·ålibTemplateId |
| | | List<Long> libTemplateIds = new ArrayList<>(); |
| | | libTemplateIds.add(svyLibTemplateScript.getSvyid()); |
| | | |
| | | // åéè¿æ¨¡æ¿idè·åé®é¢åéæ»é |
| | | ServiceSubtaskSatisfactionEntity serviceSubtaskSatisfactionEntity = DtoConversionUtils.sourceToTarget(patSatisfactionReqVO, ServiceSubtaskSatisfactionEntity.class); |
| | | serviceSubtaskSatisfactionEntity.setLibTemplateIds(libTemplateIds); |
| | | serviceSubtaskSatisfactionEntity.setType(2); |
| | | List<Long> subids = serviceSubtaskMapper.querySendCount(serviceSubtaskSatisfactionEntity); |
| | | |
| | | //è·åå¡«æ¥æ°é |
| | | List<ServiceSubtaskDetailDTO> fillCount = null; |
| | | if (CollectionUtils.isNotEmpty(subids)) |
| | | fillCount = serviceSubtaskDetailMapper.queryFillCount(subids, svyLibTemplateScript.getScriptContent()); |
| | | |
| | | // æ ¹æ®matchedtextåç»ï¼ç»è®¡åé项æ°éåå æ¯ |
| | | Map<String, Map<String, Object>> matchedtextStats = new HashMap<>(); |
| | | if (CollectionUtils.isNotEmpty(fillCount)) { |
| | | int totalFill = fillCount.size(); |
| | | fillCount.stream().filter(dto -> dto.getMatchedtext() != null).collect(Collectors.groupingBy(ServiceSubtaskDetailDTO::getMatchedtext, Collectors.counting())).forEach((matchedtext, count) -> { |
| | | Map<String, Object> stat = new HashMap<>(); |
| | | stat.put("count", count); |
| | | stat.put("ratio", new BigDecimal((double) count / totalFill * 100).setScale(1, RoundingMode.HALF_UP).doubleValue()); |
| | | matchedtextStats.put(matchedtext, stat); |
| | | }); |
| | | // ä»fillCountä¸åtargetvalueï¼&åéçå½åé®é¢çææé项ï¼ï¼è¡¥å
¨æªåºç°çé项ï¼countåratioå为0 |
| | | fillCount.stream().filter(dto -> dto.getTargetvalue() != null).findFirst().ifPresent(dto -> { |
| | | for (String option : dto.getTargetvalue().split("&")) { |
| | | String optionTrim = option.trim(); |
| | | if (!matchedtextStats.containsKey(optionTrim)) { |
| | | Map<String, Object> emptyStat = new HashMap<>(); |
| | | emptyStat.put("count", 0L); |
| | | emptyStat.put("ratio", 0.0); |
| | | matchedtextStats.put(optionTrim, emptyStat); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | patSatisfactionDetailEntity.setScriptContent(svyLibTemplateScript.getScriptContent()); |
| | | patSatisfactionDetailEntity.setAnswerPerson(CollectionUtils.isEmpty(fillCount) ? 0 : fillCount.size()); |
| | | patSatisfactionDetailEntity.setNoAnswerPerson(CollectionUtils.isNotEmpty(fillCount) && CollectionUtils.isNotEmpty(subids) ? (subids.size() - fillCount.size()) : CollectionUtils.isNotEmpty(subids) ? subids.size() : 0); |
| | | patSatisfactionDetailEntity.setAverageScore(averageScore(fillCount)); |
| | | |
| | | OptionalDouble maxOpt = svyLibTemplateTargetoptions.stream().filter(dto -> dto.getScore() != null).mapToDouble(dto -> dto.getScore().doubleValue()).max(); |
| | | patSatisfactionDetailEntity.setMaxScore(maxOpt.isPresent() ? new BigDecimal(maxOpt.getAsDouble()).setScale(1, RoundingMode.HALF_UP).doubleValue() : 0.0); |
| | | |
| | | OptionalDouble minOpt = svyLibTemplateTargetoptions.stream().filter(dto -> dto.getScore() != null).mapToDouble(dto -> dto.getScore().doubleValue()).min(); |
| | | patSatisfactionDetailEntity.setMinScore(minOpt.isPresent() ? new BigDecimal(minOpt.getAsDouble()).setScale(1, RoundingMode.HALF_UP).doubleValue() : 0.0); |
| | | |
| | | patSatisfactionDetailEntity.setAnswerRate(CollectionUtils.isEmpty(subids) ? 0 : CollectionUtils.isEmpty(fillCount) ? 0 : fillCount.size() * 1.0 / subids.size()); |
| | | patSatisfactionDetailEntity.setMatchedtextStats(matchedtextStats); |
| | | patSatisfactionDetailEntities.add(patSatisfactionDetailEntity); |
| | | |
| | | totalPerson += CollectionUtils.isEmpty(fillCount) ? 0 : fillCount.size(); |
| | | allPerson += subids.size(); |
| | | } |
| | | } |
| | | result.setTotalAnswerRate(Arith.div(totalPerson, allPerson)); |
| | | result.setPatSatisfactionDetailEntities(patSatisfactionDetailEntities); |
| | | result.setTotalPerson(totalPerson); |
| | | |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> satisfactionGraph(PatSatisfactionReqVO patSatisfactionReqVO) { |
| | | //ç¨æ¥è®°å½æ±ç¶å¾ä¿¡æ¯ï¼key=满æåº¦åç±»åç§°ï¼value=满æåº¦åç±»ä¸çæ»äººæ°åå¡«æ¥äººæ°ï¼ |
| | | Map<String, Object> zzt = new HashMap<>(); |
| | | |
| | | // è®°å½ä¸ä¸æ¯ç§åç±»çå¡«æ¥æ
åµ |
| | | Map<String, List<ServiceSubtaskDetailDTO>> assortNameFillCountMap = new HashMap<>(); |
| | | |
| | | if (patSatisfactionReqVO.getType() == null || patSatisfactionReqVO.getType() == 1) { |
| | | //1. å
è·åivr_liba_script_assortçæ»¡æåº¦åç±»ID |
| | | IvrLibaScriptAssort ivrLibaScriptAssort = new IvrLibaScriptAssort(); |
| | | ivrLibaScriptAssort.setOrgid(patSatisfactionReqVO.getOrgid()); |
| | | List<IvrLibaScriptAssort> ivrLibaScriptAssorts = ivrLibaScriptAssortMapper.selectIvrLibaScriptAssortList(ivrLibaScriptAssort); |
| | | List<Long> mydIdList = ivrLibaScriptAssorts.stream().filter(item -> item.getType() != null && item.getType().contains("myd")).map(IvrLibaScriptAssort::getId).collect(Collectors.toList()); |
| | | |
| | | //2 åè·å该é®é¢æ»¡æåº¦åç±»ä¸çIvrLibaTemplateScriptçéå |
| | | List<IvrLibaTemplateScript> ivrLibaTemplateScripts = ivrLibaTemplateScriptMapper.queryLibTemplateIds(mydIdList); |
| | | |
| | | |
| | | //3 æscriptAssortnameåç»,å¹¶è·åæ¯ä¸ªéåè¿è¡éåï¼è®¡ç®æ¯ä¸ªåç±»çæ»äººæ°åå¡«æ¥äººæ° |
| | | Map<String, List<IvrLibaTemplateScript>> scriptGroupByAssortName = ivrLibaTemplateScripts.stream().filter(item -> item.getScriptAssortname() != null).collect(Collectors.groupingBy(IvrLibaTemplateScript::getScriptAssortname)); |
| | | if (scriptGroupByAssortName != null && !scriptGroupByAssortName.isEmpty()) { |
| | | for (String assortNameKey : scriptGroupByAssortName.keySet()) { |
| | | //è®°å½æ»äººæ° |
| | | Double subidAll = 0.0; |
| | | //è®°å½æ»çå¡«æ¥äººæ° |
| | | Double fillCountAll = 0.0; |
| | | //è·å该åç±»çå¡«æ¥æ»æ°é |
| | | List<ServiceSubtaskDetailDTO> allFillCountList = new ArrayList<>(); |
| | | |
| | | List<IvrLibaTemplateScript> ivrLibaTemplateScriptList = scriptGroupByAssortName.get(assortNameKey); |
| | | for (IvrLibaTemplateScript ivrLibaTemplateScript : ivrLibaTemplateScriptList) { |
| | | //è·ålibTemplateId |
| | | List<Long> libTemplateIds = new ArrayList<>(); |
| | | libTemplateIds.add(ivrLibaTemplateScript.getTemplateid()); |
| | | // åéè¿æ¨¡æ¿idè·åé®é¢åéæ»é |
| | | ServiceSubtaskSatisfactionEntity serviceSubtaskSatisfactionEntity = DtoConversionUtils.sourceToTarget(patSatisfactionReqVO, ServiceSubtaskSatisfactionEntity.class); |
| | | serviceSubtaskSatisfactionEntity.setLibTemplateIds(libTemplateIds); |
| | | serviceSubtaskSatisfactionEntity.setType(1); |
| | | List<Long> subids = serviceSubtaskMapper.querySendCount(serviceSubtaskSatisfactionEntity); |
| | | |
| | | //è·åå¡«æ¥æ°é |
| | | List<ServiceSubtaskDetailDTO> fillCount = null; |
| | | if (CollectionUtils.isNotEmpty(subids)) { |
| | | fillCount = serviceSubtaskDetailMapper.queryFillCount(subids, ivrLibaTemplateScript.getScriptContent()); |
| | | if (CollectionUtils.isNotEmpty(fillCount)) allFillCountList.addAll(fillCount); |
| | | } |
| | | subidAll += subids.size(); |
| | | fillCountAll += CollectionUtils.isEmpty(fillCount) ? 0 : fillCount.size(); |
| | | } |
| | | |
| | | // è¿éå
è®°å½ä¸ä¸æ¯ä¸ªåç±»çæ»äººæ°åå¡«æ¥äººæ° |
| | | Map<String, Object> personCount = new HashMap<>(); |
| | | personCount.put("fillCountAll", fillCountAll); |
| | | personCount.put("subidAll", subidAll); |
| | | personCount.put("receiveRate", Arith.div(fillCountAll, subidAll)); |
| | | personCount.put("averageScore", averageScore(allFillCountList)); |
| | | zzt.put(assortNameKey, personCount); |
| | | assortNameFillCountMap.put(assortNameKey, allFillCountList); |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (patSatisfactionReqVO.getType() == null || patSatisfactionReqVO.getType() == 2) { |
| | | //1. å
è·åsvy_lib_script_categoryçæ»¡æåº¦åç±»ID |
| | | SvyLibScriptCategory svyLibScriptCategory = new SvyLibScriptCategory(); |
| | | svyLibScriptCategory.setOrgid(patSatisfactionReqVO.getOrgid()); |
| | | List<SvyLibScriptCategory> svyLibScriptCategories = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | List<Long> mydIdList = svyLibScriptCategories.stream().filter(item -> item.getType() != null && item.getType().contains("myd")).map(SvyLibScriptCategory::getId).collect(Collectors.toList()); |
| | | |
| | | //2 åè·å该é®é¢æ»¡æåº¦åç±»ä¸çIvrLibaTemplateScriptçéå |
| | | List<SvyLibTemplateScript> svyLibTemplateScripts = svyLibTemplateScriptMapper.querySvyLibTemplateIds(mydIdList); |
| | | |
| | | //3 æscriptAssortnameåç»,å¹¶è·åæ¯ä¸ªéåè¿è¡éåï¼è®¡ç®æ¯ä¸ªåç±»çæ»äººæ°åå¡«æ¥äººæ° |
| | | Map<String, List<SvyLibTemplateScript>> scriptGroupByatCegoryName = svyLibTemplateScripts.stream().filter(item -> item.getCategoryName() != null).collect(Collectors.groupingBy(SvyLibTemplateScript::getCategoryName)); |
| | | if (scriptGroupByatCegoryName != null && !scriptGroupByatCegoryName.isEmpty()) { |
| | | for (String categoryNameKey : scriptGroupByatCegoryName.keySet()) { |
| | | //è®°å½æ»äººæ° |
| | | Double subidAll = 0.0; |
| | | //è®°å½æ»çå¡«æ¥äººæ° |
| | | Double fillCountAll = 0.0; |
| | | //è·å该åç±»çå¡«æ¥æ»æ°é |
| | | List<ServiceSubtaskDetailDTO> allFillCountList = new ArrayList<>(); |
| | | |
| | | List<SvyLibTemplateScript> svyLibTemplateScriptList = scriptGroupByatCegoryName.get(categoryNameKey); |
| | | for (SvyLibTemplateScript svyLibTemplateScript : svyLibTemplateScriptList) { |
| | | //è·ålibTemplateId |
| | | List<Long> libTemplateIds = new ArrayList<>(); |
| | | libTemplateIds.add(svyLibTemplateScript.getSvyid()); |
| | | // åéè¿æ¨¡æ¿idè·åé®é¢åéæ»é |
| | | ServiceSubtaskSatisfactionEntity serviceSubtaskSatisfactionEntity = DtoConversionUtils.sourceToTarget(patSatisfactionReqVO, ServiceSubtaskSatisfactionEntity.class); |
| | | serviceSubtaskSatisfactionEntity.setLibTemplateIds(libTemplateIds); |
| | | serviceSubtaskSatisfactionEntity.setType(2); |
| | | List<Long> subids = serviceSubtaskMapper.querySendCount(serviceSubtaskSatisfactionEntity); |
| | | |
| | | //è·åå¡«æ¥æ°é |
| | | List<ServiceSubtaskDetailDTO> fillCount = null; |
| | | if (CollectionUtils.isNotEmpty(subids)) { |
| | | fillCount = serviceSubtaskDetailMapper.queryFillCount(subids, svyLibTemplateScript.getScriptContent()); |
| | | if (CollectionUtils.isNotEmpty(fillCount)) allFillCountList.addAll(fillCount); |
| | | } |
| | | subidAll += subids.size(); |
| | | fillCountAll += CollectionUtils.isEmpty(fillCount) ? 0 : fillCount.size(); |
| | | } |
| | | |
| | | |
| | | // è¿éå
è®°å½ä¸ä¸æ¯ä¸ªåç±»çæ»äººæ°åå¡«æ¥äººæ° |
| | | Map<String, Object> personCount = (Map<String, Object>) zzt.get(categoryNameKey); |
| | | if (!Objects.isNull(personCount)) { |
| | | Double fillCountAll2 = (Double) personCount.get("fillCountAll"); |
| | | Double subidAll2 = (Double) personCount.get("subidAll"); |
| | | personCount.put("fillCountAll", fillCountAll2 + fillCountAll); |
| | | personCount.put("subidAll", subidAll2 + subidAll); |
| | | personCount.put("receiveRate", Arith.div((Double) personCount.get("fillCountAll"), (Double) personCount.get("subidAll"))); |
| | | |
| | | //çä¸ä¸ä¹åææ²¡æè¯¥åç±»çå¡«æ¥é |
| | | List<ServiceSubtaskDetailDTO> serviceSubtaskDetailDTOS = assortNameFillCountMap.get(categoryNameKey); |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskDetailDTOS)) |
| | | allFillCountList.addAll(serviceSubtaskDetailDTOS); |
| | | personCount.put("averageScore", averageScore(allFillCountList)); |
| | | } else { |
| | | personCount = new HashMap<>(); |
| | | personCount.put("fillCountAll", fillCountAll); |
| | | personCount.put("subidAll", subidAll); |
| | | personCount.put("receiveRate", Arith.div(fillCountAll, subidAll)); |
| | | personCount.put("averageScore", averageScore(allFillCountList)); |
| | | zzt.put(categoryNameKey, personCount); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return zzt; |
| | | } |
| | | |
| | | /** |
| | | * è·åæé«å |
| | | * |
| | | * @param options |
| | | * @return |
| | | */ |
| | | private Double maxScore(List<IvrLibaTemplateTargetoption> options) { |
| | | if (CollectionUtils.isEmpty(options)) return 0.0; |
| | | OptionalDouble maxOpt = options.stream().filter(dto -> dto.getScore() != null).mapToDouble(dto -> dto.getScore().doubleValue()).max(); |
| | | return maxOpt.isPresent() ? new BigDecimal(maxOpt.getAsDouble()).setScale(1, RoundingMode.HALF_UP).doubleValue() : 0.0; |
| | | } |
| | | |
| | | /** |
| | | * è·åæä½å |
| | | * |
| | | * @param options |
| | | * @return |
| | | */ |
| | | private Double minScore(List<IvrLibaTemplateTargetoption> options) { |
| | | if (CollectionUtils.isEmpty(options)) return 0.0; |
| | | OptionalDouble minOpt = options.stream().filter(dto -> dto.getScore() != null).mapToDouble(dto -> dto.getScore().doubleValue()).min(); |
| | | return minOpt.isPresent() ? new BigDecimal(minOpt.getAsDouble()).setScale(1, RoundingMode.HALF_UP).doubleValue() : 0.0; |
| | | } |
| | | |
| | | /** |
| | | * è·åå¹³åå |
| | | * |
| | | * @param fillCount |
| | | * @return |
| | | */ |
| | | private Double averageScore(List<ServiceSubtaskDetailDTO> fillCount) { |
| | | if (CollectionUtils.isEmpty(fillCount)) return 0.0; |
| | | double sum = fillCount.stream().filter(dto -> dto.getScore() != null && !dto.getScore().isEmpty()).mapToDouble(dto -> Double.parseDouble(dto.getScore())).sum(); |
| | | return new BigDecimal(sum / fillCount.size()).setScale(1, RoundingMode.HALF_UP).doubleValue(); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.utils.RSAPublicKeyExample; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.DTO.ServiceSubtaskDetailDTO; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.mapper.*; |
| | | import com.smartor.service.IServiceSubtaskAnswerService; |
| | | import com.smartor.service.IServiceSubtaskDetailTraceService; |
| | | import com.smartor.service.IServiceTaskService; |
| | | import com.sun.org.apache.bcel.internal.generic.NEW; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.concurrent.TimeUnit; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项Serviceä¸å¡å±å¤ç |
| | |
| | | private ServiceSubtaskDetailMapper serviceSubtaskDetailMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibScriptCategoryMapper svyLibScriptCategoryMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaScriptAssortMapper ivrLibaScriptAssortMapper; |
| | | |
| | | @Autowired |
| | | private IServiceTaskService serviceTaskService; |
| | | |
| | | @Autowired |
| | |
| | | |
| | | @Autowired |
| | | private PatMedOuthospMapper patMedOuthospMapper; |
| | | |
| | | @Autowired |
| | | private IServiceSubtaskDetailTraceService traceService; |
| | | |
| | | @Value("${pri_key}") |
| | | private String pri_key; |
| | |
| | | for (SvyTaskTemplateScriptVO svyTaskTemplateScriptVO : cacheList) { |
| | | if (svyTaskTemplateScriptVO.getSort() == 1L) { |
| | | //è¯´ææ¯ç¬¬ä¸é¢ |
| | | // SvyTaskTemplateScriptVO svyTaskTemplateScriptVO = DtoConversionUtils.sourceToTarget(cacheList.get(0), SvyTaskTemplateScriptVO.class); |
| | | List<SvyTaskTemplateTargetoption> svyTaskTemplateTargetoptions = cacheList.get(0).getSvyTaskTemplateTargetoptions(); |
| | | // List<SvyTaskTemplateTargetoption> svyTaskTemplateTargetoptions = DtoConversionUtils.sourceToTarget(svyTaskTemplateTargetoptions, SvyTaskTemplateTargetoption.class); |
| | | svyTaskTemplateScriptVO.setSvyTaskTemplateTargetoptions(svyTaskTemplateTargetoptions); |
| | | Map<String, String> map = setWJInfo(svyTaskTemplateScriptVO, tid, pid); |
| | | if (map == null) continue aa; |
| | |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | @Override |
| | | public Integer saveQuestionDetail(ServiceSubTaskCacheReq serviceSubTaskCacheReq, Long flag) { |
| | | Long tid = Long.valueOf(serviceSubTaskCacheReq.getParam1()); |
| | | Long pid = Long.valueOf(serviceSubTaskCacheReq.getParam2()); |
| | | Double score = null; |
| | | if (ObjectUtils.isNotEmpty(serviceSubTaskCacheReq)) { |
| | | Long nextScriptno = null; |
| | | String isabnormalFlag = "0"; |
| | | if (serviceSubTaskCacheReq.getType() == 2) { |
| | | List<SvyTaskTemplateScriptVO> cacheList = serviceSubTaskCacheReq.getSvyTaskTemplateScriptVOS(); |
| | | cacheList.sort(Comparator.comparingLong(SvyTaskTemplateScriptVO::getSort)); |
| | | log.info("é®å·åçç»æï¼{}", cacheList); |
| | | for (int i = 0; i < cacheList.size(); i++) { |
| | | if (i == 0) { |
| | | //è¿ä¸ªæ¶é´è¦æ¾å°ç¬¬ä¸é¢ |
| | | for (SvyTaskTemplateScriptVO svyTaskTemplateScriptVO : cacheList) { |
| | | if (svyTaskTemplateScriptVO.getSort() == 1L) { |
| | | //è¯´ææ¯ç¬¬ä¸é¢ |
| | | List<SvyTaskTemplateTargetoption> svyTaskTemplateTargetoptions = cacheList.get(0).getSvyTaskTemplateTargetoptions(); |
| | | svyTaskTemplateScriptVO.setSvyTaskTemplateTargetoptions(svyTaskTemplateTargetoptions); |
| | | Map<String, String> map = setWJInfo(svyTaskTemplateScriptVO, tid, pid); |
| | | if (map == null) continue; |
| | | if (!Objects.isNull(map.get("nextScriptNo"))) |
| | | nextScriptno = Long.valueOf(map.get("nextScriptNo")); |
| | | if (score == null) { |
| | | score = Double.valueOf(map.get("score")); |
| | | } else { |
| | | score = score + Double.valueOf(map.get("score")); |
| | | } |
| | | isabnormalFlag = map.get("isabnormal"); |
| | | } |
| | | } |
| | | |
| | | } else { |
| | | SvyTaskTemplateScriptVO svyTaskTemplateScriptVO = cacheList.get(i); |
| | | log.info("svyTaskTemplateScriptVOçä¿¡æ¯ä¸ºï¼{}ï¼içå¼ä¸ºï¼{}", svyTaskTemplateScriptVO.getScriptno(), i); |
| | | List<SvyTaskTemplateTargetoption> svyTaskTemplateTargetoptions = cacheList.get(i).getSvyTaskTemplateTargetoptions(); |
| | | svyTaskTemplateScriptVO.setSvyTaskTemplateTargetoptions(svyTaskTemplateTargetoptions); |
| | | |
| | | if (svyTaskTemplateScriptVO.getSort() != null && svyTaskTemplateScriptVO.getSort().equals(nextScriptno)) { |
| | | Map<String, String> map = setWJInfo(svyTaskTemplateScriptVO, tid, pid); |
| | | log.error("nextScriptNoçä¿¡æ¯ä¸ºï¼{}", map.get("nextScriptNo")); |
| | | if (!Objects.isNull(map.get("nextScriptNo"))) |
| | | nextScriptno = Long.valueOf(map.get("nextScriptNo")); |
| | | if (score == null) { |
| | | score = Double.valueOf(map.get("score")); |
| | | } else { |
| | | score = score + Double.valueOf(map.get("score")); |
| | | } |
| | | isabnormalFlag = map.get("isabnormal"); |
| | | } |
| | | } |
| | | } |
| | | } else if (serviceSubTaskCacheReq.getType() == 1) { |
| | | List<IvrTaskTemplateScriptVO> cacheList = serviceSubTaskCacheReq.getIvrTaskTemplateScriptVOList(); |
| | | cacheList.sort(Comparator.comparingLong(IvrTaskTemplateScriptVO::getSort)); |
| | | log.error("çµè¯é访é®å·åçç»æï¼{}", cacheList.size()); |
| | | for (int i = 0; i < cacheList.size(); i++) { |
| | | if (i == 0) { |
| | | //è¿ä¸ªæ¶é´è¦æ¾å°ç¬¬ä¸é¢ |
| | | for (IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO : cacheList) { |
| | | if (ivrTaskTemplateScriptVO.getSort() == 1L) { |
| | | //è¯´ææ¯ç¬¬ä¸é¢ |
| | | List<IvrTaskTemplateTargetoption> ivrTaskTemplateTargetoptions = cacheList.get(0).getIvrTaskScriptTargetoptionList(); |
| | | ivrTaskTemplateScriptVO.setIvrTaskScriptTargetoptionList(ivrTaskTemplateTargetoptions); |
| | | //å®ä¿©é½æ¯ivr_task_templatescript_id,æä»¥è¿ééè¦è®¾ç½®ä¸ä¸ |
| | | ivrTaskTemplateScriptVO.setId(ivrTaskTemplateScriptVO.getScriptID()); |
| | | Map<String, String> map = setSFInfo(ivrTaskTemplateScriptVO, tid, pid); |
| | | if (!Objects.isNull(map.get("nextScriptNo"))) |
| | | nextScriptno = Long.valueOf(map.get("nextScriptNo")); |
| | | if (score == null) { |
| | | score = Double.valueOf(map.get("score")); |
| | | } else { |
| | | score = score + Double.valueOf(map.get("score")); |
| | | } |
| | | isabnormalFlag = map.get("isabnormal"); |
| | | } |
| | | } |
| | | |
| | | } else { |
| | | IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO = DtoConversionUtils.sourceToTarget(cacheList.get(i), IvrTaskTemplateScriptVO.class); |
| | | List<IvrTaskTemplateTargetoption> ivrTaskTemplateTargetoptions = DtoConversionUtils.sourceToTarget(cacheList.get(i).getIvrTaskScriptTargetoptionList(), IvrTaskTemplateTargetoption.class); |
| | | ivrTaskTemplateScriptVO.setIvrTaskScriptTargetoptionList(ivrTaskTemplateTargetoptions); |
| | | |
| | | if (ivrTaskTemplateScriptVO.getSort() != null && Long.valueOf(ivrTaskTemplateScriptVO.getSort()).equals(nextScriptno)) { |
| | | Map<String, String> map = setSFInfo(ivrTaskTemplateScriptVO, tid, pid); |
| | | log.error("----nextScriptNo2çä¿¡æ¯ä¸ºï¼{}", map.get("nextScriptNo")); |
| | | if (!Objects.isNull(map.get("nextScriptNo"))) |
| | | nextScriptno = Long.valueOf(map.get("nextScriptNo")); |
| | | if (score == null) { |
| | | score = Double.valueOf(map.get("score")); |
| | | } else { |
| | | score = score + Double.valueOf(map.get("score")); |
| | | } |
| | | isabnormalFlag = map.get("isabnormal"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //æ¥è¯¢åºè¯¥ä»»å¡ä¸æ£å¨æ§è¡çæ£è
ä¿¡æ¯ |
| | | ServiceSubtaskEntity ssVO = new ServiceSubtaskEntity(); |
| | | ssVO.setTaskid(tid); |
| | | ssVO.setPatid(pid); |
| | | List<ServiceSubtask> serviceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(ssVO); |
| | | |
| | | ServiceSubtask serviceSubtask = new ServiceSubtask(); |
| | | serviceSubtask.setTaskid(tid); |
| | | serviceSubtask.setPatid(pid); |
| | | serviceSubtask.setSubmit(1L); |
| | | serviceSubtask.setIsabnormal(Integer.valueOf(isabnormalFlag)); |
| | | serviceSubtask.setSendstate(6L); |
| | | serviceSubtask.setExcep(isabnormalFlag); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtask.setUpdateTime(new Date()); |
| | | if (score != null) serviceSubtask.setScore(BigDecimal.valueOf(score)); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(serviceSubtask); |
| | | |
| | | //å°å½ååéç¶ææ¹æ9宿 |
| | | ServiceSubtaskPreachform serviceSubtaskPreachform = new ServiceSubtaskPreachform(); |
| | | serviceSubtaskPreachform.setPreachform(serviceSubtaskList.get(0).getCurrentPreachform()); |
| | | serviceSubtaskPreachform.setSubid(serviceSubtask.getId()); |
| | | serviceSubtaskPreachform.setTaskid(serviceSubtask.getTaskid()); |
| | | List<ServiceSubtaskPreachform> serviceSubtaskPreachforms = serviceSubtaskPreachformMapper.selectServiceSubtaskPreachformList(serviceSubtaskPreachform); |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskPreachforms)) { |
| | | ServiceSubtaskPreachform ssp = serviceSubtaskPreachforms.get(0); |
| | | ssp.setSendstate("9"); |
| | | serviceSubtaskPreachformMapper.updateServiceSubtaskPreachform(ssp); |
| | | } |
| | | } |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public Boolean saveMYDQuestionAnswer(ServiceSubTaskMYDAnswerReq serviceSubTaskMYDAnswerReq) { |
| | |
| | | } |
| | | serviceSubtaskDetailVO.setAsrtext(StringUtils.isEmpty(svyTaskTemplateScriptVO.getScriptResult()) ? "" : svyTaskTemplateScriptVO.getScriptResult().replaceAll("^\"|\"$", "")); |
| | | serviceSubtaskDetailVO.setMatchedtext(StringUtils.isEmpty(svyTaskTemplateScriptVO.getScriptResult()) ? "" : svyTaskTemplateScriptVO.getScriptResult().replaceAll("^\"|\"$", "")); |
| | | serviceSubtaskDetailVO.setScore(svyTaskTemplateScriptVO.getScore() != null ? svyTaskTemplateScriptVO.getScore().toString() : "0"); |
| | | } else { |
| | | //éåå¤é |
| | | if (StringUtils.isNotEmpty(svyTaskTemplateScriptVO.getScriptResult())) { |
| | |
| | | serviceSubtaskDetailVO.setComment(null); |
| | | serviceSubtaskDetailVO.setCreateTime(new Date()); |
| | | serviceSubtaskDetailVO.setUpdateTime(new Date()); |
| | | serviceSubtaskDetailVO.setTemplateType(2); |
| | | serviceSubtaskDetailVO.setLibTemplateid(CollectionUtils.isNotEmpty(selectServiceSubtaskList) ? selectServiceSubtaskList.get(0).getLibtemplateid().intValue() : null); |
| | | if (ObjectUtils.isNotEmpty(serviceTask)) { |
| | | serviceSubtaskDetailVO.setGuid(serviceTask.getGuid()); |
| | | serviceSubtaskDetailVO.setOrgid(serviceTask.getOrgid()); |
| | |
| | | serviceSubtaskDetailVO.setSubId(CollectionUtils.isNotEmpty(selectServiceSubtaskList) ? selectServiceSubtaskList.get(0).getId() : null); |
| | | serviceSubtaskDetailVO.setTemplatequestionnum(svyTaskTemplateScriptVO.getId()); |
| | | ServiceSubtaskDetail serviceSubtaskDetail = DtoConversionUtils.sourceToTarget(serviceSubtaskDetailVO, ServiceSubtaskDetail.class); |
| | | serviceSubtaskDetailMapper.insertServiceSubtaskDetail(serviceSubtaskDetail); |
| | | |
| | | //å
ç¨subidåscriptidæ¥è¯¢ä¸ä¸æ¯å¦åå¨ï¼å¦æåå¨åæ´æ°ï¼ä¸åå¨åæå
¥ |
| | | ServiceSubtaskDetailDTO existServiceSubtaskDetail = serviceSubtaskDetailMapper.isExistServiceSubtaskDetail(serviceSubtaskDetailVO.getSubId(), serviceSubtaskDetailVO.getScriptid()); |
| | | if (ObjectUtils.isNotEmpty(existServiceSubtaskDetail)) { |
| | | serviceSubtaskDetail.setId(existServiceSubtaskDetail.getId()); |
| | | serviceSubtaskDetail.setUpdateTime(new Date()); |
| | | serviceSubtaskDetailMapper.updateServiceSubtaskDetail(serviceSubtaskDetail); |
| | | } else { |
| | | serviceSubtaskDetailMapper.insertServiceSubtaskDetail(serviceSubtaskDetail); |
| | | } |
| | | |
| | | //è·åä¸ä¸é®é¢é项 |
| | | SvyTaskTemplateTargetoption stt = null; |
| | | Long isabnormalFlag = 0L; |
| | | for (SvyTaskTemplateTargetoption svyTaskTemplateTargetoption : svyTaskTemplateScriptVO.getSvyTaskTemplateTargetoptions()) { |
| | | if (svyTaskTemplateTargetoption.getOptioncontent().trim().equals(svyTaskTemplateScriptVO.getScriptResult())) |
| | | stt = svyTaskTemplateTargetoption; |
| | | } |
| | | |
| | | //夿ä¸ä¸å½åçé®é¢æ¯ä¸æ¯æ»¡æåº¦é®é¢ï¼å¹¶ä¸dutyDeptCodeæ¯å¦æå¼ï¼å¹¶ä¸é项æ¯ä¸æ¯å¼å¸¸é项ï¼å¦æå
¨ç¬¦åï¼å徿»¡æåº¦é®é¢å¼å¸¸è¡¨æ°å¢ |
| | | if (StringUtils.isNotEmpty(svyTaskTemplateScriptVO.getDutyDeptCode()) && 1 == stt.getIsabnormal()) { |
| | | isabnormalFlag = 1L; |
| | | ServiceSubtaskDetailTrace subtaskDetailTrace = new ServiceSubtaskDetailTrace(); |
| | | subtaskDetailTrace.setDetailId(serviceSubtaskDetail.getId()); |
| | | subtaskDetailTrace.setSubId(serviceSubtaskDetailVO.getSubId()); |
| | | subtaskDetailTrace.setTaskid(serviceSubtaskDetailVO.getTaskid()); |
| | | subtaskDetailTrace.setTemplateid(StringUtils.isNotEmpty(serviceSubtaskDetailVO.getTemplateid()) ? Long.valueOf(serviceSubtaskDetailVO.getTemplateid()) : null); |
| | | subtaskDetailTrace.setTemplatequestionnum(svyTaskTemplateScriptVO.getScriptid()); |
| | | subtaskDetailTrace.setSwitchid(stt.getId()); |
| | | subtaskDetailTrace.setQuestiontext(svyTaskTemplateScriptVO.getScriptContent()); |
| | | subtaskDetailTrace.setQuestionvoice(null); |
| | | subtaskDetailTrace.setCategoryname(svyTaskTemplateScriptVO.getCategoryName()); |
| | | subtaskDetailTrace.setCategoryid(svyTaskTemplateScriptVO.getCategoryid()); |
| | | //è·åææé项 |
| | | subtaskDetailTrace.setTargetid(stt.getId()); |
| | | subtaskDetailTrace.setTargetvalue(serviceSubtaskDetailVO.getTargetvalue()); |
| | | subtaskDetailTrace.setMatchedtext(stt.getOptioncontent()); |
| | | subtaskDetailTrace.setGuid(svyTaskTemplateScriptVO.getGuid()); |
| | | subtaskDetailTrace.setValueType(serviceSubtaskDetail.getValueType()); |
| | | subtaskDetailTrace.setTemplateType(2); |
| | | |
| | | SvyLibScriptCategory svyLibScriptCategory = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryById(svyTaskTemplateScriptVO.getCategoryid()); |
| | | subtaskDetailTrace.setType(svyLibScriptCategory != null ? svyLibScriptCategory.getType() : null); |
| | | |
| | | subtaskDetailTrace.setScriptid(svyTaskTemplateScriptVO.getId()); |
| | | subtaskDetailTrace.setAsrtext(stt.getOptioncontent()); |
| | | subtaskDetailTrace.setRecordpath(null); |
| | | subtaskDetailTrace.setPatid(selectServiceSubtaskList.get(0).getPatid()); |
| | | subtaskDetailTrace.setPatdesc(selectServiceSubtaskList.get(0).getSendname() + "," + selectServiceSubtaskList.get(0).getPhone() + "," + selectServiceSubtaskList.get(0).getDeptname()); |
| | | subtaskDetailTrace.setTodeptcode(svyTaskTemplateScriptVO.getDutyDeptCode()); |
| | | subtaskDetailTrace.setTodeptname(svyTaskTemplateScriptVO.getDutyDeptName()); |
| | | subtaskDetailTrace.setOrgid(selectServiceSubtaskList.get(0).getOrgid()); |
| | | subtaskDetailTrace.setHandleFlag("0"); |
| | | subtaskDetailTrace.setCreateTime(new Date()); |
| | | subtaskDetailTrace.setUpdateTime(new Date()); |
| | | subtaskDetailTrace.setOrgid(selectServiceSubtaskList.get(0).getOrgid()); |
| | | traceService.insertServiceSubtaskDetailTtrace(subtaskDetailTrace); |
| | | } else if (ObjectUtils.isNotEmpty(stt) && stt.getIsabnormal() == 1L) { |
| | | //è¿éä¸»è¦æ¯æå»æ¤äººåæå¼å¸¸éé¡¹æ¹æäºéå¼å¸¸çï¼è¿éå°±éè¦æ¥ä¸ä¸è¿æ¡æ°æ®æ¯ä¸æ¯å¨æ»¡æåº¦å¼å¸¸è¡¨ï¼å¦æå¨ï¼åè¦å é¤ |
| | | ServiceSubtaskDetailTrace subtaskDetailTrace = new ServiceSubtaskDetailTrace(); |
| | | subtaskDetailTrace.setSubId(serviceSubtaskDetailVO.getSubId()); |
| | | subtaskDetailTrace.setScriptid(svyTaskTemplateScriptVO.getId()); |
| | | List<ServiceSubtaskDetailTrace> serviceSubtaskDetailTraces = traceService.selectServiceSubtaskDetailTtraceList(subtaskDetailTrace); |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskDetailTraces)) { |
| | | traceService.deleteServiceSubtaskDetailTtraceById(serviceSubtaskDetailTraces.get(0).getId()); |
| | | } |
| | | } |
| | | |
| | | |
| | | //å¦ä½è¿éè¦æå¡è¡¥å¿çæå¡IDä¸ä¸ºç©ºçè¯ï¼åè¿è¡ç«å³åé |
| | | log.error("------svyTaskTemplateScriptVO.getSendTaskids()çå¼ä¸ºï¼{},selectServiceSubtaskListçå¼ä¸ºï¼{}", svyTaskTemplateScriptVO.getSendTaskids(), selectServiceSubtaskList.size()); |
| | |
| | | map.put("nextScriptNo", nextScriptNo); |
| | | map.put("score", score); |
| | | map.put("id", "" + serviceSubtaskDetail.getId()); |
| | | map.put("isabnormal", isabnormalFlag.toString()); |
| | | return map; |
| | | } |
| | | |
| | |
| | | //ä¸é¢è·³è½¬ |
| | | String nextScriptNo = null; |
| | | ServiceSubtaskDetailVO serviceSubtaskDetailVO = new ServiceSubtaskDetailVO(); |
| | | List<ServiceSubtaskOptionAnswer> answerList = new ArrayList<>(); |
| | | String isabnormalFlag = "0"; |
| | | if (ivrTaskTemplateScriptVO.getScriptType().equals("1") || ivrTaskTemplateScriptVO.getScriptType().equals("2")) { |
| | | //1ã2为åéæå¤é |
| | | for (IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption : ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList()) { |
| | |
| | | } |
| | | |
| | | } |
| | | nextScriptNo = ivrTaskTemplateScriptVO.getNextScriptno().toString(); |
| | | nextScriptNo = ivrTaskTemplateScriptVO.getNextScriptno() == null ? null : ivrTaskTemplateScriptVO.getNextScriptno().toString(); |
| | | if (ivrTaskTemplateScriptVO.getScore() != null) { |
| | | score = String.valueOf(ivrTaskTemplateScriptVO.getScore()); |
| | | } |
| | | if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getQuestionResult())) { |
| | | serviceSubtaskDetailVO.setAsrtext(ivrTaskTemplateScriptVO.getQuestionResult().replaceAll("^\"|\"$", "")); |
| | | serviceSubtaskDetailVO.setMatchedtext(ivrTaskTemplateScriptVO.getQuestionResult().replaceAll("^\"|\"$", "")); |
| | | } else { |
| | | //å»çæå¨å¡«æ¥æ¶ï¼å¼æ¯å¨ivrtextä¸ |
| | | serviceSubtaskDetailVO.setAsrtext(ivrTaskTemplateScriptVO.getIvrtext()); |
| | | serviceSubtaskDetailVO.setMatchedtext(ivrTaskTemplateScriptVO.getIvrtext()); |
| | | } |
| | | } else { |
| | | //éåå¤é |
| | | if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getQuestionResult())) { |
| | | serviceSubtaskDetailVO.setAsrtext(ivrTaskTemplateScriptVO.getQuestionResult().replaceAll("^\"|\"$", "")); |
| | | serviceSubtaskDetailVO.setMatchedtext(ivrTaskTemplateScriptVO.getQuestionResult().replaceAll("^\"|\"$", "")); |
| | | nextScriptNo = ivrTaskTemplateScriptVO.getNextScriptno().toString(); |
| | | serviceSubtaskDetailVO.setScore(ivrTaskTemplateScriptVO.getScore() != null ? ivrTaskTemplateScriptVO.getScore().toString() : "0"); |
| | | nextScriptNo = ivrTaskTemplateScriptVO.getNextScriptno() == null ? null : ivrTaskTemplateScriptVO.getNextScriptno().toString(); |
| | | if (ivrTaskTemplateScriptVO.getScore() != null) { |
| | | score = String.valueOf(ivrTaskTemplateScriptVO.getScore()); |
| | | } |
| | |
| | | serviceSubtaskDetailVO.setQuestiontext(ivrTaskTemplateScriptVO.getScriptContent()); |
| | | serviceSubtaskDetailVO.setTaskid(Long.valueOf(taskid)); |
| | | serviceSubtaskDetailVO.setPatid(Long.valueOf(patid)); |
| | | serviceSubtaskDetailVO.setScriptid(ivrTaskTemplateScriptVO.getScriptID()); |
| | | serviceSubtaskDetailVO.setScriptid(ivrTaskTemplateScriptVO.getScriptID() == null ? ivrTaskTemplateScriptVO.getId() : ivrTaskTemplateScriptVO.getScriptID()); |
| | | serviceSubtaskDetailVO.setTemplatequestionnum(ivrTaskTemplateScriptVO.getId()); |
| | | serviceSubtaskDetailVO.setValueType(ivrTaskTemplateScriptVO.getScriptType()); |
| | | serviceSubtaskDetailVO.setComment(null); |
| | |
| | | serviceSubtaskDetailVO.setUpdateTime(new Date()); |
| | | serviceSubtaskDetailVO.setSubId(selectServiceSubtaskList.get(0).getId()); |
| | | serviceSubtaskDetailVO.setTemplatequestionnum(ivrTaskTemplateScriptVO.getId()); |
| | | serviceSubtaskDetailVO.setTemplateType(1); |
| | | serviceSubtaskDetailVO.setTemplateid(ivrTaskTemplateScriptVO.getTemplateID() == null ? null : ivrTaskTemplateScriptVO.getTemplateID().toString()); |
| | | serviceSubtaskDetailVO.setLibTemplateid(selectServiceSubtaskList.get(0).getLibtemplateid() != null ? selectServiceSubtaskList.get(0).getLibtemplateid().intValue() : null); |
| | | ServiceSubtaskDetail serviceSubtaskDetail = DtoConversionUtils.sourceToTarget(serviceSubtaskDetailVO, ServiceSubtaskDetail.class); |
| | | serviceSubtaskDetailMapper.insertServiceSubtaskDetail(serviceSubtaskDetail); |
| | | //å
ç¨subidåscriptidæ¥è¯¢ä¸ä¸æ¯å¦åå¨ï¼å¦æåå¨åæ´æ°ï¼ä¸åå¨åæå
¥ |
| | | ServiceSubtaskDetailDTO existServiceSubtaskDetail = serviceSubtaskDetailMapper.isExistServiceSubtaskDetail(serviceSubtaskDetailVO.getSubId(), serviceSubtaskDetailVO.getScriptid()); |
| | | if (ObjectUtils.isNotEmpty(existServiceSubtaskDetail)) { |
| | | serviceSubtaskDetail.setId(existServiceSubtaskDetail.getId()); |
| | | serviceSubtaskDetail.setUpdateTime(new Date()); |
| | | serviceSubtaskDetailMapper.updateServiceSubtaskDetail(serviceSubtaskDetail); |
| | | } else { |
| | | serviceSubtaskDetailMapper.insertServiceSubtaskDetail(serviceSubtaskDetail); |
| | | } |
| | | IvrTaskTemplateTargetoption stt = null; |
| | | for (IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption : ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList()) { |
| | | if (ivrTaskTemplateTargetoption.getTargetvalue().trim().equals(ivrTaskTemplateScriptVO.getIvrtext())) |
| | | stt = ivrTaskTemplateTargetoption; |
| | | } |
| | | |
| | | |
| | | //夿ä¸ä¸å½åçé®é¢æ¯ä¸æ¯æ»¡æåº¦é®é¢ï¼å¹¶ä¸dutyDeptCodeæ¯å¦æå¼ï¼å¹¶ä¸é项æ¯ä¸æ¯å¼å¸¸é项ï¼å¦æå
¨ç¬¦åï¼å徿»¡æåº¦é®é¢å¼å¸¸è¡¨æ°å¢ |
| | | if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getDutyDeptCode()) && 1 == stt.getIsabnormal()) { |
| | | isabnormalFlag = "1"; |
| | | ServiceSubtaskDetailTrace subtaskDetailTrace = new ServiceSubtaskDetailTrace(); |
| | | subtaskDetailTrace.setDetailId(serviceSubtaskDetail.getId()); |
| | | subtaskDetailTrace.setSubId(serviceSubtaskDetailVO.getSubId()); |
| | | subtaskDetailTrace.setTaskid(serviceSubtaskDetailVO.getTaskid()); |
| | | subtaskDetailTrace.setTemplateid(ivrTaskTemplateScriptVO.getTemplateID()!=null ? Long.valueOf(ivrTaskTemplateScriptVO.getTemplateID()) : null); |
| | | subtaskDetailTrace.setTemplatequestionnum(ivrTaskTemplateScriptVO.getSort() == null ? null : Long.valueOf(ivrTaskTemplateScriptVO.getSort())); |
| | | |
| | | //è·ååç±»ä¿¡æ¯ |
| | | IvrLibaScriptAssort ivrLibaScriptAssort = null; |
| | | if (ivrTaskTemplateScriptVO.getScriptAssortid() != null) |
| | | ivrLibaScriptAssort = ivrLibaScriptAssortMapper.selectIvrLibaScriptAssortById(ivrTaskTemplateScriptVO.getScriptAssortid()); |
| | | |
| | | //è·åç¨æ·éåºçé项çID |
| | | subtaskDetailTrace.setSwitchid(stt.getId()); |
| | | subtaskDetailTrace.setQuestiontext(ivrTaskTemplateScriptVO.getScriptContent()); |
| | | subtaskDetailTrace.setQuestionvoice(null); |
| | | subtaskDetailTrace.setCategoryname(StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getScriptAssortname()) ? ivrTaskTemplateScriptVO.getScriptAssortname() : (ivrLibaScriptAssort != null ? ivrLibaScriptAssort.getIndexAssortName() : "")); |
| | | subtaskDetailTrace.setCategoryid(ivrTaskTemplateScriptVO.getScriptAssortid()); |
| | | //è·åææé项 |
| | | subtaskDetailTrace.setTargetid(null); |
| | | subtaskDetailTrace.setTargetvalue(serviceSubtaskDetailVO.getTargetvalue()); |
| | | subtaskDetailTrace.setMatchedtext(ivrTaskTemplateScriptVO.getIvrtext()); |
| | | subtaskDetailTrace.setGuid(ivrTaskTemplateScriptVO.getGuid()); |
| | | subtaskDetailTrace.setValueType(serviceSubtaskDetail.getValueType()); |
| | | subtaskDetailTrace.setTemplateType(1); |
| | | |
| | | subtaskDetailTrace.setType(ivrLibaScriptAssort != null ? ivrLibaScriptAssort.getType() : null); |
| | | |
| | | subtaskDetailTrace.setScriptid(ivrTaskTemplateScriptVO.getId() == null ? ivrTaskTemplateScriptVO.getScriptID() : ivrTaskTemplateScriptVO.getId()); |
| | | subtaskDetailTrace.setAsrtext(ivrTaskTemplateScriptVO.getIvrtext()); |
| | | subtaskDetailTrace.setRecordpath(null); |
| | | subtaskDetailTrace.setPatid(selectServiceSubtaskList.get(0).getPatid()); |
| | | subtaskDetailTrace.setPatdesc(selectServiceSubtaskList.get(0).getSendname() + "," + selectServiceSubtaskList.get(0).getPhone() + "," + selectServiceSubtaskList.get(0).getDeptname()); |
| | | subtaskDetailTrace.setTodeptcode(ivrTaskTemplateScriptVO.getDutyDeptCode()); |
| | | subtaskDetailTrace.setTodeptname(ivrTaskTemplateScriptVO.getDutyDeptName()); |
| | | subtaskDetailTrace.setOrgid(selectServiceSubtaskList.get(0).getOrgid()); |
| | | subtaskDetailTrace.setHandleFlag("0"); |
| | | subtaskDetailTrace.setCreateTime(new Date()); |
| | | subtaskDetailTrace.setUpdateTime(new Date()); |
| | | subtaskDetailTrace.setOrgid(selectServiceSubtaskList.get(0).getOrgid()); |
| | | traceService.insertServiceSubtaskDetailTtrace(subtaskDetailTrace); |
| | | } else if (stt.getIsabnormal() != null && stt.getIsabnormal() != 1L) { |
| | | //è¿éä¸»è¦æ¯æå»æ¤äººåæå¼å¸¸éé¡¹æ¹æäºéå¼å¸¸çï¼è¿éå°±éè¦æ¥ä¸ä¸è¿æ¡æ°æ®æ¯ä¸æ¯å¨æ»¡æåº¦å¼å¸¸è¡¨ï¼å¦æå¨ï¼åè¦å é¤ |
| | | ServiceSubtaskDetailTrace subtaskDetailTrace = new ServiceSubtaskDetailTrace(); |
| | | subtaskDetailTrace.setSubId(serviceSubtaskDetailVO.getSubId()); |
| | | subtaskDetailTrace.setScriptid(ivrTaskTemplateScriptVO.getScriptID() == null ? ivrTaskTemplateScriptVO.getId() : ivrTaskTemplateScriptVO.getScriptID()); |
| | | List<ServiceSubtaskDetailTrace> serviceSubtaskDetailTraces = traceService.selectServiceSubtaskDetailTtraceList(subtaskDetailTrace); |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskDetailTraces)) { |
| | | traceService.deleteServiceSubtaskDetailTtraceById(serviceSubtaskDetailTraces.get(0).getId()); |
| | | } |
| | | } |
| | | |
| | | //å¦ä½è¿éè¦æå¡è¡¥å¿çæå¡IDä¸ä¸ºç©ºçè¯ï¼åè¿è¡ç«å³åé |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplateScriptVO.getSendTaskids()) && CollectionUtils.isNotEmpty(selectServiceSubtaskList)) { |
| | |
| | | Map<String, String> map = new HashMap<>(); |
| | | map.put("nextScriptNo", nextScriptNo); |
| | | map.put("score", score); |
| | | map.put("isabnormal", isabnormalFlag); |
| | | return map; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.github.pagehelper.util.StringUtil; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.DTO.DetailTraceDealDTO; |
| | | import com.smartor.domain.VO.DetailTraceDealVO; |
| | | import com.smartor.domain.VO.SatisfactionExceptConfigQuestionReqVO; |
| | | import com.smartor.mapper.ServiceSubtaskDetailMapper; |
| | | import com.smartor.mapper.ServiceSubtaskDetailTraceMapper; |
| | | import com.smartor.mapper.SvyLibScriptCategoryMapper; |
| | | import com.smartor.mapper.SvyLibTemplateScriptMapper; |
| | | import com.smartor.service.*; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * é访任å¡å¼å¸¸è®°å½è·è¸ªServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author lihu |
| | | * @date 2026-03-24 |
| | | */ |
| | | @Service |
| | | public class ServiceSubtaskDetailTraceServiceImpl implements IServiceSubtaskDetailTraceService { |
| | | @Autowired |
| | | private ServiceSubtaskDetailTraceMapper serviceSubtaskDetailTraceMapper; |
| | | |
| | | @Autowired |
| | | private ServiceSubtaskDetailMapper serviceSubtaskDetailMapper; |
| | | |
| | | @Autowired |
| | | private ISvyLibScriptCategoryService iSvyLibScriptCategoryService; |
| | | |
| | | @Autowired |
| | | private SvyLibScriptCategoryMapper svyLibScriptCategoryMapper; |
| | | |
| | | @Autowired |
| | | private ISvyLibTemplateScriptService isvyLibTemplateScriptService; |
| | | |
| | | @Autowired |
| | | private IIvrLibaScriptAssortService iIvrLibaScriptAssortService; |
| | | |
| | | @Autowired |
| | | private IIvrLibaTemplateScriptService iIvrLibaTemplateScriptService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param id é访任å¡å¼å¸¸è®°å½è·è¸ªä¸»é® |
| | | * @return é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | */ |
| | | @Override |
| | | public ServiceSubtaskDetailTrace selectServiceSubtaskDetailTtraceById(Long id) { |
| | | return serviceSubtaskDetailTraceMapper.selectServiceSubtaskDetailTtraceById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡å¼å¸¸è®°å½è·è¸ªå表 |
| | | * |
| | | * @param serviceSubtaskDetailTrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | */ |
| | | @Override |
| | | public List<ServiceSubtaskDetailTrace> selectServiceSubtaskDetailTtraceList(ServiceSubtaskDetailTrace serviceSubtaskDetailTrace) { |
| | | return serviceSubtaskDetailTraceMapper.selectServiceSubtaskDetailTtraceList(serviceSubtaskDetailTrace); |
| | | } |
| | | |
| | | @Override |
| | | public List<DetailTraceDealDTO> tracedeallist(DetailTraceDealVO detailTraceDealVO) { |
| | | // è·åææéè¦å¤ççè®°å½ |
| | | List<ServiceSubtaskDetailTrace> tracedeallist = serviceSubtaskDetailTraceMapper.tracedeallist(detailTraceDealVO); |
| | | |
| | | // æ questiontext åç» |
| | | Map<String, List<ServiceSubtaskDetailTrace>> groupByQuestion = tracedeallist.stream() |
| | | .filter(t -> t.getQuestiontext() != null) |
| | | .collect(Collectors.groupingBy(ServiceSubtaskDetailTrace::getQuestiontext)); |
| | | |
| | | List<DetailTraceDealDTO> detailTraceDealDTOList = new ArrayList<>(); |
| | | for (Map.Entry<String, List<ServiceSubtaskDetailTrace>> entry : groupByQuestion.entrySet()) { |
| | | List<ServiceSubtaskDetailTrace> group = entry.getValue(); |
| | | DetailTraceDealDTO dto = new DetailTraceDealDTO(); |
| | | |
| | | // é®é¢å
容 |
| | | dto.setQuestiontext(entry.getKey()); |
| | | |
| | | // è´è´£ç§å®¤ï¼å»éï¼ |
| | | List<Map<String, Object>> responsibleDept = group.stream() |
| | | .filter(t -> t.getTodeptcode() != null) |
| | | .collect(Collectors.collectingAndThen( |
| | | Collectors.toMap( |
| | | ServiceSubtaskDetailTrace::getTodeptcode, |
| | | t -> { |
| | | Map<String, Object> deptMap = new HashMap<>(); |
| | | deptMap.put("deptName", t.getTodeptname()); |
| | | deptMap.put("deptCode", t.getTodeptcode()); |
| | | return deptMap; |
| | | }, |
| | | (existing, replacement) -> existing |
| | | ), |
| | | map -> new ArrayList<>(map.values()) |
| | | )); |
| | | dto.setResponsibleDept(responsibleDept); |
| | | |
| | | // ææå¡«åæ°ï¼éè¿ç»å
ç scriptid å» service_subtask_detail 表æ¥è¯¢ |
| | | List<Long> scriptIds = group.stream() |
| | | .map(ServiceSubtaskDetailTrace::getScriptid) |
| | | .filter(Objects::nonNull) |
| | | .distinct() |
| | | .collect(Collectors.toList()); |
| | | long effectiveFillNum = 0L; |
| | | if (CollectionUtils.isNotEmpty(scriptIds)) { |
| | | ServiceSubtaskDetail query = new ServiceSubtaskDetail(); |
| | | query.setDelFlag("0"); |
| | | for (Long scriptId : scriptIds) { |
| | | query.setScriptid(scriptId); |
| | | List<ServiceSubtaskDetail> details = serviceSubtaskDetailMapper.selectServiceSubtaskDetailList(query); |
| | | effectiveFillNum += CollectionUtils.isEmpty(details) ? 0 : details.size(); |
| | | } |
| | | } |
| | | |
| | | // å¼å¸¸å¡«åæ° = å½ååç»ç List æ°é |
| | | long exceptionFillNum = group.size(); |
| | | |
| | | Map<String, Object> fillSituation = new HashMap<>(); |
| | | fillSituation.put("effectiveFillNum", effectiveFillNum); |
| | | fillSituation.put("exceptionFillNum", exceptionFillNum); |
| | | dto.setFillSituation(fillSituation); |
| | | |
| | | // å¼å¸¸é®é¢å¤çæ°éï¼ä» handleFlag ç»è®¡ |
| | | long yesDeal = group.stream().filter(t -> "1".equals(t.getHandleFlag())).count(); |
| | | long noDeal = group.stream().filter(t -> !"1".equals(t.getHandleFlag())).count(); |
| | | Map<String, Object> exceptionQuesNum = new HashMap<>(); |
| | | exceptionQuesNum.put("yesDeal", yesDeal); |
| | | exceptionQuesNum.put("noDeal", noDeal); |
| | | exceptionQuesNum.put("all", exceptionFillNum); |
| | | dto.setExceptionQuesNum(exceptionQuesNum); |
| | | |
| | | // ææ°å¤ç人åå¤çæ¶é´ï¼å handleTime ææ°ç䏿¡ï¼ |
| | | group.stream() |
| | | .filter(t -> t.getHandleTime() != null) |
| | | .max(Comparator.comparing(ServiceSubtaskDetailTrace::getHandleTime)) |
| | | .ifPresent(latest -> { |
| | | dto.setHandleBy(latest.getHandleBy()); |
| | | dto.setHandleTime(latest.getHandleTime()); |
| | | }); |
| | | |
| | | detailTraceDealDTOList.add(dto); |
| | | } |
| | | |
| | | return detailTraceDealDTOList; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param serviceSubtaskDetailTrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertServiceSubtaskDetailTtrace(ServiceSubtaskDetailTrace serviceSubtaskDetailTrace) { |
| | | serviceSubtaskDetailTrace.setCreateTime(DateUtils.getNowDate()); |
| | | return serviceSubtaskDetailTraceMapper.insertServiceSubtaskDetailTtrace(serviceSubtaskDetailTrace); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param serviceSubtaskDetailTrace é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateServiceSubtaskDetailTtrace(ServiceSubtaskDetailTrace serviceSubtaskDetailTrace) { |
| | | serviceSubtaskDetailTrace.setUpdateTime(DateUtils.getNowDate()); |
| | | return serviceSubtaskDetailTraceMapper.updateServiceSubtaskDetailTtrace(serviceSubtaskDetailTrace); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é访任å¡å¼å¸¸è®°å½è·è¸ª |
| | | * |
| | | * @param ids éè¦å é¤çé访任å¡å¼å¸¸è®°å½è·è¸ªä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteServiceSubtaskDetailTtraceByIds(Long[] ids) { |
| | | return serviceSubtaskDetailTraceMapper.deleteServiceSubtaskDetailTtraceByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é访任å¡å¼å¸¸è®°å½è·è¸ªä¿¡æ¯ |
| | | * |
| | | * @param id é访任å¡å¼å¸¸è®°å½è·è¸ªä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteServiceSubtaskDetailTtraceById(Long id) { |
| | | return serviceSubtaskDetailTraceMapper.deleteServiceSubtaskDetailTtraceById(id); |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> getSatisfactionExceptConfigQuestion(SatisfactionExceptConfigQuestionReqVO questionReqVO) { |
| | | // åå§åç»æé |
| | | Map<String, Object> result = new HashMap<>(); |
| | | |
| | | if (StringUtils.isEmpty(questionReqVO.getScriptType()) || questionReqVO.getScriptType().equals("1")) { |
| | | List<Map<String, Object>> voicetDataList = new ArrayList<>(); |
| | | //è·å满æåº¦çåç±» |
| | | IvrLibaScriptAssort ivrLibaScriptAssort = new IvrLibaScriptAssort(); |
| | | ivrLibaScriptAssort.setType("myd"); |
| | | if (!StringUtils.isEmpty(questionReqVO.getType())) ivrLibaScriptAssort.setType(questionReqVO.getType()); |
| | | List<IvrLibaScriptAssortVO> ivrLibaScriptAssortVOS = iIvrLibaScriptAssortService.selectIvrLibaScriptAssortList(ivrLibaScriptAssort); |
| | | List<Long> assortIdList = Optional.ofNullable(ivrLibaScriptAssortVOS).filter(list -> !list.isEmpty()).map(list -> list.stream().map(IvrLibaScriptAssortVO::getId).collect(Collectors.toList())).orElse(Collections.emptyList()); |
| | | |
| | | //ç¨æ¥è®°å½æ»¡æåº¦çææé®é¢ |
| | | List<IvrLibaTemplateScript> ivrLibaTemplateScriptList = new ArrayList<>(); |
| | | if (CollectionUtils.isNotEmpty(assortIdList)) { |
| | | for (Long assortId : assortIdList) { |
| | | IvrLibaTemplateScript ivrLibaTemplateScript = new IvrLibaTemplateScript(); |
| | | ivrLibaTemplateScript.setScriptAssortid(assortId); |
| | | List<IvrLibaTemplateScript> ivrLibaTemplateScripts = iIvrLibaTemplateScriptService.selectIvrLibaTemplateScriptList(ivrLibaTemplateScript); |
| | | ivrLibaTemplateScriptList.addAll(ivrLibaTemplateScripts); |
| | | } |
| | | for (IvrLibaTemplateScript ivrLibaTemplateScript : ivrLibaTemplateScriptList) { |
| | | Map<String, Object> voicetData = new HashMap<>(); |
| | | voicetData.put("questionId", ivrLibaTemplateScript.getId()); |
| | | voicetData.put("libtemplateid", ivrLibaTemplateScript.getTemplateid()); |
| | | voicetData.put("questionContent", ivrLibaTemplateScript.getScriptContent()); |
| | | voicetData.put("questionTopic", ivrLibaTemplateScript.getScriptTopic()); |
| | | voicetData.put("questionType", ivrLibaTemplateScript.getScriptType()); |
| | | voicetData.put("categoryName", ivrLibaTemplateScript.getScriptAssortname()); |
| | | voicetData.put("categoryId", ivrLibaTemplateScript.getScriptAssortid()); |
| | | voicetDataList.add(voicetData); |
| | | } |
| | | } |
| | | //è¯é³æ°æ®è¿åéå |
| | | result.put("voiceDataList", voicetDataList); |
| | | } |
| | | |
| | | if (StringUtils.isEmpty(questionReqVO.getScriptType()) || questionReqVO.getScriptType().equals("2")) { |
| | | List<Map<String, Object>> questionnaireDataList = new ArrayList<>(); |
| | | //è·å满æåº¦çåç±» |
| | | SvyLibScriptCategory svyLibScriptCategory = new SvyLibScriptCategory(); |
| | | svyLibScriptCategory.setType("myd"); |
| | | if (!StringUtils.isEmpty(questionReqVO.getType())) svyLibScriptCategory.setType(questionReqVO.getType()); |
| | | List<SvyLibScriptCategory> svyLibScriptCategoryVOS = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | List<Long> assortIdList = Optional.ofNullable(svyLibScriptCategoryVOS).filter(list -> !list.isEmpty()).map(list -> list.stream().map(SvyLibScriptCategory::getId).collect(Collectors.toList())).orElse(Collections.emptyList()); |
| | | |
| | | //ç¨æ¥è®°å½æ»¡æåº¦çææé®é¢ |
| | | List<SvyLibTemplateScript> svyLibTemplateScriptList = new ArrayList<>(); |
| | | if (CollectionUtils.isNotEmpty(assortIdList)) { |
| | | for (Long categoryid : assortIdList) { |
| | | SvyLibTemplateScript svyLibTemplateScript = new SvyLibTemplateScript(); |
| | | svyLibTemplateScript.setCategoryid(categoryid); |
| | | List<SvyLibTemplateScript> svyLibTemplateScripts = isvyLibTemplateScriptService.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | svyLibTemplateScriptList.addAll(svyLibTemplateScripts); |
| | | } |
| | | for (SvyLibTemplateScript svyLibTemplateScript : svyLibTemplateScriptList) { |
| | | Map<String, Object> voicetData = new HashMap<>(); |
| | | voicetData.put("questionId", svyLibTemplateScript.getId()); |
| | | voicetData.put("libtemplateid", svyLibTemplateScript.getSvyid()); |
| | | voicetData.put("questionContent", svyLibTemplateScript.getScriptContent()); |
| | | voicetData.put("questionTopic", svyLibTemplateScript.getScriptTopic()); |
| | | voicetData.put("questionType", svyLibTemplateScript.getScriptType()); |
| | | voicetData.put("categoryName", svyLibTemplateScript.getCategoryName()); |
| | | voicetData.put("categoryId", svyLibTemplateScript.getCategoryid()); |
| | | questionnaireDataList.add(voicetData); |
| | | } |
| | | } |
| | | //é®å·æ°æ®è¿åéå |
| | | result.put("questionnaireDataList", questionnaireDataList); |
| | | } |
| | | return result; |
| | | } |
| | | } |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.JsonNode; |
| | |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.mapper.*; |
| | | import com.smartor.service.*; |
| | | import com.sun.org.apache.bcel.internal.generic.NEW; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.collections4.ListUtils; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private IServiceOutPathService iServiceOutPathService; |
| | | |
| | | @Autowired |
| | | private IPatMedOuthospService iPatMedOuthospService; |
| | | private IServiceSubtaskDetailTraceService traceService; |
| | | |
| | | @Autowired |
| | | private FtpService ftpService; |
| | |
| | | |
| | | @Autowired |
| | | private PatArchiveMapper patArchiveMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibScriptCategoryMapper svyLibScriptCategoryMapper; |
| | | |
| | | @Value("${pri_key}") |
| | | private String pri_key; |
| | |
| | | try { |
| | | List<Map<String, Object>> mapList = objectMapper.readValue(serviceTask.getPreachformDesc(), List.class); |
| | | serviceTaskVO.setPreachformList(mapList); |
| | | if(ObjectUtils.isNotEmpty(serviceTask.getTaskid())){ |
| | | if (ObjectUtils.isNotEmpty(serviceTask.getTaskid())) { |
| | | ServiceTaskoper operVo = new ServiceTaskoper(); |
| | | operVo.setTaskId(serviceTask.getTaskid()); |
| | | operVo.setOrgid(serviceTask.getOrgid()); |
| | | List<ServiceTaskoper> serviceTaskopers = serviceTaskoperService.selectServiceTaskoperList(operVo); |
| | | if(ObjectUtils.isNotEmpty(serviceTaskopers)){ |
| | | if (ObjectUtils.isNotEmpty(serviceTaskopers)) { |
| | | serviceTaskVO.setOplevelcode(serviceTaskopers.get(0).getOplevelcode()); |
| | | } |
| | | } |
| | |
| | | serviceTaskVO.setShowTimeNoon(serviceTask.getShowTimeNoon()); |
| | | serviceTaskVO.setShowTimeNight(serviceTask.getShowTimeNight()); |
| | | serviceTaskVO.setPreachform(serviceTask.getPreachform()); |
| | | if(ObjectUtils.isNotEmpty(serviceTask.getTaskid())){ |
| | | if (ObjectUtils.isNotEmpty(serviceTask.getTaskid())) { |
| | | ServiceTaskoper operVo = new ServiceTaskoper(); |
| | | operVo.setTaskId(serviceTask.getTaskid()); |
| | | operVo.setOrgid(serviceTask.getOrgid()); |
| | | List<ServiceTaskoper> serviceTaskopers = serviceTaskoperService.selectServiceTaskoperList(operVo); |
| | | if(ObjectUtils.isNotEmpty(serviceTaskopers)){ |
| | | if (ObjectUtils.isNotEmpty(serviceTaskopers)) { |
| | | serviceTaskVO.setOplevelcode(serviceTaskopers.get(0).getOplevelcode()); |
| | | } |
| | | } |
| | |
| | | patTaskRelevance.setDiagname(serviceSubtask1.getLeavediagname()); |
| | | patTaskRelevance.setPatid(serviceSubtask1.getPatid()); |
| | | patTaskRelevance.setSendStatus(serviceSubtask1.getSendstate()); |
| | | patTaskRelevance.setDeptCode(serviceSubtask1.getDeptcode()); |
| | | patTaskRelevance.setDeptcode(serviceSubtask1.getDeptcode()); |
| | | patTaskRelevance.setDeptName(serviceSubtask1.getDeptname()); |
| | | patTaskRelevance.setLeavehospitaldistrictcode(serviceSubtask1.getLeavehospitaldistrictcode()); |
| | | patTaskRelevance.setLeavehospitaldistrictname(serviceSubtask1.getLeavehospitaldistrictname()); |
| | |
| | | patTaskRelevance.setFinishtime(serviceSubtask1.getFinishtime()); |
| | | patTaskRelevance.setAddr(serviceSubtask1.getAddr()); |
| | | patTaskRelevance.setDeptName(serviceSubtask1.getDeptname()); |
| | | patTaskRelevance.setDeptCode(serviceSubtask1.getDeptcode()); |
| | | patTaskRelevance.setDeptcode(serviceSubtask1.getDeptcode()); |
| | | patTaskRelevance.setBedNo(serviceSubtask1.getBedNo()); |
| | | patTaskRelevance.setDiagname(serviceSubtask1.getLeavediagname()); |
| | | patTaskRelevance.setPatid(serviceSubtask1.getPatid()); |
| | |
| | | if (StringUtils.isNotEmpty(serviceTaskVO.getLibtemplateid())) { |
| | | serviceTask.setLibtemplateid(serviceTaskVO.getLibtemplateid()); |
| | | serviceTask.setLibtemplatename(serviceTaskVO.getLibtemplatename()); |
| | | }else { |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVO.getSvyTaskTemplateVO())) { |
| | | serviceTask.setLibtemplateid(""+serviceTaskVO.getSvyTaskTemplateVO().getTemplateid()); |
| | | serviceTask.setLibtemplatename(""+serviceTaskVO.getLibtemplatename()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVO.getIvrTaskTemplateVO())) { |
| | | serviceTask.setLibtemplateid(""+serviceTaskVO.getIvrTaskTemplateVO().getLibtemplateid()); |
| | | serviceTask.setLibtemplatename(""+serviceTaskVO.getIvrTaskTemplateVO().getLibtemplatename()); |
| | | } |
| | | } |
| | | if (serviceTaskVO.getTemplateid() != null) { |
| | | serviceTask.setTemplateid(serviceTaskVO.getTemplateid()); |
| | |
| | | serviceSubtask.setTaskid(serviceTask.getTaskid().longValue()); |
| | | serviceSubtask.setTemplatename(tempName); |
| | | serviceSubtask.setTemplateid(tempid); |
| | | serviceSubtask.setLibtemplateid(ObjectUtils.isEmpty(serviceTaskVO.getLibtemplateid()) ? null : Long.valueOf(serviceTaskVO.getLibtemplateid())); |
| | | serviceSubtask.setLibtemplatename(serviceTaskVO.getLibtemplatename()); |
| | | serviceSubtask.setLibtemplateid(ObjectUtils.isEmpty(serviceTask.getLibtemplateid()) ? null : Long.valueOf(serviceTask.getLibtemplateid())); |
| | | serviceSubtask.setLibtemplatename(serviceTask.getLibtemplatename()); |
| | | //æ°å¢ |
| | | if (CollectionUtils.isNotEmpty(serviceTaskVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : serviceTaskVO.getPatTaskRelevances()) { |
| | |
| | | serviceSubtask.setSendstate(1L); |
| | | if (serviceTaskVO.getLongTask() != null && serviceTaskVO.getLongTask() == 1) |
| | | serviceSubtask.setSendstate(2L); |
| | | serviceSubtask.setDeptcode(patTaskRelevance.getDeptCode()); |
| | | serviceSubtask.setDeptcode(patTaskRelevance.getDeptcode()); |
| | | serviceSubtask.setDeptname(patTaskRelevance.getDeptName()); |
| | | serviceSubtask.setLeavehospitaldistrictcode(patTaskRelevance.getLeavehospitaldistrictcode()); |
| | | serviceSubtask.setLeavehospitaldistrictname(patTaskRelevance.getLeavehospitaldistrictname()); |
| | |
| | | serviceSubtask.setAddr(patTaskRelevance.getAddr()); |
| | | serviceSubtask.setPatid(patTaskRelevance.getPatid()); |
| | | serviceSubtask.setOpenid(patTaskRelevance.getOpenid()); |
| | | serviceSubtask.setDeptcode(patTaskRelevance.getDeptCode()); |
| | | serviceSubtask.setDeptcode(patTaskRelevance.getDeptcode()); |
| | | serviceSubtask.setLeavehospitaldistrictname(patTaskRelevance.getLeavehospitaldistrictname()); |
| | | serviceSubtask.setLeavehospitaldistrictcode(patTaskRelevance.getLeavehospitaldistrictcode()); |
| | | serviceSubtask.setDeptname(patTaskRelevance.getDeptName()); |
| | |
| | | ServiceSubtask serviceSubtask = serviceSubtaskMapper.selectServiceSubtaskById(Long.valueOf(phoneCallReqYQVO.getTaskid())); |
| | | //è®°å½çµè¯åéç¶æ |
| | | setFailPreachForm(serviceSubtask, "3", "éè¯æ£å¸¸ç»æ", "9"); |
| | | //å é¤ç»æè¯çæ£å |
| | | //å é¤ç»æè¯çç¼å |
| | | redisCache.deleteObject(phoneCallReqYQVO.getUuid() + "- jsy"); |
| | | } else { |
| | | redisCache.setCacheObject(phoneCallReqYQVO.getUuid() + "PlayEventCallbackPlaystop", true, 120, TimeUnit.MINUTES); |
| | |
| | | serviceSubTaskDetailReq.setGuid(phoneCallReqYQVO.getGuid()); |
| | | serviceSubTaskDetailReq.setOrgid(phoneCallReqYQVO.getOrgid()); |
| | | saveQuestionAnswerPhone(serviceSubTaskDetailReq); |
| | | |
| | | //夿ä¸ä¸å½åçé®é¢æ¯ä¸æ¯æ»¡æåº¦é®é¢ï¼å¹¶ä¸dutyDeptCodeæ¯å¦æå¼ï¼å¹¶ä¸é项æ¯ä¸æ¯å¼å¸¸é项ï¼å¦æå
¨ç¬¦åï¼å徿»¡æåº¦é®é¢å¼å¸¸è¡¨æ°å¢ |
| | | if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getDutyDeptCode()) && 1 == ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getIsabnormal()) { |
| | | ServiceSubtaskDetailTrace subtaskDetailTrace = new ServiceSubtaskDetailTrace(); |
| | | //ç¨taskidãsubidåscriptidå»è·ådetailid |
| | | ServiceSubtaskDetail ssd = new ServiceSubtaskDetail(); |
| | | ssd.setSubId(serviceSubtask.getId()); |
| | | ssd.setTaskid(serviceSubtask.getTaskid()); |
| | | ssd.setScriptid(StringUtils.isNotEmpty(scriptId) ? Long.valueOf(scriptId) : null); |
| | | List<ServiceSubtaskDetail> serviceSubtaskDetails = serviceSubtaskDetailMapper.selectServiceSubtaskDetailList(ssd); |
| | | subtaskDetailTrace.setDetailId(CollectionUtils.isNotEmpty(serviceSubtaskDetails) ? serviceSubtaskDetails.get(0).getId() : null); |
| | | |
| | | subtaskDetailTrace.setSubId(serviceSubtask.getId()); |
| | | subtaskDetailTrace.setTaskid(serviceSubtask.getTaskid()); |
| | | subtaskDetailTrace.setTemplateid(ivrTaskTemplateScriptVO.getId()); |
| | | subtaskDetailTrace.setTemplatequestionnum(ivrTaskTemplateScriptVO.getScriptno()); |
| | | subtaskDetailTrace.setSwitchid(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getId()); |
| | | subtaskDetailTrace.setQuestiontext(ivrTaskTemplateScriptVO.getScriptContent()); |
| | | subtaskDetailTrace.setQuestionvoice(null); |
| | | subtaskDetailTrace.setCategoryname(ivrTaskTemplateScriptVO.getScriptAssortname()); |
| | | subtaskDetailTrace.setCategoryid(ivrTaskTemplateScriptVO.getScriptAssortid()); |
| | | //è·åææé项 |
| | | String optionDescStr = Optional.ofNullable(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList()).filter(list -> !list.isEmpty()).map(list -> list.stream().map(IvrTaskTemplateTargetoption::getOptiondesc).filter(Objects::nonNull).collect(Collectors.joining("&"))).orElse(""); |
| | | subtaskDetailTrace.setTargetid(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getId()); |
| | | subtaskDetailTrace.setTargetvalue(optionDescStr); |
| | | subtaskDetailTrace.setMatchedtext(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getOptiondesc()); |
| | | subtaskDetailTrace.setValueType(serviceSubtaskDetails.get(0).getValueType()); |
| | | subtaskDetailTrace.setTemplateType(1); |
| | | |
| | | SvyLibScriptCategory svyLibScriptCategory = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryById(ivrTaskTemplateScriptVO.getScriptAssortid()); |
| | | subtaskDetailTrace.setType(svyLibScriptCategory.getType()); |
| | | subtaskDetailTrace.setScriptid(ivrTaskTemplateScriptVO.getId()); |
| | | subtaskDetailTrace.setAsrtext(phoneCallReqYQVO.getAsrtext()); |
| | | subtaskDetailTrace.setRecordpath(phoneCallReqYQVO.getRecordpath()); |
| | | subtaskDetailTrace.setPatid(serviceSubtask.getPatid()); |
| | | subtaskDetailTrace.setPatdesc(serviceSubtask.getSendname() + "," + serviceSubtask.getPhone() + "," + serviceSubtask.getDeptname()); |
| | | subtaskDetailTrace.setTodeptcode(ivrTaskTemplateScriptVO.getDutyDeptCode()); |
| | | subtaskDetailTrace.setTodeptname(ivrTaskTemplateScriptVO.getDutyDeptName()); |
| | | subtaskDetailTrace.setOrgid(serviceSubtask.getOrgid()); |
| | | subtaskDetailTrace.setHandleFlag("0"); |
| | | subtaskDetailTrace.setGuid(phoneCallReqYQVO.getGuid()); |
| | | subtaskDetailTrace.setCreateTime(new Date()); |
| | | subtaskDetailTrace.setUpdateTime(new Date()); |
| | | subtaskDetailTrace.setOrgid(phoneCallReqYQVO.getOrgid()); |
| | | traceService.insertServiceSubtaskDetailTtrace(subtaskDetailTrace); |
| | | } |
| | | |
| | | //夿ä¸ä¸ï¼è¿ä¸ªéé¡¹ç»ææ¯ä¸æ¯è¿æç»§ç»é®ä¸å»çå¿
è¦ï¼ä¾å¦éé¡¹ç»ææ¯å«äººä¸æ³ç»§ç»åçé®é¢ï¼å°±è¦ç»ææ |
| | | if (ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getIsEnd() == 1) { |
| | | redisCache.deleteObject(serviceSubtask.getId() + "-" + serviceSubtask.getPhone()); |
| | |
| | | //设置ä¸ä¸é®é¢åç±» |
| | | IvrTaskTemplateScript ivrTaskTemplateScript = iIvrTaskTemplateScriptService.selectIvrTaskTemplateScriptByID(serviceSubtaskDetail.getScriptid()); |
| | | if (ivrTaskTemplateScript != null) |
| | | serviceSubtaskDetail.setCategoryid(ivrTaskTemplateScript.getAssortid()); |
| | | serviceSubtaskDetail.setCategoryid(ivrTaskTemplateScript.getScriptAssortid()); |
| | | } |
| | | |
| | | serviceSubtaskDetail.setSubId(selectServiceSubtaskList.get(0).getId()); |
| | |
| | | //设置ä¸ä¸é®é¢åç±» |
| | | IvrTaskTemplateScript ivrTaskTemplateScript = iIvrTaskTemplateScriptService.selectIvrTaskTemplateScriptByID(serviceSubtaskDetail.getScriptid()); |
| | | if (ivrTaskTemplateScript != null) |
| | | serviceSubtaskDetail.setCategoryid(ivrTaskTemplateScript.getAssortid()); |
| | | serviceSubtaskDetail.setCategoryid(ivrTaskTemplateScript.getScriptAssortid()); |
| | | } |
| | | serviceSubtaskDetail.setCreateTime(new Date()); |
| | | serviceSubtaskDetail.setGuid(serviceSubTaskDetailReq.getGuid()); |
| | |
| | | ivrTaskTemplateScript.setTemplateID(templateid); |
| | | ivrTaskTemplateScript.setOrgid(serviceTask.getOrgid()); |
| | | //å
é»è®¤ä¸º1å§ï¼assortid=1 ä»£è¡¨æ¯æ»¡æåº¦ |
| | | ivrTaskTemplateScript.setAssortid(ivrCategoryid); |
| | | ivrTaskTemplateScript.setScriptAssortid(ivrCategoryid); |
| | | List<IvrTaskTemplateScript> ivrTaskTemplateScripts = iIvrTaskTemplateScriptService.selectIvrTaskTemplateScriptList(ivrTaskTemplateScript); |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplateScripts)) { |
| | | //éè¦å
计ç®åºåééï¼åä¹ä»¥å个é®å¸æ»¡æåº¦é¢ç®æ°éï¼å¾å°æ»¡æåº¦é¢ç®æ»éï¼å
å«äºæªåçï¼ |
| | |
| | | if (serviceSubtask.getSendstate() != null && (serviceSubtask.getSendstate() == 6)) { |
| | | serviceSubtaskStatistic.setFollowUpSuccess(serviceSubtaskStatistic.getFollowUpSuccess() + 1L); |
| | | } |
| | | if (serviceSubtask.getSendstate() != null && (serviceSubtask.getSendstate() == 5 || serviceSubtask.getSendstate() == 7)) { |
| | | if (serviceSubtask.getSendstate() != null && (serviceSubtask.getSendstate() == 5 || serviceSubtask.getSendstate() == 7)) { |
| | | serviceSubtaskStatistic.setFollowUpFail(serviceSubtaskStatistic.getFollowUpFail() + 1L); |
| | | } |
| | | if (serviceSubtaskStatistic.getNeedFollowUp() > 0) { |
| | |
| | | if (serviceSubtask.getSendstate() != null && (serviceSubtask.getSendstate() == 6)) { |
| | | serviceSubtaskStatistic.setFollowUpSuccess(serviceSubtaskStatistic.getFollowUpSuccess() + 1L); |
| | | } |
| | | if (serviceSubtask.getSendstate() != null && (serviceSubtask.getSendstate() == 5 || serviceSubtask.getSendstate() == 7)) { |
| | | if (serviceSubtask.getSendstate() != null && (serviceSubtask.getSendstate() == 5 || serviceSubtask.getSendstate() == 7)) { |
| | | serviceSubtaskStatistic.setFollowUpFail(serviceSubtaskStatistic.getFollowUpFail() + 1L); |
| | | } |
| | | if (serviceSubtaskStatistic.getNeedFollowUp() > 0) { |
| | |
| | | serviceSubtaskDetail.setAssigntime(System.currentTimeMillis()); |
| | | serviceSubtaskDetail.setStarttime(System.currentTimeMillis()); |
| | | serviceSubtaskDetail.setAnswertime(System.currentTimeMillis()); |
| | | serviceSubtaskDetail.setCategoryid(ivrTaskTemplateScriptVO.getAssortid()); |
| | | serviceSubtaskDetail.setCategoryid(ivrTaskTemplateScriptVO.getScriptAssortid()); |
| | | serviceSubtaskDetail.setAsrtext("æ åºç"); |
| | | if (StringUtils.isNotEmpty(phoneCallReqYQVO.getAsrtext())) |
| | | serviceSubtaskDetail.setAsrtext(phoneCallReqYQVO.getAsrtext()); |
| | |
| | | serviceSubtaskDetail.setTargetoptions(ivrTaskTemplateScriptVO.getTargetOptions()); |
| | | serviceSubtaskDetail.setExtemplateText(ivrTaskTemplateScriptVO.getExtemplateText()); |
| | | serviceSubtaskDetail.setScriptid(ivrTaskTemplateScriptVO.getId()); |
| | | serviceSubtaskDetail.setLibTemplateid(serviceSubtask.getLibtemplateid() != null ? serviceSubtask.getLibtemplateid().intValue() : null); |
| | | |
| | | int i = 1; |
| | | for (IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption : ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList()) { |
| | | if (ivrTaskTemplateTargetoption.getIsUserOperation() == 1) { |
| | | serviceSubtaskDetail.setMatchedtext(ivrTaskTemplateTargetoption.getTargetvalue()); |
| | | serviceSubtaskDetail.setScore(ivrTaskTemplateTargetoption.getScore() != null ? ivrTaskTemplateTargetoption.getScore().toString() : "0"); |
| | | } |
| | | serviceSubtaskDetail.setTargetvalue(StringUtils.isEmpty(serviceSubtaskDetail.getTargetvalue()) ? ivrTaskTemplateTargetoption.getTargetvalue() : serviceSubtaskDetail.getTargetvalue() + "&" + ivrTaskTemplateTargetoption.getTargetvalue()); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | //尽管失败ï¼è¿éä¹å°å½ååéæ¹å¼ç»§ç»è®¾ç½®æâçµè¯âï¼sendstate设置æ3ï¼å 为ryTaskéçè¡¥å¿ç宿¶ä»»å¡è¿è¡æ¶ï¼ä¼æ¾å°è¿æ¡subtaskï¼å¹¶è¿è¡å¤ç |
| | | serviceSubtask.setCurrentPreachform(preachform); |
| | | serviceSubtask.setSendstate(3L); |
| | | //妿çäº9ï¼å说æçµè¯æ£å¸¸ç»æäº |
| | |
| | | }).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public Map<String, Object> getCurrentUserServiceSubtaskCount(ServiceSubtaskEntity entity){ |
| | | public Map<String, Object> getCurrentUserServiceSubtaskCount(ServiceSubtaskEntity entity) { |
| | | return serviceSubtaskMapper.getCurrentUserServiceSubtaskCount(entity); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.common.PinYinUtil; |
| | | import com.smartor.domain.IvrLibaTargetAssort; |
| | | import com.smartor.domain.SvyLibScriptCategory; |
| | | import com.smartor.domain.SvyLibScriptCategoryVO; |
| | |
| | | @Override |
| | | public List<SvyLibScriptCategoryVO> selectSvyLibScriptCategoryList(SvyLibScriptCategory svyLibScriptCategory) { |
| | | List<SvyLibScriptCategory> svyLibScriptCategories = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | //// //å°pid为空çï¼è¿æ»¤æ |
| | | // svyLibScriptCategories = svyLibScriptCategories.stream().filter(assort -> assort.getPid() == null).collect(Collectors.toList()); |
| | | // |
| | | // List<SvyLibScriptCategoryVO> SvyLibScriptCategoryVO = DtoConversionUtils.sourceToTarget(svyLibScriptCategories, SvyLibScriptCategoryVO.class); |
| | | // //éåæ¥åºæ¥çæ°æ®ï¼éè¿ id=pid è·åä»ä»¬çåæ°æ® |
| | | // for (SvyLibScriptCategoryVO svyLibScriptCategoryVO : SvyLibScriptCategoryVO) { |
| | | // if (svyLibScriptCategoryVO.getPid() != null) { |
| | | // continue; |
| | | // } |
| | | // SvyLibScriptCategory svyLibScriptCategory1 = new SvyLibScriptCategory(); |
| | | // svyLibScriptCategory1.setPid(svyLibScriptCategoryVO.getId()); |
| | | // List<SvyLibScriptCategory> svyLibScriptCategories1 = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory1); |
| | | // if (!Collections.isEmpty(svyLibScriptCategories1)) { |
| | | // svyLibScriptCategoryVO.setSvyLibScriptCategoryList(svyLibScriptCategories1); |
| | | // } |
| | | // } |
| | | List<SvyLibScriptCategoryVO> svyLibScriptCategoryVOS = DtoConversionUtils.sourceToTarget(svyLibScriptCategories, SvyLibScriptCategoryVO.class); |
| | | List<SvyLibScriptCategoryVO> svyLibScriptCategoryVOS = DtoConversionUtils.sourceToTarget(svyLibScriptCategories, SvyLibScriptCategoryVO.class); |
| | | |
| | | List<SvyLibScriptCategoryVO> rootList = new ArrayList<>(); |
| | | Map<Long, SvyLibScriptCategoryVO> categoryMap = new HashMap<>(); |
| | |
| | | categoryMap.put(category.getId(), category); |
| | | } |
| | | |
| | | for (SvyLibScriptCategoryVO category : svyLibScriptCategoryVOS) { |
| | | for (SvyLibScriptCategoryVO category : svyLibScriptCategoryVOS) { |
| | | if (category.getPid() == null || category.getPid() == -1) { |
| | | // é¡¶å±èç¹ |
| | | rootList.add(category); |
| | |
| | | @Override |
| | | public int updateSvyLibScriptCategory(SvyLibScriptCategory svyLibScriptCategory) { |
| | | svyLibScriptCategory.setUpdateTime(DateUtils.getNowDate()); |
| | | if (svyLibScriptCategory.getName() != null && svyLibScriptCategory.getName().contains("满æåº¦") && svyLibScriptCategory.getPid() != -1) { |
| | | svyLibScriptCategory.setType(PinYinUtil.getpy(svyLibScriptCategory.getName())); |
| | | } |
| | | return svyLibScriptCategoryMapper.updateSvyLibScriptCategory(svyLibScriptCategory); |
| | | } |
| | | |
| | |
| | | svyLibScriptCategory.setUpdateTime(new Date()); |
| | | svyLibScriptCategory.setCreateTime(new Date()); |
| | | if (svyLibScriptCategory.getPid() == null) svyLibScriptCategory.setPid((long) -1); |
| | | if (svyLibScriptCategory.getName() != null && svyLibScriptCategory.getName().contains("满æåº¦") && svyLibScriptCategory.getPid() != -1) { |
| | | svyLibScriptCategory.setType(PinYinUtil.getpy(svyLibScriptCategory.getName())); |
| | | } |
| | | i = svyLibScriptCategoryMapper.insertSvyLibScriptCategory(svyLibScriptCategory); |
| | | log.info("é®é¢è¯æ¯åç±»åºä¸çº§æ ç主é®:{}", svyLibScriptCategory.getId()); |
| | | |
| | |
| | | if (seqMax1 != null) { |
| | | svyLibScriptCategory1.setSeqno(seqMax1 + 1); |
| | | } |
| | | if (svyLibScriptCategory1.getName() != null && svyLibScriptCategory1.getName().contains("满æåº¦")) { |
| | | svyLibScriptCategory1.setType(PinYinUtil.getpy(svyLibScriptCategory1.getName())); |
| | | } |
| | | |
| | | svyLibScriptCategory1.setGuid(svyLibScriptCategoryVO.getGuid()); |
| | | svyLibScriptCategory1.setOrgid(svyLibScriptCategoryVO.getOrgid()); |
| | | svyLibScriptCategoryMapper.insertSvyLibScriptCategory(svyLibScriptCategory1); |
| | |
| | | @Autowired |
| | | private SvyLibTemplateTagMapper svyLibTemplateTagMapper; |
| | | @Autowired |
| | | private SvyLibScriptCategoryMapper svyLibScriptCategoryMapper; |
| | | @Autowired |
| | | private Icd10AssociationMapper icd10AssociationMapper; |
| | | |
| | | /** |
| | |
| | | for (SvyLibTemplateScript svyLibScript : svyLibTemplate.getSvyTemplateLibScripts()) { |
| | | svyLibScript.setGuid(svyLibTemplateVO.getGuid()); |
| | | svyLibScript.setOrgid(svyLibTemplateVO.getOrgid()); |
| | | //è·åä¸ä¸åç±»åç§° |
| | | if(StringUtils.isEmpty(svyLibScript.getCategoryName())){ |
| | | SvyLibScriptCategory svyLibScriptCategory = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryById(svyLibScript.getCategoryid()); |
| | | if(svyLibScriptCategory != null) svyLibScript.setCategoryName(svyLibScriptCategory.getName()); |
| | | } |
| | | |
| | | |
| | | //对é¢ç®è¿è¡å¤ç |
| | | if (svyLibScript.getIsoperation() != null) { |
| | | //é®é¢çæä½ä¸ä¸ºç©º |
| | |
| | | <result property="seqno" column="seqno"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="type" column="type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptAssortVo"> |
| | | select id, index_assort_name, guid, orgid,del_flag, create_time, update_time, pid, seqno |
| | | select id, |
| | | index_assort_name, |
| | | guid, |
| | | orgid, |
| | | del_flag, |
| | | create_time, |
| | | update_time, |
| | | pid, |
| | | seqno, |
| | | type |
| | | from ivr_liba_script_assort |
| | | </sql> |
| | | |
| | | <select id="selectIvrLibaScriptAssortList" parameterType="com.smartor.domain.IvrLibaScriptAssort" |
| | | resultMap="IvrLibaScriptAssortResult"> |
| | | <include refid="selectIvrLibaScriptAssortVo"/> |
| | | where 1=1 |
| | | <if test="indexAssortName != null and indexAssortName != ''">and index_assort_name like concat('%', |
| | | #{indexAssortName}, '%') |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | and del_flag=0 |
| | | where del_flag=0 |
| | | <if test="indexAssortName != null and indexAssortName != ''">and index_assort_name like concat('%', |
| | | #{indexAssortName}, '%') |
| | | </if> |
| | | <if test="type != null and type != ''">and type like concat('%', |
| | | #{type}, '%') |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | and del_flag=0 |
| | | order by seqno asc |
| | | </select> |
| | | |
| | |
| | | <if test="seqno != null">seqno,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="type != null">type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="indexAssortName != null and indexAssortName != ''">#{indexAssortName},</if> |
| | |
| | | <if test="seqno != null">#{seqno},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="type != null">#{type},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="seqno != null">seqno = #{seqno},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <update id="deleteIvrLibaScriptAssortById" parameterType="Long"> |
| | | update ivr_liba_script_assort |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | del_flag = 1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | <result property="isEnd" column="is_end"/> |
| | | <result property="isException" column="is_exception"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptTargetoptionVo"> |
| | | select id, |
| | | targetid, |
| | | is_end, |
| | | is_exception, |
| | | picture_path, |
| | | targetname, |
| | | appendflag, |
| | |
| | | <if test="appendflag != null">and appendflag = #{appendflag}</if> |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="picturePath != null">and picture_path = #{picturePath}</if> |
| | | <if test="isException != null">and is_exception = #{isException}</if> |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaScriptTargetoptionByTargetoptionid" parameterType="String" |
| | |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="isEnd != null ">is_end,</if> |
| | | <if test="isException != null ">is_exception,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | <if test="isException != null ">#{isException},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | <if test="isException != null ">is_exception = #{isException},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="submoduleVoice" column="submoduleVoice"/> |
| | | <result property="noClearlyText" column="noClearlyText"/> |
| | | <result property="noClearlyVoice" column="noClearlyVoice"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | | <result property="scriptAssortname" column="script_assortname"/> |
| | | <result property="playWavOnly" column="playWavOnly"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | |
| | | <result property="sort" column="sort"/> |
| | | <result property="score" column="score"/> |
| | | <result property="groupName" column="group_name"/> |
| | | <result property="assortid" column="assortid"/> |
| | | <result property="scriptAssortid" column="script_assortid"/> |
| | | <result property="dutyDeptName" column="duty_dept_name"/> |
| | | <result property="dutyDeptCode" column="duty_dept_code"/> |
| | | <result property="reportDeptCode" column="report_dept_name"/> |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | | select id, |
| | | scriptno, |
| | | sort, |
| | | assortid, |
| | | script_assortname, |
| | | duty_dept_name, |
| | | duty_dept_code, |
| | | report_dept_name, |
| | | report_dept_code, |
| | | script_assortid, |
| | | group_name, |
| | | branch_flag, |
| | | branch_nextscriptno, |
| | |
| | | submoduleVoice, |
| | | noClearlyText, |
| | | noClearlyVoice, |
| | | categoryName, |
| | | targetid, |
| | | value_type, |
| | | targetvalue, |
| | |
| | | <select id="selectIvrLibaTemplateScriptList" parameterType="com.smartor.domain.IvrLibaTemplateScript" |
| | | resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | <if test="scriptno != null ">and scriptno = #{scriptno}</if> |
| | | <if test="assortid != null ">and assortid = #{assortid}</if> |
| | | <if test="groupName != null ">and group_name = #{groupName}</if> |
| | | <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="scriptPoint != null and scriptPoint != ''">and script_point = #{scriptPoint}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="ivrVoice != null and ivrVoice != ''">and ivr_voice = #{ivrVoice}</if> |
| | | <if test="ivrtext != null and ivrtext != ''">and ivrtext = #{ivrtext}</if> |
| | | <if test="noMatchText != null and noMatchText != ''">and noMatchText = #{noMatchText}</if> |
| | | <if test="noMatchVoice != null and noMatchVoice != ''">and noMatchVoice = #{noMatchVoice}</if> |
| | | <if test="slienceText != null and slienceText != ''">and slienceText = #{slienceText}</if> |
| | | <if test="slienceVoice != null and slienceVoice != ''">and slienceVoice = #{slienceVoice}</if> |
| | | <if test="submoduleText != null and submoduleText != ''">and submoduleText = #{submoduleText}</if> |
| | | <if test="submoduleVoice != null and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if> |
| | | <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if> |
| | | <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">and next_scriptno = #{nextScriptno}</if> |
| | | <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | '%') |
| | | </if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic like concat('%', |
| | | #{scriptTopic}, |
| | | '%') |
| | | </if> |
| | | <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="isMust != null and isMust != ''">and is_must = #{isMust}</if> |
| | | <if test="scriptType != null">and script_type = #{scriptType}</if> |
| | | <if test="sort != null">and sort = #{sort}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | where del_flag = 0 |
| | | <if test="scriptno != null ">and scriptno = #{scriptno}</if> |
| | | <if test="scriptAssortid != null ">and script_assortid = #{scriptAssortid}</if> |
| | | <if test="groupName != null ">and group_name = #{groupName}</if> |
| | | <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="scriptPoint != null and scriptPoint != ''">and script_point = #{scriptPoint}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="ivrVoice != null and ivrVoice != ''">and ivr_voice = #{ivrVoice}</if> |
| | | <if test="ivrtext != null and ivrtext != ''">and ivrtext = #{ivrtext}</if> |
| | | <if test="noMatchText != null and noMatchText != ''">and noMatchText = #{noMatchText}</if> |
| | | <if test="noMatchVoice != null and noMatchVoice != ''">and noMatchVoice = #{noMatchVoice}</if> |
| | | <if test="slienceText != null and slienceText != ''">and slienceText = #{slienceText}</if> |
| | | <if test="slienceVoice != null and slienceVoice != ''">and slienceVoice = #{slienceVoice}</if> |
| | | <if test="submoduleText != null and submoduleText != ''">and submoduleText = #{submoduleText}</if> |
| | | <if test="submoduleVoice != null and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if> |
| | | <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if> |
| | | <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">and next_scriptno = #{nextScriptno}</if> |
| | | <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | <if test="scriptAssortname != null and scriptAssortname != ''">and script_assortname like concat('%', |
| | | #{scriptAssortname}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">and duty_dept_name like concat('%', #{dutyDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">and duty_dept_code like concat('%', #{dutyDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">and report_dept_name like concat('%', |
| | | #{reportDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">and report_dept_code like concat('%', |
| | | #{reportDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic like concat('%', |
| | | #{scriptTopic}, |
| | | '%') |
| | | </if> |
| | | <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="isMust != null and isMust != ''">and is_must = #{isMust}</if> |
| | | <if test="scriptType != null">and script_type = #{scriptType}</if> |
| | | <if test="sort != null">and sort = #{sort}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplateScriptByID" parameterType="Long" resultMap="IvrLibaTemplateScriptResult"> |
| | |
| | | <if test="submoduleVoice != null">submoduleVoice,</if> |
| | | <if test="noClearlyText != null">noClearlyText,</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="scriptAssortname != null">script_assortname,</if> |
| | | <if test="playWavOnly != null">playWavOnly,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | |
| | | <if test="score != null ">score,</if> |
| | | <if test="ivrtext != null ">ivrtext,</if> |
| | | <if test="groupName != null ">group_name,</if> |
| | | <if test="assortid != null ">assortid,</if> |
| | | <if test="scriptAssortid != null ">script_assortid,</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name,</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code,</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name,</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptno != null">#{scriptno},</if> |
| | |
| | | <if test="submoduleVoice != null">#{submoduleVoice},</if> |
| | | <if test="noClearlyText != null">#{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">#{noClearlyVoice},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="scriptAssortname != null">#{scriptAssortname},</if> |
| | | <if test="playWavOnly != null">#{playWavOnly},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | |
| | | <if test="score != null ">#{score},</if> |
| | | <if test="ivrtext != null ">#{ivrtext},</if> |
| | | <if test="groupName != null ">#{groupName},</if> |
| | | <if test="assortid != null ">#{assortid},</if> |
| | | <if test="scriptAssortid != null ">#{scriptAssortid},</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">#{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">#{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">#{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="submoduleVoice != null">submoduleVoice = #{submoduleVoice},</if> |
| | | <if test="noClearlyText != null">noClearlyText = #{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice = #{noClearlyVoice},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="scriptAssortname != null">script_assortname = #{scriptAssortname},</if> |
| | | <if test="playWavOnly != null">playWavOnly = #{playWavOnly},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | |
| | | <if test="branchFlag != null and branchFlag != ''">branch_flag = #{branchFlag},</if> |
| | | <if test="score != null ">score = #{score},</if> |
| | | <if test="groupName != null ">group_name = #{groupName},</if> |
| | | <if test="assortid != null ">assortid = #{assortid},</if> |
| | | <if test="scriptAssortid != null ">script_assortid = #{scriptAssortid},</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">branch_nextscriptno = |
| | | #{branchNextscriptno}, |
| | | </if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name = #{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code = #{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name = #{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | |
| | | </delete> |
| | | |
| | | <select id="queryLibTemplateIds" resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | where del_flag=0 |
| | | <if test="scriptAssortids != null and scriptAssortids.size > 0"> |
| | | and script_assortid in |
| | | <foreach item="scriptAssortid" collection="scriptAssortids" open="(" separator="," close=")"> |
| | | #{scriptAssortid} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | <result property="isEnd" column="is_end"/> |
| | | <result property="sendTaskid" column="send_taskid"/> |
| | | <result property="sendTaskname" column="send_taskname"/> |
| | | <result property="isException" column="is_exception"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateTargetoptionVo"> |
| | | select id, |
| | | targetid, |
| | | is_exception, |
| | | send_taskid, |
| | | send_taskname, |
| | | is_end, |
| | |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="isException != null ">and is_exception = #{isException}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | <if test="targetname != null ">and targetname = #{targetname}</if> |
| | |
| | | <if test="isEnd != null ">is_end,</if> |
| | | <if test="sendTaskid != null">send_taskid,</if> |
| | | <if test="sendTaskname != null">send_taskname,</if> |
| | | <if test="isException != null">is_exception,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="targetid != null">#{targetid},</if> |
| | |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | <if test="sendTaskid != null">#{sendTaskid},</if> |
| | | <if test="sendTaskname != null">#{sendTaskname},</if> |
| | | <if test="isException != null">#{isException},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | <if test="sendTaskid != null">send_taskid= #{sendTaskid},</if> |
| | | <if test="sendTaskname != null">send_taskname = #{sendTaskname},</if> |
| | | <if test="isException != null">is_exception = #{isException},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="submoduleVoice" column="submoduleVoice"/> |
| | | <result property="noClearlyText" column="noClearlyText"/> |
| | | <result property="noClearlyVoice" column="noClearlyVoice"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | | <result property="scriptAssortname" column="script_assortname"/> |
| | | <result property="targetOptions" column="targetOptions"/> |
| | | <result property="language" column="language"/> |
| | | <result property="playWavOnly" column="playWavOnly"/> |
| | |
| | | <result property="ivrtext" column="ivrtext"/> |
| | | <result property="groupName" column="group_name"/> |
| | | <result property="scriptTopic" column="script_topic"/> |
| | | <result property="assortid" column="assortid"/> |
| | | <result property="scriptAssortid" column="script_assortid"/> |
| | | <result property="dutyDeptName" column="duty_dept_name"/> |
| | | <result property="dutyDeptCode" column="duty_dept_code"/> |
| | | <result property="reportDeptCode" column="report_dept_name"/> |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateScriptVo"> |
| | | select id, |
| | | taskid, |
| | | assortid, |
| | | duty_dept_name, |
| | | duty_dept_code, |
| | | report_dept_name, |
| | | report_dept_code, |
| | | script_assortid, |
| | | sort, |
| | | ivrtext, |
| | | script_type, |
| | |
| | | submoduleVoice, |
| | | noClearlyText, |
| | | noClearlyVoice, |
| | | categoryName, |
| | | script_assortname, |
| | | targetOptions, language, playWavOnly, value_type, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, targettype, targetid, targetvalue, otherdata, is_must, question_result |
| | | from ivr_task_template_script |
| | | </sql> |
| | |
| | | resultMap="IvrTaskTemplateScriptResult"> |
| | | <include refid="selectIvrTaskTemplateScriptVo"/> |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="assortid != null ">and assortid = #{assortid}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | <if test="scriptTopic != null ">and script_topic = #{scriptTopic}</if> |
| | | <if test="ivrtext != null ">and ivrtext = #{ivrtext}</if> |
| | | <if test="sort != null ">and sort = #{sort}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="questionPoint != null and questionPoint != ''">and questionPoint = #{questionPoint}</if> |
| | | <if test="noMatchText != null and noMatchText != ''">and noMatchText = #{noMatchText}</if> |
| | | <if test="noMatchVoice != null and noMatchVoice != ''">and noMatchVoice = #{noMatchVoice}</if> |
| | | <if test="slienceText != null and slienceText != ''">and slienceText = #{slienceText}</if> |
| | | <if test="slienceVoice != null and slienceVoice != ''">and slienceVoice = #{slienceVoice}</if> |
| | | <if test="submoduleText != null and submoduleText != ''">and submoduleText = #{submoduleText}</if> |
| | | <if test="submoduleVoice != null and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if> |
| | | <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if> |
| | | <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | '%') |
| | | </if> |
| | | <if test="targetOptions != null and targetOptions != ''">and targetOptions = #{targetOptions}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | <if test="isMust != null and isMust != ''">and is_must = #{isMust}</if> |
| | | <if test="questionResult != null and questionResult != ''">and question_result = #{questionResult}</if> |
| | | <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if> |
| | | <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">and next_scriptno = #{nextScriptno}</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | and del_flag = 0 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="scriptAssortid != null ">and script_assortid = #{scriptAssortid}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | <if test="scriptTopic != null ">and script_topic = #{scriptTopic}</if> |
| | | <if test="ivrtext != null ">and ivrtext = #{ivrtext}</if> |
| | | <if test="sort != null ">and sort = #{sort}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="questionPoint != null and questionPoint != ''">and questionPoint = #{questionPoint}</if> |
| | | <if test="noMatchText != null and noMatchText != ''">and noMatchText = #{noMatchText}</if> |
| | | <if test="noMatchVoice != null and noMatchVoice != ''">and noMatchVoice = #{noMatchVoice}</if> |
| | | <if test="slienceText != null and slienceText != ''">and slienceText = #{slienceText}</if> |
| | | <if test="slienceVoice != null and slienceVoice != ''">and slienceVoice = #{slienceVoice}</if> |
| | | <if test="submoduleText != null and submoduleText != ''">and submoduleText = #{submoduleText}</if> |
| | | <if test="submoduleVoice != null and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if> |
| | | <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if> |
| | | <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if> |
| | | <if test="scriptAssortname != null and scriptAssortname != ''">and script_assortname like concat('%', |
| | | #{scriptAssortname}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">and duty_dept_name like concat('%', #{dutyDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">and duty_dept_code like concat('%', #{dutyDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">and report_dept_name like concat('%', |
| | | #{reportDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">and report_dept_code like concat('%', |
| | | #{reportDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="targetOptions != null and targetOptions != ''">and targetOptions = #{targetOptions}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | <if test="isMust != null and isMust != ''">and is_must = #{isMust}</if> |
| | | <if test="questionResult != null and questionResult != ''">and question_result = #{questionResult}</if> |
| | | <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if> |
| | | <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">and next_scriptno = #{nextScriptno}</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskTemplateScriptByID" parameterType="Long" resultMap="IvrTaskTemplateScriptResult"> |
| | |
| | | <if test="submoduleVoice != null">submoduleVoice,</if> |
| | | <if test="noClearlyText != null">noClearlyText,</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="scriptAssortname != null">script_assortname,</if> |
| | | <if test="targetOptions != null">targetOptions,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="playWavOnly != null">playWavOnly,</if> |
| | |
| | | <if test="scriptType != null and scriptType != ''">script_type,</if> |
| | | <if test="scriptContent != null and scriptContent != ''">script_content,</if> |
| | | <if test="sort != null ">sort,</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">next_scriptno,</if> |
| | | <if test="nextScriptno != null ">next_scriptno,</if> |
| | | <if test="score != null ">score,</if> |
| | | <if test="ivrtext != null ">ivrtext,</if> |
| | | <if test="scriptTopic != null ">script_topic,</if> |
| | | <if test="assortid != null ">assortid,</if> |
| | | <if test="scriptAssortid != null ">script_assortid,</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name,</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code,</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name,</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="submoduleVoice != null">#{submoduleVoice},</if> |
| | | <if test="noClearlyText != null">#{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">#{noClearlyVoice},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="scriptAssortname != null">#{scriptAssortname},</if> |
| | | <if test="targetOptions != null">#{targetOptions},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="playWavOnly != null">#{playWavOnly},</if> |
| | |
| | | <if test="scriptType != null and scriptType != ''">#{scriptType},</if> |
| | | <if test="scriptContent != null and scriptContent != ''">#{scriptContent},</if> |
| | | <if test="sort != null">#{sort},</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">#{nextScriptno},</if> |
| | | <if test="nextScriptno != null">#{nextScriptno},</if> |
| | | <if test="score != null ">#{score},</if> |
| | | <if test="ivrtext != null ">#{ivrtext},</if> |
| | | <if test="scriptTopic != null ">#{scriptTopic},</if> |
| | | <if test="assortid != null ">#{assortid},</if> |
| | | <if test="scriptAssortid != null ">#{scriptAssortid},</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">#{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">#{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">#{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="submoduleVoice != null">submoduleVoice = #{submoduleVoice},</if> |
| | | <if test="noClearlyText != null">noClearlyText = #{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice = #{noClearlyVoice},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="scriptAssortname != null">script_assortname = #{scriptAssortname},</if> |
| | | <if test="targetOptions != null">targetOptions = #{targetOptions},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="playWavOnly != null">playWavOnly = #{playWavOnly},</if> |
| | |
| | | <if test="scriptType != null and scriptType != ''">script_type = #{scriptType},</if> |
| | | <if test="scriptContent != null and scriptContent != ''">script_content = #{scriptContent},</if> |
| | | <if test="sort != null">sort = #{sort},</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">next_scriptno = #{nextScriptno},</if> |
| | | <if test="nextScriptno != null ">next_scriptno = #{nextScriptno},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="ivrtext != null">ivrtext = #{ivrtext},</if> |
| | | <if test="scriptTopic != null ">script_topic = #{scriptTopic},</if> |
| | | <if test="assortid != null ">assortid = #{assortid},</if> |
| | | <if test="scriptAssortid != null ">script_assortid = #{scriptAssortid},</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name = #{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code = #{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name = #{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskTemplateScriptByID" parameterType="Long"> |
| | | update ivr_task_template_script set del_flag=1 |
| | | update ivr_task_template_script |
| | | set del_flag=1 |
| | | where ID = #{ID} |
| | | </delete> |
| | | |
| | |
| | | <result property="isEnd" column="is_end"/> |
| | | <result property="sendTaskid" column="send_taskid"/> |
| | | <result property="sendTaskname" column="send_taskname"/> |
| | | <result property="isException" column="is_exception"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateTargetoptionVo"> |
| | | select id, |
| | | taskid, |
| | | is_exception, |
| | | send_taskid, |
| | | send_taskname, |
| | | is_end, |
| | |
| | | <include refid="selectIvrTaskTemplateTargetoptionVo"/> |
| | | where 1=1 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="isException != null ">and is_exception = #{isException}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | |
| | | <if test="isEnd != null ">is_end,</if> |
| | | <if test="sendTaskid != null">send_taskid,</if> |
| | | <if test="sendTaskname != null">send_taskname,</if> |
| | | <if test="isException != null ">is_exception,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | <if test="sendTaskid != null">#{sendTaskid},</if> |
| | | <if test="sendTaskname != null">#{sendTaskname},</if> |
| | | <if test="isException != null ">#{isException},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | <if test="sendTaskid != null">send_taskid= #{sendTaskid},</if> |
| | | <if test="sendTaskname != null">send_taskname = #{sendTaskname},</if> |
| | | <if test="isException != null ">is_exception = #{isException},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | {CALL sp_query_outhosp( |
| | | #{outhospno, jdbcType=VARCHAR, mode=IN}, |
| | | #{serialnum, jdbcType=VARCHAR, mode=IN}, |
| | | #{patid, jdbcType=BIGINT, mode=IN}, |
| | | #{patid, jdbcType=INTEGER, mode=IN}, |
| | | #{patname, jdbcType=VARCHAR, mode=IN}, |
| | | #{patno, jdbcType=VARCHAR, mode=IN}, |
| | | #{hospitalname, jdbcType=VARCHAR, mode=IN}, |
| | | #{hospitalcode, jdbcType=VARCHAR, mode=IN}, |
| | | #{icd10code, jdbcType=VARCHAR, mode=IN}, |
| | | #{diagname, jdbcType=VARCHAR, mode=IN}, |
| | | #{deptid, jdbcType=BIGINT, mode=IN}, |
| | | #{deptid, jdbcType=INTEGER, mode=IN}, |
| | | #{deptcode, jdbcType=VARCHAR, mode=IN}, |
| | | #{deptname, jdbcType=VARCHAR, mode=IN}, |
| | | #{drcode, jdbcType=VARCHAR, mode=IN}, |
| | |
| | | #{beginAdmitdate,jdbcType=DATE, mode=IN}, |
| | | #{endAdmitdate, jdbcType=DATE, mode=IN}, |
| | | #{orgid, jdbcType=VARCHAR, mode=IN}, |
| | | #{isupload, jdbcType=BIGINT, mode=IN}, |
| | | #{schemestatus, jdbcType=BIGINT, mode=IN}, |
| | | #{isupload, jdbcType=INTEGER, mode=IN}, |
| | | #{schemestatus, jdbcType=INTEGER, mode=IN}, |
| | | #{hpi, jdbcType=VARCHAR, mode=IN}, |
| | | #{mainsuit, jdbcType=VARCHAR, mode=IN}, |
| | | #{pid, jdbcType=INTEGER, mode=IN}, |
| | |
| | | <result property="assigntime" column="assigntime"/> |
| | | <result property="starttime" column="starttime"/> |
| | | <result property="answertime" column="answertime"/> |
| | | |
| | | <result property="silent" column="silent"/> |
| | | <result property="dtmfKey" column="dtmf_key"/> |
| | | <result property="musicpath" column="musicpath"/> |
| | |
| | | <result property="patid" column="patid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="extemplateText" column="extemplate_text"/> |
| | | <result property="templateType" column="template_type"/> |
| | | <result property="libTemplateid" column="lib_templateid"/> |
| | | <result property="score" column="score"/> |
| | | </resultMap> |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskDetailTarget" id="ServiceSubtaskDetailTargetResult"> |
| | | <result property="targetid" column="targetid"/> |
| | |
| | | <sql id="selectServiceSubtaskDetailVo"> |
| | | select id, |
| | | sub_id, |
| | | lib_templateid, |
| | | targetid, |
| | | answerps, |
| | | scriptid, |
| | |
| | | update_by, |
| | | update_time, |
| | | value_type, |
| | | template_type, |
| | | score, |
| | | create_by |
| | | from service_subtask_detail |
| | | </sql> |
| | |
| | | resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | where 1=1 |
| | | <if test="subId != null">and sub_id = #{subId}</if> |
| | | <if test="targetid != null">and targetid = #{targetid}</if> |
| | | <if test="extemplateText != null">and extemplate_text = #{extemplateText}</if> |
| | | <if test="taskid != null">and taskid = #{taskid}</if> |
| | | <if test="uuid != null and uuid != ''">and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="operate != null and operate != ''">and operate = #{operate}</if> |
| | | <if test="displayno != null and displayno != ''">and displayno = #{displayno}</if> |
| | | <if test="inbound != null ">and inbound = #{inbound}</if> |
| | | <if test="incoming != null ">and incoming = #{incoming}</if> |
| | | <if test="assigntime != null ">and assigntime = #{assigntime}</if> |
| | | <if test="starttime != null ">and starttime = #{starttime}</if> |
| | | <if test="answertime != null ">and answertime = #{answertime}</if> |
| | | <if test="silent != null ">and silent = #{silent}</if> |
| | | <if test="dtmfKey != null and dtmfKey != ''">and dtmf_key = #{dtmfKey}</if> |
| | | <if test="musicpath != null and musicpath != ''">and musicpath = #{musicpath}</if> |
| | | <if test="sentIndex != null ">and sent_index = #{sentIndex}</if> |
| | | <if test="sentBegin != null ">and sent_begin = #{sentBegin}</if> |
| | | <if test="asrtext != null and asrtext != ''">and asrtext = #{asrtext}</if> |
| | | <if test="beginTime != null ">and begin_time = #{beginTime}</if> |
| | | <if test="endTime != null ">and end_time = #{endTime}</if> |
| | | <if test="sentEnd != null ">and sent_end = #{sentEnd}</if> |
| | | <if test="recordpath != null and recordpath != ''">and recordpath = #{recordpath}</if> |
| | | <if test="recordurl != null and recordurl != ''">and recordurl = #{recordurl}</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatequestionnum != null ">and templatequestionnum = #{templatequestionnum}</if> |
| | | <if test="switchid != null ">and switchid = #{switchid}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="questiontext != null and questiontext != ''">and questiontext = #{questiontext}</if> |
| | | <if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if> |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | '%') |
| | | </if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="matchedtext != null and matchedtext != ''">and matchedtext = #{matchedtext}</if> |
| | | <if test="addtime != null ">and addtime = #{addtime}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="answerps != null and answerps != ''">and answerps = #{answerps}</if> |
| | | <if test="comment != null and comment != ''">and comment = #{comment}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test=" patid != null">and patid = #{patid}</if> |
| | | <if test="subId != null">and sub_id = #{subId}</if> |
| | | <if test="templateType != null">and template_type = #{templateType}</if> |
| | | <if test="libTemplateid != null">and lib_templateid = #{libTemplateid}</if> |
| | | <if test="targetid != null">and targetid = #{targetid}</if> |
| | | <if test="extemplateText != null">and extemplate_text = #{extemplateText}</if> |
| | | <if test="taskid != null">and taskid = #{taskid}</if> |
| | | <if test="uuid != null and uuid != ''">and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="operate != null and operate != ''">and operate = #{operate}</if> |
| | | <if test="displayno != null and displayno != ''">and displayno = #{displayno}</if> |
| | | <if test="inbound != null ">and inbound = #{inbound}</if> |
| | | <if test="incoming != null ">and incoming = #{incoming}</if> |
| | | <if test="assigntime != null ">and assigntime = #{assigntime}</if> |
| | | <if test="starttime != null ">and starttime = #{starttime}</if> |
| | | <if test="answertime != null ">and answertime = #{answertime}</if> |
| | | <if test="silent != null ">and silent = #{silent}</if> |
| | | <if test="dtmfKey != null and dtmfKey != ''">and dtmf_key = #{dtmfKey}</if> |
| | | <if test="musicpath != null and musicpath != ''">and musicpath = #{musicpath}</if> |
| | | <if test="sentIndex != null ">and sent_index = #{sentIndex}</if> |
| | | <if test="sentBegin != null ">and sent_begin = #{sentBegin}</if> |
| | | <if test="asrtext != null and asrtext != ''">and asrtext = #{asrtext}</if> |
| | | <if test="beginTime != null ">and begin_time = #{beginTime}</if> |
| | | <if test="endTime != null ">and end_time = #{endTime}</if> |
| | | <if test="sentEnd != null ">and sent_end = #{sentEnd}</if> |
| | | <if test="recordpath != null and recordpath != ''">and recordpath = #{recordpath}</if> |
| | | <if test="recordurl != null and recordurl != ''">and recordurl = #{recordurl}</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatequestionnum != null ">and templatequestionnum = #{templatequestionnum}</if> |
| | | <if test="switchid != null ">and switchid = #{switchid}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="questiontext != null and questiontext != ''">and questiontext = #{questiontext}</if> |
| | | <if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if> |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | '%') |
| | | </if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="matchedtext != null and matchedtext != ''">and matchedtext = #{matchedtext}</if> |
| | | <if test="addtime != null ">and addtime = #{addtime}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="answerps != null and answerps != ''">and answerps = #{answerps}</if> |
| | | <if test="comment != null and comment != ''">and comment = #{comment}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="patid != null">and patid = #{patid}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectServiceSubtaskDetailByCalldetailid" parameterType="String" resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <select id="queryFillCount" resultType="com.smartor.domain.DTO.ServiceSubtaskDetailDTO"> |
| | | select id,questiontext,matchedtext,targetvalue,score |
| | | from service_subtask_detail |
| | | where del_flag = 0 |
| | | and sub_id in |
| | | <foreach item="subid" collection="subids" open="(" separator="," close=")"> |
| | | #{subid} |
| | | </foreach> |
| | | <if test="questiontext != null">and questiontext = #{questiontext}</if> |
| | | </select> |
| | | |
| | | <select id="isExistServiceSubtaskDetail" resultType="com.smartor.domain.DTO.ServiceSubtaskDetailDTO"> |
| | | select id, questiontext, matchedtext, score |
| | | from service_subtask_detail |
| | | where del_flag = 0 |
| | | <if test="subid != null ">and sub_id = #{subid}</if> |
| | | <if test="scriptid != null">and scriptid = #{scriptid}</if> |
| | | </select> |
| | | |
| | | <insert id="insertServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail" |
| | |
| | | <if test=" extemplateText != null">extemplate_text,</if> |
| | | <if test=" guid != null">guid,</if> |
| | | <if test=" categoryid != null">categoryid,</if> |
| | | <if test="templateType != null">template_type,</if> |
| | | <if test="libTemplateid != null">lib_templateid,</if> |
| | | <if test="score != null">score,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="extemplateText != null">#{extemplateText},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | <if test="templateType != null">#{templateType},</if> |
| | | <if test="libTemplateid != null">#{libTemplateid},</if> |
| | | <if test="score != null">#{score},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="scriptid != null ">scriptid = #{scriptid},</if> |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | <if test="libTemplateid != null">lib_templateid = #{libTemplateid},</if> |
| | | <if test=" guid != null">guid = #{guid},</if> |
| | | <if test=" categoryid != null">categoryid = #{categoryid},</if> |
| | | <if test="templateType != null">template_type = #{templateType},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | <if test=" guid != null">guid = #{guid},</if> |
| | | <if test=" categoryid != null">categoryid = #{categoryid},</if> |
| | | <if test="templateType != null">template_type = #{templateType},</if> |
| | | <if test="libTemplateid != null">lib_templateid = #{libTemplateid},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | </trim> |
| | | where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId} |
| | | </update> |
| | |
| | | FROM service_subtask_detail |
| | | JOIN service_task |
| | | ON service_task.taskid = service_subtask_detail.taskid |
| | | JOIN ivr_liba_target ON ivr_liba_target.id = service_subtask_detail.targetid |
| | | JOIN ivr_liba_target ON ivr_liba_target.id = service_subtask_detail.targetid |
| | | WHERE |
| | | targetid = #{targetid} |
| | | GROUP BY service_task.taskid, |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.ServiceSubtaskDetailTraceMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskDetailTrace" id="ServiceSubtaskDetailTtraceResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="detailId" column="detail_id"/> |
| | | <result property="subId" column="sub_id"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="templatequestionnum" column="templatequestionnum"/> |
| | | <result property="switchid" column="switchid"/> |
| | | <result property="questiontext" column="questiontext"/> |
| | | <result property="questionvoice" column="questionvoice"/> |
| | | <result property="categoryname" column="categoryname"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetvalue" column="targetvalue"/> |
| | | <result property="matchedtext" column="matchedtext"/> |
| | | <result property="uuid" column="uuid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="scriptid" column="scriptid"/> |
| | | <result property="answerps" column="answerps"/> |
| | | <result property="comment" column="comment"/> |
| | | <result property="asrtext" column="asrtext"/> |
| | | <result property="recordpath" column="recordpath"/> |
| | | <result property="recordurl" column="recordurl"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="patdesc" column="patdesc"/> |
| | | <result property="todeptid" column="todeptid"/> |
| | | <result property="todeptcode" column="todeptcode"/> |
| | | <result property="todeptname" column="todeptname"/> |
| | | <result property="handleresult" column="handleresult"/> |
| | | <result property="handledesc" column="handledesc"/> |
| | | <result property="handleFlag" column="handle_flag"/> |
| | | <result property="handleBy" column="handle_by"/> |
| | | <result property="handleTime" column="handle_time"/> |
| | | <result property="ccdepts" column="ccdepts"/> |
| | | <result property="finaloption" column="finaloption"/> |
| | | <result property="finaltime" column="finaltime"/> |
| | | <result property="operate" column="operate"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="pguid" column="pguid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="templateType" column="template_type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceSubtaskDetailTtraceVo"> |
| | | select id, |
| | | detail_id, |
| | | template_type, |
| | | sub_id, |
| | | taskid, |
| | | templateid, |
| | | templatequestionnum, |
| | | switchid, |
| | | questiontext, |
| | | questionvoice, |
| | | categoryname, |
| | | targetid, |
| | | targetvalue, |
| | | matchedtext, |
| | | uuid, |
| | | guid, |
| | | value_type, |
| | | scriptid, |
| | | answerps, |
| | | comment, |
| | | asrtext, |
| | | recordpath, |
| | | recordurl, |
| | | patid, |
| | | patdesc, |
| | | todeptid, |
| | | todeptcode, |
| | | todeptname, |
| | | handleresult, |
| | | handledesc, |
| | | handle_flag, |
| | | handle_by, |
| | | handle_time, |
| | | ccdepts, |
| | | finaloption, |
| | | finaltime, |
| | | operate, |
| | | orgid, |
| | | isupload, |
| | | upload_time, |
| | | create_time, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | pguid, |
| | | type, |
| | | pid, |
| | | categoryid |
| | | from service_subtask_detail_trace |
| | | </sql> |
| | | |
| | | <select id="selectServiceSubtaskDetailTtraceList" parameterType="com.smartor.domain.ServiceSubtaskDetailTrace" |
| | | resultMap="ServiceSubtaskDetailTtraceResult"> |
| | | <include refid="selectServiceSubtaskDetailTtraceVo"/> |
| | | where del_flag=0 |
| | | <if test="detailId != null "> |
| | | and detail_id = #{detailId} |
| | | </if> |
| | | <if test="templateType != null "> |
| | | and template_type = #{templateType} |
| | | </if> |
| | | <if test="subId != null "> |
| | | and sub_id = #{subId} |
| | | </if> |
| | | <if test="taskid != null "> |
| | | and taskid = #{taskid} |
| | | </if> |
| | | <if test="templateid != null and templateid != ''"> |
| | | and templateid = #{templateid} |
| | | </if> |
| | | <if test="templatequestionnum != null "> |
| | | and templatequestionnum = #{templatequestionnum} |
| | | </if> |
| | | <if test="switchid != null "> |
| | | and switchid = #{switchid} |
| | | </if> |
| | | <if test="questiontext != null and questiontext != ''"> |
| | | and questiontext = #{questiontext} |
| | | </if> |
| | | <if test="questionvoice != null and questionvoice != ''"> |
| | | and questionvoice = #{questionvoice} |
| | | </if> |
| | | <if test="categoryname != null and categoryname != ''"> |
| | | and categoryname like concat('%', #{categoryname}, '%') |
| | | </if> |
| | | <if test="targetid != null "> |
| | | and targetid = #{targetid} |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''"> |
| | | and targetvalue = #{targetvalue} |
| | | </if> |
| | | <if test="matchedtext != null and matchedtext != ''"> |
| | | and matchedtext = #{matchedtext} |
| | | </if> |
| | | <if test="uuid != null and uuid != ''"> |
| | | and uuid = #{uuid} |
| | | </if> |
| | | <if test="guid != null and guid != ''"> |
| | | and guid = #{guid} |
| | | </if> |
| | | <if test="valueType != null and valueType != ''"> |
| | | and value_type = #{valueType} |
| | | </if> |
| | | <if test="scriptid != null "> |
| | | and scriptid = #{scriptid} |
| | | </if> |
| | | <if test="answerps != null and answerps != ''"> |
| | | and answerps = #{answerps} |
| | | </if> |
| | | <if test="comment != null and comment != ''"> |
| | | and comment = #{comment} |
| | | </if> |
| | | <if test="asrtext != null and asrtext != ''"> |
| | | and asrtext = #{asrtext} |
| | | </if> |
| | | <if test="recordpath != null and recordpath != ''"> |
| | | and recordpath = #{recordpath} |
| | | </if> |
| | | <if test="recordurl != null and recordurl != ''"> |
| | | and recordurl = #{recordurl} |
| | | </if> |
| | | <if test="patid != null "> |
| | | and patid = #{patid} |
| | | </if> |
| | | <if test="patdesc != null and patdesc != ''"> |
| | | and patdesc = #{patdesc} |
| | | </if> |
| | | <if test="todeptid != null "> |
| | | and todeptid = #{todeptid} |
| | | </if> |
| | | <if test="todeptcode != null and todeptcode != ''"> |
| | | and todeptcode = #{todeptcode} |
| | | </if> |
| | | <if test="todeptname != null and todeptname != ''"> |
| | | and todeptname like concat('%', #{todeptname}, '%') |
| | | </if> |
| | | <if test="handleresult != null and handleresult != ''"> |
| | | and handleresult = #{handleresult} |
| | | </if> |
| | | <if test="handledesc != null and handledesc != ''"> |
| | | and handledesc = #{handledesc} |
| | | </if> |
| | | <if test="handleFlag != null and handleFlag != ''"> |
| | | and handle_flag = #{handleFlag} |
| | | </if> |
| | | <if test="handleBy != null and handleBy != ''"> |
| | | and handle_by = #{handleBy} |
| | | </if> |
| | | <if test="handleTime != null "> |
| | | and handle_time = #{handleTime} |
| | | </if> |
| | | <if test="ccdepts != null and ccdepts != ''"> |
| | | and ccdepts = #{ccdepts} |
| | | </if> |
| | | <if test="finaloption != null and finaloption != ''"> |
| | | and finaloption = #{finaloption} |
| | | </if> |
| | | <if test="finaltime != null "> |
| | | and finaltime = #{finaltime} |
| | | </if> |
| | | <if test="operate != null and operate != ''"> |
| | | and operate = #{operate} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="isupload != null "> |
| | | and isupload = #{isupload} |
| | | </if> |
| | | <if test="uploadTime != null "> |
| | | and upload_time = #{uploadTime} |
| | | </if> |
| | | <if test="pguid != null and pguid != ''"> |
| | | and pguid = #{pguid} |
| | | </if> |
| | | <if test="pid != null "> |
| | | and pid = #{pid} |
| | | </if> |
| | | <if test="categoryid != null "> |
| | | and categoryid = #{categoryid} |
| | | </if> |
| | | <if test="type != null and type != ''"> |
| | | and type = #{type} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="tracedeallist" parameterType="com.smartor.domain.VO.DetailTraceDealVO" |
| | | resultMap="ServiceSubtaskDetailTtraceResult"> |
| | | <include refid="selectServiceSubtaskDetailTtraceVo"/> |
| | | where del_flag=0 |
| | | |
| | | <if test="templateid != null and templateid != ''"> |
| | | and templateid = #{templateid} |
| | | </if> |
| | | <if test="todeptcode != null and todeptcode != ''"> |
| | | and FIND_IN_SET(#{todeptcode}, todeptcode) |
| | | </if> |
| | | <if test="todeptname != null and todeptname != ''"> |
| | | and todeptname like concat('%', #{todeptname}, '%') |
| | | </if> |
| | | <if test="handleStartTime != null and handleEndTime != null"> |
| | | and handle_time between #{handleStartTime} and #{handleEndTime} |
| | | </if> |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | |
| | | <if test="type != null and type != ''"> |
| | | and type = #{type} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <select id="selectServiceSubtaskDetailTtraceById" parameterType="Long" |
| | | resultMap="ServiceSubtaskDetailTtraceResult"> |
| | | <include refid="selectServiceSubtaskDetailTtraceVo"/> |
| | | where del_flag=0 and id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertServiceSubtaskDetailTtrace" parameterType="com.smartor.domain.ServiceSubtaskDetailTrace" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into service_subtask_detail_trace |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="detailId != null">detail_id, |
| | | </if> |
| | | <if test="subId != null">sub_id, |
| | | </if> |
| | | <if test="taskid != null">taskid, |
| | | </if> |
| | | <if test="templateid != null">templateid, |
| | | </if> |
| | | <if test="templatequestionnum != null">templatequestionnum, |
| | | </if> |
| | | <if test="switchid != null">switchid, |
| | | </if> |
| | | <if test="questiontext != null">questiontext, |
| | | </if> |
| | | <if test="questionvoice != null">questionvoice, |
| | | </if> |
| | | <if test="categoryname != null">categoryname, |
| | | </if> |
| | | <if test="targetid != null">targetid, |
| | | </if> |
| | | <if test="targetvalue != null">targetvalue, |
| | | </if> |
| | | <if test="matchedtext != null">matchedtext, |
| | | </if> |
| | | <if test="uuid != null">uuid, |
| | | </if> |
| | | <if test="guid != null">guid, |
| | | </if> |
| | | <if test="valueType != null">value_type, |
| | | </if> |
| | | <if test="scriptid != null">scriptid, |
| | | </if> |
| | | <if test="answerps != null">answerps, |
| | | </if> |
| | | <if test="comment != null">comment, |
| | | </if> |
| | | <if test="asrtext != null">asrtext, |
| | | </if> |
| | | <if test="recordpath != null">recordpath, |
| | | </if> |
| | | <if test="recordurl != null">recordurl, |
| | | </if> |
| | | <if test="patid != null">patid, |
| | | </if> |
| | | <if test="patdesc != null">patdesc, |
| | | </if> |
| | | <if test="todeptid != null">todeptid, |
| | | </if> |
| | | <if test="todeptcode != null">todeptcode, |
| | | </if> |
| | | <if test="todeptname != null">todeptname, |
| | | </if> |
| | | <if test="handleresult != null">handleresult, |
| | | </if> |
| | | <if test="handledesc != null">handledesc, |
| | | </if> |
| | | <if test="handleFlag != null">handle_flag, |
| | | </if> |
| | | <if test="handleBy != null">handle_by, |
| | | </if> |
| | | <if test="handleTime != null">handle_time, |
| | | </if> |
| | | <if test="ccdepts != null">ccdepts, |
| | | </if> |
| | | <if test="finaloption != null">finaloption, |
| | | </if> |
| | | <if test="finaltime != null">finaltime, |
| | | </if> |
| | | <if test="operate != null">operate, |
| | | </if> |
| | | <if test="orgid != null">orgid, |
| | | </if> |
| | | <if test="isupload != null">isupload, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="delFlag != null">del_flag, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="pguid != null">pguid, |
| | | </if> |
| | | <if test="pid != null">pid, |
| | | </if> |
| | | <if test="categoryid != null">categoryid, |
| | | </if> |
| | | <if test="type != null">type, |
| | | </if> |
| | | <if test="templateType != null">template_type, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="detailId != null">#{detailId}, |
| | | </if> |
| | | <if test="subId != null">#{subId}, |
| | | </if> |
| | | <if test="taskid != null">#{taskid}, |
| | | </if> |
| | | <if test="templateid != null">#{templateid}, |
| | | </if> |
| | | <if test="templatequestionnum != null">#{templatequestionnum}, |
| | | </if> |
| | | <if test="switchid != null">#{switchid}, |
| | | </if> |
| | | <if test="questiontext != null">#{questiontext}, |
| | | </if> |
| | | <if test="questionvoice != null">#{questionvoice}, |
| | | </if> |
| | | <if test="categoryname != null">#{categoryname}, |
| | | </if> |
| | | <if test="targetid != null">#{targetid}, |
| | | </if> |
| | | <if test="targetvalue != null">#{targetvalue}, |
| | | </if> |
| | | <if test="matchedtext != null">#{matchedtext}, |
| | | </if> |
| | | <if test="uuid != null">#{uuid}, |
| | | </if> |
| | | <if test="guid != null">#{guid}, |
| | | </if> |
| | | <if test="valueType != null">#{valueType}, |
| | | </if> |
| | | <if test="scriptid != null">#{scriptid}, |
| | | </if> |
| | | <if test="answerps != null">#{answerps}, |
| | | </if> |
| | | <if test="comment != null">#{comment}, |
| | | </if> |
| | | <if test="asrtext != null">#{asrtext}, |
| | | </if> |
| | | <if test="recordpath != null">#{recordpath}, |
| | | </if> |
| | | <if test="recordurl != null">#{recordurl}, |
| | | </if> |
| | | <if test="patid != null">#{patid}, |
| | | </if> |
| | | <if test="patdesc != null">#{patdesc}, |
| | | </if> |
| | | <if test="todeptid != null">#{todeptid}, |
| | | </if> |
| | | <if test="todeptcode != null">#{todeptcode}, |
| | | </if> |
| | | <if test="todeptname != null">#{todeptname}, |
| | | </if> |
| | | <if test="handleresult != null">#{handleresult}, |
| | | </if> |
| | | <if test="handledesc != null">#{handledesc}, |
| | | </if> |
| | | <if test="handleFlag != null">#{handleFlag}, |
| | | </if> |
| | | <if test="handleBy != null">#{handleBy}, |
| | | </if> |
| | | <if test="handleTime != null">#{handleTime}, |
| | | </if> |
| | | <if test="ccdepts != null">#{ccdepts}, |
| | | </if> |
| | | <if test="finaloption != null">#{finaloption}, |
| | | </if> |
| | | <if test="finaltime != null">#{finaltime}, |
| | | </if> |
| | | <if test="operate != null">#{operate}, |
| | | </if> |
| | | <if test="orgid != null">#{orgid}, |
| | | </if> |
| | | <if test="isupload != null">#{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">#{uploadTime}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="delFlag != null">#{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="pguid != null">#{pguid}, |
| | | </if> |
| | | <if test="pid != null">#{pid}, |
| | | </if> |
| | | <if test="categoryid != null">#{categoryid}, |
| | | </if> |
| | | <if test="type != null">#{type}, |
| | | </if> |
| | | <if test="templateType != null">#{templateType}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateServiceSubtaskDetailTtrace" parameterType="com.smartor.domain.ServiceSubtaskDetailTrace"> |
| | | update service_subtask_detail_trace |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="detailId != null">detail_id = |
| | | #{detailId}, |
| | | </if> |
| | | <if test="subId != null">sub_id = |
| | | #{subId}, |
| | | </if> |
| | | <if test="taskid != null">taskid = |
| | | #{taskid}, |
| | | </if> |
| | | <if test="templateid != null">templateid = |
| | | #{templateid}, |
| | | </if> |
| | | <if test="templatequestionnum != null">templatequestionnum = |
| | | #{templatequestionnum}, |
| | | </if> |
| | | <if test="switchid != null">switchid = |
| | | #{switchid}, |
| | | </if> |
| | | <if test="questiontext != null">questiontext = |
| | | #{questiontext}, |
| | | </if> |
| | | <if test="questionvoice != null">questionvoice = |
| | | #{questionvoice}, |
| | | </if> |
| | | <if test="categoryname != null">categoryname = |
| | | #{categoryname}, |
| | | </if> |
| | | <if test="targetid != null">targetid = |
| | | #{targetid}, |
| | | </if> |
| | | <if test="targetvalue != null">targetvalue = |
| | | #{targetvalue}, |
| | | </if> |
| | | <if test="matchedtext != null">matchedtext = |
| | | #{matchedtext}, |
| | | </if> |
| | | <if test="uuid != null">uuid = |
| | | #{uuid}, |
| | | </if> |
| | | <if test="guid != null">guid = |
| | | #{guid}, |
| | | </if> |
| | | <if test="valueType != null">value_type = |
| | | #{valueType}, |
| | | </if> |
| | | <if test="scriptid != null">scriptid = |
| | | #{scriptid}, |
| | | </if> |
| | | <if test="answerps != null">answerps = |
| | | #{answerps}, |
| | | </if> |
| | | <if test="comment != null">comment = |
| | | #{comment}, |
| | | </if> |
| | | <if test="asrtext != null">asrtext = |
| | | #{asrtext}, |
| | | </if> |
| | | <if test="recordpath != null">recordpath = |
| | | #{recordpath}, |
| | | </if> |
| | | <if test="recordurl != null">recordurl = |
| | | #{recordurl}, |
| | | </if> |
| | | <if test="patid != null">patid = |
| | | #{patid}, |
| | | </if> |
| | | <if test="patdesc != null">patdesc = |
| | | #{patdesc}, |
| | | </if> |
| | | <if test="todeptid != null">todeptid = |
| | | #{todeptid}, |
| | | </if> |
| | | <if test="todeptcode != null">todeptcode = |
| | | #{todeptcode}, |
| | | </if> |
| | | <if test="todeptname != null">todeptname = |
| | | #{todeptname}, |
| | | </if> |
| | | <if test="handleresult != null">handleresult = |
| | | #{handleresult}, |
| | | </if> |
| | | <if test="handledesc != null">handledesc = |
| | | #{handledesc}, |
| | | </if> |
| | | <if test="handleFlag != null">handle_flag = |
| | | #{handleFlag}, |
| | | </if> |
| | | <if test="handleBy != null">handle_by = |
| | | #{handleBy}, |
| | | </if> |
| | | <if test="handleTime != null">handle_time = |
| | | #{handleTime}, |
| | | </if> |
| | | <if test="ccdepts != null">ccdepts = |
| | | #{ccdepts}, |
| | | </if> |
| | | <if test="finaloption != null">finaloption = |
| | | #{finaloption}, |
| | | </if> |
| | | <if test="finaltime != null">finaltime = |
| | | #{finaltime}, |
| | | </if> |
| | | <if test="operate != null">operate = |
| | | #{operate}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="isupload != null">isupload = |
| | | #{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time = |
| | | #{uploadTime}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="pguid != null">pguid = |
| | | #{pguid}, |
| | | </if> |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | <if test="categoryid != null">categoryid = |
| | | #{categoryid}, |
| | | </if> |
| | | <if test="type != null">type = |
| | | #{type}, |
| | | </if> |
| | | <if test="templateType != null">template_type = |
| | | #{templateType}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteServiceSubtaskDetailTtraceById" parameterType="Long"> |
| | | update service_subtask_detail_trace |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteServiceSubtaskDetailTtraceByIds" parameterType="String"> |
| | | update service_subtask_detail_trace |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | </mapper> |
| | |
| | | <if test="sort != null and sort==9">order by sendname asc</if> |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | | <select id="selectSatisfactionSubtaskList" parameterType="com.smartor.domain.VO.PatSatisfactionReqVO" |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | <if test="questionType != null">and type = #{questionType}</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="serviceTypes != null and serviceTypes.size() > 0"> |
| | | AND service_type IN |
| | | <foreach collection="serviceTypes" item="serviceType" open="(" separator="," |
| | | close=")"> |
| | | #{serviceType} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="startTime != null and endTime != null"> |
| | | AND date_format(visit_time,'%y%m%d') >= date_format(#{startTime},'%y%m%d') |
| | | AND date_format(visit_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') |
| | | </if> |
| | | </select> |
| | | <select id="getCompensateServiceSubtaskList" parameterType="com.smartor.domain.entity.ServiceSubtaskEntity" |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | |
| | | |
| | | <select id="getDeptRanking" parameterType="com.smartor.domain.PatMedReq" resultType="com.smartor.domain.PatMedRes"> |
| | | SELECT deptname, |
| | | count(1) AS rc |
| | | count(1) AS rc |
| | | FROM service_subtask |
| | | WHERE DATE_FORMAT(finishtime, '%Y-%m-%d') >= #{startDate} |
| | | AND DATE_FORMAT(finishtime, '%Y-%m-%d') <= #{endDate} |
| | | AND DATE_FORMAT(finishtime, '%Y-%m-%d') <= #{endDate} |
| | | <if test="orgid != null"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | |
| | | </foreach> |
| | | </if> |
| | | |
| | | <!-- UNION ALL--> |
| | | <!-- UNION ALL--> |
| | | |
| | | <!-- -- é¨è¯äººæ¬¡æ°æ®--> |
| | | <!-- SELECT--> |
| | | <!-- <choose>--> |
| | | <!-- <when test="timeType == 'day'">--> |
| | | <!-- DATE_FORMAT(admitdate, '%Y-%m-%d') AS timePeriod,--> |
| | | <!-- </when>--> |
| | | <!-- <when test="timeType == 'month'">--> |
| | | <!-- DATE_FORMAT(admitdate, '%Y-%m') AS timePeriod,--> |
| | | <!-- </when>--> |
| | | <!-- <when test="timeType == 'year'">--> |
| | | <!-- DATE_FORMAT(admitdate, '%Y') AS timePeriod,--> |
| | | <!-- </when>--> |
| | | <!-- <when test="timeType == 'week'">--> |
| | | <!-- CONCAT(YEAR(admitdate), '-W', LPAD(WEEK(admitdate, 1), 2, '0')) AS timePeriod,--> |
| | | <!-- </when>--> |
| | | <!-- <otherwise>--> |
| | | <!-- DATE_FORMAT(admitdate, '%Y-%m-%d') AS timePeriod,--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | <!-- 0 AS dischargeFollowCount,--> |
| | | <!-- 0 AS outpatientFollowCount,--> |
| | | <!-- 0 AS pmiCount,--> |
| | | <!-- 1 AS pmoCount--> |
| | | <!-- FROM pat_med_outhosp--> |
| | | <!-- WHERE del_flag = '0'--> |
| | | <!-- <if test="startDate != null and endDate != null">--> |
| | | <!-- AND admitdate >= #{startDate}--> |
| | | <!-- AND admitdate <= DATE_ADD(#{endDate}, INTERVAL 1 DAY)--> |
| | | <!-- </if>--> |
| | | <!-- <if test="orgid != null">--> |
| | | <!-- AND orgid = #{orgid}--> |
| | | <!-- </if>--> |
| | | <!-- -- é¨è¯äººæ¬¡æ°æ®--> |
| | | <!-- SELECT--> |
| | | <!-- <choose>--> |
| | | <!-- <when test="timeType == 'day'">--> |
| | | <!-- DATE_FORMAT(admitdate, '%Y-%m-%d') AS timePeriod,--> |
| | | <!-- </when>--> |
| | | <!-- <when test="timeType == 'month'">--> |
| | | <!-- DATE_FORMAT(admitdate, '%Y-%m') AS timePeriod,--> |
| | | <!-- </when>--> |
| | | <!-- <when test="timeType == 'year'">--> |
| | | <!-- DATE_FORMAT(admitdate, '%Y') AS timePeriod,--> |
| | | <!-- </when>--> |
| | | <!-- <when test="timeType == 'week'">--> |
| | | <!-- CONCAT(YEAR(admitdate), '-W', LPAD(WEEK(admitdate, 1), 2, '0')) AS timePeriod,--> |
| | | <!-- </when>--> |
| | | <!-- <otherwise>--> |
| | | <!-- DATE_FORMAT(admitdate, '%Y-%m-%d') AS timePeriod,--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | <!-- 0 AS dischargeFollowCount,--> |
| | | <!-- 0 AS outpatientFollowCount,--> |
| | | <!-- 0 AS pmiCount,--> |
| | | <!-- 1 AS pmoCount--> |
| | | <!-- FROM pat_med_outhosp--> |
| | | <!-- WHERE del_flag = '0'--> |
| | | <!-- <if test="startDate != null and endDate != null">--> |
| | | <!-- AND admitdate >= #{startDate}--> |
| | | <!-- AND admitdate <= DATE_ADD(#{endDate}, INTERVAL 1 DAY)--> |
| | | <!-- </if>--> |
| | | <!-- <if test="orgid != null">--> |
| | | <!-- AND orgid = #{orgid}--> |
| | | <!-- </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="deptcodes != null and deptcodes.size() > 0">--> |
| | | <!-- AND deptcode IN--> |
| | | <!-- <foreach collection="deptcodes" item="deptcode" open="(" separator="," close=")">--> |
| | | <!-- #{deptcode}--> |
| | | <!-- </foreach>--> |
| | | <!-- </if>--> |
| | | |
| | | ) AS combined_data |
| | | GROUP BY timePeriod |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getCurrentUserServiceSubtaskCount" parameterType="com.smartor.domain.entity.ServiceSubtaskEntity" resultType="map"> |
| | | <select id="getCurrentUserServiceSubtaskCount" parameterType="com.smartor.domain.entity.ServiceSubtaskEntity" |
| | | resultType="map"> |
| | | SELECT |
| | | COUNT(CASE WHEN sendstate = 2 AND date_format(visit_time,'%y%m%d') <= date_format(CURDATE(),'%y%m%d') THEN 1 END) AS pendingVisitCount, |
| | | COUNT(CASE WHEN sendstate = 2 AND date_format(visit_time,'%y%m%d') <= date_format(CURDATE(),'%y%m%d') THEN 1 |
| | | END) AS pendingVisitCount, |
| | | COUNT(CASE WHEN sendstate = 5 THEN 1 END) AS failedVisitCount, |
| | | SUM(CASE WHEN excep IS NOT NULL AND excep = '1' THEN 1 ELSE 0 END) AS abnormalVisitCount, |
| | | SUM(CASE WHEN excep IS NOT NULL AND excep = '2' THEN 1 ELSE 0 END) AS warnningVisitCount, |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="querySendCount" parameterType="com.smartor.domain.entity.ServiceSubtaskSatisfactionEntity" |
| | | resultType="Long"> |
| | | select distinct id from service_subtask |
| | | where del_flag = 0 |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | and campusid = #{campusid} |
| | | </if> |
| | | <if test="type != null ">and type = #{type}</if> |
| | | <if test="startTime != null"> |
| | | AND date_format(visit_time,'%y%m%d') >= date_format(#{startTime},'%y%m%d') |
| | | </if> |
| | | <if test="endTime != null"> |
| | | AND date_format(visit_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') |
| | | </if> |
| | | <if test=" libTemplateIds != null and libTemplateIds.size()>0"> |
| | | AND libtemplateid IN |
| | | <foreach collection="libTemplateIds" item="libTemplateId" open="(" separator="," |
| | | close=")"> |
| | | #{libTemplateId} |
| | | </foreach> |
| | | </if> |
| | | <if test="(hospitaldistrictcodes != null and hospitaldistrictcodes.size() > 0) or (deptcodes != null and deptcodes.size() > 0)"> |
| | | AND ( |
| | | <if test="hospitaldistrictcodes != null and hospitaldistrictcodes.size() > 0"> |
| | | leavehospitaldistrictcode IN |
| | | <foreach collection="hospitaldistrictcodes" item="hospitaldistrictcode" open="(" |
| | | separator="," |
| | | close=")"> |
| | | #{hospitaldistrictcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="hospitaldistrictcodes != null and hospitaldistrictcodes.size() > 0 and deptcodes != null and deptcodes.size() > 0"> |
| | | OR |
| | | </if> |
| | | <if test="deptcodes != null and deptcodes.size() > 0"> |
| | | deptcode IN |
| | | <foreach collection="deptcodes" item="deptcode" open="(" separator="," |
| | | close=")"> |
| | | #{deptcode} |
| | | </foreach> |
| | | </if> |
| | | ) |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="isException" column="is_exception"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="appendflag" column="appendflag"/> |
| | |
| | | update_by, |
| | | update_time, |
| | | isupload, |
| | | is_exception, |
| | | upload_time |
| | | from svy_lib_scriptoption |
| | | </sql> |
| | |
| | | <if test="appendflag != null">and appendflag = #{appendflag}</if> |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="picturePath != null">and picture_path = #{picturePath}</if> |
| | | <if test="isException != null">and is_exception = #{isException}</if> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibScriptOptionByOptionid" parameterType="Long" resultMap="SvyLibScriptOptionResult"> |
| | |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="isException != null">is_exception,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="topicid != null">#{topicid},</if> |
| | |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="isException != null">#{isException},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="appendflag != null">appendflag = #{appendflag},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="isException != null">is_exception = #{isException},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="targetoptions" column="targetoptions"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="groupName" column="group_name"/> |
| | | <result property="dutyDeptName" column="duty_dept_name"/> |
| | | <result property="dutyDeptCode" column="duty_dept_code"/> |
| | | <result property="reportDeptCode" column="report_dept_name"/> |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateScriptVo"> |
| | | select id, |
| | | script_type, |
| | | duty_dept_name, |
| | | duty_dept_code, |
| | | report_dept_name, |
| | | report_dept_code, |
| | | targetid, |
| | | group_name, |
| | | targetname, |
| | |
| | | pid, |
| | | guid, |
| | | categoryid, |
| | | categoryName, |
| | | script_content, |
| | | suitway, |
| | | script_picture, |
| | |
| | | resultMap="SvyLibTemplateScriptResult"> |
| | | <include refid="selectSvyLibTemplateScriptVo"/> |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | <if test="nextScriptno != null ">and next_scriptno = #{nextScriptno}</if> |
| | | <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if> |
| | | <if test="scriptno != null and scriptno != ''">and scriptno = #{scriptno}</if> |
| | | <if test="scriptid != null">and scriptid = #{scriptid}</if> |
| | | <if test="scriptDesc != null and scriptDesc != ''">and script_desc = #{scriptDesc}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="sort != null ">and sort = #{sort}</if> |
| | | <if test="ismandatory != null and ismandatory != ''">and ismandatory = #{ismandatory}</if> |
| | | <if test="ishide != null ">and ishide = #{ishide}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="prompt != null and prompt != ''">and prompt = #{prompt}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="isavailable != null and isavailable != ''">and isavailable = #{isavailable}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="reply != null and reply != ''">and reply = #{reply}</if> |
| | | <if test="scoretype != null and scoretype != ''">and scoretype = #{scoretype}</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic = #{scriptTopic}</if> |
| | | <if test="svyid != null ">and svyid = #{svyid}</if> |
| | | <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | <if test="groupName != null">and group_name = #{groupName}</if> |
| | | and del_flag = 0 |
| | | <if test="nextScriptno != null ">and next_scriptno = #{nextScriptno}</if> |
| | | <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if> |
| | | <if test="scriptno != null and scriptno != ''">and scriptno = #{scriptno}</if> |
| | | <if test="scriptid != null">and scriptid = #{scriptid}</if> |
| | | <if test="scriptDesc != null and scriptDesc != ''">and script_desc = #{scriptDesc}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="sort != null ">and sort = #{sort}</if> |
| | | <if test="ismandatory != null and ismandatory != ''">and ismandatory = #{ismandatory}</if> |
| | | <if test="ishide != null ">and ishide = #{ishide}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="prompt != null and prompt != ''">and prompt = #{prompt}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="categoryName != null ">and categoryName = #{categoryName}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="isavailable != null and isavailable != ''">and isavailable = #{isavailable}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="reply != null and reply != ''">and reply = #{reply}</if> |
| | | <if test="scoretype != null and scoretype != ''">and scoretype = #{scoretype}</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic = #{scriptTopic}</if> |
| | | <if test="svyid != null ">and svyid = #{svyid}</if> |
| | | <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | <if test="groupName != null">and group_name = #{groupName}</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">and duty_dept_name like concat('%', #{dutyDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">and duty_dept_code like concat('%', #{dutyDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">and report_dept_name like concat('%', |
| | | #{reportDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">and report_dept_code like concat('%', |
| | | #{reportDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="categoryids != null"> |
| | | and categoryid in |
| | | <foreach collection="categoryids" item="categoryid" open="(" separator="," |
| | | close=")"> |
| | | #{categoryid} |
| | | </foreach> |
| | | </if> |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTemplateScriptByTopicid" parameterType="Long" resultMap="SvyLibTemplateScriptResult"> |
| | |
| | | <if test="targetoptions != null and targetoptions != ''">targetoptions,</if> |
| | | <if test="prompt != null and prompt != ''">prompt,</if> |
| | | <if test="groupName != null and groupName != ''">group_name,</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name,</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code,</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name,</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code,</if> |
| | | <if test="categoryName != null and categoryName != ''">categoryName,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="nextScriptno != null">#{nextScriptno},</if> |
| | |
| | | <if test="targetoptions != null and targetoptions != ''">#{targetoptions},</if> |
| | | <if test="prompt != null and prompt != ''">#{prompt},</if> |
| | | <if test="groupName != null and groupName != ''">#{groupName},</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">#{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">#{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">#{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if> |
| | | <if test="categoryName != null and categoryName != ''">#{categoryName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="targetoptions != null and targetoptions != ''">targetoptions = #{targetoptions},</if> |
| | | <if test="prompt != null and prompt != ''">prompt = #{prompt},</if> |
| | | <if test="groupName != null and groupName != ''">group_name = #{groupName},</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name = #{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code = #{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name = #{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if> |
| | | <if test="categoryName != null and categoryName != ''">categoryName = #{categoryName},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="querySvyLibTemplateIds" resultMap="SvyLibTemplateScriptResult"> |
| | | <include refid="selectSvyLibTemplateScriptVo"/> |
| | | where del_flag=0 |
| | | <if test="scriptCategoryids != null and scriptCategoryids.size > 0"> |
| | | and categoryid in |
| | | <foreach item="scriptCategoryid" collection="scriptCategoryids" open="(" separator="," close=")"> |
| | | #{scriptCategoryid} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | <sql id="selectSvyLibTemplateTargetoptionVo"> |
| | | select id, |
| | | groupid, |
| | | -- is_exception, |
| | | send_taskid, |
| | | send_taskname, |
| | | score, |
| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="seqno" column="seqno"/> |
| | | <result property="type" column="type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptCategoryVo"> |
| | |
| | | update_by, |
| | | update_time, |
| | | seqno, |
| | | type, |
| | | orgid |
| | | from svy_lib_script_category |
| | | </sql> |
| | |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="orgid != null ">and orgid = #{orgid}</if> |
| | | <if test="seqno != null ">and seqno = #{seqno}</if> |
| | | <if test="type != null and type != ''">and type like concat('%', #{type}, '%')</if> |
| | | order by seqno asc |
| | | </select> |
| | | |
| | |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="type != null">type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="name != null">#{name},</if> |
| | |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="type != null">#{type},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | |
| | | <select id="selectSeqMax" resultType="integer"> |
| | | select max(seqno) seqno |
| | | from ivr_liba_template_assort |
| | | from svy_lib_script_category |
| | | |
| | | </select> |
| | | </mapper> |
| | |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="groupName" column="group_name"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | |
| | | <result property="dutyDeptName" column="duty_dept_name"/> |
| | | <result property="dutyDeptCode" column="duty_dept_code"/> |
| | | <result property="reportDeptCode" column="report_dept_name"/> |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateScriptVo"> |
| | | select id, |
| | | sort, |
| | | duty_dept_name, |
| | | duty_dept_code, |
| | | report_dept_name, |
| | | report_dept_code, |
| | | ishide, |
| | | prompt, |
| | | categoryid, |
| | |
| | | <if test="scriptDesc != null and scriptDesc != ''">and script_desc = #{scriptDesc}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">and duty_dept_name like concat('%', #{dutyDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">and duty_dept_code like concat('%', #{dutyDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">and report_dept_name like concat('%', #{reportDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">and report_dept_code like concat('%', #{reportDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | |
| | | <if test="groupName != null ">group_name,</if> |
| | | <if test="ishide != null ">ishide,</if> |
| | | <if test="categoryid != null ">categoryid,</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name,</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code,</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name,</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''"> report_dept_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="groupName != null ">#{groupName},</if> |
| | | <if test="ishide != null ">#{ishide},</if> |
| | | <if test="categoryid != null ">#{categoryid},</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">#{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">#{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">#{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="groupName != null ">group_name = #{groupName},</if> |
| | | <if test="ishide != null ">ishide = #{ishide},</if> |
| | | <if test="categoryid != null ">categoryid = #{categoryid},</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name = #{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''"> duty_dept_code = #{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name = #{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if> |
| | | </trim> |
| | | where id = #{d} |
| | | </update> |