已删除10个文件
已添加10个文件
已修改19个文件
已重命名2个文件
| | |
| | | import org.springframework.data.redis.connection.Message; |
| | | import org.springframework.data.redis.listener.KeyExpirationEventMessageListener; |
| | | import org.springframework.data.redis.listener.RedisMessageListenerContainer; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Syntax; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | } |
| | | } else if (descByCode.equals("å
¬ä¼å·")) { |
| | | |
| | | //å
¬ä¼å· |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | | String taskId = rsaPublicKeyExample.encryptedData(ivrTask1.getTaskid().toString(), pub_key); |
| | |
| | | String patid = rsaPublicKeyExample.encryptedData(ivrTaskSingle.getPatid().toString(), pub_key); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType("5"); |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | | log.info("龿¥å®æ´è·¯å¾ï¼{}", req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/outsideChainxj?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | | log.info("龿¥å®æ´è·¯å¾ï¼{}", req_path + "/outsideChainxj?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | | //è¿ä¸ªæ¨¡æ¿IDå
åæ»ï¼åé¢åæå¯é |
| | | sendMagParam.setTmpCode("oG3pJHPVWpE81DmZsua_2tKwgJ97r0qz37z56ns7NB4"); |
| | | Map map = new HashMap(); |
| | |
| | | String patid = rsaPublicKeyExample.encryptedData(svyTaskSingle1.getPatid().toString(), pub_key); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType("5"); |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskName() + "¶m5=false"); |
| | | log.info("龿¥å®æ´è·¯å¾ï¼{}", req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskName() + "¶m5=false"); |
| | | sendMagParam.setUrl(ip + ":" + req_path + "//outsideChainwt?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskName() + "¶m5=false"); |
| | | log.info("龿¥å®æ´è·¯å¾ï¼{}", req_path + "//outsideChainwt?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskName() + "¶m5=false"); |
| | | //è¿ä¸ªæ¨¡æ¿IDå
åæ»ï¼åé¢åæå¯é |
| | | sendMagParam.setTmpCode("oG3pJHPVWpE81DmZsua_2tKwgJ97r0qz37z56ns7NB4"); |
| | | Map map = new HashMap(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | 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.poi.ExcelUtil; |
| | | import com.smartor.domain.ServiceSubtaskAnswer; |
| | | import com.smartor.service.IServiceSubtaskAnswerService; |
| | | 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; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/subtaskAnswer") |
| | | public class ServiceSubtaskAnswerController extends BaseController { |
| | | @Autowired |
| | | private IServiceSubtaskAnswerService serviceSubtaskAnswerService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceSubtaskAnswer serviceSubtaskAnswer) { |
| | | startPage(); |
| | | List<ServiceSubtaskAnswer> list = serviceSubtaskAnswerService.selectServiceSubtaskAnswerList(serviceSubtaskAnswer); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:export')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtaskAnswer serviceSubtaskAnswer) { |
| | | List<ServiceSubtaskAnswer> list = serviceSubtaskAnswerService.selectServiceSubtaskAnswerList(serviceSubtaskAnswer); |
| | | ExcelUtil<ServiceSubtaskAnswer> util = new ExcelUtil<ServiceSubtaskAnswer>(ServiceSubtaskAnswer.class); |
| | | util.exportExcel(response, list, "ä»»å¡é®å·é®é¢éé¡¹æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åä»»å¡é®å·é®é¢é项详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceSubtaskAnswerService.selectServiceSubtaskAnswerById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:add')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceSubtaskAnswer serviceSubtaskAnswer) { |
| | | return toAjax(serviceSubtaskAnswerService.insertServiceSubtaskAnswer(serviceSubtaskAnswer)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:edit')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskAnswer serviceSubtaskAnswer) { |
| | | return toAjax(serviceSubtaskAnswerService.updateServiceSubtaskAnswer(serviceSubtaskAnswer)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:remove')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceSubtaskAnswerService.deleteServiceSubtaskAnswerByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | 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.poi.ExcelUtil; |
| | | import com.smartor.domain.ServiceSubtaskDetail; |
| | | import com.smartor.service.IServiceSubtaskDetailService; |
| | | 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; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¼å«æç»Controller |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/serviceSubtaskDetail") |
| | | public class ServiceSubtaskDetailController extends BaseController { |
| | | @Autowired |
| | | private IServiceSubtaskDetailService ServiceSubtaskDetailService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceSubtaskDetail serviceSubtaskDetail) { |
| | | startPage(); |
| | | List<ServiceSubtaskDetail> list = ServiceSubtaskDetailService.selectServiceSubtaskDetailList(serviceSubtaskDetail); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè¯é³ä»»å¡å¼å«æç»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:export')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«æç»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtaskDetail serviceSubtaskDetail) { |
| | | List<ServiceSubtaskDetail> list = ServiceSubtaskDetailService.selectServiceSubtaskDetailList(serviceSubtaskDetail); |
| | | ExcelUtil<ServiceSubtaskDetail> util = new ExcelUtil<ServiceSubtaskDetail>(ServiceSubtaskDetail.class); |
| | | util.exportExcel(response, list, "è¯é³ä»»å¡å¼å«æç»æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¯é³ä»»å¡å¼å«æç»è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:query')") |
| | | @GetMapping(value = "/{calldetailid}") |
| | | public AjaxResult getInfo(@PathVariable("calldetailid") String calldetailid) { |
| | | return success(ServiceSubtaskDetailService.selectServiceSubtaskDetailByCalldetailid(calldetailid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:add')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«æç»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceSubtaskDetail serviceSubtaskDetail) { |
| | | return toAjax(ServiceSubtaskDetailService.insertServiceSubtaskDetail(serviceSubtaskDetail)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:edit')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«æç»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskDetail serviceSubtaskDetail) { |
| | | return toAjax(ServiceSubtaskDetailService.updateServiceSubtaskDetail(serviceSubtaskDetail)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:remove')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«æç»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{calldetailids}") |
| | | public AjaxResult remove(@PathVariable String[] calldetailids) { |
| | | return toAjax(ServiceSubtaskDetailService.deleteServiceSubtaskDetailByCalldetailids(calldetailids)); |
| | | } |
| | | |
| | | } |
| | |
| | | private String scriptDesc; |
| | | |
| | | /** |
| | | * é®é¢å¾çè·¯å¾ |
| | | */ |
| | | @ApiModelProperty("é®é¢å¾çè·¯å¾") |
| | | @Excel(name = "é®é¢å¾çè·¯å¾") |
| | | private String picturePath; |
| | | |
| | | /** |
| | | * è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty("è¯æ¯è¯é³") |
| | |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | | * é项å¾çè·¯å¾ |
| | | */ |
| | | @ApiModelProperty("é项å¾çè·¯å¾") |
| | | @Excel(name = "é项å¾çè·¯å¾") |
| | | private String picturePath; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸é |
| | | */ |
| | | @ApiModelProperty("é¢è¦éå¼ä¸é") |
| | |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long ID; |
| | | private Long id; |
| | | |
| | | // /** |
| | | // * ææ id |
| | |
| | | * 主é®ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long ID; |
| | | private Long id; |
| | | |
| | | /** |
| | | * 模æ¿è¯æ¯ç¼å· |
| | |
| | | */ |
| | | @Excel(name = "模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * è¯æ¯ID |
| | |
| | | private String scriptPoint; |
| | | |
| | | /** |
| | | * é®é¢ç±»å |
| | | */ |
| | | @Excel(name = "é®é¢ç±»å") |
| | | @ApiModelProperty(value = "é®é¢ç±»å") |
| | | private String scriptType; |
| | | |
| | | /** |
| | | * è¯æ¯å
容 |
| | | */ |
| | | @Excel(name = "è¯æ¯å
容") |
| | |
| | | * 主é®ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long ID; |
| | | private Long id; |
| | | |
| | | /** |
| | | * 模æ¿è¯æ¯ç¼å· |
| | |
| | | */ |
| | | @Excel(name = "模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * åºç¡è¯æ¯ID |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡è¯æ¯ID") |
| | | private Long scriptID; |
| | | private Long scriptid; |
| | | |
| | | /** |
| | | * é®é¢ç¹ |
| | |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * é®é¢ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢ç±»å") |
| | | private String scriptType; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | |
| | | package com.smartor.domain; |
| | | |
| | | 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 org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®é¢åçæç» |
| | | * çµè¯é®é¢åçæç» |
| | | * |
| | | * @author ls |
| | | * @date 2023-06-05 |
| | |
| | | @ApiModelProperty(value = "æ£è
ID") |
| | | private String param2; |
| | | |
| | | @ApiModelProperty(value = "é访é®é¢åçæç»") |
| | | private List<IvrTaskcalldetail> ivrTaskcalldetailList; |
| | | |
| | | @ApiModelProperty(value = "é®å·é®é¢åçæç»") |
| | | private List<SvyTasksingledetail> svyTasksingledetailList; |
| | | @ApiModelProperty(value = "çµè¯é®é¢åçæç»") |
| | | private List<ServiceSubtaskDetail> serviceSubtaskDetailList; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项对象 service_subtask_answer |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-18 |
| | | */ |
| | | @ApiModel(value = "ServiceSubtaskAnswer", description = "ä»»å¡é®å·é®é¢é项对象") |
| | | @Data |
| | | public class ServiceSubtaskAnswer extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * ä»»å¡ID |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * åä»»å¡ID |
| | | */ |
| | | @ApiModelProperty(value = "åä»»å¡ID") |
| | | private Long singleid; |
| | | |
| | | /** |
| | | * é¢ç®ID |
| | | */ |
| | | @ApiModelProperty(value = "é¢ç®ID") |
| | | private Long scriptid; |
| | | |
| | | /** |
| | | * é¢ç®ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "é¢ç®ç±»å") |
| | | private Long scriptType; |
| | | |
| | | /** |
| | | * å¾åï¼1ã2ã3ï¼æAãBãCï¼æä¼ãè¯ãåæ ¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¾å") |
| | | private String score; |
| | | |
| | | /** |
| | | * åçï¼å
许å¤éï¼ |
| | | */ |
| | | @ApiModelProperty(value = "åç") |
| | | private String answer; |
| | | |
| | | /** |
| | | * è¯è¯ |
| | | */ |
| | | @ApiModelProperty(value = "è¯è¯") |
| | | private String comment; |
| | | |
| | | /** |
| | | * éè¦è·è¿ï¼æ¯ï¼1ãå¦ï¼0ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "éè¦è·è¿") |
| | | private String istrack; |
| | | |
| | | /** |
| | | * å¼å¸¸é¢è¦ï¼æ¯ï¼1ãå¦ï¼0ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼å¸¸é¢è¦") |
| | | private String isabnormal; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ å¿") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private String pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | |
| | | } |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/IvrTaskcalldetail.java ÐÞ¸Ä |
| | |
| | | * @date 2023-03-24 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "IvrTaskcalldetail", description = "é®é¢åçæç»") |
| | | public class IvrTaskcalldetail extends BaseEntity { |
| | | @ApiModel(value = "ServiceSubtaskDetail", description = "é®é¢åçæç»") |
| | | public class ServiceSubtaskDetail extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "主é®") |
| | | private String calldetailid; |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "tasksingleid") |
| | | private String callid; |
| | | @ApiModelProperty(value = "åä»»å¡ID") |
| | | private Long subId; |
| | | |
| | | @ApiModelProperty(value = "æ¨å·uuid") |
| | | private String uuid; |
| | |
| | | */ |
| | | @Excel(name = " é¢ç®å¾ç ") |
| | | @ApiModelProperty("é¢ç®å¾ç") |
| | | private String scriptPicture; |
| | | private String picturePath; |
| | | |
| | | /** |
| | | * æåº |
| | |
| | | private String optioncode; |
| | | |
| | | /** |
| | | * é项å¾ç |
| | | */ |
| | | @ApiModelProperty(value = "é项å¾ç") |
| | | private String picturePath; |
| | | |
| | | /** |
| | | * é项å
容 |
| | | */ |
| | | @ApiModelProperty(value = "é项å
容") |
| | |
| | | */ |
| | | @ApiModelProperty(value = "çæ¬") |
| | | @Excel(name = " çæ¬ ") |
| | | private BigDecimal version; |
| | | private String version; |
| | | |
| | | /** |
| | | * ä¸å¿åºä»£ç |
| | |
| | | * @param ID 模çé®é¢è¯æ¯åºä¸»é® |
| | | * @return 模çé®é¢è¯æ¯åº |
| | | */ |
| | | public IvrLibaTemplateScript selectIvrLibaTemplateScriptByID(Long ID); |
| | | public IvrLibaTemplateScript selectIvrLibaTemplateScriptByID(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡çé®é¢è¯æ¯åºå表 |
| | |
| | | * @param ID 模çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrLibaTemplateScriptByID(Long ID); |
| | | public int deleteIvrLibaTemplateScriptByID(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡çé®é¢è¯æ¯åº |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.ServiceSubtaskAnswer; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-18 |
| | | */ |
| | | @Mapper |
| | | public interface ServiceSubtaskAnswerMapper { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | public ServiceSubtaskAnswer selectServiceSubtaskAnswerById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ä»»å¡é®å·é®é¢é项éå |
| | | */ |
| | | public List<ServiceSubtaskAnswer> selectServiceSubtaskAnswerList(ServiceSubtaskAnswer serviceSubtaskAnswer); |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertServiceSubtaskAnswer(ServiceSubtaskAnswer serviceSubtaskAnswer); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateServiceSubtaskAnswer(ServiceSubtaskAnswer serviceSubtaskAnswer); |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskAnswerById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskAnswerByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.ServiceSubtaskDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¼å«æç»Mapperæ¥å£ |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | @Mapper |
| | | public interface ServiceSubtaskDetailMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param calldetailid è¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | public ServiceSubtaskDetail selectServiceSubtaskDetailByCalldetailid(String calldetailid); |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç»å表 |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return è¯é³ä»»å¡å¼å«æç»éå |
| | | */ |
| | | public List<ServiceSubtaskDetail> selectServiceSubtaskDetailList(ServiceSubtaskDetail serviceSubtaskDetail); |
| | | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return ç»æ |
| | | */ |
| | | public int insertServiceSubtaskDetail(ServiceSubtaskDetail serviceSubtaskDetail); |
| | | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return ç»æ |
| | | */ |
| | | public int updateServiceSubtaskDetail(ServiceSubtaskDetail serviceSubtaskDetail); |
| | | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param calldetailid è¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskDetailByCalldetailid(String calldetailid); |
| | | |
| | | /** |
| | | * æ¹éå é¤è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param calldetailids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskDetailByCalldetailids(String[] calldetailids); |
| | | } |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.IvrLibaTemplateVO; |
| | | import com.smartor.domain.IvrTaskTemplate; |
| | | import com.smartor.domain.IvrTaskTemplateVO; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.ServiceSubtaskAnswer; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-18 |
| | | */ |
| | | public interface IServiceSubtaskAnswerService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | public ServiceSubtaskAnswer selectServiceSubtaskAnswerById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ä»»å¡é®å·é®é¢é项éå |
| | | */ |
| | | public List<ServiceSubtaskAnswer> selectServiceSubtaskAnswerList(ServiceSubtaskAnswer serviceSubtaskAnswer); |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertServiceSubtaskAnswer(ServiceSubtaskAnswer serviceSubtaskAnswer); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateServiceSubtaskAnswer(ServiceSubtaskAnswer serviceSubtaskAnswer); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param ids éè¦å é¤çä»»å¡é®å·é®é¢é项主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskAnswerByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢éé¡¹ä¿¡æ¯ |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskAnswerById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.ServiceSubtaskDetail; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¼å«æç»Serviceæ¥å£ |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | public interface IServiceSubtaskDetailService { |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param calldetailid è¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | public ServiceSubtaskDetail selectServiceSubtaskDetailByCalldetailid(String calldetailid); |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç»å表 |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return è¯é³ä»»å¡å¼å«æç»éå |
| | | */ |
| | | public List<ServiceSubtaskDetail> selectServiceSubtaskDetailList( ServiceSubtaskDetail serviceSubtaskDetail); |
| | | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return ç»æ |
| | | */ |
| | | public int insertServiceSubtaskDetail(ServiceSubtaskDetail serviceSubtaskDetail); |
| | | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return ç»æ |
| | | */ |
| | | public int updateServiceSubtaskDetail(ServiceSubtaskDetail serviceSubtaskDetail); |
| | | |
| | | /** |
| | | * æ¹éå é¤è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param subtaskDetails éè¦å é¤çè¯é³ä»»å¡å¼å«æç»ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskDetailByCalldetailids(String[] subtaskDetails); |
| | | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡å¼å«æç»ä¿¡æ¯ |
| | | * |
| | | * @param subtaskDetailid è¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteServiceSubtaskDetailByCalldetailid(String subtaskDetailid); |
| | | } |
| | |
| | | //æ°å¢ |
| | | ivrLibaTemplate.setCreateTime(new Date()); |
| | | ivrLibaTemplateMapper.insertIvrLibaTemplate(ivrLibaTemplate); |
| | | i = ivrLibaTemplate.getID().intValue(); |
| | | i = ivrLibaTemplate.getId().intValue(); |
| | | } else if (ivrLibaTemplateVO.getIsoperation() != null && ivrLibaTemplateVO.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | ivrLibaTemplate.setUpdateTime(new Date()); |
| | | ivrLibaTemplateMapper.updateIvrLibaTemplate(ivrLibaTemplate); |
| | | i = ivrLibaTemplate.getID().intValue(); |
| | | i = ivrLibaTemplate.getId().intValue(); |
| | | } |
| | | log.info("æ°å¢æä¿®æ¹æ¨¡æ¿è¯¦æ
çid为ï¼{}", ivrLibaTemplate.getID()); |
| | | log.info("æ°å¢æä¿®æ¹æ¨¡æ¿è¯¦æ
çid为ï¼{}", ivrLibaTemplate.getId()); |
| | | |
| | | //å¯¹æ¨¡æ¿æ ç¾è¿è¡å¤ç |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTemplateVO.getIvrLibaTemplateTagList())) { |
| | | for (IvrLibaTemplateTag ivrLibaTemplateTag : ivrLibaTemplateVO.getIvrLibaTemplateTagList()) { |
| | | if (ivrLibaTemplateTag.getIsoperation() != null && ivrLibaTemplateTag.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | ivrLibaTemplateTag.setTemplateid(ivrLibaTemplate.getID()); |
| | | ivrLibaTemplateTag.setTemplateid(ivrLibaTemplate.getId()); |
| | | ivrLibaTemplateTag.setCreateTime(new Date()); |
| | | ivrLibaTemplateTagMapper.insertIvrLibaTemplateTag(ivrLibaTemplateTag); |
| | | } else if (ivrLibaTemplateTag.getIsoperation() != null && ivrLibaTemplateTag.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | ivrLibaTemplateTag.setTemplateid(ivrLibaTemplate.getID()); |
| | | ivrLibaTemplateTag.setTemplateid(ivrLibaTemplate.getId()); |
| | | ivrLibaTemplateTag.setUploadTime(new Date()); |
| | | ivrLibaTemplateTagMapper.updateIvrLibaTemplateTag(ivrLibaTemplateTag); |
| | | } else if (ivrLibaTemplateTag.getIsoperation() != null && ivrLibaTemplateTag.getIsoperation() == 3) { |
| | |
| | | for (IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO : ivrLibaTemplateVO.getIvrLibaTemplateScriptVOList()) { |
| | | if (ivrLibaTemplateScriptVO.getIsoperation() != null) { |
| | | IvrLibaTemplateScript ivrLibaTemplateScript = scriptHandle(ivrLibaTemplate, ivrLibaTemplateScriptVO, ivrLibaTemplateScriptVO.getIsoperation()); |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getID(),ivrLibaTemplateScriptVO.getIsoperation()); |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getId(),ivrLibaTemplateScriptVO.getIsoperation()); |
| | | } else { |
| | | IvrLibaTemplateScript ivrLibaTemplateScript = scriptHandle(ivrLibaTemplate, ivrLibaTemplateScriptVO, ivrLibaTemplateVO.getIsoperation()); |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getID(),ivrLibaTemplateVO.getIsoperation()); |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getId(),ivrLibaTemplateVO.getIsoperation()); |
| | | } |
| | | } |
| | | } |
| | |
| | | for (TempDetpRelevance tempDetpRelevance : ivrLibaTemplateVO.getTempDetpRelevances()) { |
| | | if (tempDetpRelevance.getId() == null) { |
| | | //æ°å¢ |
| | | tempDetpRelevance.setTempid(ivrLibaTemplate.getID()); |
| | | tempDetpRelevance.setTempid(ivrLibaTemplate.getId()); |
| | | tempDetpRelevance.setType(2L); |
| | | tempDetpRelevance.setCreateTime(new Date()); |
| | | tempDetpRelevanceMapper.insertTempDetpRelevance(tempDetpRelevance); |
| | |
| | | IvrLibaTemplateScript ivrLibaTemplateScript = DtoConversionUtils.sourceToTarget(ivrLibaTemplateScriptVO, IvrLibaTemplateScript.class); |
| | | if (isoperation == 1) { |
| | | //æ°å¢ |
| | | ivrLibaTemplateScript.setTemplateID(ivrLibaTemplate.getID()); |
| | | ivrLibaTemplateScript.setTemplateid(ivrLibaTemplate.getId()); |
| | | ivrLibaTemplateScript.setCreateTime(new Date()); |
| | | ivrLibaTemplateScriptMapper.insertIvrLibaTemplateScript(ivrLibaTemplateScript); |
| | | //对é项ç®è¿è¡å¤ç |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getID(),isoperation); |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getId(),isoperation); |
| | | |
| | | } else if (isoperation == 2) { |
| | | //ä¿®æ¹ |
| | | ivrLibaTemplateScript.setTemplateID(ivrLibaTemplate.getID()); |
| | | ivrLibaTemplateScript.setTemplateid(ivrLibaTemplate.getId()); |
| | | ivrLibaTemplateScript.setUpdateTime(new Date()); |
| | | ivrLibaTemplateScriptMapper.updateIvrLibaTemplateScript(ivrLibaTemplateScript); |
| | | //对é项ç®è¿è¡å¤ç |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getID(), isoperation); |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getId(), isoperation); |
| | | |
| | | } else if (isoperation == 3) { |
| | | //å é¤ |
| | | if (ivrLibaTemplateScriptVO.getID() == null) { |
| | | if (ivrLibaTemplateScriptVO.getId() == null) { |
| | | log.info("å é¤å¤±è´¥,模æ¿è¯æ¯id为空"); |
| | | } else { |
| | | ivrLibaTemplateScriptVO.setUpdateTime(new Date()); |
| | | ivrLibaTemplateScriptMapper.deleteIvrLibaTemplateScriptByID(ivrLibaTemplateScriptVO.getID()); |
| | | ivrLibaTemplateScriptMapper.deleteIvrLibaTemplateScriptByID(ivrLibaTemplateScriptVO.getId()); |
| | | } |
| | | } |
| | | return ivrLibaTemplateScript; |
| | |
| | | if (isoperation == 1) { |
| | | //æ°å¢ |
| | | ivrLibaTemplateTargetoption.setTemplateID(tmpID); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScript.getID()); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScript.getId()); |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTemplateTargetoption.getDynamiccruxs())) |
| | | ivrLibaTemplateTargetoption.setDynamiccruxsJson(JSON.toJSONString(ivrLibaTemplateTargetoption.getDynamiccruxs())); |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTemplateTargetoption.getNodynamiccruxs())) |
| | |
| | | } else if (isoperation == 2) { |
| | | //ä¿®æ¹ |
| | | ivrLibaTemplateTargetoption.setTemplateID(tmpID); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScript.getID()); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScript.getId()); |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTemplateTargetoption.getDynamiccruxs())) |
| | | ivrLibaTemplateTargetoption.setDynamiccruxsJson(JSON.toJSONString(ivrLibaTemplateTargetoption.getDynamiccruxs())); |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTemplateTargetoption.getNodynamiccruxs())) |
| | |
| | | |
| | | //è·åtagä¿¡æ¯ |
| | | IvrLibaTemplateTag ivrLibaTemplateTag = new IvrLibaTemplateTag(); |
| | | ivrLibaTemplateTag.setTemplateid(ivrLibaTemplates.get(0).getID()); |
| | | ivrLibaTemplateTag.setTemplateid(ivrLibaTemplates.get(0).getId()); |
| | | List<IvrLibaTemplateTag> ivrLibaTemplateTags = ivrLibaTemplateTagMapper.selectIvrLibaTemplateTagList(ivrLibaTemplateTag); |
| | | |
| | | //æ¥è¯¢è¯æ¯ |
| | | IvrLibaTemplateScript ivrLibaTemplateScript = new IvrLibaTemplateScript(); |
| | | ivrLibaTemplateScript.setTemplateID(ivrLibaTemplates.get(0).getID()); |
| | | ivrLibaTemplateScript.setTemplateid(ivrLibaTemplates.get(0).getId()); |
| | | List<IvrLibaTemplateScript> ivrLibaTemplateScripts = ivrLibaTemplateScriptMapper.selectIvrLibaTemplateScriptList(ivrLibaTemplateScript); |
| | | List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOS = DtoConversionUtils.sourceToTarget(ivrLibaTemplateScripts, IvrLibaTemplateScriptVO.class); |
| | | |
| | | //éè¿è¯æ¯IDè·åé项 |
| | | for (IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO : ivrLibaTemplateScriptVOS) { |
| | | log.info("ivrLibaTemplateScriptVOç主é®id为ï¼{}", ivrLibaTemplateScriptVO.getID()); |
| | | log.info("ivrLibaTemplateScriptVOç主é®id为ï¼{}", ivrLibaTemplateScriptVO.getId()); |
| | | IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption = new IvrLibaTemplateTargetoption(); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScriptVO.getID()); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScriptVO.getId()); |
| | | List<IvrLibaTemplateTargetoption> ivrLibaTemplateTargetoptions = ivrLibaTemplateTargetOptionMapper.selectIvrLibaTemplateTargetoptionList(ivrLibaTemplateTargetoption); |
| | | for (IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption1 : ivrLibaTemplateTargetoptions) { |
| | | ObjectMapper mapper = new ObjectMapper(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.ServiceSubtaskAnswer; |
| | | import com.smartor.mapper.ServiceSubtaskAnswerMapper; |
| | | import com.smartor.service.IServiceSubtaskAnswerService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-18 |
| | | */ |
| | | @Service |
| | | public class ServiceSubtaskAnswerServiceImpl implements IServiceSubtaskAnswerService |
| | | { |
| | | @Autowired |
| | | private ServiceSubtaskAnswerMapper serviceSubtaskAnswerMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @Override |
| | | public ServiceSubtaskAnswer selectServiceSubtaskAnswerById(Long id) |
| | | { |
| | | return serviceSubtaskAnswerMapper.selectServiceSubtaskAnswerById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @Override |
| | | public List<ServiceSubtaskAnswer> selectServiceSubtaskAnswerList(ServiceSubtaskAnswer serviceSubtaskAnswer) |
| | | { |
| | | return serviceSubtaskAnswerMapper.selectServiceSubtaskAnswerList(serviceSubtaskAnswer); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertServiceSubtaskAnswer(ServiceSubtaskAnswer serviceSubtaskAnswer) |
| | | { |
| | | serviceSubtaskAnswer.setCreateTime(DateUtils.getNowDate()); |
| | | return serviceSubtaskAnswerMapper.insertServiceSubtaskAnswer(serviceSubtaskAnswer); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param serviceSubtaskAnswer ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateServiceSubtaskAnswer(ServiceSubtaskAnswer serviceSubtaskAnswer) |
| | | { |
| | | serviceSubtaskAnswer.setUpdateTime(DateUtils.getNowDate()); |
| | | return serviceSubtaskAnswerMapper.updateServiceSubtaskAnswer(serviceSubtaskAnswer); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param ids éè¦å é¤çä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteServiceSubtaskAnswerByIds(Long[] ids) |
| | | { |
| | | return serviceSubtaskAnswerMapper.deleteServiceSubtaskAnswerByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢éé¡¹ä¿¡æ¯ |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteServiceSubtaskAnswerById(Long id) |
| | | { |
| | | return serviceSubtaskAnswerMapper.deleteServiceSubtaskAnswerById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.ServiceSubtaskDetail; |
| | | import com.smartor.domain.ServiceSubtaskDetail; |
| | | import com.smartor.mapper.ServiceSubtaskDetailMapper; |
| | | import com.smartor.mapper.ServiceSubtaskMapper; |
| | | import com.smartor.service.IServiceSubtaskDetailService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¼å«æç»Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ServiceSubtaskDetailServiceImpl implements IServiceSubtaskDetailService { |
| | | @Autowired |
| | | private ServiceSubtaskDetailMapper ServiceSubtaskDetailMapper; |
| | | |
| | | @Autowired |
| | | private ServiceSubtaskMapper ivrTaskSingleMapper; |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param calldetailid è¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | @Override |
| | | public ServiceSubtaskDetail selectServiceSubtaskDetailByCalldetailid(String calldetailid) { |
| | | return ServiceSubtaskDetailMapper.selectServiceSubtaskDetailByCalldetailid(calldetailid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç»å表 |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | @Override |
| | | public List<ServiceSubtaskDetail> selectServiceSubtaskDetailList(ServiceSubtaskDetail serviceSubtaskDetail) { |
| | | return ServiceSubtaskDetailMapper.selectServiceSubtaskDetailList(serviceSubtaskDetail); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertServiceSubtaskDetail(ServiceSubtaskDetail serviceSubtaskDetail) { |
| | | serviceSubtaskDetail.setCreateTime(DateUtils.getNowDate()); |
| | | return ServiceSubtaskDetailMapper.insertServiceSubtaskDetail(serviceSubtaskDetail); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param serviceSubtaskDetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateServiceSubtaskDetail(ServiceSubtaskDetail serviceSubtaskDetail) { |
| | | serviceSubtaskDetail.setUpdateTime(DateUtils.getNowDate()); |
| | | return ServiceSubtaskDetailMapper.updateServiceSubtaskDetail(serviceSubtaskDetail); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * @param calldetailids éè¦å é¤çè¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteServiceSubtaskDetailByCalldetailids(String[] calldetailids) { |
| | | return ServiceSubtaskDetailMapper.deleteServiceSubtaskDetailByCalldetailids(calldetailids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡å¼å«æç»ä¿¡æ¯ |
| | | * |
| | | * @param calldetailid è¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteServiceSubtaskDetailByCalldetailid(String calldetailid) { |
| | | return ServiceSubtaskDetailMapper.deleteServiceSubtaskDetailByCalldetailid(calldetailid); |
| | | } |
| | | |
| | | } |
| | |
| | | private ServiceSubtaskMapper serviceSubtaskMapper; |
| | | |
| | | @Autowired |
| | | private IvrTaskcalldetailMapper ivrTaskcalldetailMapper; |
| | | @Autowired |
| | | private SvyTasksingledetailMapper svyTasksingledetailMapper; |
| | | private ServiceSubtaskDetailMapper ivrTaskcalldetailMapper; |
| | | |
| | | @Autowired |
| | | private IServiceTaskService serviceTaskService; |
| | | |
| | | @Autowired |
| | | private IvrTaskTemplateTargetoptionMapper serviceTaskScriptTargetoptionMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaTemplateScriptMapper ivrLibaTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private IvrTaskVisitResultMapper serviceTaskVisitResultMapper; |
| | |
| | | ServiceSubtask ivrTaskSingle = new ServiceSubtask(); |
| | | ivrTaskSingle.setTaskid(tid); |
| | | ivrTaskSingle.setPatid(pid); |
| | | List<ServiceSubtask> ivrTaskSingles = serviceSubtaskMapper.selectServiceSubtaskList(ivrTaskSingle); |
| | | if (CollectionUtils.isEmpty(ivrTaskSingles) || ivrTaskSingles.size() == 0) { |
| | | log.error("æ¥éäºï¼ivrTaskSinglesæ°æ®ä¸ºç©ºäºï¼{}", ivrTaskSingle); |
| | | List<ServiceSubtask> selectServiceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(ivrTaskSingle); |
| | | if (CollectionUtils.isEmpty(selectServiceSubtaskList) || selectServiceSubtaskList.size() == 0) { |
| | | log.error("æ¥éäºï¼selectServiceSubtaskListæ°æ®ä¸ºç©ºäºï¼{}", ivrTaskSingle); |
| | | return 0; |
| | | } |
| | | int i = 0; |
| | | if (CollectionUtils.isNotEmpty(serviceSubTaskDetailReq.getIvrTaskcalldetailList())) { |
| | | //é访 |
| | | for (IvrTaskcalldetail ivrTaskcalldetail : serviceSubTaskDetailReq.getIvrTaskcalldetailList()) { |
| | | ivrTaskcalldetail.setCallid(ivrTaskSingles.get(0).getId().toString()); |
| | | ivrTaskcalldetail.setCalldetailid(UUID.randomUUID().toString()); |
| | | ivrTaskcalldetail.setCreateTime(new Date()); |
| | | i = ivrTaskcalldetailMapper.insertIvrTaskcalldetail(ivrTaskcalldetail); |
| | | } |
| | | } else if (CollectionUtils.isNotEmpty(serviceSubTaskDetailReq.getSvyTasksingledetailList())) { |
| | | //é®å· |
| | | for (SvyTasksingledetail svyTasksingledetail : serviceSubTaskDetailReq.getSvyTasksingledetailList()) { |
| | | svyTasksingledetail.setCallid(ivrTaskSingles.get(0).getId().toString()); |
| | | svyTasksingledetail.setCalldetailid(UUID.randomUUID().toString()); |
| | | svyTasksingledetail.setCreateTime(new Date()); |
| | | i = svyTasksingledetailMapper.insertSvyTasksingledetail(svyTasksingledetail); |
| | | } |
| | | for (ServiceSubtaskDetail serviceSubtaskDetail : serviceSubTaskDetailReq.getServiceSubtaskDetailList()) { |
| | | serviceSubtaskDetail.setSubId(selectServiceSubtaskList.get(0).getId()); |
| | | serviceSubtaskDetail.setId(UUID.randomUUID().toString()); |
| | | serviceSubtaskDetail.setCreateTime(new Date()); |
| | | i = ivrTaskcalldetailMapper.insertServiceSubtaskDetail(serviceSubtaskDetail); |
| | | } |
| | | return i; |
| | | } |
| | |
| | | public List sfInfo(ServiceTask serviceTask, Long patid) { |
| | | //éè¿æ¨¡æ¿IDè·åé®é¢ä¿¡æ¯ |
| | | IvrLibaTemplateScript ivrLibaTemplateScript = new IvrLibaTemplateScript(); |
| | | ivrLibaTemplateScript.setTemplateID(serviceTask.getTemplateid()); |
| | | ivrLibaTemplateScript.setTemplateid(serviceTask.getTemplateid()); |
| | | ivrLibaTemplateScript.setDelFlag("0"); |
| | | List<IvrLibaTemplateScript> ivrLibaTemplateScripts = ivrLibaTemplateScriptMapper.selectIvrLibaTemplateScriptList(ivrLibaTemplateScript); |
| | | if (CollectionUtils.isEmpty(ivrLibaTemplateScripts) || ivrLibaTemplateScripts.size() == 0) { |
| | |
| | | |
| | | //è·åé®é¢é项 |
| | | IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption = new IvrLibaTemplateTargetoption(); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScriptVO.getID()); |
| | | ivrLibaTemplateTargetoption.setScriptid(ivrLibaTemplateScriptVO.getId()); |
| | | List<IvrLibaTemplateTargetoption> ivrLibaTemplateTargetoptions = ivrLibaTemplateTargetOptionMapper.selectIvrLibaTemplateTargetoptionList(ivrLibaTemplateTargetoption); |
| | | ivrLibaTemplateScriptVO.setIvrLibaScriptTargetoptionList(ivrLibaTemplateTargetoptions); |
| | | } |
| | |
| | | <result property="dynamiccruxsJson" column="dynamiccruxs"/> |
| | | <result property="appendflag" column="appendflag"/> |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptTargetoptionVo"> |
| | | select id, |
| | | targetid, |
| | | picture_path, |
| | | targetname, |
| | | appendflag, |
| | | appenddesc, |
| | |
| | | <if test="dynamiccruxsJson != null ">and dynamiccruxs = #{dynamiccruxsJson}</if> |
| | | <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> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="dynamiccruxsJson != null ">dynamiccruxs,</if> |
| | | <if test="appendflag != null">appendflag,</if> |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="dynamiccruxsJson != null ">#{dynamiccruxsJson},</if> |
| | | <if test="appendflag != null">#{appendflag},</if> |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="dynamiccruxsJson != null ">dynamiccruxs = #{dynamiccruxsJson},</if> |
| | | <if test="appendflag != null">appendflag = #{appendflag},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <mapper namespace="com.smartor.mapper.IvrLibaTemplateScriptMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTemplateScript" id="IvrLibaTemplateScriptResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="id" column="id"/> |
| | | <result property="scriptno" column="scriptno"/> |
| | | <result property="templateID" column="templateID"/> |
| | | <result property="scriptid" column="scriptID"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="scriptid" column="scriptid"/> |
| | | <result property="scriptPoint" column="script_point"/> |
| | | <result property="scriptContent" column="script_content"/> |
| | | <result property="scriptDesc" column="script_content"/> |
| | |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="isMust" column="is_must"/> |
| | | <result property="scriptDesc" column="script_desc"/> |
| | | <result property="scriptType" column="script_type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | | select ID, |
| | | select id, |
| | | scriptno, |
| | | templateID, |
| | | scriptID, |
| | | templateid, |
| | | script_type, |
| | | scriptid, |
| | | script_point, |
| | | script_content, |
| | | script_desc, |
| | |
| | | del_flag=0 |
| | | <if test="scriptno != null ">and scriptno = #{scriptno}</if> |
| | | <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</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="scriptVoice != null and scriptVoice != ''">and script_voice = #{scriptVoice}</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> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplateScriptByID" parameterType="Long" resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplateScript" parameterType="com.smartor.domain.IvrLibaTemplateScript" |
| | |
| | | insert into ivr_liba_template_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="scriptno != null">scriptno,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="scriptid != null">scriptID,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="scriptid != null">scriptid,</if> |
| | | <if test=" scriptPoint != null and scriptPoint != ''">script_point,</if> |
| | | <if test="scriptContent != null">script_content,</if> |
| | | <if test="scriptVoice != null">script_voice,</if> |
| | |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="isMust != null and isMust != ''">is_must,</if> |
| | | <if test="scriptDesc != null ">script_desc,</if> |
| | | <if test="scriptType != null ">script_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptno != null">#{scriptno},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="scriptid != null">#{scriptid},</if> |
| | | <if test="scriptPoint != null and scriptPoint != ''">#{scriptPoint},</if> |
| | | <if test="scriptContent != null">#{scriptContent},</if> |
| | |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="isMust != null and isMust != ''">#{isMust},</if> |
| | | <if test="scriptDesc != null ">#{scriptDesc},</if> |
| | | <if test="scriptType != null ">#{scriptType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | update ivr_liba_template_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="scriptno != null">scriptno = #{scriptno},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="scriptid != null">scriptID = #{scriptid},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="scriptid != null">scriptid = #{scriptid},</if> |
| | | <if test="scriptPoint != null and scriptPoint != ''">script_point = #{scriptPoint},</if> |
| | | <if test="scriptContent != null">script_content = #{scriptContent},</if> |
| | | <if test="scriptVoice != null">script_voice = #{scriptVoice},</if> |
| | |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="isMust != null and isMust != ''">is_must = #{isMust}</if> |
| | | <if test="scriptDesc != null ">script_desc = #{scriptDesc}</if> |
| | | <if test="scriptType != null ">script_type = #{scriptType}</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | </trim> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTemplateScriptByIDs" parameterType="String"> |
| | | delete from ivr_liba_template_script where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | delete from ivr_liba_template_script where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.ServiceSubtaskAnswerMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskAnswer" id="ServiceSubtaskAnswerResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="singleid" column="singleid"/> |
| | | <result property="scriptid" column="scriptid"/> |
| | | <result property="scriptType" column="script_type"/> |
| | | <result property="score" column="score"/> |
| | | <result property="answer" column="answer"/> |
| | | <result property="comment" column="comment"/> |
| | | <result property="istrack" column="istrack"/> |
| | | <result property="isabnormal" column="isabnormal"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceSubtaskAnswerVo"> |
| | | select id, |
| | | taskid, |
| | | singleid, |
| | | scriptid, |
| | | script_type, |
| | | score, |
| | | answer, |
| | | comment, |
| | | istrack, |
| | | isabnormal, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | isupload, |
| | | upload_time, |
| | | pid, |
| | | guid |
| | | from service_subtask_answer |
| | | </sql> |
| | | |
| | | <select id="selectServiceSubtaskAnswerList" parameterType="com.smartor.domain.ServiceSubtaskAnswer" |
| | | resultMap="ServiceSubtaskAnswerResult"> |
| | | <include refid="selectServiceSubtaskAnswerVo"/> |
| | | <where> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="singleid != null ">and singleid = #{singleid}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="scriptType != null ">and script_type = #{scriptType}</if> |
| | | <if test="score != null and score != ''">and score = #{score}</if> |
| | | <if test="answer != null and answer != ''">and answer = #{answer}</if> |
| | | <if test="comment != null and comment != ''">and comment = #{comment}</if> |
| | | <if test="istrack != null and istrack != ''">and istrack = #{istrack}</if> |
| | | <if test="isabnormal != null and isabnormal != ''">and isabnormal = #{isabnormal}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="pid != null and pid != ''">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectServiceSubtaskAnswerById" parameterType="Long" resultMap="ServiceSubtaskAnswerResult"> |
| | | <include refid="selectServiceSubtaskAnswerVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertServiceSubtaskAnswer" parameterType="com.smartor.domain.ServiceSubtaskAnswer" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into service_subtask_answer |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="singleid != null">singleid,</if> |
| | | <if test="scriptid != null">scriptid,</if> |
| | | <if test="scriptType != null">script_type,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="answer != null">answer,</if> |
| | | <if test="comment != null">comment,</if> |
| | | <if test="istrack != null">istrack,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="singleid != null">#{singleid},</if> |
| | | <if test="scriptid != null">#{scriptid},</if> |
| | | <if test="scriptType != null">#{scriptType},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="answer != null">#{answer},</if> |
| | | <if test="comment != null">#{comment},</if> |
| | | <if test="istrack != null">#{istrack},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateServiceSubtaskAnswer" parameterType="com.smartor.domain.ServiceSubtaskAnswer"> |
| | | update service_subtask_answer |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="singleid != null">singleid = #{singleid},</if> |
| | | <if test="scriptid != null">scriptid = #{scriptid},</if> |
| | | <if test="scriptType != null">script_type = #{scriptType},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="answer != null">answer = #{answer},</if> |
| | | <if test="comment != null">comment = #{comment},</if> |
| | | <if test="istrack != null">istrack = #{istrack},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteServiceSubtaskAnswerById" parameterType="Long"> |
| | | delete |
| | | from service_subtask_answer |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteServiceSubtaskAnswerByIds" parameterType="String"> |
| | | delete from service_subtask_answer where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
ÎļþÃû´Ó smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml ÐÞ¸Ä |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrTaskcalldetailMapper"> |
| | | <mapper namespace="com.smartor.mapper.ServiceSubtaskDetailMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTaskcalldetail" id="IvrTaskcalldetailResult"> |
| | | <result property="calldetailid" column="calldetailid"/> |
| | | <result property="callid" column="callid"/> |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskDetail" id="ServiceSubtaskDetailResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="subId" column="sub_id"/> |
| | | <result property="uuid" column="uuid"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="operate" column="operate"/> |
| | |
| | | <result property="valueType" column="value_type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskcalldetailVo"> |
| | | select calldetailid, |
| | | callid, |
| | | <sql id="selectServiceSubtaskDetailVo"> |
| | | select id, |
| | | sub_id, |
| | | uuid, |
| | | phone, |
| | | operate, |
| | |
| | | from ivr_taskcalldetail |
| | | </sql> |
| | | |
| | | <select id="selectIvrTaskcalldetailList" parameterType="com.smartor.domain.IvrTaskcalldetail" |
| | | resultMap="IvrTaskcalldetailResult"> |
| | | <include refid="selectIvrTaskcalldetailVo"/> |
| | | <select id="selectServiceSubtaskDetailList" parameterType="com.smartor.domain.ServiceSubtaskDetail" |
| | | resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | <where> |
| | | <if test="callid != null and callid != ''">and callid = #{callid}</if> |
| | | <if test="subId != null">and sub_id = #{subId}</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> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskcalldetailByCalldetailid" parameterType="String" resultMap="IvrTaskcalldetailResult"> |
| | | <include refid="selectIvrTaskcalldetailVo"/> |
| | | where calldetailid = #{calldetailid} |
| | | <select id="selectServiceSubtaskDetailByCalldetailid" parameterType="String" resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskcalldetail" parameterType="com.smartor.domain.IvrTaskcalldetail"> |
| | | <insert id="insertServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail"> |
| | | insert into ivr_taskcalldetail |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="calldetailid != null">calldetailid,</if> |
| | | <if test="callid != null">callid,</if> |
| | | <if test="id != null">id,</if> |
| | | <if test="subId != null">sub_id,</if> |
| | | <if test="uuid != null">uuid,</if> |
| | | <if test="phone != null">phone,</if> |
| | | <if test="operate != null">operate,</if> |
| | |
| | | <if test="valueType != null">value_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="calldetailid != null">#{calldetailid},</if> |
| | | <if test="callid != null">#{callid},</if> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="subId != null">#{subId},</if> |
| | | <if test="uuid != null">#{uuid},</if> |
| | | <if test="phone != null">#{phone},</if> |
| | | <if test="operate != null">#{operate},</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTaskcalldetail" parameterType="com.smartor.domain.IvrTaskcalldetail"> |
| | | <update id="updateServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail"> |
| | | update ivr_taskcalldetail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="callid != null">callid = #{callid},</if> |
| | | <if test="subId != null">sub_id = #{subId},</if> |
| | | <if test="uuid != null">uuid = #{uuid},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="operate != null">operate = #{operate},</if> |
| | |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | </trim> |
| | | where calldetailid = #{calldetailid} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskcalldetailByCalldetailid" parameterType="String"> |
| | | <delete id="deleteServiceSubtaskDetailByCalldetailid" parameterType="String"> |
| | | delete |
| | | from ivr_taskcalldetail |
| | | where calldetailid = #{calldetailid} |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrTaskcalldetailByCalldetailids" parameterType="String"> |
| | | delete from ivr_taskcalldetail where calldetailid in |
| | | <foreach item="calldetailid" collection="array" open="(" separator="," close=")"> |
| | | #{calldetailid} |
| | | <delete id="deleteServiceSubtaskDetailByCalldetailids" parameterType="String"> |
| | | delete from ivr_taskcalldetail where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <result property="scriptType" column="script_type"/> |
| | | <result property="scriptcode" column="script_code"/> |
| | | <result property="scriptDesc" column="script_desc"/> |
| | | <result property="scriptPicture" column="script_picture"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="ismandatory" column="ismandatory"/> |
| | | <result property="ishide" column="ishide"/> |
| | |
| | | suitway, |
| | | isavailable, |
| | | otherdata, |
| | | script_picture, |
| | | picture_path, |
| | | language, |
| | | icd10_name |
| | | from svy_lib_script |
| | |
| | | <if test="scoretype != null and scoretype!=''">scoretype,</if> |
| | | <if test="score != null and score!=''">score,</if> |
| | | <if test="icd10Name != null and icd10Name!=''">icd10_name,</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">script_picture,</if> |
| | | <if test="picturePath != null and picturePath != ''">picture_path,</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">script_topic,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="scoretype != null and scoretype!=''">#{scoretype},</if> |
| | | <if test="score != null and score!=''">#{score},</if> |
| | | <if test="icd10Name != null and icd10Name!=''">#{icd10Name},</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">#{scriptPicture},</if> |
| | | <if test="picturePath != null and picturePath != ''">#{picturePath},</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">#{scriptTopic},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="scoretype != null and scoretype!=''">scoretype = #{scoretype},</if> |
| | | <if test="score != null and score!=''">score = #{score},</if> |
| | | <if test="icd10Name != null and icd10Name!=''">icd10_name = #{icd10Name},</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">script_picture = #{scriptPicture},</if> |
| | | <if test="picturePath != null and picturePath != ''">picture_path = #{picturePath},</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">script_topic = #{scriptTopic},</if> |
| | | </trim> |
| | | where id = #{id} |
| | |
| | | <resultMap type="com.smartor.domain.SvyLibScriptOption" id="SvyLibScriptOptionResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="topicid" column="topicid"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="topictype" column="topictype"/> |
| | | <result property="optioncode" column="optioncode"/> |
| | |
| | | select id, |
| | | topicid, |
| | | svyid, |
| | | picture_path, |
| | | appendflag, |
| | | appenddesc, |
| | | topictype, |
| | |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <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> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="appendflag != null">appendflag,</if> |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="topicid != null">#{topicid},</if> |
| | |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="appendflag != null">#{appendflag},</if> |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="appendflag != null">appendflag = #{appendflag},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | </mapper> |