已删除5个文件
已添加3个文件
已修改26个文件
已重命名1个文件
| | |
| | | String patid = rsaPublicKeyExample.encryptedData(svyTaskSingle1.getPatid().toString(), pub_key); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType("5"); |
| | | sendMagParam.setUrl(req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskname()); |
| | | log.info("龿¥å®æ´è·¯å¾ï¼{}", req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskname()); |
| | | sendMagParam.setUrl(req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskName()); |
| | | log.info("龿¥å®æ´è·¯å¾ï¼{}", req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskName()); |
| | | //è¿ä¸ªæ¨¡æ¿IDå
åæ»ï¼åé¢åæå¯é |
| | | sendMagParam.setTmpCode("oG3pJHPVWpE81DmZsua_2tKwgJ97r0qz37z56ns7NB4"); |
| | | Map map = new HashMap(); |
| | | map.put("first", svyTask.getTaskname()); |
| | | map.put("first", svyTask.getTaskName()); |
| | | sendMagParam.setContent(JSON.toJSONString(map)); |
| | | sendService.sendMsg(sendMagParam); |
| | | } |
ÎļþÃû´Ó ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaOutIcd10Controller.java ÐÞ¸Ä |
| | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.IvrLibaTargetIcd10; |
| | | import com.smartor.service.IIvrLibaOutIcd10Service; |
| | | import com.smartor.domain.Icd10Association; |
| | | import com.smartor.service.IIcd10AssociationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Api(description = "ææ ç¾ç
") |
| | | @RestController |
| | | @RequestMapping("/smartor/outicd10") |
| | | public class IvrLibaOutIcd10Controller extends BaseController { |
| | | public class Icd10AssociationController extends BaseController { |
| | | @Autowired |
| | | private IIvrLibaOutIcd10Service ivrLibaOutIcd10Service; |
| | | private IIcd10AssociationService iIcd10AssociationService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ææ ç¾ç
å表 |
| | |
| | | @ApiOperation("æ¥è¯¢ææ ç¾ç
å表") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetIcd10 ivrLibaTargetIcd10) { |
| | | PageUtils.startPageByPost(ivrLibaTargetIcd10.getPageNum(), ivrLibaTargetIcd10.getPageSize()); |
| | | List<IvrLibaTargetIcd10> list = ivrLibaOutIcd10Service.selectIvrLibaTargetIcd10List(ivrLibaTargetIcd10); |
| | | public TableDataInfo list(@RequestBody Icd10Association icd10Association) { |
| | | PageUtils.startPageByPost(icd10Association.getPageNum(), icd10Association.getPageSize()); |
| | | List<Icd10Association> list = iIcd10AssociationService.selectIcd10AssociationList(icd10Association); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:export')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTargetIcd10 ivrLibaTargetIcd10) { |
| | | List<IvrLibaTargetIcd10> list = ivrLibaOutIcd10Service.selectIvrLibaTargetIcd10List(ivrLibaTargetIcd10); |
| | | ExcelUtil<IvrLibaTargetIcd10> util = new ExcelUtil<IvrLibaTargetIcd10>(IvrLibaTargetIcd10.class); |
| | | public void export(HttpServletResponse response, Icd10Association Icd10Association) { |
| | | List<Icd10Association> list = iIcd10AssociationService.selectIcd10AssociationList(Icd10Association); |
| | | ExcelUtil<Icd10Association> util = new ExcelUtil<Icd10Association>(Icd10Association.class); |
| | | util.exportExcel(response, list, "ææ ç¾ç
æ°æ®"); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaOutIcd10Service.selectIvrLibaTargetIcd10ById(id)); |
| | | return success(iIcd10AssociationService.selectIcd10AssociationById(id)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:add')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetIcd10 ivrLibaTargetIcd10) { |
| | | return toAjax(ivrLibaOutIcd10Service.insertIvrLibaTargetIcd10(ivrLibaTargetIcd10)); |
| | | public AjaxResult add(@RequestBody Icd10Association Icd10Association) { |
| | | return toAjax(iIcd10AssociationService.insertIcd10Association(Icd10Association)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:edit')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetIcd10 ivrLibaTargetIcd10) { |
| | | return toAjax(ivrLibaOutIcd10Service.updateIvrLibaTargetIcd10(ivrLibaTargetIcd10)); |
| | | public AjaxResult edit(@RequestBody Icd10Association Icd10Association) { |
| | | return toAjax(iIcd10AssociationService.updateIcd10Association(Icd10Association)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(ivrLibaOutIcd10Service.deleteIvrLibaTargetIcd10ByIds(ids)); |
| | | return toAjax(iIcd10AssociationService.deleteIcd10AssociationByIds(ids)); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @Api(description = "é®å·æ¨¡æ¿") |
| | | @RestController |
| | | @RequestMapping("/smartor/svyTemplate") |
| | | @RequestMapping("/smartor/svyLibTemplate") |
| | | public class SvyLibTemplateController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibTemplateService svyLibTemplateService; |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | 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.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.SvyTask; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.service.ISvyTaskService; |
| | | import com.smartor.service.ISvyTaskSingleService; |
| | | import io.swagger.annotations.Api; |
| | | 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.stream.Collectors; |
| | | |
| | | /** |
| | | * 综åé®å·ä»»å¡ï¼ä»»å¡ï¼Controller |
| | | * é®å·ä»»å¡ï¼ä»»å¡ï¼Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Api(description = " é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | @RestController |
| | | @RequestMapping("/smartor/svytask") |
| | | public class SvyTaskController extends BaseController |
| | | { |
| | | public class SvyTaskController extends BaseController { |
| | | @Autowired |
| | | private ISvyTaskService svyTaskService; |
| | | @Autowired |
| | | private ISvyTaskSingleService iSvyTaskSingleService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | * æ¥è¯¢é®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·ä»»å¡ï¼ä»»å¡ï¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:task:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTask svyTask) |
| | | { |
| | | startPage(); |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyTask svyTask) { |
| | | PageUtils.startPageByPost(svyTask.getPageNum(), svyTask.getPageSize()); |
| | | List<SvyTask> list = svyTaskService.selectSvyTaskList(svyTask); |
| | | return getDataTable(list); |
| | | List<SvyTaskVO> svyTaskVOS = DtoConversionUtils.sourceToTarget(list, SvyTaskVO.class); |
| | | if (CollectionUtils.isNotEmpty(svyTaskVOS)) { |
| | | for (SvyTaskVO svyTaskVO : svyTaskVOS) { |
| | | SvyTaskSingle svyTaskSingle = new SvyTaskSingle(); |
| | | svyTaskSingle.setTaskid(svyTaskVO.getTaskid()); |
| | | List<SvyTaskSingle> svyTaskSingles = iSvyTaskSingleService.selectSvyTaskSingleList(svyTaskSingle); |
| | | if (CollectionUtils.isNotEmpty(svyTaskSingles)) { |
| | | //å·²åé |
| | | long yfs = svyTaskSingles.stream().filter(svyTaskcall1 -> svyTaskcall1.getSendstate() != null && svyTaskcall1.getSendstate() == 3L).collect(Collectors.toList()).stream().count(); |
| | | //æªåé |
| | | long wfs = svyTaskSingles.stream().filter(svyTaskcall1 -> svyTaskcall1.getSendstate() != null && svyTaskcall1.getSendstate() == 2L).collect(Collectors.toList()).stream().count(); |
| | | svyTaskVO.setYfs(yfs); |
| | | svyTaskVO.setWfs(wfs); |
| | | |
| | | } |
| | | } |
| | | //è·åtotal |
| | | long total = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
| | | svyTask.setPageNum(null); |
| | | svyTask.setPageSize(null); |
| | | svyTaskService.selectSvyTaskList(svyTask); |
| | | } |
| | | }); |
| | | |
| | | return getDataTable2(total, svyTaskVOS); |
| | | |
| | | } |
| | | |
| | | return getDataTable2(0, list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | * 导åºé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | */ |
| | | @ApiOperation("导åºé®å·ä»»å¡ï¼ä»»å¡ï¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:task:export')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTask svyTask) |
| | | { |
| | | public void export(HttpServletResponse response, SvyTask svyTask) { |
| | | List<SvyTask> list = svyTaskService.selectSvyTaskList(svyTask); |
| | | ExcelUtil<SvyTask> util = new ExcelUtil<SvyTask>(SvyTask.class); |
| | | util.exportExcel(response, list, "综åé®å·ä»»å¡ï¼ä»»å¡ï¼æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·å综åé®å·ä»»å¡ï¼ä»»å¡ï¼è¯¦ç»ä¿¡æ¯ |
| | | * è·åé®å·ä»»å¡ï¼ä»»å¡ï¼è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·ä»»å¡ï¼ä»»å¡ï¼è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:task:query')") |
| | | @GetMapping(value = "/{taskid}") |
| | | public AjaxResult getInfo(@PathVariable("taskid") Long taskid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("taskid") Long taskid) { |
| | | return success(svyTaskService.selectSvyTaskByTaskid(taskid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * æ°å¢é®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @ApiOperation("æ°å¢é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTask svyTask) |
| | | { |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTask svyTask) { |
| | | return toAjax(svyTaskService.insertSvyTask(svyTask)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * ä¿®æ¹é®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:task:edit')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTask svyTask) |
| | | { |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTask svyTask) { |
| | | return toAjax(svyTaskService.updateSvyTask(svyTask)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * å é¤é®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @ApiOperation("å é¤é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:task:remove')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{taskids}") |
| | | public AjaxResult remove(@PathVariable Long[] taskids) |
| | | { |
| | | @Log(title = "é®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.DELETE) |
| | | @GetMapping("/{taskids}") |
| | | public AjaxResult remove(@PathVariable Long[] taskids) { |
| | | return toAjax(svyTaskService.deleteSvyTaskByTaskids(taskids)); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.SvyTaskScript; |
| | | import com.smartor.service.ISvyTaskScriptService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Api(description = "ä»»å¡é®å·é¢ç®") |
| | | @RestController |
| | | @RequestMapping("/smartor/svyTaskScript") |
| | | public class SvyTaskScriptController extends BaseController |
| | | { |
| | | public class SvyTaskScriptController extends BaseController { |
| | | @Autowired |
| | | private ISvyTaskScriptService svyTaskScriptService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç®å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ä»»å¡é®å·é¢ç®å表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskScript svyTaskScript) |
| | | { |
| | | public TableDataInfo list(SvyTaskScript svyTaskScript) { |
| | | startPage(); |
| | | List<SvyTaskScript> list = svyTaskScriptService.selectSvyTaskScriptList(svyTaskScript); |
| | | return getDataTable(list); |
| | |
| | | /** |
| | | * 导åºä»»å¡é®å·é¢ç®å表 |
| | | */ |
| | | @ApiOperation("导åºä»»å¡é®å·é¢ç®å表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskScript svyTaskScript) |
| | | { |
| | | public void export(HttpServletResponse response, SvyTaskScript svyTaskScript) { |
| | | List<SvyTaskScript> list = svyTaskScriptService.selectSvyTaskScriptList(svyTaskScript); |
| | | ExcelUtil<SvyTaskScript> util = new ExcelUtil<SvyTaskScript>(SvyTaskScript.class); |
| | | util.exportExcel(response, list, "ä»»å¡é®å·é¢ç®æ°æ®"); |
| | |
| | | /** |
| | | * è·åä»»å¡é®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åä»»å¡é®å·é¢ç®è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyTaskScriptService.selectSvyTaskScriptById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("æ°å¢ä»»å¡é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskScript svyTaskScript) |
| | | { |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTaskScript svyTaskScript) { |
| | | return toAjax(svyTaskScriptService.insertSvyTaskScript(svyTaskScript)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ä»»å¡é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskScript svyTaskScript) |
| | | { |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskScript svyTaskScript) { |
| | | return toAjax(svyTaskScriptService.updateSvyTaskScript(svyTaskScript)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("导åºç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(svyTaskScriptService.deleteSvyTaskScriptByIds(ids)); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.IvrTaskVO; |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | import com.smartor.domain.SvyTaskVO; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.service.ISvyTaskSingleService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Api(description = "åä¸ä»»å¡ï¼é®å·ï¼") |
| | | @RestController |
| | | @RequestMapping("/smartor/svysingle") |
| | | public class SvyTaskSingleController extends BaseController { |
| | |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:single:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskSingle svyTaskSingle) { |
| | |
| | | /** |
| | | * 导åºåä¸ä»»å¡ï¼é®å·ï¼å表 |
| | | */ |
| | | @ApiOperation("导åºåä¸ä»»å¡ï¼é®å·ï¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:single:export')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * è·ååä¸ä»»å¡ï¼é®å·ï¼è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·ååä¸ä»»å¡ï¼é®å·ï¼è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:single:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyTaskSingleService.selectSvyTaskSingleById(id)); |
| | | } |
| | |
| | | /** |
| | | * æ°å¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @ApiOperation("æ°å¢åä¸ä»»å¡ï¼é®å·ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:single:add')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTaskSingle svyTaskSingle) { |
| | | return toAjax(svyTaskSingleService.insertSvyTaskSingle(svyTaskSingle)); |
| | | } |
| | |
| | | /** |
| | | * ä¿®æ¹åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹åä¸ä»»å¡ï¼é®å·ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:single:edit')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskSingle svyTaskSingle) { |
| | | return toAjax(svyTaskSingleService.updateSvyTaskSingle(svyTaskSingle)); |
| | | } |
| | |
| | | /** |
| | | * å é¤åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @ApiOperation(" å é¤åä¸ä»»å¡ï¼é®å·ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:single:remove')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(svyTaskSingleService.deleteSvyTaskSingleByIds(ids)); |
| | | } |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @PostMapping("/insertOrUpdateSvyTask") |
| | | public AjaxResult insertOrUpdateSvyTask(@RequestBody SvyTaskVO svyTaskVO) { |
| | | |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | svyTaskVO.setCreateBy(user.getNickName()); |
| | | return toAjax(svyTaskSingleService.insertOrUpdateSvyTask(svyTaskVO)); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ¡ä»¶æ¥è¯¢ä»»å¡ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ ¹æ®æ¡ä»¶æ¥è¯¢ä»»å¡ä¿¡æ¯") |
| | | @PostMapping("/queryTaskByCondition") |
| | | public AjaxResult queryTaskByCondition(@RequestBody SvyTaskSingleVO svyTaskSingleVO) { |
| | | //æ ¹æ®å
¥åæ¥è¯¢ä¿¡æ¯ |
| | | SvyTaskSingle svyTaskSingle = DtoConversionUtils.sourceToTarget(svyTaskSingleVO, SvyTaskSingle.class); |
| | | SvyTaskVO svyTaskVO = svyTaskSingleService.queryTaskByCondition(svyTaskSingle); |
| | | return success(svyTaskVO); |
| | | } |
| | | } |
| | |
| | | import com.smartor.domain.SvyTaskTemplate; |
| | | import com.smartor.domain.SvyTaskTemplateVO; |
| | | import com.smartor.service.ISvyTaskTemplateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Api(description = "ä»»å¡é®å·æ¨¡æ¿") |
| | | @RestController |
| | | @RequestMapping("/smartor/svytemplate") |
| | | @RequestMapping("/smartor/svytemplateTask") |
| | | public class SvyTaskTemplateController extends BaseController { |
| | | @Autowired |
| | | private ISvyTaskTemplateService svyTaskTemplateService; |
| | |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @ApiOperation("æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplate svyTaskTemplate) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºä»»å¡é®å·æ¨¡æ¿å表 |
| | | */ |
| | | @ApiOperation("导åºä»»å¡é®å·æ¨¡æ¿å表") |
| | | @PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * è·åä»»å¡é®å·æ¨¡æ¿è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åä»»å¡é®å·æ¨¡æ¿è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | @GetMapping(value = "/{svyid}") |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { |
| | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("æ°å¢ä»»å¡é®å·æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplate svyTaskTemplate) { |
| | | return toAjax(svyTaskTemplateService.updateSvyTaskTemplate(svyTaskTemplate)); |
| | | } |
| | |
| | | /** |
| | | * å é¤ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("å é¤ä»»å¡é®å·æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{svyids}") |
| | | @GetMapping("/remove/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) { |
| | | return toAjax(svyTaskTemplateService.deleteSvyTaskTemplateBySvyids(svyids)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.constant.UserConstants; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | |
| | | import com.ruoyi.system.service.ISysPostService; |
| | | import com.ruoyi.system.service.ISysRoleService; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * ç¨æ·ä¿¡æ¯ |
| | |
| | | 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 com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * ç¾ç
å
³è对象 icd10_association |
| | | * ææ ç¾ç
对象 ivr_liba_target_icd10 |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-26 |
| | | * @date 2023-12-20 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "Icd10Association", description = "ç¾ç
å
³è对象") |
| | | public class Icd10Association { |
| | | @ApiModel(value = "Icd10Association", description = "ææ ç¾ç
对象") |
| | | public class Icd10Association extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * ç¾ç
id |
| | | */ |
| | | @ApiModelProperty(value = "ç¾ç
id") |
| | | @Excel(name = "ç¾ç
id") |
| | | private Long icd10id; |
| | | |
| | | /** |
| | | * ç¾ç
ç¼ç |
| | |
| | | @Excel(name = "ç¾ç
åç§°") |
| | | private String icd10name; |
| | | |
| | | /** |
| | | * é®å·ID |
| | | */ |
| | | @ApiModelProperty(value = "é®å·ID") |
| | | @Excel(name = "é®å·ID") |
| | | private Long svyid; |
| | | |
| | | |
| | | /** |
| | | * æ´æ°æ¶é´ |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updatetime; |
| | | @ApiModelProperty(value = "æºæID") |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * å¤é¨ID |
| | | */ |
| | | @ApiModelProperty(value = "å¤é¨ID") |
| | | @Excel(name = "å¤é¨ID ") |
| | | private Long outid; |
| | | |
| | | /** |
| | | * 1,ææ 2,éè®¿è¯æ¯ 3,é访模ç 4,é®å·è¯æ¯ ï¼5,é®å·æ¨¡ç 6,宣æ |
| | | */ |
| | | @ApiModelProperty(value = "1,ææ 2,éè®¿è¯æ¯ 3,é访模ç 4,é®å·è¯æ¯ ï¼5,é®å·æ¨¡ç 6,宣æ") |
| | | @Excel(name = "1,ææ 2,éè®¿è¯æ¯ 3,é访模ç 4,é®å·è¯æ¯ ï¼5,é®å·æ¨¡ç 6,宣æ") |
| | | private Long type; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | @Excel(name = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty(value = "GUID") |
| | | @Excel(name = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | | @ApiModelProperty(value = "pageNum") |
| | | @Excel(name = "pageNum") |
| | | private Integer pageNum; |
| | | |
| | | /** |
| | | * pageSize |
| | | */ |
| | | @ApiModelProperty(value = "pageSize") |
| | | @Excel(name = "pageSize") |
| | | private Integer pageSize; |
| | | |
| | | } |
| | |
| | | /** |
| | | * ç
åå· |
| | | */ |
| | | @Excel(name = "åéç¶æ") |
| | | @ApiModelProperty("åéç¶æ") |
| | | @Excel(name = "åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | @ApiModelProperty("åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | private Integer sendStatus; |
| | | |
| | | |
| | |
| | | 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 java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * é®å·å¯¹è±¡ svy_lib_Template |
| | |
| | | /** |
| | | * ç¾ç
ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¾ç
ID") |
| | | private List<String> icdID; |
| | | @ApiModelProperty(value = "ç¾ç
å
³è表") |
| | | private List<Icd10Association> icd10Associations; |
| | | |
| | | /** |
| | | * é®å·é¢ç®éå |
| | |
| | | @Excel(name = "ææ åç§°") |
| | | @ApiModelProperty(value = "ææ åç§°") |
| | | private String targetname; |
| | | /** |
| | | * ææ åç§° |
| | | */ |
| | | @Excel(name = "åæ°") |
| | | @ApiModelProperty(value = "åæ°") |
| | | private String score; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | |
| | | */ |
| | | @Excel(name = "é项æè¿°") |
| | | @ApiModelProperty(value = "é项æè¿°") |
| | | private String optiondesc; |
| | | private String optioncontent; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "ä»»å¡åç§°") |
| | | private String taskname; |
| | | private String taskName; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "ä»»å¡æè¿°") |
| | | private String taskDesc; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | |
| | | private Long sendType; |
| | | |
| | | /** |
| | | * åéç¶æï¼ 0 失败 1æå |
| | | * åéç¶æ: 1æ°å»º 2æ§è¡ä¸ 3æå 4ç»æ¢ 5宿 |
| | | */ |
| | | @Excel(name = "åéç¶æï¼ 0 失败 1æå") |
| | | @ApiModelProperty(value = "åéç¶æï¼ 0 失败 1æå") |
| | | @Excel(name = "åéç¶æ: 1æ°å»º 2æ§è¡ä¸ 3æå 4ç»æ¢ 5宿") |
| | | @ApiModelProperty(value = "åéç¶æ: 1æ°å»º 2æ§è¡ä¸ 3æå 4ç»æ¢ 5宿") |
| | | private String sendState; |
| | | |
| | | /** |
| | |
| | | @Excel(name = "模æ¿åºæ¨¡çID") |
| | | private String libtemplateid; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | | @ApiModelProperty("pageNum") |
| | | private Integer pageNum; |
| | | |
| | | /** |
| | | * pageSize |
| | | */ |
| | | @ApiModelProperty("pageSize") |
| | | private Integer pageSize; |
| | | |
| | | } |
| | |
| | | * åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé |
| | | */ |
| | | @Excel(name = " åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | @ApiModelProperty(value = "åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | @ApiModelProperty(value = "åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé 4 ç»æ¢") |
| | | private Long sendstate; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Excel(name = "åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé") |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé") |
| | | private String sendType; |
| | | private Long sendType; |
| | | |
| | | /** |
| | | * åéæ¶é´æ®µ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é®å·ï¼å¯¹è±¡ svy_task_single |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Data |
| | | public class SvyTaskSingleVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * è®°å½å
³é®å¼ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * åé人 ï¼æ£è
ï¼ |
| | | */ |
| | | @Excel(name = " åé人 ", readConverterExp = "æ£=è
") |
| | | @ApiModelProperty(value = "åé人 ï¼æ£è
ï¼") |
| | | private String sendname; |
| | | |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @Excel(name = " ææºå· ") |
| | | @ApiModelProperty(value = "ææºå·") |
| | | private String phone; |
| | | |
| | | /** |
| | | * æ£è
ID |
| | | */ |
| | | @Excel(name = " æ£è
ID ") |
| | | @ApiModelProperty(value = "æ£è
ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * æ§å« |
| | | */ |
| | | @Excel(name = " æ§å«") |
| | | @ApiModelProperty(value = "æ§å«") |
| | | private String sex; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @Excel(name = " å¹´é¾ ") |
| | | @ApiModelProperty(value = "å¹´é¾") |
| | | private Long age; |
| | | |
| | | /** |
| | | * 身份è¯å· |
| | | */ |
| | | @Excel(name = " 身份è¯å· ") |
| | | @ApiModelProperty(value = "身份è¯å·") |
| | | private String sfzh; |
| | | |
| | | /** |
| | | * å°å |
| | | */ |
| | | @Excel(name = " å°å ") |
| | | @ApiModelProperty(value = "å°å") |
| | | private String addr; |
| | | |
| | | /** |
| | | * åé人详æ
|
| | | */ |
| | | @Excel(name = " åé人详æ
") |
| | | @ApiModelProperty(value = "åé人详æ
") |
| | | private String senderdetail; |
| | | |
| | | /** |
| | | * ä»»å¡ç±»å(0éç¥ã1宣æã2é¨è¯ã3åºé¢ã4å¤è¯ã5使£ã6é®å·ã7廿â¦â¦) |
| | | */ |
| | | @Excel(name = "ä»»å¡ç±»å(0éç¥ã1宣æã2é¨è¯ã3åºé¢ã4å¤è¯ã5使£ã6é®å·ã7廿â¦â¦)") |
| | | @ApiModelProperty(value = "ä»»å¡ç±»å(0éç¥ã1宣æã2é¨è¯ã3åºé¢ã4å¤è¯ã5使£ã6é®å·ã7廿â¦â¦)") |
| | | private String type; |
| | | |
| | | /** |
| | | * ä»»å¡ID |
| | | */ |
| | | @Excel(name = " ä»»å¡ID ") |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = " 模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateid; |
| | | |
| | | /** |
| | | * 模æ¿å |
| | | */ |
| | | @Excel(name = " 模æ¿å ") |
| | | @ApiModelProperty(value = "模æ¿å") |
| | | private String templatename; |
| | | |
| | | /** |
| | | * å鿥æ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " å鿥æ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å鿥æ") |
| | | private Date senddate; |
| | | |
| | | /** |
| | | * ä¸åå¼å§åéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " ä¸åå¼å§åéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "ä¸åå¼å§åéæ¶é´éå¶") |
| | | private String sendlimitabegin; |
| | | |
| | | /** |
| | | * ä¸åç»æåéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " ä¸åç»æåéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "ä¸åç»æåéæ¶é´éå¶") |
| | | private String sendlimitaend; |
| | | |
| | | /** |
| | | * ä¸åå¼å§åéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " ä¸åå¼å§åéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "ä¸åå¼å§åéæ¶é´éå¶") |
| | | private String sendlimitpbegin; |
| | | |
| | | /** |
| | | * ä¸åç»æåéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " ä¸åç»æåéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "ä¸åç»æåéæ¶é´éå¶") |
| | | private String sendlimitpend; |
| | | |
| | | /** |
| | | * æä¸å¼å§åéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " æä¸å¼å§åéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "æä¸å¼å§åéæ¶é´éå¶") |
| | | private String sendlimitnbegin; |
| | | |
| | | /** |
| | | * æä¸ç»æåéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " æä¸ç»æåéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "æä¸ç»æåéæ¶é´éå¶") |
| | | private String sendlimitnend; |
| | | |
| | | /** |
| | | * åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé |
| | | */ |
| | | @Excel(name = " åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | @ApiModelProperty(value = "åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | private Long sendstate; |
| | | |
| | | /** |
| | | * åéUUID |
| | | */ |
| | | @Excel(name = " åéUUID ") |
| | | @ApiModelProperty(value = "åéUUID") |
| | | private String senduuid; |
| | | |
| | | /** |
| | | * ç»æ |
| | | */ |
| | | @Excel(name = " ç»æ ") |
| | | @ApiModelProperty(value = "ç»æ") |
| | | private String result; |
| | | |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " 宿æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | private Date finishtime; |
| | | |
| | | /** |
| | | * ç¨æ·ID |
| | | */ |
| | | @Excel(name = " ç¨æ·ID ") |
| | | @ApiModelProperty(value = "ç¨æ·ID") |
| | | private String userid; |
| | | |
| | | /** |
| | | * ç¨æ·å |
| | | */ |
| | | @Excel(name = " ç¨æ·å ") |
| | | @ApiModelProperty(value = "ç¨æ·å") |
| | | private String username; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "å¤å¼UUID") |
| | | private String outbounduuid; |
| | | |
| | | /** |
| | | * å°±è¯è®°å½ç¼å· ï¼å¯¹åºâæ£è
åºé¢è®°å½ä¸»é®âãâæ£è
é¨è¯è®°å½ä¸»é®âï¼ |
| | | */ |
| | | @Excel(name = " å°±è¯è®°å½ç¼å· ", readConverterExp = "对=åºâæ£è
åºé¢è®°å½ä¸»é®âãâæ£è
é¨è¯è®°å½ä¸»é®â") |
| | | @ApiModelProperty(value = "å°±è¯è®°å½ç¼å· ï¼å¯¹åºâæ£è
åºé¢è®°å½ä¸»é®âãâæ£è
é¨è¯è®°å½ä¸»é®âï¼") |
| | | private Long recordid; |
| | | |
| | | /** |
| | | * éæ¨æ»æ° |
| | | */ |
| | | @Excel(name = " éæ¨æ»æ° ") |
| | | @ApiModelProperty(value = "éæ¨æ»æ°") |
| | | private Long recallcount; |
| | | |
| | | /** |
| | | * å½åéæ¨æ¬¡æ° |
| | | */ |
| | | @Excel(name = " å½åéæ¨æ¬¡æ° ") |
| | | @ApiModelProperty(value = "å½åéæ¨æ¬¡æ°") |
| | | private Long exrecallcount; |
| | | |
| | | /** |
| | | * æåæ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " æåæ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æåæ¶é´") |
| | | private Date pulltime; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "") |
| | | private Long bqsms; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "") |
| | | private Long bhsms; |
| | | |
| | | /** |
| | | * é¨é¨code |
| | | */ |
| | | @Excel(name = " é¨é¨code") |
| | | @ApiModelProperty(value = "é¨é¨code") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * æ ç¾ç¶æ |
| | | */ |
| | | @Excel(name = " æ ç¾ç¶æ") |
| | | @ApiModelProperty(value = "æ ç¾ç¶æ") |
| | | private Long labelstatus; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * ææ¬åéåæ° |
| | | */ |
| | | @Excel(name = "ææ¬åéåæ°") |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String textParam; |
| | | |
| | | /** |
| | | * 1,çä¿¡ã2,线ä¸ã3,è¯é³ã4,è§é¢ã5,纸质 6.龿¥ 7.éé 8.微信 |
| | | */ |
| | | @Excel(name = " 1,çä¿¡ã2,线ä¸ã3,è¯é³ã4,è§é¢ã5,纸质 6.龿¥ 7.éé 8.微信") |
| | | @ApiModelProperty(value = "1,çä¿¡ã2,线ä¸ã3,è¯é³ã4,è§é¢ã5,纸质 6.龿¥ 7.éé 8.微信") |
| | | private String serviceform; |
| | | |
| | | /** |
| | | * åºå· |
| | | */ |
| | | @Excel(name = "åºå·") |
| | | @ApiModelProperty(value = "åºå·") |
| | | private String badNo; |
| | | |
| | | /** |
| | | * ç¾ç
åç§° |
| | | */ |
| | | @Excel(name = "ç¾ç
åç§°") |
| | | @ApiModelProperty(value = "ç¾ç
åç§°") |
| | | private String icdName; |
| | | |
| | | /** |
| | | * ç
åå· |
| | | */ |
| | | @Excel(name = "ç
åå·") |
| | | @ApiModelProperty(value = "ç
åå·") |
| | | private String medicalRecordNo; |
| | | |
| | | /** |
| | | * 宣æå
容 |
| | | */ |
| | | @Excel(name = "宣æå
容") |
| | | @ApiModelProperty(value = "宣æå
容") |
| | | private String preachcontent; |
| | | |
| | | /** |
| | | * åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé |
| | | */ |
| | | @Excel(name = "åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé") |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé") |
| | | private Long sendType; |
| | | |
| | | /** |
| | | * åéæ¶é´æ®µ |
| | | */ |
| | | @Excel(name = "åéæ¶é´æ®µ") |
| | | @ApiModelProperty(value = "åéæ¶é´æ®µ") |
| | | private String sendTimeSlot; |
| | | |
| | | /** |
| | | * ä»»å¡åç§° |
| | | */ |
| | | @Excel(name = "ä»»å¡åç§°") |
| | | @ApiModelProperty(value = "ä»»å¡åç§°") |
| | | private String taskName; |
| | | |
| | | /** |
| | | * ä»»å¡æè¿° |
| | | */ |
| | | @Excel(name = "ä»»å¡æè¿°") |
| | | @ApiModelProperty(value = "ä»»å¡æè¿°") |
| | | private String taskDesc; |
| | | |
| | | /** |
| | | * å建人 |
| | | */ |
| | | @Excel(name = "å建人") |
| | | @ApiModelProperty(value = "å建人") |
| | | private String operator; |
| | | |
| | | /** |
| | | * å建人ç¼å· |
| | | */ |
| | | @Excel(name = "å建人ç¼å·") |
| | | @ApiModelProperty(value = "å建人ç¼å·") |
| | | private String operatorNo; |
| | | |
| | | /** |
| | | * å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼ |
| | | */ |
| | | @Excel(name = "å°±è¯ç¼å·", readConverterExp = "对=åºçouthospnoãinhospno") |
| | | @ApiModelProperty(value = "å°±è¯ç¼å·") |
| | | private String hospno; |
| | | |
| | | /** |
| | | * å°±è¯ç±»åï¼1é¨è¯ 2åºé¢ï¼ |
| | | */ |
| | | @Excel(name = "å°±è¯ç±»å", readConverterExp = "1=é¨è¯,2=åºé¢") |
| | | @ApiModelProperty(value = "å°±è¯ç±»åï¼1é¨è¯ 2åºé¢ï¼") |
| | | private String hospType; |
| | | |
| | | /** |
| | | * 微信 |
| | | */ |
| | | @Excel(name = "微信") |
| | | @ApiModelProperty(value = "微信") |
| | | private String wechat; |
| | | |
| | | /** |
| | | * è¯æåç§° |
| | | */ |
| | | @Excel(name = "è¯æåç§°") |
| | | @ApiModelProperty(value = "è¯æåç§°") |
| | | private String diagname; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @Excel(name = "ç§å®¤åç§°") |
| | | @ApiModelProperty(value = "ç§å®¤åç§°") |
| | | private String deptname; |
| | | |
| | | /** |
| | | * å°±è¯æ¥æ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "å°±è¯æ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å°±è¯æ¥æ") |
| | | private Date admindate; |
| | | |
| | | /** |
| | | * ç
æ¿å· |
| | | */ |
| | | @Excel(name = "ç
æ¿å·") |
| | | @ApiModelProperty(value = "ç
æ¿å·") |
| | | private String roomno; |
| | | |
| | | /** |
| | | * ç
åºå· |
| | | */ |
| | | @Excel(name = "ç
åºå·") |
| | | @ApiModelProperty(value = "ç
åºå·") |
| | | private String bedno; |
| | | |
| | | |
| | | } |
| | |
| | | * é项æè¿° |
| | | */ |
| | | @ApiModelProperty(value = "é项æè¿°") |
| | | private String optiondesc; |
| | | private String optioncontent; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "ä»»å¡åç§°") |
| | | private String taskname; |
| | | private String taskName; |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "ä»»å¡æè¿°") |
| | | private String taskDesc; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | |
| | | */ |
| | | @Excel(name = "ææ¬åéåæ°") |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String textParam; |
| | | private Map<String, Map<String, String>> textParam; |
| | | |
| | | /** |
| | | * æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1 |
| | |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çID") |
| | | private String libtemplateid; |
| | | |
| | | |
| | | /** |
| | | * å·²åé |
| | | */ |
| | | @Excel(name = " å·²åé ") |
| | | private Long yfs; |
| | | |
| | | /** |
| | | * æªåé |
| | | */ |
| | | @Excel(name = " æªåé ") |
| | | private Long wfs; |
| | | |
| | | /** |
| | | * æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé |
| | | */ |
| | | @Excel(name = "æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé ") |
| | | @ApiModelProperty(value = "æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé") |
| | | private Long sendType; |
| | | |
| | | |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¾ç
å
³èMapperæ¥å£ |
| | | * ææ ç¾ç
Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-26 |
| | | * @date 2023-12-20 |
| | | */ |
| | | @Mapper |
| | | public interface Icd10AssociationMapper { |
| | | /** |
| | | * æ¥è¯¢ç¾ç
å
³è |
| | | * æ¥è¯¢ææ ç¾ç
|
| | | * |
| | | * @param icd10code ç¾ç
å
³èä¸»é® |
| | | * @return ç¾ç
å
³è |
| | | * @param id ææ ç¾ç
ä¸»é® |
| | | * @return ææ ç¾ç
|
| | | */ |
| | | public Icd10Association selectIcd10AssociationByIcd10code(String icd10code); |
| | | public Icd10Association selectIcd10AssociationById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¾ç
å
³èå表 |
| | | * æ¥è¯¢ææ ç¾ç
å表 |
| | | * |
| | | * @param icd10Association ç¾ç
å
³è |
| | | * @return ç¾ç
å
³èéå |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ææ ç¾ç
éå |
| | | */ |
| | | public List<Icd10Association> selectIcd10AssociationList(Icd10Association icd10Association); |
| | | |
| | | /** |
| | | * æ°å¢ç¾ç
å
³è |
| | | * æ°å¢ææ ç¾ç
|
| | | * |
| | | * @param icd10Association ç¾ç
å
³è |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertIcd10Association(Icd10Association icd10Association); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¾ç
å
³è |
| | | * ä¿®æ¹ææ ç¾ç
|
| | | * |
| | | * @param icd10Association ç¾ç
å
³è |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ç»æ |
| | | */ |
| | | public int updateIcd10Association(Icd10Association icd10Association); |
| | | |
| | | /** |
| | | * å é¤ç¾ç
å
³è |
| | | * å 餿æ ç¾ç
|
| | | * |
| | | * @param icd10code ç¾ç
å
³èä¸»é® |
| | | * @param id ææ ç¾ç
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIcd10AssociationByIcd10code(String icd10code); |
| | | public int deleteIcd10AssociationById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¾ç
å
³è |
| | | * æ¹éå 餿æ ç¾ç
|
| | | * |
| | | * @param icd10codes éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIcd10AssociationByIcd10codes(String[] icd10codes); |
| | | public int deleteIcd10AssociationByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.Icd10Association; |
| | | import com.smartor.domain.Icd10Association; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ææ ç¾ç
Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-20 |
| | | */ |
| | | public interface IIcd10AssociationService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ææ ç¾ç
|
| | | * |
| | | * @param id ææ ç¾ç
ä¸»é® |
| | | * @return ææ ç¾ç
|
| | | */ |
| | | public Icd10Association selectIcd10AssociationById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææ ç¾ç
å表 |
| | | * |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ææ ç¾ç
éå |
| | | */ |
| | | public List<Icd10Association> selectIcd10AssociationList(Icd10Association icd10Association); |
| | | |
| | | /** |
| | | * æ°å¢ææ ç¾ç
|
| | | * |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertIcd10Association(Icd10Association icd10Association); |
| | | |
| | | /** |
| | | * ä¿®æ¹ææ ç¾ç
|
| | | * |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ç»æ |
| | | */ |
| | | public int updateIcd10Association(Icd10Association icd10Association); |
| | | |
| | | /** |
| | | * æ¹éå 餿æ ç¾ç
|
| | | * |
| | | * @param ids éè¦å é¤çææ ç¾ç
主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIcd10AssociationByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿æ ç¾ç
ä¿¡æ¯ |
| | | * |
| | | * @param id ææ ç¾ç
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIcd10AssociationById(Long id); |
| | | } |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.IvrTaskSingle; |
| | | import com.smartor.domain.IvrTaskVO; |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | import com.smartor.domain.SvyTaskVO; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | public interface ISvyTaskSingleService |
| | | { |
| | | public interface ISvyTaskSingleService { |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | |
| | | * æ°å¢æä¿®æ¹å é¤é®å·ä»»å¡ |
| | | */ |
| | | public int insertOrUpdateSvyTask(SvyTaskVO svyTaskVO); |
| | | |
| | | public SvyTaskVO queryTaskByCondition(SvyTaskSingle svyTaskSingle); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.Icd10Association; |
| | | import com.smartor.mapper.Icd10AssociationMapper; |
| | | import com.smartor.service.IIcd10AssociationService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ææ ç¾ç
Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-20 |
| | | */ |
| | | @Service |
| | | public class Icd10AssociationServiceImpl implements IIcd10AssociationService |
| | | { |
| | | @Autowired |
| | | private Icd10AssociationMapper icd10AssociationMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ææ ç¾ç
|
| | | * |
| | | * @param id ææ ç¾ç
ä¸»é® |
| | | * @return ææ ç¾ç
|
| | | */ |
| | | @Override |
| | | public Icd10Association selectIcd10AssociationById(Long id) |
| | | { |
| | | return icd10AssociationMapper.selectIcd10AssociationById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ææ ç¾ç
å表 |
| | | * |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ææ ç¾ç
|
| | | */ |
| | | @Override |
| | | public List<Icd10Association> selectIcd10AssociationList(Icd10Association icd10Association) |
| | | { |
| | | return icd10AssociationMapper.selectIcd10AssociationList(icd10Association); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ææ ç¾ç
|
| | | * |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertIcd10Association(Icd10Association icd10Association) |
| | | { |
| | | icd10Association.setCreateTime(DateUtils.getNowDate()); |
| | | return icd10AssociationMapper.insertIcd10Association(icd10Association); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ææ ç¾ç
|
| | | * |
| | | * @param icd10Association ææ ç¾ç
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateIcd10Association(Icd10Association icd10Association) |
| | | { |
| | | icd10Association.setUpdateTime(DateUtils.getNowDate()); |
| | | return icd10AssociationMapper.updateIcd10Association(icd10Association); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿æ ç¾ç
|
| | | * |
| | | * @param ids éè¦å é¤çææ ç¾ç
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIcd10AssociationByIds(Long[] ids) |
| | | { |
| | | return icd10AssociationMapper.deleteIcd10AssociationByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿æ ç¾ç
ä¿¡æ¯ |
| | | * |
| | | * @param id ææ ç¾ç
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIcd10AssociationById(Long id) |
| | | { |
| | | return icd10AssociationMapper.deleteIcd10AssociationById(id); |
| | | } |
| | | } |
| | |
| | | ivrTaskcall.setAddr(patTaskRelevance.getAddr()); |
| | | ivrTaskcall.setPatid(patTaskRelevance.getPatid()); |
| | | ivrTaskcall.setCreateTime(DateUtils.getNowDate()); |
| | | ivrTaskcall.setCreateTime(DateUtils.getNowDate()); |
| | | ivrTaskcall.setSendstate(1L); |
| | | ivrTaskcall.setType(ivrTaskVO.getHospType()); |
| | | ivrTaskSingleMapper.insertIvrTaskcall(ivrTaskcall); |
| | | integer = ivrTaskcall.getId().intValue(); |
| | |
| | | ivrTaskcall.setPatid(patTaskRelevance.getPatid()); |
| | | ivrTaskcall.setType(ivrTaskVO.getHospType()); |
| | | ivrTaskcall.setCreateTime(DateUtils.getNowDate()); |
| | | |
| | | ivrTaskcall.setTextParam(new Gson().toJson(ivrTaskVO.getTextParam())); |
| | | if (patTaskRelevance.getIsoperation() != null) { |
| | | if (patTaskRelevance.getIsoperation() == 2) |
| | | ivrTaskSingleMapper.updateIvrTaskcallByCondition(ivrTaskcall); |
| | | if (patTaskRelevance.getIsoperation() == 1) ivrTaskSingleMapper.insertIvrTaskcall(ivrTaskcall); |
| | | if (patTaskRelevance.getIsoperation() == 1) { |
| | | ivrTaskcall.setSendstate(1L); |
| | | ivrTaskSingleMapper.insertIvrTaskcall(ivrTaskcall); |
| | | } |
| | | if (patTaskRelevance.getIsoperation() == 3) |
| | | // éè¿taskidåpatidå»å é¤è¯¥æ¡æ°æ® |
| | | ivrTaskSingleMapper.deleteIvrTaskcallByCondition(ivrTaskVO.getTaskid(), patTaskRelevance.getPatid()); |
| | |
| | | if (svyLibTemplate.getIsoperation() != null && svyLibTemplate.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTemplate.setCreateTime(DateUtils.getNowDate()); |
| | | i = svyLibTemplateMapper.insertSvyLibTemplate(svyLibTemplate); |
| | | svyLibTemplateMapper.insertSvyLibTemplate(svyLibTemplate); |
| | | } else if (svyLibTemplate.getIsoperation() != null && svyLibTemplate.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTemplate.setUpdateTime(DateUtils.getNowDate()); |
| | | i = svyLibTemplateMapper.updateSvyLibTemplate(svyLibTemplate); |
| | | svyLibTemplateMapper.updateSvyLibTemplate(svyLibTemplate); |
| | | } else if (svyLibTemplate.getIsoperation() != null && svyLibTemplate.getIsoperation() == 3) { |
| | | //å é¤ |
| | | i = svyLibTemplateMapper.deleteSvyLibTemplateBySvyid(svyLibTemplate.getSvyid()); |
| | | |
| | | svyLibTemplateMapper.deleteSvyLibTemplateBySvyid(svyLibTemplate.getSvyid()); |
| | | } |
| | | i = svyLibTemplate.getSvyid().intValue(); |
| | | |
| | | //å¤çé¢ç® |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplate.getSvyLibScripts())) { |
| | | for (SvyLibTemplateScript svyLibScript : svyLibTemplate.getSvyLibScripts()) { |
| | | // SvyLibTemplateScript svyLibTemplateScript = DtoConversionUtils.sourceToTarget(svyLibScript, SvyLibTemplateScript.class); |
| | | //对é¢ç®è¿è¡å¤ç |
| | | if (svyLibScript.getIsoperation() != null && svyLibScript.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibScript.setSvyid(svyLibTemplate.getSvyid()); |
| | | svyLibScript.setId(null); |
| | | svyLibScript.setCreateTime(new Date()); |
| | | svyLibTemplateScriptMapper.insertSvyLibTemplateScript(svyLibScript); |
| | | |
| | | } else if (svyLibScript.getIsoperation() != null && svyLibScript.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibScript.setSvyid(svyLibTemplate.getSvyid()); |
| | | svyLibScript.setUpdateTime(new Date()); |
| | | svyLibTemplateScriptMapper.updateSvyLibTemplateScript(svyLibScript); |
| | | } else if (svyLibScript.getIsoperation() != null && svyLibScript.getIsoperation() == 3) { |
| | | svyLibTemplateScriptMapper.deleteSvyLibTemplateScriptByTopicid(svyLibScript.getId()); |
| | | if (svyLibScript.getIsoperation() != null) { |
| | | //é®é¢çæä½ä¸ä¸ºç©º |
| | | scriptHandle(svyLibTemplate.getSvyid(), svyLibScript, svyLibScript.getIsoperation()); |
| | | } else if (svyLibScript.getIsoperation() == null && svyLibTemplate.getIsoperation() != null) { |
| | | //模æ¿çæä½ä¸ä¸ºç©º |
| | | scriptHandle(svyLibTemplate.getSvyid(), svyLibScript, svyLibTemplate.getIsoperation()); |
| | | } |
| | | |
| | | //对é¢ç®é项è¿è¡å¤ç |
| | | if (CollectionUtils.isNotEmpty(svyLibScript.getSvyLibTemplateTargetoptions())) { |
| | | for (SvyLibTemplateTargetoption svyLibTemplateTargetoption : svyLibScript.getSvyLibTemplateTargetoptions()) { |
| | | if (svyLibTemplateTargetoption.getIsoperation() != null && svyLibTemplateTargetoption.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTemplateTargetoption.setScriptid(svyLibScript.getId()); |
| | | svyLibTemplateTargetoption.setCreateTime(new Date()); |
| | | svyLibTemplateTargetoptionMapper.insertSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } else if (svyLibTemplateTargetoption.getIsoperation() != null && svyLibTemplateTargetoption.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTemplateTargetoption.setScriptid(svyLibScript.getId()); |
| | | svyLibTemplateTargetoption.setUpdateTime(new Date()); |
| | | svyLibTemplateTargetoptionMapper.updateSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } else if (svyLibTemplateTargetoption.getIsoperation() != null && svyLibTemplateTargetoption.getIsoperation() == 3) { |
| | | //å é¤ |
| | | svyLibTemplateTargetoptionMapper.deleteSvyLibTemplateTargetoptionById(svyLibTemplateTargetoption.getId()); |
| | | if (svyLibTemplateTargetoption.getIsoperation() != null) { |
| | | //éé项çæä½ä¸ä¸ºç©º |
| | | optionHandle(svyLibTemplateTargetoption, svyLibScript.getId(), svyLibTemplateTargetoption.getIsoperation()); |
| | | } else if (svyLibTemplateTargetoption.getIsoperation() == null && svyLibScript.getIsoperation() != null) { |
| | | //é®é¢çæä½ä¸ä¸ºç©º |
| | | optionHandle(svyLibTemplateTargetoption, svyLibScript.getId(), svyLibScript.getIsoperation()); |
| | | } else if (svyLibTemplateTargetoption.getIsoperation() == null && svyLibScript.getIsoperation() == null && svyLibTemplate.getIsoperation() != null) { |
| | | //模æ¿çæä½ä¸ä¸ºç©º |
| | | optionHandle(svyLibTemplateTargetoption, svyLibScript.getId(), svyLibTemplate.getIsoperation()); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | public int deleteSvyLibTemplateBySvyid(Long svyid) { |
| | | return svyLibTemplateMapper.deleteSvyLibTemplateBySvyid(svyid); |
| | | } |
| | | |
| | | private void scriptHandle(Long svyid, SvyLibTemplateScript svyLibScript, Integer isoperation) { |
| | | if (isoperation == 1) { |
| | | //æ°å¢ |
| | | svyLibScript.setSvyid(svyid); |
| | | svyLibScript.setId(null); |
| | | svyLibScript.setCreateTime(new Date()); |
| | | svyLibTemplateScriptMapper.insertSvyLibTemplateScript(svyLibScript); |
| | | |
| | | } else if (isoperation == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibScript.setSvyid(svyid); |
| | | svyLibScript.setUpdateTime(new Date()); |
| | | svyLibTemplateScriptMapper.updateSvyLibTemplateScript(svyLibScript); |
| | | } else if (isoperation == 3) { |
| | | svyLibTemplateScriptMapper.deleteSvyLibTemplateScriptByTopicid(svyLibScript.getId()); |
| | | } |
| | | } |
| | | |
| | | private void optionHandle(SvyLibTemplateTargetoption svyLibTemplateTargetoption, Long scriptId, Integer isoperation) { |
| | | if (isoperation == 1) { |
| | | //æ°å¢ |
| | | svyLibTemplateTargetoption.setScriptid(scriptId); |
| | | svyLibTemplateTargetoption.setCreateTime(new Date()); |
| | | svyLibTemplateTargetoptionMapper.insertSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } else if (isoperation == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTemplateTargetoption.setScriptid(scriptId); |
| | | svyLibTemplateTargetoption.setUpdateTime(new Date()); |
| | | svyLibTemplateTargetoptionMapper.updateSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } else if (isoperation == 3) { |
| | | //å é¤ |
| | | svyLibTemplateTargetoptionMapper.deleteSvyLibTemplateTargetoptionById(svyLibTemplateTargetoption.getId()); |
| | | } |
| | | } |
| | | } |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.google.gson.Gson; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.domain.PatTaskRelevance; |
| | | import com.smartor.domain.SvyTask; |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | import com.smartor.domain.SvyTaskVO; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.SvyTaskSingleMapper; |
| | | import com.smartor.service.ISvyTaskService; |
| | | import com.smartor.service.ISvyTaskSingleService; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é®å·ï¼Serviceä¸å¡å±å¤ç |
| | |
| | | svyTaskSingle.setPhone(patTaskRelevance.getPhone()); |
| | | svyTaskSingle.setAddr(patTaskRelevance.getAddr()); |
| | | svyTaskSingle.setPatid(patTaskRelevance.getPatid()); |
| | | svyTaskSingle.setCreateTime(DateUtils.getNowDate()); |
| | | svyTaskSingle.setSendstate(1L); |
| | | svyTaskSingle.setCreateTime(DateUtils.getNowDate()); |
| | | svyTaskSingleMapper.insertSvyTaskSingle(svyTaskSingle); |
| | | integer = svyTaskSingle.getId().intValue(); |
| | |
| | | svyTaskSingle.setCreateTime(DateUtils.getNowDate()); |
| | | svyTaskSingle.setTextParam(new Gson().toJson(svyTaskVO.getTextParamMap())); |
| | | if (patTaskRelevance.getIsoperation() != null) { |
| | | if (patTaskRelevance.getIsoperation() == 2) |
| | | svyTaskSingleMapper.updateSvyTaskSingle(svyTaskSingle); |
| | | if (patTaskRelevance.getIsoperation() == 1) |
| | | svyTaskSingleMapper.insertSvyTaskSingle(svyTaskSingle); |
| | | if (patTaskRelevance.getIsoperation() == 3) |
| | | // éè¿taskidåpatidå»å é¤è¯¥æ¡æ°æ® |
| | | svyTaskSingleMapper.deleteSvyTaskcallByCondition(svyTaskVO.getTaskid(), patTaskRelevance.getPatid()); |
| | | optionHandle(svyTaskSingle, svyTaskVO.getTaskid(), patTaskRelevance.getIsoperation(), patTaskRelevance.getPatid()); |
| | | } else if (patTaskRelevance.getIsoperation() == null) { |
| | | optionHandle(svyTaskSingle, svyTaskVO.getTaskid(), svyTaskVO.getIsoperation(), patTaskRelevance.getPatid()); |
| | | } |
| | | integer = svyTaskSingle.getTaskid().intValue(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | return integer; |
| | | } |
| | | |
| | | @Override |
| | | public SvyTaskVO queryTaskByCondition(SvyTaskSingle svyTaskSingle) { |
| | | //å®ä¹æ£è
ä¸åä¸ä»»å¡å
³è表éå |
| | | List<PatTaskRelevance> patTaskRelevances = new ArrayList<>(); |
| | | List<SvyTaskSingle> list = selectSvyTaskSingleList(svyTaskSingle); |
| | | if (CollectionUtils.isEmpty(list) || list.size() == 0) { |
| | | return new SvyTaskVO(); |
| | | } |
| | | SvyTask svyTask = svyTaskService.selectSvyTaskByTaskid(svyTaskSingle.getTaskid()); |
| | | //å°æ¥åºæ¥çæ°æ®åå
¥ivrTasksingleVOä¸ |
| | | SvyTaskVO svyTaskVO = DtoConversionUtils.sourceToTarget(list.get(0), SvyTaskVO.class); |
| | | svyTaskVO.setShowDate(svyTask.getShowDate()); |
| | | svyTaskVO.setShowTimeMorn(svyTask.getShowTimeMorn()); |
| | | svyTaskVO.setShowTimeNoon(svyTask.getShowTimeNoon()); |
| | | svyTaskVO.setShowTimeNight(svyTask.getShowTimeNight()); |
| | | svyTaskVO.setPreachform(svyTask.getPreachform()); |
| | | String sendTimeSlot = svyTask.getSendTimeSlot(); |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | try { |
| | | //è·åå°åéæ¶é´çéå |
| | | if (com.ruoyi.common.utils.StringUtils.isNotEmpty(sendTimeSlot)) { |
| | | List<TaskSendTimeVO> taskSendTimeVOList = objectMapper.readValue(sendTimeSlot, List.class); |
| | | svyTaskVO.setSendTimeSlot(taskSendTimeVOList); |
| | | svyTaskVO.setSendType(svyTask.getSendType()); |
| | | } |
| | | //ææ¬åéåæ° |
| | | if (com.ruoyi.common.utils.StringUtils.isNotEmpty(svyTask.getTextParam())) { |
| | | Map<String, Map<String, String>> textParam = objectMapper.readValue(svyTask.getTextParam(), Map.class); |
| | | svyTaskVO.setTextParam(textParam); |
| | | } |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | for (SvyTaskSingle svyTaskSingle1 : list) { |
| | | PatTaskRelevance patTaskRelevance = new PatTaskRelevance(); |
| | | if (!svyTaskSingle1.getHospType().equals("2")) { |
| | | log.info("é访æ¥è¯¢ä¸ä¸ºåºé¢ï¼{}", svyTaskSingle1.getHospType()); |
| | | //è·åå°æ£è
ä¿¡æ¯ï¼å¹¶æ¾å
¥å°éåä¸ |
| | | patTaskRelevance.setName(svyTaskSingle1.getSendname()); |
| | | patTaskRelevance.setAge(svyTaskSingle1.getAge()); |
| | | patTaskRelevance.setSfzh(svyTaskSingle1.getSfzh()); |
| | | patTaskRelevance.setPhone(svyTaskSingle1.getPhone()); |
| | | patTaskRelevance.setAddr(svyTaskSingle1.getAddr()); |
| | | patTaskRelevance.setDiagname(svyTaskSingle1.getDiagname()); |
| | | patTaskRelevance.setPatid(svyTaskSingle1.getPatid()); |
| | | patTaskRelevances.add(patTaskRelevance); |
| | | } |
| | | if (svyTaskSingle1.getHospType().equals("2")) { |
| | | log.info("é访æ¥è¯¢ä¸ºåºé¢ï¼{}", svyTaskSingle1.getHospType()); |
| | | patTaskRelevance.setName(svyTaskSingle1.getSendname()); |
| | | patTaskRelevance.setAge(svyTaskSingle1.getAge()); |
| | | patTaskRelevance.setSfzh(svyTaskSingle1.getSfzh()); |
| | | patTaskRelevance.setPhone(svyTaskSingle1.getPhone()); |
| | | patTaskRelevance.setAddr(svyTaskSingle1.getAddr()); |
| | | patTaskRelevance.setDeptName(svyTaskSingle1.getDeptname()); |
| | | patTaskRelevance.setBedNo(svyTaskSingle1.getBedno()); |
| | | patTaskRelevance.setDiagname(svyTaskSingle1.getDiagname()); |
| | | patTaskRelevance.setPatid(svyTaskSingle1.getPatid()); |
| | | patTaskRelevances.add(patTaskRelevance); |
| | | } |
| | | } |
| | | |
| | | svyTaskVO.setPatTaskRelevances(patTaskRelevances); |
| | | return svyTaskVO; |
| | | } |
| | | |
| | | private void optionHandle(SvyTaskSingle svyTaskSingle, Long taskId, Integer isoperation, Long patid) { |
| | | if (isoperation == 1) { |
| | | svyTaskSingle.setSendstate(1L); |
| | | svyTaskSingleMapper.insertSvyTaskSingle(svyTaskSingle); |
| | | } else if (isoperation == 2) svyTaskSingleMapper.updateSvyTaskSingle(svyTaskSingle); |
| | | else if (isoperation == 3) svyTaskSingleMapper.deleteSvyTaskcallByCondition(taskId, patid); |
| | | } |
| | | } |
| | |
| | | <?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"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.Icd10AssociationMapper"> |
| | | |
| | | |
| | | <resultMap type="com.smartor.domain.Icd10Association" id="Icd10AssociationResult"> |
| | | <result property="icd10code" column="icd10code" /> |
| | | <result property="icd10name" column="icd10name" /> |
| | | <result property="svyid" column="svyid" /> |
| | | <result property="updatetime" column="updatetime" /> |
| | | <result property="id" column="id"/> |
| | | <result property="icd10id" column="icd10id"/> |
| | | <result property="icd10code" column="icd10code"/> |
| | | <result property="icd10name" column="icd10name"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <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="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="outid" column="outid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIcd10AssociationVo"> |
| | | select icd10code, icd10name, svyid, updatetime from icd10_association |
| | | select id, |
| | | icd10id, |
| | | icd10code, |
| | | icd10name, |
| | | orgid, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | type, |
| | | outid, |
| | | pid, |
| | | guid |
| | | from icd10_association |
| | | </sql> |
| | | |
| | | <select id="selectIcd10AssociationList" parameterType="com.smartor.domain.Icd10Association" resultMap="Icd10AssociationResult"> |
| | | <select id="selectIcd10AssociationList" parameterType="com.smartor.domain.Icd10Association" |
| | | resultMap="Icd10AssociationResult"> |
| | | <include refid="selectIcd10AssociationVo"/> |
| | | <where> |
| | | <if test="icd10code != null and icd10code != ''"> and icd10code = #{icd10code}</if> |
| | | <if test="icd10name != null and icd10name != ''"> and icd10name like concat('%', #{icd10name}, '%')</if> |
| | | <if test="svyid != null "> and svyid = #{svyid}</if> |
| | | <if test="updatetime != null "> and updatetime = #{updatetime}</if> |
| | | <where> |
| | | <if test="icd10id != null ">and icd10id = #{icd10id}</if> |
| | | <if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</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="outid != null ">and outid = #{outid}</if> |
| | | <if test="type != null ">and type = #{type}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIcd10AssociationByIcd10code" parameterType="String" resultMap="Icd10AssociationResult"> |
| | | |
| | | <select id="selectIcd10AssociationById" parameterType="Long" resultMap="Icd10AssociationResult"> |
| | | <include refid="selectIcd10AssociationVo"/> |
| | | where icd10code = #{icd10code} |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIcd10Association" parameterType="com.smartor.domain.Icd10Association"> |
| | | |
| | | <insert id="insertIcd10Association" parameterType="com.smartor.domain.Icd10Association" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into icd10_association |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="icd10code != null and icd10code != ''">icd10code,</if> |
| | | <if test="icd10id != null">icd10id,</if> |
| | | <if test="icd10code != null">icd10code,</if> |
| | | <if test="icd10name != null">icd10name,</if> |
| | | <if test="svyid != null">svyid,</if> |
| | | <if test="updatetime != null">updatetime,</if> |
| | | </trim> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="delFlag != null and delFlag != ''">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="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="outid != null">outid,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="icd10code != null and icd10code != ''">#{icd10code},</if> |
| | | <if test="icd10id != null">#{icd10id},</if> |
| | | <if test="icd10code != null">#{icd10code},</if> |
| | | <if test="icd10name != null">#{icd10name},</if> |
| | | <if test="svyid != null">#{svyid},</if> |
| | | <if test="updatetime != null">#{updatetime},</if> |
| | | </trim> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="outid != null">#{outid},</if> |
| | | <if test="type != null">#{type},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIcd10Association" parameterType="Icd10Association"> |
| | | <update id="updateIcd10Association" parameterType="com.smartor.domain.Icd10Association"> |
| | | update icd10_association |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="icd10name != null">icd10name = #{icd10name},</if> |
| | | <if test="svyid != null">svyid = #{svyid},</if> |
| | | <if test="updatetime != null">updatetime = #{updatetime},</if> |
| | | <if test="icd10id != null">icd10id = #{icd10id},</if> |
| | | <if test="icd10code != null">icd10code = #{icd10code},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="delFlag != null and delFlag != ''">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="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="outid != null">outid = #{outid},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where icd10code = #{icd10code} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIcd10AssociationByIcd10code" parameterType="String"> |
| | | delete from icd10_association where icd10code = #{icd10code} |
| | | <delete id="deleteIcd10AssociationById" parameterType="Long"> |
| | | delete |
| | | from icd10_association |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteIcd10AssociationByIcd10codes" parameterType="String"> |
| | | delete from icd10_association where icd10code in |
| | | <foreach item="icd10code" collection="array" open="(" separator="," close=")"> |
| | | #{icd10code} |
| | | <delete id="deleteIcd10AssociationByIds" parameterType="String"> |
| | | delete from icd10_association where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | |
| | | <select id="selectSvyLibTemplateList" parameterType="com.smartor.domain.SvyLibTemplateReq" |
| | | resultMap="SvyLibTemplateResult"> |
| | | select a.svyid, a.categoryid, a.svycode, a.svyname, a.description, a.introduce,a.submitprompt, a.templateid, |
| | | a.version,a.centerlibrarycode, a.centerlibraryid, a.islocal, a.isenable, a.orgid, a.del_flag, a.create_by, |
| | | a.create_time, a.update_by, a.update_time, a.isupload, |
| | | a.upload_time,a.dept_names,a.value_type,a.label_info,a.reply, |
| | | a.campus,a.suitway,a.script_score,a.score_type,a.otherdata |
| | | ,c.icdname from svy_lib_template |
| | | a,icd10_association b,icd10 c |
| | | SELECT |
| | | a.svyid, |
| | | a.categoryid, |
| | | a.svycode, |
| | | a.svyname, |
| | | a.description, |
| | | a.introduce, |
| | | a.submitprompt, |
| | | a.templateid, |
| | | a.version, |
| | | a.centerlibrarycode, |
| | | a.centerlibraryid, |
| | | a.islocal, |
| | | a.isenable, |
| | | a.orgid, |
| | | a.del_flag, |
| | | a.create_by, |
| | | a.create_time, |
| | | a.update_by, |
| | | a.update_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | a.dept_names, |
| | | a.value_type, |
| | | a.label_info, |
| | | a.reply, |
| | | a.campus, |
| | | a.suitway, |
| | | a.script_score, |
| | | a.score_type, |
| | | a.otherdata, |
| | | b.icd10code, |
| | | b.icd10name |
| | | FROM |
| | | svy_lib_template a |
| | | JOIN (select outid,GROUP_CONCAT(icd10code) as icd10code,GROUP_CONCAT(icd10name) as icd10name from |
| | | icd10_association group by outid) b ON a.del_flag = 0 |
| | | AND a.svyid = b.outid |
| | | <where> |
| | | a.del_flag=0 and |
| | | a.svyid=b.SVYID and b.ICD10CODE=c.icdcode |
| | | a.del_flag=0 |
| | | <if test="categoryid != null ">and a.categoryid = #{categoryid}</if> |
| | | <if test="svyid != null ">and a.svyid = #{svyid}</if> |
| | | <if test="svyname != null and svyname != ''">and a.svyname like concat('%', #{svyname}, '%')</if> |
| | |
| | | <result property="targetregex2" column="targetregex2"/> |
| | | <result property="dynamiccruxsJson" column="dynamiccruxs"/> |
| | | <result property="nodynamiccruxsJson" column="nodynamiccruxs"/> |
| | | <result property="optiondesc" column="optiondesc"/> |
| | | <result property="optioncontent" column="optioncontent"/> |
| | | <result property="nextQuestion" column="next_question"/> |
| | | <result property="language" column="language"/> |
| | | <result property="version" column="version"/> |
| | |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | <result property="score" column="score"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateTargetoptionVo"> |
| | | select id, |
| | | groupid, |
| | | score, |
| | | categoryName, |
| | | scriptid, |
| | | templateID, |
| | |
| | | targetregex2, |
| | | dynamiccruxs, |
| | | nodynamiccruxs, |
| | | optiondesc, |
| | | optioncontent, |
| | | next_question, language, version, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, picture_path |
| | | from svy_lib_template_targetoption |
| | | </sql> |
| | |
| | | <if test="nodynamiccruxsJson != null and nodynamiccruxsJson != ''">and nodynamiccruxs = |
| | | #{nodynamiccruxsJson} |
| | | </if> |
| | | <if test="optiondesc != null and optiondesc != ''">and optiondesc = #{optiondesc}</if> |
| | | <if test="optioncontent != null and optioncontent != ''">and optioncontent = #{optioncontent}</if> |
| | | <if test="nextQuestion != null ">and next_question = #{nextQuestion}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="version != null and version != ''">and version = #{version}</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="score != null and score != ''">and score = #{score}</if> |
| | | <if test="picturePath != null and picturePath != ''">and picture_path = #{picturePath}</if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="targetregex2 != null">targetregex2,</if> |
| | | <if test="dynamiccruxs != null">dynamiccruxs,</if> |
| | | <if test="nodynamiccruxs != null">nodynamiccruxs,</if> |
| | | <if test="optiondesc != null">optiondesc,</if> |
| | | <if test="optioncontent != null">optioncontent,</if> |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="version != null">version,</if> |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="score != null">score,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="groupid != null">#{groupid},</if> |
| | |
| | | <if test="targetregex2 != null">#{targetregex2},</if> |
| | | <if test="dynamiccruxs != null">#{dynamiccruxsJson},</if> |
| | | <if test="nodynamiccruxs != null">#{nodynamiccruxsJson},</if> |
| | | <if test="optiondesc != null">#{optiondesc},</if> |
| | | <if test="optioncontent != null">#{optioncontent},</if> |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="version != null">#{version},</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="score != null">#{score},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="targetregex2 != null">targetregex2 = #{targetregex2},</if> |
| | | <if test="dynamiccruxs != null">dynamiccruxs = #{dynamiccruxsJson},</if> |
| | | <if test="nodynamiccruxs != null">nodynamiccruxs = #{nodynamiccruxsJson},</if> |
| | | <if test="optiondesc != null">optiondesc = #{optiondesc},</if> |
| | | <if test="optioncontent != null">optioncontent = #{optioncontent},</if> |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <resultMap type="com.smartor.domain.SvyTask" id="SvyTaskResult"> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="svrtaskid" column="svrtaskid"/> |
| | | <result property="taskname" column="taskname"/> |
| | | <result property="taskName" column="task_name"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="templatename" column="templatename"/> |
| | | <result property="labelinfo" column="labelinfo"/> |
| | |
| | | <result property="sendTimeSlot" column="send_time_slot"/> |
| | | <result property="libtemplateid" column="libtemplateid"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="taskDesc" column="task_desc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskVo"> |
| | |
| | | libtemplateid, |
| | | libtemplatename, |
| | | show_date, |
| | | task_desc, |
| | | show_time_morn, |
| | | show_time_noon, |
| | | show_time_night, |
| | | stop_state, |
| | | svrtaskid, |
| | | text_param, |
| | | taskname, |
| | | task_name, |
| | | templateid, |
| | | templatename, |
| | | labelinfo, |
| | |
| | | <include refid="selectSvyTaskVo"/> |
| | | <where> |
| | | <if test="svrtaskid != null ">and svrtaskid = #{svrtaskid}</if> |
| | | <if test="taskname != null and taskname != ''">and taskname like concat('%', #{taskname}, '%')</if> |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | '%') |
| | |
| | | insert into svy_task |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="svrtaskid != null">svrtaskid,</if> |
| | | <if test="taskname != null">taskname,</if> |
| | | <if test="taskName != null">task_name,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="templatename != null">templatename,</if> |
| | | <if test="labelinfo != null">labelinfo,</if> |
| | |
| | | <if test="showTimeMorn != null and showTimeMorn != ''">show_time_morn,</if> |
| | | <if test="libtemplateid != null ">libtemplateid,</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename,</if> |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="svrtaskid != null">#{svrtaskid},</if> |
| | | <if test="taskname != null">#{taskname},</if> |
| | | <if test="taskName != null">#{taskName},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="templatename != null">#{templatename},</if> |
| | | <if test="labelinfo != null">#{labelinfo},</if> |
| | |
| | | <if test="showTimeMorn != null and showTimeMorn != ''">#{showTimeMorn},</if> |
| | | <if test="libtemplateid != null ">#{libtemplateid},</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">#{libtemplatename},</if> |
| | | <if test="taskDesc != null and taskDesc != ''">#{taskDesc},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | update svy_task |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="svrtaskid != null">svrtaskid = #{svrtaskid},</if> |
| | | <if test="taskname != null">taskname = #{taskname},</if> |
| | | <if test="taskName != null">task_name = #{taskName},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="templatename != null">templatename = #{templatename},</if> |
| | | <if test="labelinfo != null">labelinfo = #{labelinfo},</if> |
| | |
| | | <if test="showTimeMorn != null and showTimeMorn != ''">show_time_morn=#{showTimeMorn},</if> |
| | | <if test="libtemplateid != null ">libtemplateid = #{libtemplateid},</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename = #{libtemplatename},</if> |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc=#{taskDesc},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |
| | |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">and medical_record_no = #{medicalRecordNo} |
| | | </if> |
| | | <if test="preachcontent != null and preachcontent != ''">and preachcontent = #{preachcontent}</if> |
| | | <if test="sendType != null and sendType != ''">and send_type = #{sendType}</if> |
| | | <if test="sendType != null ">and send_type = #{sendType}</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and send_time_slot = #{sendTimeSlot}</if> |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="taskDesc != null and taskDesc != ''">and task_desc = #{taskDesc}</if> |
| | |
| | | <if test="bedno != null">bedno = #{bedno},</if> |
| | | <if test="patid != null">patid = #{patid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | where patid = #{patid} and taskid = #{taskid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskSingleById" parameterType="Long"> |
| | |
| | | <result property="targetvalue" column="targetvalue" /> |
| | | <result property="targetregex2" column="targetregex2" /> |
| | | <result property="targetregex" column="targetregex" /> |
| | | <result property="optiondesc" column="optiondesc" /> |
| | | <result property="optioncontent" column="optioncontent" /> |
| | | <result property="language" column="language" /> |
| | | <result property="version" column="version" /> |
| | | <result property="groupid" column="groupid" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateTargetoptionVo"> |
| | | select id, taskid, templateID, targetid, targetname, targettype, categoryName, targetvalue, targetregex2, targetregex, optiondesc, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, scriptid, nodynamiccruxs, dynamiccruxs, next_question, picture_path from svy_task_template_targetoption |
| | | select id, taskid, templateID, targetid, targetname, targettype, categoryName, targetvalue, targetregex2, targetregex, optioncontent, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, scriptid, nodynamiccruxs, dynamiccruxs, next_question, picture_path from svy_task_template_targetoption |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskTemplateTargetoptionList" parameterType="SvyTaskTemplateTargetoption" resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <select id="selectSvyTaskTemplateTargetoptionList" parameterType="com.smartor.domain.SvyTaskTemplateTargetoption" resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <include refid="selectSvyTaskTemplateTargetoptionVo"/> |
| | | <where> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | |
| | | <if test="targetvalue != null and targetvalue != ''"> and targetvalue = #{targetvalue}</if> |
| | | <if test="targetregex2 != null and targetregex2 != ''"> and targetregex2 = #{targetregex2}</if> |
| | | <if test="targetregex != null and targetregex != ''"> and targetregex = #{targetregex}</if> |
| | | <if test="optiondesc != null and optiondesc != ''"> and optiondesc = #{optiondesc}</if> |
| | | <if test="optioncontent != null and optioncontent != ''"> and optioncontent = #{optioncontent}</if> |
| | | <if test="language != null and language != ''"> and language = #{language}</if> |
| | | <if test="version != null and version != ''"> and version = #{version}</if> |
| | | <if test="groupid != null and groupid != ''"> and groupid = #{groupid}</if> |
| | |
| | | <if test="targetvalue != null">targetvalue,</if> |
| | | <if test="targetregex2 != null">targetregex2,</if> |
| | | <if test="targetregex != null">targetregex,</if> |
| | | <if test="optiondesc != null">optiondesc,</if> |
| | | <if test="optioncontent != null">optioncontent,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="groupid != null">groupid,</if> |
| | |
| | | <if test="targetvalue != null">#{targetvalue},</if> |
| | | <if test="targetregex2 != null">#{targetregex2},</if> |
| | | <if test="targetregex != null">#{targetregex},</if> |
| | | <if test="optiondesc != null">#{optiondesc},</if> |
| | | <if test="optioncontent != null">#{optioncontent},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="groupid != null">#{groupid},</if> |
| | |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="targetregex2 != null">targetregex2 = #{targetregex2},</if> |
| | | <if test="targetregex != null">targetregex = #{targetregex},</if> |
| | | <if test="optiondesc != null">optiondesc = #{optiondesc},</if> |
| | | <if test="optioncontent != null">optioncontent = #{optioncontent},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="groupid != null">groupid = #{groupid},</if> |