| | |
| | | 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.domain.entity.SysUser; |
| | | 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.poi.ExcelUtil; |
| | | import com.smartor.domain.IvrTaskVO; |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | import com.smartor.domain.SvyTaskVO; |
| | | import com.smartor.service.ISvyTaskSingleService; |
| | | 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.*; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svysingle") |
| | | public class SvyTaskSingleController extends BaseController |
| | | { |
| | | public class SvyTaskSingleController extends BaseController { |
| | | @Autowired |
| | | private ISvyTaskSingleService svyTaskSingleService; |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskSingle svyTaskSingle) |
| | | { |
| | | public TableDataInfo list(SvyTaskSingle svyTaskSingle) { |
| | | startPage(); |
| | | List<SvyTaskSingle> list = svyTaskSingleService.selectSvyTaskSingleList(svyTaskSingle); |
| | | return getDataTable(list); |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:single:export')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskSingle svyTaskSingle) |
| | | { |
| | | public void export(HttpServletResponse response, SvyTaskSingle svyTaskSingle) { |
| | | List<SvyTaskSingle> list = svyTaskSingleService.selectSvyTaskSingleList(svyTaskSingle); |
| | | ExcelUtil<SvyTaskSingle> util = new ExcelUtil<SvyTaskSingle>(SvyTaskSingle.class); |
| | | util.exportExcel(response, list, "åä¸ä»»å¡ï¼é®å·ï¼æ°æ®"); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyTaskSingleService.selectSvyTaskSingleById(id)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:single:add')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskSingle svyTaskSingle) |
| | | { |
| | | public AjaxResult add(@RequestBody SvyTaskSingle svyTaskSingle) { |
| | | return toAjax(svyTaskSingleService.insertSvyTaskSingle(svyTaskSingle)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:single:edit')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskSingle svyTaskSingle) |
| | | { |
| | | public AjaxResult edit(@RequestBody SvyTaskSingle svyTaskSingle) { |
| | | return toAjax(svyTaskSingleService.updateSvyTaskSingle(svyTaskSingle)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:remove')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(svyTaskSingleService.deleteSvyTaskSingleByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹å é¤é®å·ä»»å¡ |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹å é¤é®å·ä»»å¡") |
| | | @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)); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.SendTaskVO; |
| | | import com.smartor.domain.SvyTaskTemplate; |
| | | import com.smartor.domain.SvyTaskTemplateVO; |
| | | import com.smartor.service.ISvyTaskTemplateService; |
| | | 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.*; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytemplate") |
| | | public class SvyTaskTemplateController extends BaseController |
| | | { |
| | | public class SvyTaskTemplateController extends BaseController { |
| | | @Autowired |
| | | private ISvyTaskTemplateService svyTaskTemplateService; |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | public TableDataInfo list(SvyTaskTemplate svyTaskTemplate) { |
| | | startPage(); |
| | | List<SvyTaskTemplate> list = svyTaskTemplateService.selectSvyTaskTemplateList(svyTaskTemplate); |
| | | return getDataTable(list); |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | public void export(HttpServletResponse response, SvyTaskTemplate svyTaskTemplate) { |
| | | List<SvyTaskTemplate> list = svyTaskTemplateService.selectSvyTaskTemplateList(svyTaskTemplate); |
| | | ExcelUtil<SvyTaskTemplate> util = new ExcelUtil<SvyTaskTemplate>(SvyTaskTemplate.class); |
| | | util.exportExcel(response, list, "ä»»å¡é®å·æ¨¡æ¿æ°æ®"); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | @GetMapping(value = "/{svyid}") |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { |
| | | return success(svyTaskTemplateService.selectSvyTaskTemplateBySvyid(svyid)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | public AjaxResult add(@RequestBody SvyTaskTemplate svyTaskTemplate) { |
| | | return toAjax(svyTaskTemplateService.insertSvyTaskTemplate(svyTaskTemplate)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplate svyTaskTemplate) { |
| | | return toAjax(svyTaskTemplateService.updateSvyTaskTemplate(svyTaskTemplate)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) |
| | | { |
| | | @DeleteMapping("/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) { |
| | | return toAjax(svyTaskTemplateService.deleteSvyTaskTemplateBySvyids(svyids)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é访任å¡é®å·æ¨¡æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ°å¢æä¿®æ¹é访任å¡é®å·æ¨¡æ¿åº") |
| | | @PostMapping("/saveOrUpdateTaskTemp") |
| | | public AjaxResult saveOrUpdateTaskTemp(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) { |
| | | return AjaxResult.success(svyTaskTemplateService.saveOrUpdateTemplate(svyTaskTemplateVO)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶ |
| | | * |
| | | * @param svyTaskTemplateVO |
| | | * @return |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) { |
| | | return AjaxResult.success(svyTaskTemplateService.selectInfoByCondition(svyTaskTemplateVO)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.SvyTaskTemplateScript; |
| | | import com.smartor.service.ISvyTaskTemplateScriptService; |
| | | 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-06-19 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyTaskTempScript") |
| | | public class SvyTaskTemplateScriptController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyTaskTemplateScriptService svyTaskTemplateScriptService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplateScript svyTaskTemplateScript) |
| | | { |
| | | startPage(); |
| | | List<SvyTaskTemplateScript> list = svyTaskTemplateScriptService.selectSvyTaskTemplateScriptList(svyTaskTemplateScript); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskTemplateScript svyTaskTemplateScript) |
| | | { |
| | | List<SvyTaskTemplateScript> list = svyTaskTemplateScriptService.selectSvyTaskTemplateScriptList(svyTaskTemplateScript); |
| | | ExcelUtil<SvyTaskTemplateScript> util = new ExcelUtil<SvyTaskTemplateScript>(SvyTaskTemplateScript.class); |
| | | util.exportExcel(response, list, "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) |
| | | { |
| | | return success(svyTaskTemplateScriptService.selectSvyTaskTemplateScriptByID(ID)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskTemplateScript svyTaskTemplateScript) |
| | | { |
| | | return toAjax(svyTaskTemplateScriptService.insertSvyTaskTemplateScript(svyTaskTemplateScript)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplateScript svyTaskTemplateScript) |
| | | { |
| | | return toAjax(svyTaskTemplateScriptService.updateSvyTaskTemplateScript(svyTaskTemplateScript)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) |
| | | { |
| | | return toAjax(svyTaskTemplateScriptService.deleteSvyTaskTemplateScriptByIDs(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.SvyTaskTemplateTargetoption; |
| | | import com.smartor.service.ISvyTaskTemplateTargetoptionService; |
| | | 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-06-19 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyTaskTargetOption") |
| | | public class SvyTaskTemplateTargetoptionController extends BaseController { |
| | | @Autowired |
| | | private ISvyTaskTemplateTargetoptionService svyTaskTemplateTargetoptionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | | startPage(); |
| | | List<SvyTaskTemplateTargetoption> list = svyTaskTemplateTargetoptionService.selectSvyTaskTemplateTargetoptionList(svyTaskTemplateTargetoption); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | | List<SvyTaskTemplateTargetoption> list = svyTaskTemplateTargetoptionService.selectSvyTaskTemplateTargetoptionList(svyTaskTemplateTargetoption); |
| | | ExcelUtil<SvyTaskTemplateTargetoption> util = new ExcelUtil<SvyTaskTemplateTargetoption>(SvyTaskTemplateTargetoption.class); |
| | | util.exportExcel(response, list, "é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åºæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·ä»»å¡æ¨¡æ¿ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyTaskTemplateTargetoptionService.selectSvyTaskTemplateTargetoptionById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | | return toAjax(svyTaskTemplateTargetoptionService.insertSvyTaskTemplateTargetoption(svyTaskTemplateTargetoption)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | | return toAjax(svyTaskTemplateTargetoptionService.updateSvyTaskTemplateTargetoption(svyTaskTemplateTargetoption)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(svyTaskTemplateTargetoptionService.deleteSvyTaskTemplateTargetoptionByIds(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.SvyTasksingledetail; |
| | | import com.smartor.service.ISvyTasksingledetailService; |
| | | 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-06-19 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytasksingledetail") |
| | | public class SvyTasksingledetailController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyTasksingledetailService svyTasksingledetailService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ç»æè®°å½è¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tasksingledetail:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTasksingledetail svyTasksingledetail) |
| | | { |
| | | startPage(); |
| | | List<SvyTasksingledetail> list = svyTasksingledetailService.selectSvyTasksingledetailList(svyTasksingledetail); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·ç»æè®°å½è¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tasksingledetail:export')") |
| | | @Log(title = "é®å·ç»æè®°å½è¯¦æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTasksingledetail svyTasksingledetail) |
| | | { |
| | | List<SvyTasksingledetail> list = svyTasksingledetailService.selectSvyTasksingledetailList(svyTasksingledetail); |
| | | ExcelUtil<SvyTasksingledetail> util = new ExcelUtil<SvyTasksingledetail>(SvyTasksingledetail.class); |
| | | util.exportExcel(response, list, "é®å·ç»æè®°å½è¯¦æ
æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·ç»æè®°å½è¯¦æ
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tasksingledetail:query')") |
| | | @GetMapping(value = "/{calldetailid}") |
| | | public AjaxResult getInfo(@PathVariable("calldetailid") String calldetailid) |
| | | { |
| | | return success(svyTasksingledetailService.selectSvyTasksingledetailByCalldetailid(calldetailid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·ç»æè®°å½è¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tasksingledetail:add')") |
| | | @Log(title = "é®å·ç»æè®°å½è¯¦æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTasksingledetail svyTasksingledetail) |
| | | { |
| | | return toAjax(svyTasksingledetailService.insertSvyTasksingledetail(svyTasksingledetail)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ç»æè®°å½è¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tasksingledetail:edit')") |
| | | @Log(title = "é®å·ç»æè®°å½è¯¦æ
", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTasksingledetail svyTasksingledetail) |
| | | { |
| | | return toAjax(svyTasksingledetailService.updateSvyTasksingledetail(svyTasksingledetail)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·ç»æè®°å½è¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tasksingledetail:remove')") |
| | | @Log(title = "é®å·ç»æè®°å½è¯¦æ
", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{calldetailids}") |
| | | public AjaxResult remove(@PathVariable String[] calldetailids) |
| | | { |
| | | return toAjax(svyTasksingledetailService.deleteSvyTasksingledetailByCalldetailids(calldetailids)); |
| | | } |
| | | } |
| | |
| | | private String orgid; |
| | | |
| | | /** |
| | | * æ ç¾å |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾å") |
| | | @Excel(name = " æ ç¾å ") |
| | | private String tagname; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | |
| | | private Long tagid; |
| | | |
| | | /** |
| | | * æ ç¾å |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾å") |
| | | @Excel(name = " æ ç¾å ") |
| | | private String tagname; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | |
| | | private Long warndown; |
| | | |
| | | /** |
| | | * 顺åºåºå· |
| | | */ |
| | | @ApiModelProperty(value = "顺åºåºå·") |
| | | @Excel(name = "顺åºåºå·") |
| | | private Long orderno; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | |
| | | /** |
| | | * svy_scripté¢ç®è¡¨ç主é®ID |
| | | */ |
| | | @ApiModelProperty("é¢ç®è¡¨ç主é®ID") |
| | | private Long svyscriptId; |
| | | |
| | | /** |
| | | * é¢ç®å
容 |
| | | */ |
| | |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | private Long optionid; |
| | | private Long id; |
| | | |
| | | /** |
| | | * é¢ç®ID |
| | |
| | | * æ¯å¦å¼å¸¸é¡¹ç® |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸é¡¹ç®") |
| | | private Long isexceptionitem; |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | | * æ¯å¦è·è¿ |
| | |
| | | * åæ° |
| | | */ |
| | | @ApiModelProperty(value = "åæ°") |
| | | private Long score; |
| | | private String score; |
| | | |
| | | /** |
| | | * æç¤º |
| | |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String param; |
| | | |
| | | /** |
| | | * ææ¬åéåæ° |
| | | */ |
| | | @Excel(name = "ææ¬åéåæ°") |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String textParam; |
| | | |
| | | /** |
| | | * æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1 |
| | | */ |
| | | @Excel(name = "æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1") |
| | | @ApiModelProperty(value = "æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1") |
| | | private Long stopState = 0L; |
| | | |
| | | @ApiModelProperty(value = "ä¸åæ¶é´") |
| | | private String showTimeMorn; |
| | | |
| | | @ApiModelProperty(value = "ä¸åæ¶é´") |
| | | private String showTimeNoon; |
| | | |
| | | @ApiModelProperty(value = "æåæ¶é´") |
| | | private String showTimeNight; |
| | | |
| | | @ApiModelProperty(value = "å±ç¤ºæ¥æ") |
| | | private String showDate; |
| | | |
| | | /** |
| | | * ç±»ååç§° |
| | | */ |
| | | @Excel(name = "åéæ¶é´æ®µ") |
| | | @ApiModelProperty(value = "åéæ¶é´æ®µ") |
| | | private String sendTimeSlot; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çåç§° |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çåç§°") |
| | | private String libtemplatename; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çID |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çID") |
| | | private String libtemplateid; |
| | | |
| | | } |
| | |
| | | private String phone; |
| | | |
| | | /** |
| | | * æ£è
ID |
| | | */ |
| | | @Excel(name = " æ£è
ID ") |
| | | @ApiModelProperty(value = "æ£è
ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * æ§å« |
| | | */ |
| | | @Excel(name = " æ§å«") |
| | |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long svyid; |
| | | private Long id; |
| | | |
| | | /** |
| | | * 模æ¿é®å·ID |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå¯¹è±¡ svy_task_template_script |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Data |
| | | public class SvyTaskTemplateScript extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主é®ID |
| | | */ |
| | | private Long ID; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 模æ¿è¯æ¯ç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿è¯æ¯ç¼å·") |
| | | private Long templateQuestionNum; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | |
| | | /** |
| | | * è¯æ¯ID |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯ID") |
| | | private Long scriptID; |
| | | |
| | | /** |
| | | * æ é¢ |
| | | */ |
| | | @ApiModelProperty(value = "æ é¢") |
| | | private String questiontitle; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * é®é¢ç¹ |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢ç¹") |
| | | private String questionPoint; |
| | | |
| | | /** |
| | | * è¯æ¯å
容 |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯å
容") |
| | | private String questionText; |
| | | |
| | | /** |
| | | * è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯è¯é³") |
| | | private String questionVoice; |
| | | |
| | | /** |
| | | * æ å¹é
è¯æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "æ å¹é
è¯æ¯") |
| | | private String noMatchText; |
| | | |
| | | /** |
| | | * æ å¹é
è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "æ å¹é
è¯æ¯è¯é³") |
| | | private String noMatchVoice; |
| | | |
| | | /** |
| | | * éé»è¯æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "éé»è¯æ¯") |
| | | private String slienceText; |
| | | |
| | | /** |
| | | * éé»è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "éé»è¯æ¯è¯é³") |
| | | private String slienceVoice; |
| | | |
| | | /** |
| | | * éç¨åºå¹é
åè¯æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "éç¨åºå¹é
åè¯æ¯") |
| | | private String submoduleText; |
| | | |
| | | /** |
| | | * éç¨åºå¹é
åè¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "éç¨åºå¹é
åè¯æ¯è¯é³") |
| | | private String submoduleVoice; |
| | | |
| | | /** |
| | | * å¬ä¸æ¸
è¯æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯") |
| | | private String noClearlyText; |
| | | |
| | | /** |
| | | * å¬ä¸æ¸
è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯è¯é³") |
| | | private String noClearlyVoice; |
| | | |
| | | /** |
| | | * æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ï¼ç»äººå·¥ç¨çï¼AIä¸ç¨éµå®ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ") |
| | | private String isMust; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * åªè½ææ¾WAVç±»å |
| | | */ |
| | | @ApiModelProperty(value = "åªè½ææ¾WAVç±»å") |
| | | private Long playWavOnly; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼ç±»å 1= é项,2= ææ¬,3= æ°å¼") |
| | | private Long valueType; |
| | | |
| | | /** |
| | | * ææ é项* |
| | | */ |
| | | @ApiModelProperty(value = "ææ é项*") |
| | | private String targetOptions; |
| | | |
| | | /** |
| | | * åºç¡ææ ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡ææ ç±»å1=é项,2=ææ¬,3=æ°å¼") |
| | | private String targettype; |
| | | |
| | | /** |
| | | * åºç¡ææ ID(ææ¶å½åºå·id) |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡ææ ID(ææ¶å½åºå·id)") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * åºç¡ææ å¼ |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡ææ å¼") |
| | | private String targetvalue; |
| | | |
| | | /** |
| | | * ä¸ä¸è¯æ¯ç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¸è¯æ¯ç¼å·") |
| | | private Long nextQuestion; |
| | | |
| | | /** |
| | | * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼* |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢ç»æ") |
| | | private String questionResult; |
| | | |
| | | /** |
| | | * åéåæ°éå |
| | | */ |
| | | @ApiModelProperty(value = "åéåæ°éå") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * é®é¢å¾çè·¯å¾ |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢å¾çè·¯å¾") |
| | | private String picturePath; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå¯¹è±¡ svy_task_template_script |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Data |
| | | public class SvyTaskTemplateScriptVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主é®ID |
| | | */ |
| | | private Long ID; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 模æ¿è¯æ¯ç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿è¯æ¯ç¼å·") |
| | | private Long templateQuestionNum; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | |
| | | /** |
| | | * è¯æ¯ID |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯ID") |
| | | private Long scriptID; |
| | | |
| | | /** |
| | | * æ é¢ |
| | | */ |
| | | @ApiModelProperty(value = "æ é¢") |
| | | private String questiontitle; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * é®é¢ç¹ |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢ç¹") |
| | | private String questionPoint; |
| | | |
| | | /** |
| | | * è¯æ¯å
容 |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯å
容") |
| | | private String questionText; |
| | | |
| | | /** |
| | | * è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯è¯é³") |
| | | private String questionVoice; |
| | | |
| | | /** |
| | | * æ å¹é
è¯æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "æ å¹é
è¯æ¯") |
| | | private String noMatchText; |
| | | |
| | | /** |
| | | * æ å¹é
è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "æ å¹é
è¯æ¯è¯é³") |
| | | private String noMatchVoice; |
| | | |
| | | /** |
| | | * éé»è¯æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "éé»è¯æ¯") |
| | | private String slienceText; |
| | | |
| | | /** |
| | | * éé»è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "éé»è¯æ¯è¯é³") |
| | | private String slienceVoice; |
| | | |
| | | /** |
| | | * éç¨åºå¹é
åè¯æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "éç¨åºå¹é
åè¯æ¯") |
| | | private String submoduleText; |
| | | |
| | | /** |
| | | * éç¨åºå¹é
åè¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "éç¨åºå¹é
åè¯æ¯è¯é³") |
| | | private String submoduleVoice; |
| | | |
| | | /** |
| | | * å¬ä¸æ¸
è¯æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯") |
| | | private String noClearlyText; |
| | | |
| | | /** |
| | | * å¬ä¸æ¸
è¯æ¯è¯é³ |
| | | */ |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯è¯é³") |
| | | private String noClearlyVoice; |
| | | |
| | | /** |
| | | * æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ï¼ç»äººå·¥ç¨çï¼AIä¸ç¨éµå®ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ") |
| | | private String isMust; |
| | | |
| | | /** |
| | | * åªè½ææ¾WAVç±»å |
| | | */ |
| | | @ApiModelProperty(value = "åªè½ææ¾WAVç±»å") |
| | | private Long playWavOnly; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼ç±»å1=é项,2=ææ¬,3=æ°å¼") |
| | | private Long valueType; |
| | | |
| | | /** |
| | | * ææ é项* |
| | | */ |
| | | @ApiModelProperty(value = "ææ é项*") |
| | | private String targetOptions; |
| | | |
| | | /** |
| | | * åºç¡ææ ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡ææ ç±»å 1=é项,2=ææ¬,3=æ°å¼") |
| | | private String targettype; |
| | | |
| | | /** |
| | | * åºç¡ææ ID(ææ¶å½åºå·id) |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡ææ ID(ææ¶å½åºå·id)") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * åºç¡ææ å¼ |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡ææ å¼") |
| | | private String targetvalue; |
| | | |
| | | /** |
| | | * ä¸ä¸è¯æ¯ç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¸è¯æ¯ç¼å·") |
| | | private Long nextQuestion; |
| | | |
| | | /** |
| | | * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼* |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢ç»æ ,ç»=âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨ç") |
| | | private String questionResult; |
| | | |
| | | /** |
| | | * åéåæ°éå |
| | | */ |
| | | @ApiModelProperty(value = "åéåæ°éå") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * é®é¢å¾çè·¯å¾ |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢å¾çè·¯å¾") |
| | | private String picturePath; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * è¯æ¯é项 |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯é项") |
| | | private List<SvyTaskTemplateTargetoption> svyTaskTemplateTargetoptions = new ArrayList<>(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡æ¿ææ é项åºå¯¹è±¡ svy_task_template_targetoption |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Data |
| | | public class SvyTaskTemplateTargetoption extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | |
| | | /** |
| | | * ææ ID |
| | | */ |
| | | @ApiModelProperty(value = "ææ ID") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * ææ åç§° |
| | | */ |
| | | @ApiModelProperty(value = "ææ åç§°") |
| | | private String targetname; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ ç±»å") |
| | | private String targettype; |
| | | |
| | | /** |
| | | * ç±»å«åç§° |
| | | */ |
| | | @ApiModelProperty(value = "ç±»å«åç§°") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ å¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ å¼") |
| | | private String targetvalue; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ æ£å2 |
| | | */ |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ æ£å2") |
| | | private String targetregex2; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ æ£å |
| | | */ |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ æ£å") |
| | | private String targetregex; |
| | | |
| | | /** |
| | | * é项æè¿° |
| | | */ |
| | | @ApiModelProperty(value = "é项æè¿°") |
| | | private String optiondesc; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private String version; |
| | | |
| | | /** |
| | | * åç»ID |
| | | */ |
| | | @ApiModelProperty(value = "åç»ID") |
| | | private String groupid; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸é |
| | | */ |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | private Long warnup; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸é |
| | | */ |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | private Long warndown; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * é®é¢id |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢id") |
| | | private Long scriptid; |
| | | |
| | | /** |
| | | * æ£åå
³é®å(å«) |
| | | */ |
| | | @ApiModelProperty(value = "æ£åå
³é®å(å«)éå") |
| | | private List<String> nodynamiccruxs; |
| | | |
| | | /** |
| | | * æ£åå
³é®å(ä¸å«) |
| | | */ |
| | | @ApiModelProperty(value = "æ£åå
³é®å(ä¸å«)éå") |
| | | private List<String> dynamiccruxs; |
| | | /** |
| | | * æ£åå
³é®å(å«) |
| | | */ |
| | | @ApiModelProperty(value = "æ£åå
³é®å(å«)") |
| | | private String nodynamiccruxsJson; |
| | | |
| | | /** |
| | | * æ£åå
³é®å(ä¸å«) |
| | | */ |
| | | @ApiModelProperty(value = "æ£åå
³é®å(ä¸å«)") |
| | | private String dynamiccruxsJson; |
| | | |
| | | /** |
| | | * ä¸ä¸é¢ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¸é¢") |
| | | private Long nextQuestion; |
| | | |
| | | /** |
| | | * é项å¾çè·¯å¾ |
| | | */ |
| | | @ApiModelProperty(value = "é项å¾çè·¯å¾") |
| | | private String picturePath; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * é访任å¡é访模æ¿åºå¯¹è±¡ ivr_task_template |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "IvrTaskTemplateVO", description = "ä»»å¡ä»»å¡é访模æ¿åºå¯¹è±¡") |
| | | public class SvyTaskTemplateVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * 模æ¿é®å·ID |
| | | */ |
| | | @Excel(name = " 模æ¿é®å·ID ") |
| | | @ApiModelProperty(value = "模æ¿é®å·ID") |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * é®å·åç±»ID |
| | | */ |
| | | @Excel(name = " é®å·åç±»ID ") |
| | | @ApiModelProperty(value = "é®å·åç±»ID") |
| | | private Long categoryid; |
| | | |
| | | /** |
| | | * é®å·ä»£ç |
| | | */ |
| | | @Excel(name = " é®å·ä»£ç ") |
| | | @ApiModelProperty(value = "é®å·ä»£ç ") |
| | | private String svycode; |
| | | |
| | | /** |
| | | * é®å·åç§° |
| | | */ |
| | | @Excel(name = " é®å·åç§° ") |
| | | @ApiModelProperty(value = "é®å·åç§°") |
| | | private String svyname; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | @Excel(name = " æè¿° ") |
| | | @ApiModelProperty(value = "æè¿°") |
| | | private String description; |
| | | |
| | | /** |
| | | * é®å·ä»ç» |
| | | */ |
| | | @Excel(name = " é®å·ä»ç» ") |
| | | @ApiModelProperty(value = "é®å·ä»ç»") |
| | | private String introduce; |
| | | |
| | | /** |
| | | * é®å·æç¤º |
| | | */ |
| | | @Excel(name = " é®å·æç¤º ") |
| | | @ApiModelProperty(value = "é®å·æç¤º") |
| | | private String submitprompt; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @Excel(name = "æ ç¾") |
| | | @ApiModelProperty(value = "æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | @Excel(name = " çæ¬ ") |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private BigDecimal version; |
| | | |
| | | /** |
| | | * ä¸å¿åºä»£ç |
| | | */ |
| | | @Excel(name = " ä¸å¿åºä»£ç ") |
| | | @ApiModelProperty(value = "ä¸å¿åºä»£ç ") |
| | | private String centerlibrarycode; |
| | | |
| | | /** |
| | | * ä¸å¿åºID |
| | | */ |
| | | @Excel(name = " ä¸å¿åºID ") |
| | | @ApiModelProperty(value = "ä¸å¿åºID") |
| | | private Long centerlibraryid; |
| | | |
| | | /** |
| | | * æ¯å¦æ¬å° |
| | | */ |
| | | @Excel(name = " æ¯å¦æ¬å° ") |
| | | @ApiModelProperty(value = "æ¯å¦æ¬å°") |
| | | private Long islocal; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ |
| | | */ |
| | | @Excel(name = " æ¯å¦å¯ç¨ ") |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨") |
| | | private String isenable; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @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 taskScriptId; |
| | | |
| | | /** |
| | | * ç¶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 deptNames; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelInfo; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @Excel(name = "é¢åº") |
| | | @ApiModelProperty(value = "é¢åº") |
| | | private String campus; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty(value = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®", readConverterExp = "å=å¨åé") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=,é=项,2=,æ=æ¬,3=,æ°=å¼") |
| | | @ApiModelProperty(value = " å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | private String valueType; |
| | | |
| | | /** |
| | | * åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼ |
| | | */ |
| | | @Excel(name = "åå¤", readConverterExp = "æ=é®é¢çåå¤ï¼ç»é®çé¢ç¨ç") |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | /** |
| | | * ä»»å¡ID |
| | | */ |
| | | @Excel(name = "ä»»å¡ID") |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | |
| | | @ApiModelProperty(value = "模æ¿é®é¢éå") |
| | | private List<SvyTaskTemplateScriptVO> svyTaskTemplateScriptVOS = new ArrayList<>(); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 综åé®å·ä»»å¡ï¼ä»»å¡ï¼å¯¹è±¡ svy_task |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Data |
| | | public class SvyTaskVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * æ£è
æå¡ä»»å¡id |
| | | */ |
| | | @Excel(name = "æ£è
æå¡ä»»å¡id") |
| | | @ApiModelProperty(value = "æ£è
æå¡ä»»å¡id") |
| | | private Long svrtaskid; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "ä»»å¡åç§°") |
| | | private String taskname; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = " 模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateid; |
| | | |
| | | /** |
| | | * 模æ¿åç§° |
| | | */ |
| | | @Excel(name = " 模æ¿åç§°") |
| | | @ApiModelProperty(value = "模æ¿åç§°") |
| | | private String templatename; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = " æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelinfo; |
| | | |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | @Excel(name = " ç¶æ") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private Long state; |
| | | |
| | | /** |
| | | * æ°é |
| | | */ |
| | | @Excel(name = " æ°é") |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Long count; |
| | | |
| | | /** |
| | | * æ§è¡ |
| | | */ |
| | | @Excel(name = " æ§è¡") |
| | | @ApiModelProperty(value = "æ§è¡") |
| | | private Long executed; |
| | | |
| | | /** |
| | | * 䏿§è¡ |
| | | */ |
| | | @Excel(name = " 䏿§è¡") |
| | | @ApiModelProperty(value = "䏿§è¡") |
| | | private Long unexecuted; |
| | | |
| | | /** |
| | | * æ¯å¦å¤±è´¥ |
| | | */ |
| | | @Excel(name = " æ¯å¦å¤±è´¥") |
| | | @ApiModelProperty(value = "æ¯å¦å¤±è´¥") |
| | | private Long fail; |
| | | |
| | | /** |
| | | * æ£è
ID |
| | | */ |
| | | @Excel(name = " æ£è
ID") |
| | | @ApiModelProperty(value = "æ£è
ID") |
| | | private String patientid; |
| | | |
| | | /** |
| | | * æ£è
åç§° |
| | | */ |
| | | @Excel(name = " æ£è
åç§°") |
| | | @ApiModelProperty(value = "æ£è
åç§°") |
| | | private String patientname; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ°å¢æ¶é´") |
| | | private Date addtime; |
| | | |
| | | /** |
| | | * å®¡æ ¸äººid |
| | | */ |
| | | @Excel(name = " å®¡æ ¸äººid") |
| | | @ApiModelProperty(value = "å®¡æ ¸äººid") |
| | | private String checkuserid; |
| | | |
| | | /** |
| | | * ææ¬åéåæ° |
| | | */ |
| | | @Excel(name = "ææ¬åéåæ°") |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private Map<String, Map<String, String>> textParamMap; |
| | | |
| | | /** |
| | | * å®¡æ ¸äºº |
| | | */ |
| | | @Excel(name = " å®¡æ ¸äºº") |
| | | @ApiModelProperty(value = "å®¡æ ¸äºº") |
| | | private String checkusername; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å®¡æ ¸æ¶é´") |
| | | private Date checktime; |
| | | |
| | | /** |
| | | * 1ï¼åºé¢é访ï¼2ï¼ä½æ£éç¥ï¼3ï¼æ»¡æåº¦è°æ¥ï¼4ï¼å®£æï¼ |
| | | */ |
| | | @Excel(name = " 1ï¼åºé¢é访ï¼2ï¼ä½æ£éç¥ï¼3ï¼æ»¡æåº¦è°æ¥ï¼4ï¼å®£æï¼ ") |
| | | @ApiModelProperty(value = "åºé¢é访ï¼2ï¼ä½æ£éç¥ï¼3ï¼æ»¡æåº¦è°æ¥ï¼4ï¼å®£æï¼") |
| | | private String type; |
| | | |
| | | /** |
| | | * ç±»ååç§° |
| | | */ |
| | | @Excel(name = " ç±»ååç§°") |
| | | @ApiModelProperty(value = "ç±»ååç§°") |
| | | private String typename; |
| | | |
| | | /** |
| | | * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | */ |
| | | @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | @ApiModelProperty(value = "0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡") |
| | | private Long usebqsms; |
| | | |
| | | /** |
| | | * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | */ |
| | | @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | @ApiModelProperty(value = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡") |
| | | private Long usebhsms; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "") |
| | | private Long usesendsms; |
| | | |
| | | /** |
| | | * é¨é¨code |
| | | */ |
| | | @Excel(name = " é¨é¨code") |
| | | @ApiModelProperty(value = "é¨é¨code") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @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; |
| | | |
| | | /** |
| | | * ä»»å¡å½¢å¼ 1,å¤åªä½ 2,纸质 3,çµè¯ 4,çä¿¡ 5.微信å
¬ä¼å· 6.微信å°ç¨åº 7.æ¯ä»å® 8.æºè½å°ç¨åº 9.éé |
| | | */ |
| | | @Excel(name = " ä»»å¡å½¢å¼ 1,å¤åªä½ 2,纸质 3,çµè¯ 4,çä¿¡ 5.微信å
¬ä¼å· 6.微信å°ç¨åº 7.æ¯ä»å® 8.æºè½å°ç¨åº 9.éé") |
| | | @ApiModelProperty(value = "ä»»å¡å½¢å¼ 1,å¤åªä½ 2,纸质 3,çµè¯ 4,çä¿¡ 5.微信å
¬ä¼å· 6.微信å°ç¨åº 7.æ¯ä»å® 8.æºè½å°ç¨åº 9.éé") |
| | | private String preachform; |
| | | |
| | | /** |
| | | * æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé |
| | | */ |
| | | @Excel(name = "æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé ") |
| | | @ApiModelProperty(value = "æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé") |
| | | private Long isSend; |
| | | |
| | | /** |
| | | * åéç¶æï¼ 0 失败 1æå |
| | | */ |
| | | @Excel(name = "åéç¶æï¼ 0 失败 1æå") |
| | | @ApiModelProperty(value = "åéç¶æï¼ 0 失败 1æå") |
| | | private String sendState; |
| | | |
| | | /** |
| | | * ææ¬åéåæ° |
| | | */ |
| | | @Excel(name = "ææ¬åéåæ°") |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String param; |
| | | |
| | | /** |
| | | * æ£è
ä¸åä¸ä»»å¡å
³è表éå |
| | | */ |
| | | @Excel(name = " 宣æ£è
ä¸åä¸ä»»å¡å
³è表éå") |
| | | @ApiModelProperty(value = "æ£è
ä¸åä¸ä»»å¡å
³è表éå") |
| | | private List<PatTaskRelevance> patTaskRelevances; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * ææ¬åéåæ° |
| | | */ |
| | | @Excel(name = "ææ¬åéåæ°") |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String textParam; |
| | | |
| | | /** |
| | | * æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1 |
| | | */ |
| | | @Excel(name = "æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1") |
| | | @ApiModelProperty(value = "æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1") |
| | | private Long stopState = 0L; |
| | | |
| | | @ApiModelProperty(value = "ä¸åæ¶é´") |
| | | private String showTimeMorn; |
| | | |
| | | @ApiModelProperty(value = "ä¸åæ¶é´") |
| | | private String showTimeNoon; |
| | | |
| | | @ApiModelProperty(value = "æåæ¶é´") |
| | | private String showTimeNight; |
| | | |
| | | @ApiModelProperty(value = "å±ç¤ºæ¥æ") |
| | | private String showDate; |
| | | |
| | | /** |
| | | * åéæ¶é´æ®µ |
| | | */ |
| | | @ApiModelProperty(value = "åéæ¶é´æ®µ ") |
| | | private List<TaskSendTimeVO> sendTimeSlot; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çåç§° |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çåç§°") |
| | | private String libtemplatename; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çID |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çID") |
| | | private String libtemplateid; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * é®å·ç»æè®°å½è¯¦æ
对象 svy_tasksingledetail |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | public class SvyTasksingledetail extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ä»»å¡çµè¯ID */ |
| | | private String calldetailid; |
| | | |
| | | /** tasksingleid */ |
| | | @Excel(name = "tasksingleid") |
| | | private String callid; |
| | | |
| | | /** æ¨å·uuid */ |
| | | @Excel(name = "æ¨å·uuid") |
| | | private String uuid; |
| | | |
| | | /** çµè¯å·ç */ |
| | | @Excel(name = "çµè¯å·ç ") |
| | | private String phone; |
| | | |
| | | /** æ¾ç¤ºå·ç */ |
| | | @Excel(name = "æ¾ç¤ºå·ç ") |
| | | private String displayno; |
| | | |
| | | /** æä½äºº */ |
| | | @Excel(name = "æä½äºº ") |
| | | private String operate; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long inbound; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long incoming; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long assigntime; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long starttime; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long answertime; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long silent; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private String dtmfKey; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private String musicpath; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long sentIndex; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long sentBegin; |
| | | |
| | | /** åçç»æ */ |
| | | @Excel(name = "åçç»æ") |
| | | private String asrtext; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long beginTime; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long endTime; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long sentEnd; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private String recordpath; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private String recordurl; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private String templateid; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long templatequestionnum; |
| | | |
| | | /** */ |
| | | @Excel(name = " ") |
| | | private Long switchid; |
| | | |
| | | /** é®é¢ææ¬ */ |
| | | @Excel(name = "é®é¢ææ¬ ") |
| | | private String questiontext; |
| | | |
| | | /** é®é¢è¯é³ */ |
| | | @Excel(name = "é®é¢è¯é³ ") |
| | | private String questionvoice; |
| | | |
| | | /** ç±»å« */ |
| | | @Excel(name = "ç±»å«") |
| | | private String categoryname; |
| | | |
| | | /** ææ é项 */ |
| | | @Excel(name = "ææ é项") |
| | | private String targetoptions; |
| | | |
| | | /** ææ å¼ï¼æ£åå¹é
çé项å¼ï¼ */ |
| | | @Excel(name = "ææ å¼", readConverterExp = "æ£=åå¹é
çé项å¼") |
| | | private String targetvalue; |
| | | |
| | | /** éè¿æ£åè§£æçå¼ */ |
| | | @Excel(name = "éè¿æ£åè§£æçå¼") |
| | | private String matchedtext; |
| | | |
| | | /** */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date addtime; |
| | | |
| | | /** ä¸ä¼ æ è®° */ |
| | | @Excel(name = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** ä¸ä¼ æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "ä¸ä¼ æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date uploadTime; |
| | | |
| | | /** æºæID */ |
| | | @Excel(name = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** å 餿 è®° */ |
| | | private String delFlag; |
| | | |
| | | /** ç¶ID */ |
| | | @Excel(name = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** GUID */ |
| | | @Excel(name = "GUID") |
| | | private String guid; |
| | | |
| | | /** é®é¢ç±»å */ |
| | | @Excel(name = "é®é¢ç±»å") |
| | | private String valueType; |
| | | |
| | | public void setCalldetailid(String calldetailid) |
| | | { |
| | | this.calldetailid = calldetailid; |
| | | } |
| | | |
| | | public String getCalldetailid() |
| | | { |
| | | return calldetailid; |
| | | } |
| | | public void setCallid(String callid) |
| | | { |
| | | this.callid = callid; |
| | | } |
| | | |
| | | public String getCallid() |
| | | { |
| | | return callid; |
| | | } |
| | | public void setUuid(String uuid) |
| | | { |
| | | this.uuid = uuid; |
| | | } |
| | | |
| | | public String getUuid() |
| | | { |
| | | return uuid; |
| | | } |
| | | public void setPhone(String phone) |
| | | { |
| | | this.phone = phone; |
| | | } |
| | | |
| | | public String getPhone() |
| | | { |
| | | return phone; |
| | | } |
| | | public void setDisplayno(String displayno) |
| | | { |
| | | this.displayno = displayno; |
| | | } |
| | | |
| | | public String getDisplayno() |
| | | { |
| | | return displayno; |
| | | } |
| | | public void setOperate(String operate) |
| | | { |
| | | this.operate = operate; |
| | | } |
| | | |
| | | public String getOperate() |
| | | { |
| | | return operate; |
| | | } |
| | | public void setInbound(Long inbound) |
| | | { |
| | | this.inbound = inbound; |
| | | } |
| | | |
| | | public Long getInbound() |
| | | { |
| | | return inbound; |
| | | } |
| | | public void setIncoming(Long incoming) |
| | | { |
| | | this.incoming = incoming; |
| | | } |
| | | |
| | | public Long getIncoming() |
| | | { |
| | | return incoming; |
| | | } |
| | | public void setAssigntime(Long assigntime) |
| | | { |
| | | this.assigntime = assigntime; |
| | | } |
| | | |
| | | public Long getAssigntime() |
| | | { |
| | | return assigntime; |
| | | } |
| | | public void setStarttime(Long starttime) |
| | | { |
| | | this.starttime = starttime; |
| | | } |
| | | |
| | | public Long getStarttime() |
| | | { |
| | | return starttime; |
| | | } |
| | | public void setAnswertime(Long answertime) |
| | | { |
| | | this.answertime = answertime; |
| | | } |
| | | |
| | | public Long getAnswertime() |
| | | { |
| | | return answertime; |
| | | } |
| | | public void setSilent(Long silent) |
| | | { |
| | | this.silent = silent; |
| | | } |
| | | |
| | | public Long getSilent() |
| | | { |
| | | return silent; |
| | | } |
| | | public void setDtmfKey(String dtmfKey) |
| | | { |
| | | this.dtmfKey = dtmfKey; |
| | | } |
| | | |
| | | public String getDtmfKey() |
| | | { |
| | | return dtmfKey; |
| | | } |
| | | public void setMusicpath(String musicpath) |
| | | { |
| | | this.musicpath = musicpath; |
| | | } |
| | | |
| | | public String getMusicpath() |
| | | { |
| | | return musicpath; |
| | | } |
| | | public void setSentIndex(Long sentIndex) |
| | | { |
| | | this.sentIndex = sentIndex; |
| | | } |
| | | |
| | | public Long getSentIndex() |
| | | { |
| | | return sentIndex; |
| | | } |
| | | public void setSentBegin(Long sentBegin) |
| | | { |
| | | this.sentBegin = sentBegin; |
| | | } |
| | | |
| | | public Long getSentBegin() |
| | | { |
| | | return sentBegin; |
| | | } |
| | | public void setAsrtext(String asrtext) |
| | | { |
| | | this.asrtext = asrtext; |
| | | } |
| | | |
| | | public String getAsrtext() |
| | | { |
| | | return asrtext; |
| | | } |
| | | public void setBeginTime(Long beginTime) |
| | | { |
| | | this.beginTime = beginTime; |
| | | } |
| | | |
| | | public Long getBeginTime() |
| | | { |
| | | return beginTime; |
| | | } |
| | | public void setEndTime(Long endTime) |
| | | { |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | public Long getEndTime() |
| | | { |
| | | return endTime; |
| | | } |
| | | public void setSentEnd(Long sentEnd) |
| | | { |
| | | this.sentEnd = sentEnd; |
| | | } |
| | | |
| | | public Long getSentEnd() |
| | | { |
| | | return sentEnd; |
| | | } |
| | | public void setRecordpath(String recordpath) |
| | | { |
| | | this.recordpath = recordpath; |
| | | } |
| | | |
| | | public String getRecordpath() |
| | | { |
| | | return recordpath; |
| | | } |
| | | public void setRecordurl(String recordurl) |
| | | { |
| | | this.recordurl = recordurl; |
| | | } |
| | | |
| | | public String getRecordurl() |
| | | { |
| | | return recordurl; |
| | | } |
| | | public void setTemplateid(String templateid) |
| | | { |
| | | this.templateid = templateid; |
| | | } |
| | | |
| | | public String getTemplateid() |
| | | { |
| | | return templateid; |
| | | } |
| | | public void setTemplatequestionnum(Long templatequestionnum) |
| | | { |
| | | this.templatequestionnum = templatequestionnum; |
| | | } |
| | | |
| | | public Long getTemplatequestionnum() |
| | | { |
| | | return templatequestionnum; |
| | | } |
| | | public void setSwitchid(Long switchid) |
| | | { |
| | | this.switchid = switchid; |
| | | } |
| | | |
| | | public Long getSwitchid() |
| | | { |
| | | return switchid; |
| | | } |
| | | public void setQuestiontext(String questiontext) |
| | | { |
| | | this.questiontext = questiontext; |
| | | } |
| | | |
| | | public String getQuestiontext() |
| | | { |
| | | return questiontext; |
| | | } |
| | | public void setQuestionvoice(String questionvoice) |
| | | { |
| | | this.questionvoice = questionvoice; |
| | | } |
| | | |
| | | public String getQuestionvoice() |
| | | { |
| | | return questionvoice; |
| | | } |
| | | public void setCategoryname(String categoryname) |
| | | { |
| | | this.categoryname = categoryname; |
| | | } |
| | | |
| | | public String getCategoryname() |
| | | { |
| | | return categoryname; |
| | | } |
| | | public void setTargetoptions(String targetoptions) |
| | | { |
| | | this.targetoptions = targetoptions; |
| | | } |
| | | |
| | | public String getTargetoptions() |
| | | { |
| | | return targetoptions; |
| | | } |
| | | public void setTargetvalue(String targetvalue) |
| | | { |
| | | this.targetvalue = targetvalue; |
| | | } |
| | | |
| | | public String getTargetvalue() |
| | | { |
| | | return targetvalue; |
| | | } |
| | | public void setMatchedtext(String matchedtext) |
| | | { |
| | | this.matchedtext = matchedtext; |
| | | } |
| | | |
| | | public String getMatchedtext() |
| | | { |
| | | return matchedtext; |
| | | } |
| | | public void setAddtime(Date addtime) |
| | | { |
| | | this.addtime = addtime; |
| | | } |
| | | |
| | | public Date getAddtime() |
| | | { |
| | | return addtime; |
| | | } |
| | | public void setIsupload(Long isupload) |
| | | { |
| | | this.isupload = isupload; |
| | | } |
| | | |
| | | public Long getIsupload() |
| | | { |
| | | return isupload; |
| | | } |
| | | public void setUploadTime(Date uploadTime) |
| | | { |
| | | this.uploadTime = uploadTime; |
| | | } |
| | | |
| | | public Date getUploadTime() |
| | | { |
| | | return uploadTime; |
| | | } |
| | | public void setOrgid(String orgid) |
| | | { |
| | | this.orgid = orgid; |
| | | } |
| | | |
| | | public String getOrgid() |
| | | { |
| | | return orgid; |
| | | } |
| | | public void setDelFlag(String delFlag) |
| | | { |
| | | this.delFlag = delFlag; |
| | | } |
| | | |
| | | public String getDelFlag() |
| | | { |
| | | return delFlag; |
| | | } |
| | | public void setPid(Long pid) |
| | | { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public Long getPid() |
| | | { |
| | | return pid; |
| | | } |
| | | public void setGuid(String guid) |
| | | { |
| | | this.guid = guid; |
| | | } |
| | | |
| | | public String getGuid() |
| | | { |
| | | return guid; |
| | | } |
| | | public void setValueType(String valueType) |
| | | { |
| | | this.valueType = valueType; |
| | | } |
| | | |
| | | public String getValueType() |
| | | { |
| | | return valueType; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("calldetailid", getCalldetailid()) |
| | | .append("callid", getCallid()) |
| | | .append("uuid", getUuid()) |
| | | .append("phone", getPhone()) |
| | | .append("displayno", getDisplayno()) |
| | | .append("operate", getOperate()) |
| | | .append("inbound", getInbound()) |
| | | .append("incoming", getIncoming()) |
| | | .append("assigntime", getAssigntime()) |
| | | .append("starttime", getStarttime()) |
| | | .append("answertime", getAnswertime()) |
| | | .append("silent", getSilent()) |
| | | .append("dtmfKey", getDtmfKey()) |
| | | .append("musicpath", getMusicpath()) |
| | | .append("sentIndex", getSentIndex()) |
| | | .append("sentBegin", getSentBegin()) |
| | | .append("asrtext", getAsrtext()) |
| | | .append("beginTime", getBeginTime()) |
| | | .append("endTime", getEndTime()) |
| | | .append("sentEnd", getSentEnd()) |
| | | .append("recordpath", getRecordpath()) |
| | | .append("recordurl", getRecordurl()) |
| | | .append("templateid", getTemplateid()) |
| | | .append("templatequestionnum", getTemplatequestionnum()) |
| | | .append("switchid", getSwitchid()) |
| | | .append("questiontext", getQuestiontext()) |
| | | .append("questionvoice", getQuestionvoice()) |
| | | .append("categoryname", getCategoryname()) |
| | | .append("targetoptions", getTargetoptions()) |
| | | .append("targetvalue", getTargetvalue()) |
| | | .append("matchedtext", getMatchedtext()) |
| | | .append("addtime", getAddtime()) |
| | | .append("isupload", getIsupload()) |
| | | .append("uploadTime", getUploadTime()) |
| | | .append("orgid", getOrgid()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("delFlag", getDelFlag()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("pid", getPid()) |
| | | .append("guid", getGuid()) |
| | | .append("valueType", getValueType()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskSingleByIds(Long[] ids); |
| | | |
| | | public int deleteSvyTaskcallByCondition(@Param("taskid") Long id, @Param("patid") Long patid); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyTaskTemplateScript; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Mapper |
| | | public interface SvyTaskTemplateScriptMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ID é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | public SvyTaskTemplateScript selectSvyTaskTemplateScriptByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºéå |
| | | */ |
| | | public List<SvyTaskTemplateScript> selectSvyTaskTemplateScriptList(SvyTaskTemplateScript svyTaskTemplateScript); |
| | | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskTemplateScript(SvyTaskTemplateScript svyTaskTemplateScript); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskTemplateScript(SvyTaskTemplateScript svyTaskTemplateScript); |
| | | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ID é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateScriptByID(Long ID); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param IDs éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateScriptByIDs(Long[] IDs); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyTaskTemplateTargetoption; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡æ¿ææ é项åºMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Mapper |
| | | public interface SvyTaskTemplateTargetoptionMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param id é®å·ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | public SvyTaskTemplateTargetoption selectSvyTaskTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return é®å·ä»»å¡æ¨¡æ¿ææ é项åºéå |
| | | */ |
| | | public List<SvyTaskTemplateTargetoption> selectSvyTaskTemplateTargetoptionList(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskTemplateTargetoption(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskTemplateTargetoption(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param id é®å·ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateTargetoptionByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyTasksingledetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ç»æè®°å½è¯¦æ
Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Mapper |
| | | public interface SvyTasksingledetailMapper { |
| | | /** |
| | | * æ¥è¯¢é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param calldetailid é®å·ç»æè®°å½è¯¦æ
ä¸»é® |
| | | * @return é®å·ç»æè®°å½è¯¦æ
|
| | | */ |
| | | public SvyTasksingledetail selectSvyTasksingledetailByCalldetailid(String calldetailid); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ç»æè®°å½è¯¦æ
å表 |
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return é®å·ç»æè®°å½è¯¦æ
éå |
| | | */ |
| | | public List<SvyTasksingledetail> selectSvyTasksingledetailList(SvyTasksingledetail svyTasksingledetail); |
| | | |
| | | /** |
| | | * æ°å¢é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTasksingledetail(SvyTasksingledetail svyTasksingledetail); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTasksingledetail(SvyTasksingledetail svyTasksingledetail); |
| | | |
| | | /** |
| | | * å é¤é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param calldetailid é®å·ç»æè®°å½è¯¦æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTasksingledetailByCalldetailid(String calldetailid); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param calldetailids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTasksingledetailByCalldetailids(String[] calldetailids); |
| | | } |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | import com.smartor.domain.SvyTaskVO; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskSingleById(Long id); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹å é¤é®å·ä»»å¡ |
| | | */ |
| | | public int insertOrUpdateSvyTask(SvyTaskVO svyTaskVO); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTaskTemplateScript; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | public interface ISvyTaskTemplateScriptService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ID é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | public SvyTaskTemplateScript selectSvyTaskTemplateScriptByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºéå |
| | | */ |
| | | public List<SvyTaskTemplateScript> selectSvyTaskTemplateScriptList(SvyTaskTemplateScript svyTaskTemplateScript); |
| | | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskTemplateScript(SvyTaskTemplateScript svyTaskTemplateScript); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskTemplateScript(SvyTaskTemplateScript svyTaskTemplateScript); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param IDs éè¦å é¤çé®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateScriptByIDs(Long[] IDs); |
| | | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¿¡æ¯ |
| | | * |
| | | * @param ID é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateScriptByID(Long ID); |
| | | } |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.IvrLibaTemplateVO; |
| | | import com.smartor.domain.SvyTaskTemplate; |
| | | import com.smartor.domain.SvyTaskTemplateVO; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | public interface ISvyTaskTemplateService |
| | | { |
| | | public interface ISvyTaskTemplateService { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateBySvyid(Long svyid); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é®é¢è¯¦æ
|
| | | */ |
| | | public Integer saveOrUpdateTemplate(SvyTaskTemplateVO svyTaskTemplateVO); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶ |
| | | */ |
| | | public SvyTaskTemplateVO selectInfoByCondition(SvyTaskTemplateVO svyTaskTemplateVO); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTaskTemplateTargetoption; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡æ¿ææ é项åºServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | public interface ISvyTaskTemplateTargetoptionService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param id é®å·ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | public SvyTaskTemplateTargetoption selectSvyTaskTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return é®å·ä»»å¡æ¨¡æ¿ææ é项åºéå |
| | | */ |
| | | public List<SvyTaskTemplateTargetoption> selectSvyTaskTemplateTargetoptionList(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskTemplateTargetoption(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskTemplateTargetoption(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çé®å·ä»»å¡æ¨¡æ¿ææ é项åºä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateTargetoptionByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡æ¿ææ é项åºä¿¡æ¯ |
| | | * |
| | | * @param id é®å·ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateTargetoptionById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTasksingledetail; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ç»æè®°å½è¯¦æ
Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | public interface ISvyTasksingledetailService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param calldetailid é®å·ç»æè®°å½è¯¦æ
ä¸»é® |
| | | * @return é®å·ç»æè®°å½è¯¦æ
|
| | | */ |
| | | public SvyTasksingledetail selectSvyTasksingledetailByCalldetailid(String calldetailid); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ç»æè®°å½è¯¦æ
å表 |
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return é®å·ç»æè®°å½è¯¦æ
éå |
| | | */ |
| | | public List<SvyTasksingledetail> selectSvyTasksingledetailList(SvyTasksingledetail svyTasksingledetail); |
| | | |
| | | /** |
| | | * æ°å¢é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTasksingledetail(SvyTasksingledetail svyTasksingledetail); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTasksingledetail(SvyTasksingledetail svyTasksingledetail); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param calldetailids éè¦å é¤çé®å·ç»æè®°å½è¯¦æ
主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTasksingledetailByCalldetailids(String[] calldetailids); |
| | | |
| | | /** |
| | | * å é¤é®å·ç»æè®°å½è¯¦æ
ä¿¡æ¯ |
| | | * |
| | | * @param calldetailid é®å·ç»æè®°å½è¯¦æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTasksingledetailByCalldetailid(String calldetailid); |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public List<SvyLibScript> selectSvyLibScriptList(SvyLibScript svyLibTopic) { |
| | | //æ·»å é¢ç® |
| | | |
| | | List<SvyLibScript> svyLibTopics = svyLibTopicMapper.selectSvyLibScriptList(svyLibTopic); |
| | | List<SvyLibScript> svyLibScripts = svyLibTopicMapper.selectSvyLibScriptList(svyLibTopic); |
| | | //è·åé¢ç®é项 |
| | | |
| | | for (int j = 0; j < svyLibTopics.size(); j++) { |
| | | log.info("é®é¢id为ï¼{}", svyLibTopics.get(j).getSvyscriptId()); |
| | | if (StringUtils.isNotEmpty(svyLibTopics.get(j).getIcd10Name())) |
| | | svyLibTopics.get(j).setIcd10NameList(JSONArray.parseArray(svyLibTopics.get(j).getIcd10Name(), String.class)); |
| | | for (int j = 0; j < svyLibScripts.size(); j++) { |
| | | log.info("é®é¢id为ï¼{}", svyLibScripts.get(j).getId()); |
| | | if (StringUtils.isNotEmpty(svyLibScripts.get(j).getIcd10Name())) |
| | | svyLibScripts.get(j).setIcd10NameList(JSONArray.parseArray(svyLibScripts.get(j).getIcd10Name(), String.class)); |
| | | |
| | | if (StringUtils.isNotEmpty(svyLibTopics.get(j).getScripttype()) && svyLibTopics.get(j).getScripttype().equals("3") || svyLibTopics.get(j).getId() == null) { |
| | | if (StringUtils.isNotEmpty(svyLibScripts.get(j).getScripttype()) && svyLibScripts.get(j).getScripttype().equals("3") || svyLibScripts.get(j).getId() == null) { |
| | | //ä½çé¢ï¼ä¸éè¦é项 |
| | | continue; |
| | | } else { |
| | | SvyLibScriptOption svyLibTopicoption = new SvyLibScriptOption(); |
| | | svyLibTopicoption.setTopicid(svyLibTopics.get(j).getId()); |
| | | svyLibTopicoption.setTopicid(svyLibScripts.get(j).getId()); |
| | | List<SvyLibScriptOption> svyLibTopicoptions = svyLibScriptOptionMapper.selectSvyLibScriptOptionList(svyLibTopicoption); |
| | | //å°æ¥è¯¢åºçéé¡¹ç®æ¾å°é¢ç®ä¸ |
| | | svyLibTopics.get(j).setSvyLibScriptOptions(svyLibTopicoptions); |
| | | svyLibScripts.get(j).setSvyLibScriptOptions(svyLibTopicoptions); |
| | | } |
| | | } |
| | | return svyLibTopics; |
| | | return svyLibScripts; |
| | | } |
| | | |
| | | /** |
| | |
| | | svyLibScriptOptionMapper.updateSvyLibScriptOption(svyLibTopicoption); |
| | | } else if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 3) { |
| | | //å é¤ |
| | | svyLibScriptOptionMapper.deleteSvyLibScriptOptionByOptionid(svyLibTopicoption.getOptionid()); |
| | | svyLibScriptOptionMapper.deleteSvyLibScriptOptionByOptionid(svyLibTopicoption.getId()); |
| | | } |
| | | } |
| | | } |
| | |
| | | //ä¿®æ¹ |
| | | svyLibTemplate.setUpdateTime(DateUtils.getNowDate()); |
| | | i = svyLibTemplateMapper.updateSvyLibTemplate(svyLibTemplate); |
| | | } else if (svyLibTemplate.getIsoperation() != null && svyLibTemplate.getIsoperation() == 3) { |
| | | //å é¤ |
| | | i = svyLibTemplateMapper.deleteSvyLibTemplateBySvyid(svyLibTemplate.getSvyid()); |
| | | |
| | | } |
| | | |
| | | //å¤çé¢ç® |
| | |
| | | //ä¿®æ¹ |
| | | svyLibTemplateScript.setSvyid(svyLibTemplate.getSvyid()); |
| | | svyLibTemplateScriptMapper.updateSvyLibTemplateScript(svyLibTemplateScript); |
| | | } else if (svyLibScript.getIsoperation() != null && svyLibScript.getIsoperation() == 3) { |
| | | svyLibTemplateScriptMapper.deleteSvyLibTemplateScriptByTopicid(svyLibTemplateScript.getId()); |
| | | } |
| | | |
| | | //对é¢ç®é项è¿è¡å¤ç |
| | |
| | | //ä¿®æ¹ |
| | | svyLibTemplateTargetoption.setScriptid(svyLibScript.getId()); |
| | | svyLibTemplateTargetoptionMapper.updateSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } else if (svyLibTemplateTargetoption.getIsoperation() != null && svyLibTemplateTargetoption.getIsoperation() == 3) { |
| | | //å é¤ |
| | | svyLibTemplateTargetoptionMapper.deleteSvyLibTemplateTargetoptionById(svyLibTemplateTargetoption.getId()); |
| | | } |
| | | } |
| | | |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | 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.mapper.SvyTaskSingleMapper; |
| | | import com.smartor.service.ISvyTaskService; |
| | | import com.smartor.service.ISvyTaskSingleService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SvyTaskSingleServiceImpl implements ISvyTaskSingleService |
| | | { |
| | | public class SvyTaskSingleServiceImpl implements ISvyTaskSingleService { |
| | | @Autowired |
| | | private SvyTaskSingleMapper svyTaskSingleMapper; |
| | | |
| | | @Autowired |
| | | private ISvyTaskService svyTaskService; |
| | | |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | |
| | | * @return åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @Override |
| | | public SvyTaskSingle selectSvyTaskSingleById(Long id) |
| | | { |
| | | public SvyTaskSingle selectSvyTaskSingleById(Long id) { |
| | | return svyTaskSingleMapper.selectSvyTaskSingleById(id); |
| | | } |
| | | |
| | |
| | | * @return åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @Override |
| | | public List<SvyTaskSingle> selectSvyTaskSingleList(SvyTaskSingle svyTaskSingle) |
| | | { |
| | | public List<SvyTaskSingle> selectSvyTaskSingleList(SvyTaskSingle svyTaskSingle) { |
| | | return svyTaskSingleMapper.selectSvyTaskSingleList(svyTaskSingle); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTaskSingle(SvyTaskSingle svyTaskSingle) |
| | | { |
| | | public int insertSvyTaskSingle(SvyTaskSingle svyTaskSingle) { |
| | | svyTaskSingle.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskSingleMapper.insertSvyTaskSingle(svyTaskSingle); |
| | | } |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTaskSingle(SvyTaskSingle svyTaskSingle) |
| | | { |
| | | public int updateSvyTaskSingle(SvyTaskSingle svyTaskSingle) { |
| | | svyTaskSingle.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskSingleMapper.updateSvyTaskSingle(svyTaskSingle); |
| | | } |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskSingleByIds(Long[] ids) |
| | | { |
| | | public int deleteSvyTaskSingleByIds(Long[] ids) { |
| | | return svyTaskSingleMapper.deleteSvyTaskSingleByIds(ids); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskSingleById(Long id) |
| | | { |
| | | public int deleteSvyTaskSingleById(Long id) { |
| | | return svyTaskSingleMapper.deleteSvyTaskSingleById(id); |
| | | } |
| | | |
| | | @Override |
| | | public int insertOrUpdateSvyTask(SvyTaskVO svyTaskVO) { |
| | | if (ObjectUtils.isEmpty(svyTaskVO)) { |
| | | log.info("é®å·ä»»å¡å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | throw new BaseException("é®å·ä»»å¡å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | } |
| | | Integer integer = 1; |
| | | SvyTask svyTask = DtoConversionUtils.sourceToTarget(svyTaskVO, SvyTask.class); |
| | | svyTask.setTextParam(JSON.toJSONString(svyTaskVO.getTextParamMap())); |
| | | if (svyTaskVO.getIsoperation() != null && svyTaskVO.getIsoperation() == 1) { |
| | | //å¾ä»»å¡è¡¨ä¸ï¼æ°å¢ä»»å¡ |
| | | if (ObjectUtils.isNotEmpty(svyTaskVO.getSendTimeSlot())) |
| | | svyTask.setSendTimeSlot(JSON.toJSONString(svyTaskVO.getSendTimeSlot())); |
| | | if (svyTask.getSendState() == null) svyTask.setSendState("1"); |
| | | svyTask.setTemplateid(svyTaskVO.getLibtemplateid()); |
| | | svyTaskService.insertSvyTask(svyTask); |
| | | |
| | | //å°ä»»å¡ä¿¡æ¯æ¾å°æå¡è¡¨ä¸ |
| | | SvyTaskSingle svyTaskSingle = DtoConversionUtils.sourceToTarget(svyTaskVO, SvyTaskSingle.class); |
| | | svyTaskSingle.setTaskid(svyTask.getTaskid()); |
| | | //æ°å¢ |
| | | if (CollectionUtils.isNotEmpty(svyTaskVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : svyTaskVO.getPatTaskRelevances()) { |
| | | //å°ä»»å¡ä¿¡æ¯æ°å¢å°é访æå¡è¡¨ä¸ |
| | | svyTaskSingle.setSendname(patTaskRelevance.getName()); |
| | | svyTaskSingle.setAge(patTaskRelevance.getAge()); |
| | | svyTaskSingle.setSfzh(patTaskRelevance.getSfzh()); |
| | | svyTaskSingle.setPhone(patTaskRelevance.getPhone()); |
| | | svyTaskSingle.setAddr(patTaskRelevance.getAddr()); |
| | | svyTaskSingle.setPatid(patTaskRelevance.getPatid()); |
| | | svyTaskSingle.setCreateTime(DateUtils.getNowDate()); |
| | | svyTaskSingle.setCreateTime(DateUtils.getNowDate()); |
| | | svyTaskSingleMapper.insertSvyTaskSingle(svyTaskSingle); |
| | | integer = svyTaskSingle.getId().intValue(); |
| | | } |
| | | } |
| | | |
| | | } else if (svyTaskVO.getIsoperation() != null && svyTaskVO.getIsoperation() == 2) { |
| | | //ä»»å¡ä¿®æ¹ |
| | | if (ObjectUtils.isNotEmpty(svyTaskVO.getSendTimeSlot())) |
| | | svyTask.setSendTimeSlot(JSON.toJSONString(svyTaskVO.getSendTimeSlot())); |
| | | //ä¿®æ¹æä½ï¼éè¦å°stopStateç¶æ+1 |
| | | SvyTask svyTask1 = svyTaskService.selectSvyTaskByTaskid(svyTaskVO.getTaskid()); |
| | | svyTask.setStopState(svyTask1.getStopState() + 1); |
| | | svyTask.setTemplateid(svyTaskVO.getLibtemplateid()); |
| | | svyTaskService.updateSvyTask(svyTask); |
| | | |
| | | if (CollectionUtils.isNotEmpty(svyTaskVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : svyTaskVO.getPatTaskRelevances()) { |
| | | |
| | | SvyTaskSingle svyTaskSingle = DtoConversionUtils.sourceToTarget(svyTaskVO, SvyTaskSingle.class); |
| | | svyTaskSingle.setSendname(patTaskRelevance.getName()); |
| | | svyTaskSingle.setAge(patTaskRelevance.getAge()); |
| | | svyTaskSingle.setSfzh(patTaskRelevance.getSfzh()); |
| | | svyTaskSingle.setPhone(patTaskRelevance.getPhone()); |
| | | svyTaskSingle.setAddr(patTaskRelevance.getAddr()); |
| | | svyTaskSingle.setPatid(patTaskRelevance.getPatid()); |
| | | 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()); |
| | | } |
| | | integer = svyTaskSingle.getTaskid().intValue(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | return integer; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTaskTemplateScript; |
| | | import com.smartor.mapper.SvyTaskTemplateScriptMapper; |
| | | import com.smartor.service.ISvyTaskTemplateScriptService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Service |
| | | public class SvyTaskTemplateScriptServiceImpl implements ISvyTaskTemplateScriptService |
| | | { |
| | | @Autowired |
| | | private SvyTaskTemplateScriptMapper svyTaskTemplateScriptMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ID é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @Override |
| | | public SvyTaskTemplateScript selectSvyTaskTemplateScriptByID(Long ID) |
| | | { |
| | | return svyTaskTemplateScriptMapper.selectSvyTaskTemplateScriptByID(ID); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @Override |
| | | public List<SvyTaskTemplateScript> selectSvyTaskTemplateScriptList(SvyTaskTemplateScript svyTaskTemplateScript) |
| | | { |
| | | return svyTaskTemplateScriptMapper.selectSvyTaskTemplateScriptList(svyTaskTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTaskTemplateScript(SvyTaskTemplateScript svyTaskTemplateScript) |
| | | { |
| | | svyTaskTemplateScript.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskTemplateScriptMapper.insertSvyTaskTemplateScript(svyTaskTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param svyTaskTemplateScript é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTaskTemplateScript(SvyTaskTemplateScript svyTaskTemplateScript) |
| | | { |
| | | svyTaskTemplateScript.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskTemplateScriptMapper.updateSvyTaskTemplateScript(svyTaskTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param IDs éè¦å é¤çé®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskTemplateScriptByIDs(Long[] IDs) |
| | | { |
| | | return svyTaskTemplateScriptMapper.deleteSvyTaskTemplateScriptByIDs(IDs); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¿¡æ¯ |
| | | * |
| | | * @param ID é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskTemplateScriptByID(Long ID) |
| | | { |
| | | return svyTaskTemplateScriptMapper.deleteSvyTaskTemplateScriptByID(ID); |
| | | } |
| | | } |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTaskTemplate; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.SvyTaskTemplateMapper; |
| | | import com.smartor.mapper.SvyTaskTemplateScriptMapper; |
| | | import com.smartor.mapper.SvyTaskTemplateTargetoptionMapper; |
| | | import com.smartor.service.ISvyTaskTemplateService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.Comparator; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SvyTaskTemplateServiceImpl implements ISvyTaskTemplateService |
| | | { |
| | | public class SvyTaskTemplateServiceImpl implements ISvyTaskTemplateService { |
| | | @Autowired |
| | | private SvyTaskTemplateMapper svyTaskTemplateMapper; |
| | | |
| | | @Autowired |
| | | private SvyTaskTemplateScriptMapper svyTaskTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private SvyTaskTemplateTargetoptionMapper svyTaskTemplateTargetoptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿ |
| | |
| | | * @return ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @Override |
| | | public SvyTaskTemplate selectSvyTaskTemplateBySvyid(Long svyid) |
| | | { |
| | | public SvyTaskTemplate selectSvyTaskTemplateBySvyid(Long svyid) { |
| | | return svyTaskTemplateMapper.selectSvyTaskTemplateBySvyid(svyid); |
| | | } |
| | | |
| | |
| | | * @return ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @Override |
| | | public List<SvyTaskTemplate> selectSvyTaskTemplateList(SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | public List<SvyTaskTemplate> selectSvyTaskTemplateList(SvyTaskTemplate svyTaskTemplate) { |
| | | return svyTaskTemplateMapper.selectSvyTaskTemplateList(svyTaskTemplate); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | public int insertSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate) { |
| | | svyTaskTemplate.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskTemplateMapper.insertSvyTaskTemplate(svyTaskTemplate); |
| | | } |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | public int updateSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate) { |
| | | svyTaskTemplate.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskTemplateMapper.updateSvyTaskTemplate(svyTaskTemplate); |
| | | } |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskTemplateBySvyids(Long[] svyids) |
| | | { |
| | | public int deleteSvyTaskTemplateBySvyids(Long[] svyids) { |
| | | return svyTaskTemplateMapper.deleteSvyTaskTemplateBySvyids(svyids); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskTemplateBySvyid(Long svyid) |
| | | { |
| | | public int deleteSvyTaskTemplateBySvyid(Long svyid) { |
| | | return svyTaskTemplateMapper.deleteSvyTaskTemplateBySvyid(svyid); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é®é¢è¯¦æ
|
| | | * |
| | | * @param svyTaskTemplateVO |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer saveOrUpdateTemplate(SvyTaskTemplateVO svyTaskTemplateVO) { |
| | | Integer i = null; |
| | | SvyTaskTemplate svyTaskTemplate = DtoConversionUtils.sourceToTarget(svyTaskTemplateVO, SvyTaskTemplate.class); |
| | | if (svyTaskTemplateVO.getIsoperation() != null && svyTaskTemplateVO.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyTaskTemplate.setCreateTime(new Date()); |
| | | svyTaskTemplateMapper.insertSvyTaskTemplate(svyTaskTemplate); |
| | | i = svyTaskTemplate.getId().intValue(); |
| | | } else if (svyTaskTemplateVO.getIsoperation() != null && svyTaskTemplateVO.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyTaskTemplate.setUpdateTime(new Date()); |
| | | svyTaskTemplateMapper.updateSvyTaskTemplate(svyTaskTemplate); |
| | | i = svyTaskTemplate.getId().intValue(); |
| | | } |
| | | log.info("æ°å¢æä¿®æ¹é®å·ä»»å¡æ¨¡æ¿è¯¦æ
çid为ï¼{}", svyTaskTemplate.getId()); |
| | | |
| | | //对模æ¿è¯æ¯åé项è¿è¡å¤çï¼è¯æ¯è¡¨ä¸ææ 表è¿è¡åå¹¶äºï¼ï¼ |
| | | if (CollectionUtils.isNotEmpty(svyTaskTemplateVO.getSvyTaskTemplateScriptVOS())) { |
| | | log.error("ivrTaskTemplateVO.getIvrTaskTemplateScriptVOList()æ¯å¦ææ°æ®åï¼{}", svyTaskTemplateVO.getSvyTaskTemplateScriptVOS()); |
| | | for (SvyTaskTemplateScriptVO svyTaskTemplateScriptVO : svyTaskTemplateVO.getSvyTaskTemplateScriptVOS()) { |
| | | if (svyTaskTemplateScriptVO.getIsoperation() != null && svyTaskTemplateScriptVO.getIsoperation() == 1 || svyTaskTemplateScriptVO.getIsoperation() == null && svyTaskTemplateScriptVO.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | SvyTaskTemplateScript svyTaskTemplateScript = DtoConversionUtils.sourceToTarget(svyTaskTemplateScriptVO, SvyTaskTemplateScript.class); |
| | | svyTaskTemplateScript.setTemplateID(svyTaskTemplate.getId()); |
| | | svyTaskTemplateScript.setCreateTime(new Date()); |
| | | svyTaskTemplateScriptMapper.insertSvyTaskTemplateScript(svyTaskTemplateScript); |
| | | svyTaskTemplateScript.setIsoperation(1); |
| | | //对é项ç®è¿è¡å¤ç |
| | | dealOption(svyTaskTemplateScriptVO.getSvyTaskTemplateTargetoptions(), svyTaskTemplateScript, svyTaskTemplate.getId()); |
| | | |
| | | } else if (svyTaskTemplateScriptVO.getIsoperation() != null && svyTaskTemplateScriptVO.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | SvyTaskTemplateScript svyTaskTemplateScript = DtoConversionUtils.sourceToTarget(svyTaskTemplateScriptVO, SvyTaskTemplateScript.class); |
| | | svyTaskTemplateScript.setTemplateID(svyTaskTemplate.getId()); |
| | | svyTaskTemplateScript.setUpdateTime(new Date()); |
| | | svyTaskTemplateScriptMapper.updateSvyTaskTemplateScript(svyTaskTemplateScript); |
| | | svyTaskTemplateScript.setIsoperation(2); |
| | | //对é项ç®è¿è¡å¤ç |
| | | dealOption(svyTaskTemplateScriptVO.getSvyTaskTemplateTargetoptions(), svyTaskTemplateScript, svyTaskTemplate.getId()); |
| | | |
| | | } else if (svyTaskTemplateScriptVO.getIsoperation() != null && svyTaskTemplateScriptVO.getIsoperation() == 3) { |
| | | //å é¤ |
| | | if (svyTaskTemplateScriptVO.getID() == null) { |
| | | log.info("å é¤å¤±è´¥,模æ¿è¯æ¯id为空"); |
| | | } else { |
| | | svyTaskTemplateScriptVO.setUpdateTime(new Date()); |
| | | svyTaskTemplateScriptMapper.deleteSvyTaskTemplateScriptByID(svyTaskTemplateScriptVO.getID()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | return i; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶ |
| | | */ |
| | | @Override |
| | | public SvyTaskTemplateVO selectInfoByCondition(SvyTaskTemplateVO svyTaskTemplateVO) { |
| | | log.info("selectInfoByConditionæ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶çå
¥å为 : {}", svyTaskTemplateVO); |
| | | //å
æ ¹æ®æ¡ä»¶æ¥è¯¢é®é¢è¡¨ä¿¡æ¯ |
| | | SvyTaskTemplate svyTaskTemplate = DtoConversionUtils.sourceToTarget(svyTaskTemplateVO, SvyTaskTemplate.class); |
| | | List<SvyTaskTemplate> svyTaskTemplates = selectSvyTaskTemplateList(svyTaskTemplate); |
| | | if (CollectionUtils.isEmpty(svyTaskTemplates)) { |
| | | log.info("模æ¿ä¿¡æ¯æä¾çæ¡ä»¶,æ¥è¯¢æ¨¡æ¿è¯¦æ
æ°æ®ä¸ºç©ºï¼{}", svyTaskTemplates); |
| | | throw new BaseException("模æ¿ä¿¡æ¯æä¾çæ¡ä»¶,æ¥è¯¢æ¨¡æ¿è¯¦æ
æ°æ®ä¸ºç©º"); |
| | | } |
| | | |
| | | log.info("svyLibaTemplatesçæ¥è¯¢ç»æä¸º:{},æ°é为 : {}", svyTaskTemplates.get(0), svyTaskTemplates.size()); |
| | | //å®ä¹IvrLibaTemplateVO ç¨äºè¿å |
| | | SvyTaskTemplateVO templateVO = DtoConversionUtils.sourceToTarget(svyTaskTemplates.get(0), SvyTaskTemplateVO.class); |
| | | |
| | | //æ¥è¯¢è¯æ¯ |
| | | SvyTaskTemplateScript svyTaskTemplateScript = new SvyTaskTemplateScript(); |
| | | svyTaskTemplateScript.setTemplateID(svyTaskTemplates.get(0).getId()); |
| | | List<SvyTaskTemplateScript> svyTaskTemplateScripts = svyTaskTemplateScriptMapper.selectSvyTaskTemplateScriptList(svyTaskTemplateScript); |
| | | List<SvyTaskTemplateScriptVO> svyTaskTemplateScriptVOS = DtoConversionUtils.sourceToTarget(svyTaskTemplateScripts, SvyTaskTemplateScriptVO.class); |
| | | |
| | | //éè¿è¯æ¯IDè·åé项 |
| | | for (SvyTaskTemplateScriptVO svyTaskTemplateScriptVO : svyTaskTemplateScriptVOS) { |
| | | log.info("svyLibaTemplateScriptVOç主é®id为ï¼{}", svyTaskTemplateScriptVO.getID()); |
| | | SvyTaskTemplateTargetoption svyTaskTemplateTargetoption = new SvyTaskTemplateTargetoption(); |
| | | svyTaskTemplateTargetoption.setScriptid(svyTaskTemplateScriptVO.getID()); |
| | | List<SvyTaskTemplateTargetoption> svyTaskTemplateTargetoptions = svyTaskTemplateTargetoptionMapper.selectSvyTaskTemplateTargetoptionList(svyTaskTemplateTargetoption); |
| | | for (SvyTaskTemplateTargetoption svyTaskTemplateTargetoption1 : svyTaskTemplateTargetoptions) { |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | if (!StringUtils.isEmpty(svyTaskTemplateTargetoption1.getDynamiccruxs())) { |
| | | try { |
| | | svyTaskTemplateTargetoption1.setDynamiccruxs(mapper.readValue(svyTaskTemplateTargetoption1.getDynamiccruxsJson(), List.class)); |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | if (!StringUtils.isEmpty(svyTaskTemplateTargetoption1.getNodynamiccruxs())) { |
| | | try { |
| | | svyTaskTemplateTargetoption1.setNodynamiccruxs(mapper.readValue(svyTaskTemplateTargetoption1.getNodynamiccruxsJson(), List.class)); |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | svyTaskTemplateScriptVO.setSvyTaskTemplateTargetoptions(svyTaskTemplateTargetoptions); |
| | | } |
| | | Collections.sort(svyTaskTemplateScriptVOS, Comparator.comparing(SvyTaskTemplateScriptVO::getTargetid)); |
| | | //æ°æ®ç»è£
|
| | | templateVO.setSvyTaskTemplateScriptVOS(svyTaskTemplateScriptVOS); |
| | | return templateVO; |
| | | } |
| | | |
| | | |
| | | private void dealOption(List<SvyTaskTemplateTargetoption> svyTaskTemplateTargetoptions, SvyTaskTemplateScript svyTaskTemplateScript, Long tmpID) { |
| | | log.info("svyTaskTemplateScriptçå¼ä¸ºï¼{}", svyTaskTemplateScript); |
| | | //å¯¹æ¨¡æ¿ææ é项è¿è¡å¤ç |
| | | if (CollectionUtils.isNotEmpty(svyTaskTemplateTargetoptions)) { |
| | | for (SvyTaskTemplateTargetoption svyTaskTemplateTargetoption : svyTaskTemplateTargetoptions) { |
| | | if (svyTaskTemplateTargetoption.getIsoperation() != null && svyTaskTemplateTargetoption.getIsoperation() == 1 || svyTaskTemplateTargetoption.getIsoperation() == null && svyTaskTemplateTargetoption.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyTaskTemplateTargetoption.setTemplateID(tmpID); |
| | | svyTaskTemplateTargetoption.setScriptid(svyTaskTemplateScript.getID()); |
| | | if (CollectionUtils.isNotEmpty(svyTaskTemplateTargetoption.getDynamiccruxs())) |
| | | svyTaskTemplateTargetoption.setDynamiccruxsJson(JSON.toJSONString(svyTaskTemplateTargetoption.getDynamiccruxs())); |
| | | if (CollectionUtils.isNotEmpty(svyTaskTemplateTargetoption.getNodynamiccruxs())) |
| | | svyTaskTemplateTargetoption.setNodynamiccruxsJson(JSON.toJSONString(svyTaskTemplateTargetoption.getNodynamiccruxs())); |
| | | svyTaskTemplateTargetoptionMapper.insertSvyTaskTemplateTargetoption(svyTaskTemplateTargetoption); |
| | | } else if (svyTaskTemplateTargetoption.getIsoperation() != null && svyTaskTemplateTargetoption.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyTaskTemplateTargetoption.setTemplateID(tmpID); |
| | | svyTaskTemplateTargetoption.setScriptid(svyTaskTemplateScript.getID()); |
| | | if (CollectionUtils.isNotEmpty(svyTaskTemplateTargetoption.getDynamiccruxs())) |
| | | svyTaskTemplateTargetoption.setDynamiccruxsJson(JSON.toJSONString(svyTaskTemplateTargetoption.getDynamiccruxs())); |
| | | if (CollectionUtils.isNotEmpty(svyTaskTemplateTargetoption.getNodynamiccruxs())) |
| | | svyTaskTemplateTargetoption.setNodynamiccruxsJson(JSON.toJSONString(svyTaskTemplateTargetoption.getNodynamiccruxs())); |
| | | svyTaskTemplateTargetoptionMapper.updateSvyTaskTemplateTargetoption(svyTaskTemplateTargetoption); |
| | | } else if (svyTaskTemplateTargetoption.getIsoperation() != null && svyTaskTemplateTargetoption.getIsoperation() == 3) { |
| | | //å é¤ |
| | | if (svyTaskTemplateTargetoption.getId() == null) { |
| | | log.info("å é¤å¤±è´¥,æ¨¡æ¿ææ é项id为空"); |
| | | } else { |
| | | svyTaskTemplateTargetoptionMapper.deleteSvyTaskTemplateTargetoptionById(svyTaskTemplateTargetoption.getId()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTaskTemplateTargetoption; |
| | | import com.smartor.mapper.SvyTaskTemplateTargetoptionMapper; |
| | | import com.smartor.service.ISvyTaskTemplateTargetoptionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ä»»å¡æ¨¡æ¿ææ é项åºServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Service |
| | | public class SvyTaskTemplateTargetoptionServiceImpl implements ISvyTaskTemplateTargetoptionService |
| | | { |
| | | @Autowired |
| | | private SvyTaskTemplateTargetoptionMapper svyTaskTemplateTargetoptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param id é®å·ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @Override |
| | | public SvyTaskTemplateTargetoption selectSvyTaskTemplateTargetoptionById(Long id) |
| | | { |
| | | return svyTaskTemplateTargetoptionMapper.selectSvyTaskTemplateTargetoptionById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @Override |
| | | public List<SvyTaskTemplateTargetoption> selectSvyTaskTemplateTargetoptionList(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) |
| | | { |
| | | return svyTaskTemplateTargetoptionMapper.selectSvyTaskTemplateTargetoptionList(svyTaskTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTaskTemplateTargetoption(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) |
| | | { |
| | | svyTaskTemplateTargetoption.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskTemplateTargetoptionMapper.insertSvyTaskTemplateTargetoption(svyTaskTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param svyTaskTemplateTargetoption é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTaskTemplateTargetoption(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) |
| | | { |
| | | svyTaskTemplateTargetoption.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskTemplateTargetoptionMapper.updateSvyTaskTemplateTargetoption(svyTaskTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çé®å·ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskTemplateTargetoptionByIds(Long[] ids) |
| | | { |
| | | return svyTaskTemplateTargetoptionMapper.deleteSvyTaskTemplateTargetoptionByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡æ¿ææ é项åºä¿¡æ¯ |
| | | * |
| | | * @param id é®å·ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskTemplateTargetoptionById(Long id) |
| | | { |
| | | return svyTaskTemplateTargetoptionMapper.deleteSvyTaskTemplateTargetoptionById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTasksingledetail; |
| | | import com.smartor.mapper.SvyTasksingledetailMapper; |
| | | import com.smartor.service.ISvyTasksingledetailService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ç»æè®°å½è¯¦æ
Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-19 |
| | | */ |
| | | @Service |
| | | public class SvyTasksingledetailServiceImpl implements ISvyTasksingledetailService |
| | | { |
| | | @Autowired |
| | | private SvyTasksingledetailMapper svyTasksingledetailMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param calldetailid é®å·ç»æè®°å½è¯¦æ
ä¸»é® |
| | | * @return é®å·ç»æè®°å½è¯¦æ
|
| | | */ |
| | | @Override |
| | | public SvyTasksingledetail selectSvyTasksingledetailByCalldetailid(String calldetailid) |
| | | { |
| | | return svyTasksingledetailMapper.selectSvyTasksingledetailByCalldetailid(calldetailid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·ç»æè®°å½è¯¦æ
å表 |
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return é®å·ç»æè®°å½è¯¦æ
|
| | | */ |
| | | @Override |
| | | public List<SvyTasksingledetail> selectSvyTasksingledetailList(SvyTasksingledetail svyTasksingledetail) |
| | | { |
| | | return svyTasksingledetailMapper.selectSvyTasksingledetailList(svyTasksingledetail); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTasksingledetail(SvyTasksingledetail svyTasksingledetail) |
| | | { |
| | | svyTasksingledetail.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTasksingledetailMapper.insertSvyTasksingledetail(svyTasksingledetail); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param svyTasksingledetail é®å·ç»æè®°å½è¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTasksingledetail(SvyTasksingledetail svyTasksingledetail) |
| | | { |
| | | svyTasksingledetail.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTasksingledetailMapper.updateSvyTasksingledetail(svyTasksingledetail); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·ç»æè®°å½è¯¦æ
|
| | | * |
| | | * @param calldetailids éè¦å é¤çé®å·ç»æè®°å½è¯¦æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTasksingledetailByCalldetailids(String[] calldetailids) |
| | | { |
| | | return svyTasksingledetailMapper.deleteSvyTasksingledetailByCalldetailids(calldetailids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·ç»æè®°å½è¯¦æ
ä¿¡æ¯ |
| | | * |
| | | * @param calldetailid é®å·ç»æè®°å½è¯¦æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTasksingledetailByCalldetailid(String calldetailid) |
| | | { |
| | | return svyTasksingledetailMapper.deleteSvyTasksingledetailByCalldetailid(calldetailid); |
| | | } |
| | | } |
| | |
| | | <result property="id" column="id"/> |
| | | <result property="tagcategoryid" column="tagcategoryid"/> |
| | | <result property="tagid" column="tagid"/> |
| | | <result property="tagname" column="tagname"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | |
| | | upload_time, |
| | | targetid, |
| | | pid, |
| | | tagname, |
| | | guid |
| | | from ivr_liba_target_tag |
| | | </sql> |
| | |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="tagname != null ">and tagname = #{tagname}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="tagname != null">tagname,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="tagcategoryid != null">#{tagcategoryid},</if> |
| | |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="tagname != null">#{tagname},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="tagname != null">tagname = #{tagname},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="orderno" column="orderno"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTargetoptionVo"> |
| | |
| | | targetregex, |
| | | targetregex2, |
| | | nodynamiccruxs, |
| | | orderno, |
| | | dynamiccruxs, |
| | | optiondesc, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | | from ivr_liba_targetoption |
| | |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="orderno != null ">and orderno = #{orderno}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="nodynamiccruxsJson != null">and nodynamiccruxs = #{nodynamiccruxsJson}</if> |
| | | <if test="dynamiccruxsJson != null">and dynamiccruxs = #{dynamiccruxsJson}</if> |
| | |
| | | <if test="guid != null">guid,</if> |
| | | <if test="nodynamiccruxsJson != null">nodynamiccruxs,</if> |
| | | <if test="dynamiccruxsJson != null">dynamiccruxs,</if> |
| | | <if test="orderno != null">orderno,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="targetid != null">#{targetid},</if> |
| | |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="nodynamiccruxsJson != null">#{nodynamiccruxsJson},</if> |
| | | <if test="dynamiccruxsJson != null">#{dynamiccruxsJson},</if> |
| | | <if test="orderno != null">#{orderno},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="nodynamiccruxsJson != null">nodynamiccruxs = #{nodynamiccruxsJson},</if> |
| | | <if test="dynamiccruxsJson != null">dynamiccruxs = #{dynamiccruxsJson},</if> |
| | | <if test="orderno != null">orderno = #{orderno},</if> |
| | | </trim> |
| | | where targetoptionid = #{targetoptionid} |
| | | </update> |
| | |
| | | #{targetoptionid} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | <result property="libtemplateid" column="libtemplateid"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="sendTimeSlot" column="send_time_slot"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="stopState" column="stop_state"/> |
| | | <result property="showDate" column="show_date"/> |
| | | <result property="showTimeMorn" column="show_time_morn"/> |
| | |
| | | otherdata, |
| | | script_picture, |
| | | language, |
| | | icd10_name, |
| | | svy_scriptid as svyscriptId |
| | | icd10_name |
| | | from svy_lib_script |
| | | </sql> |
| | | |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="svyscriptId != null">svy_scriptid,</if> |
| | | <if test="categoryid != null">categoryid,</if> |
| | | <if test="scriptContent != null and scriptContent != ''">script_content,</if> |
| | | <if test="suitway != null and suitway != ''">suitway,</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="svyscriptId != null">#{svyscriptId},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | <if test="scriptContent != null and scriptContent != ''">#{scriptContent},</if> |
| | | <if test="suitway != null and suitway != ''">#{suitway},</if> |
| | |
| | | <mapper namespace="com.smartor.mapper.SvyLibScriptOptionMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibScriptOption" id="SvyLibScriptOptionResult"> |
| | | <result property="optionid" column="optionid"/> |
| | | <result property="id" column="id"/> |
| | | <result property="topicid" column="topicid"/> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="topictype" column="topictype"/> |
| | |
| | | <result property="optioncontent" column="optioncontent"/> |
| | | <result property="isexistdetail" column="isexistdetail"/> |
| | | <result property="detailismandatory" column="detailismandatory"/> |
| | | <result property="isexceptionitem" column="isexceptionitem"/> |
| | | <result property="isabnormal" column="isabnormal"/> |
| | | <result property="istrack" column="istrack"/> |
| | | <result property="score" column="score"/> |
| | | <result property="prompt" column="prompt"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptOptionVo"> |
| | | select optionid, |
| | | select id, |
| | | topicid, |
| | | svyid, |
| | | topictype, |
| | |
| | | optioncontent, |
| | | isexistdetail, |
| | | detailismandatory, |
| | | isexceptionitem, |
| | | isabnormal, |
| | | istrack, |
| | | score, |
| | | prompt, |
| | |
| | | <if test="optioncontent != null and optioncontent != ''">and optioncontent = #{optioncontent}</if> |
| | | <if test="isexistdetail != null ">and isexistdetail = #{isexistdetail}</if> |
| | | <if test="detailismandatory != null ">and detailismandatory = #{detailismandatory}</if> |
| | | <if test="isexceptionitem != null ">and isexceptionitem = #{isexceptionitem}</if> |
| | | <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if> |
| | | <if test="istrack != null ">and istrack = #{istrack}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | <if test="prompt != null and prompt != ''">and prompt = #{prompt}</if> |
| | |
| | | |
| | | <select id="selectSvyLibScriptOptionByOptionid" parameterType="Long" resultMap="SvyLibScriptOptionResult"> |
| | | <include refid="selectSvyLibScriptOptionVo"/> |
| | | where optionid = #{optionid} |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibScriptOption" parameterType="com.smartor.domain.SvyLibScriptOption" useGeneratedKeys="true" |
| | | keyProperty="optionid"> |
| | | keyProperty="id"> |
| | | insert into svy_lib_ScriptOption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="topicid != null">topicid,</if> |
| | |
| | | <if test="optioncontent != null">optioncontent,</if> |
| | | <if test="isexistdetail != null">isexistdetail,</if> |
| | | <if test="detailismandatory != null">detailismandatory,</if> |
| | | <if test="isexceptionitem != null">isexceptionitem,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="istrack != null">istrack,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="prompt != null">prompt,</if> |
| | |
| | | <if test="optioncontent != null">#{optioncontent},</if> |
| | | <if test="isexistdetail != null">#{isexistdetail},</if> |
| | | <if test="detailismandatory != null">#{detailismandatory},</if> |
| | | <if test="isexceptionitem != null">#{isexceptionitem},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="istrack != null">#{istrack},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="prompt != null">#{prompt},</if> |
| | |
| | | <if test="optioncontent != null">optioncontent = #{optioncontent},</if> |
| | | <if test="isexistdetail != null">isexistdetail = #{isexistdetail},</if> |
| | | <if test="detailismandatory != null">detailismandatory = #{detailismandatory},</if> |
| | | <if test="isexceptionitem != null">isexceptionitem = #{isexceptionitem},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="istrack != null">istrack = #{istrack},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="prompt != null">prompt = #{prompt},</if> |
| | |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | </trim> |
| | | where optionid = #{optionid} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteSvyLibScriptOptionByOptionid" parameterType="Long"> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | </trim> |
| | | where optionid = #{optionid} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibScriptOptionByOptionids" parameterType="String"> |
| | | delete from svy_lib_ScriptOption where optionid in |
| | | <foreach item="optionid" collection="array" open="(" separator="," close=")"> |
| | | #{optionid} |
| | | delete from svy_lib_ScriptOption where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | |
| | | from svy_lib_template |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTemplateList" parameterType="com.smartor.domain.SvyLibTemplateReq" resultMap="SvyLibTemplateResult"> |
| | | <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, |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTemplateBySvyid" parameterType="Long"> |
| | | delete |
| | | from svy_lib_template |
| | | update svy_lib_template |
| | | set del_flag=1 |
| | | where svyid = #{svyid} |
| | | </delete> |
| | | |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTemplateScriptByTopicid" parameterType="Long"> |
| | | delete |
| | | from svy_lib_template_script |
| | | update svy_lib_template_script |
| | | set del_flag=1 |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTemplateTargetoptionById" parameterType="Long"> |
| | | delete |
| | | from svy_lib_template_targetoption |
| | | update svy_lib_template_targetoption |
| | | set del_flag=1 |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | |
| | | <?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.SvyTaskMapper"> |
| | | |
| | | <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="templateid" column="templateid" /> |
| | | <result property="templatename" column="templatename" /> |
| | | <result property="labelinfo" column="labelinfo" /> |
| | | <result property="state" column="state" /> |
| | | <result property="count" column="count" /> |
| | | <result property="executed" column="executed" /> |
| | | <result property="unexecuted" column="unexecuted" /> |
| | | <result property="fail" column="fail" /> |
| | | <result property="patientid" column="patientid" /> |
| | | <result property="patientname" column="patientname" /> |
| | | <result property="addtime" column="addtime" /> |
| | | <result property="checkuserid" column="checkuserid" /> |
| | | <result property="checkusername" column="checkusername" /> |
| | | <result property="checktime" column="checktime" /> |
| | | <result property="type" column="type" /> |
| | | <result property="typename" column="typename" /> |
| | | <result property="usebqsms" column="usebqsms" /> |
| | | <result property="usebhsms" column="usebhsms" /> |
| | | <result property="usesendsms" column="usesendsms" /> |
| | | <result property="deptcode" column="deptcode" /> |
| | | <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="orgid" column="orgid" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="preachform" column="preachform" /> |
| | | <result property="isSend" column="is_send" /> |
| | | <result property="sendState" column="send_state" /> |
| | | <result property="param" column="param" /> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="svrtaskid" column="svrtaskid"/> |
| | | <result property="taskname" column="taskname"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="templatename" column="templatename"/> |
| | | <result property="labelinfo" column="labelinfo"/> |
| | | <result property="state" column="state"/> |
| | | <result property="count" column="count"/> |
| | | <result property="executed" column="executed"/> |
| | | <result property="unexecuted" column="unexecuted"/> |
| | | <result property="fail" column="fail"/> |
| | | <result property="patientid" column="patientid"/> |
| | | <result property="patientname" column="patientname"/> |
| | | <result property="addtime" column="addtime"/> |
| | | <result property="checkuserid" column="checkuserid"/> |
| | | <result property="checkusername" column="checkusername"/> |
| | | <result property="checktime" column="checktime"/> |
| | | <result property="type" column="type"/> |
| | | <result property="typename" column="typename"/> |
| | | <result property="usebqsms" column="usebqsms"/> |
| | | <result property="usebhsms" column="usebhsms"/> |
| | | <result property="usesendsms" column="usesendsms"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <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="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="preachform" column="preachform"/> |
| | | <result property="isSend" column="is_send"/> |
| | | <result property="sendState" column="send_state"/> |
| | | <result property="param" column="param"/> |
| | | <result property="textParam" column="text_param"/> |
| | | <result property="stopState" column="stop_state"/> |
| | | <result property="showDate" column="show_date"/> |
| | | <result property="showTimeMorn" column="show_time_morn"/> |
| | | <result property="showTimeNoon" column="show_time_noon"/> |
| | | <result property="showTimeNight" column="show_time_night"/> |
| | | <result property="sendTimeSlot" column="send_time_slot"/> |
| | | <result property="libtemplateid" column="libtemplateid"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskVo"> |
| | | select taskid, svrtaskid, taskname, templateid, templatename, labelinfo, state, count, executed, unexecuted, fail, patientid, patientname, addtime, checkuserid, checkusername, checktime, type, typename, usebqsms, usebhsms, usesendsms, deptcode, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, preachform, is_send, send_state, param from svy_task |
| | | select taskid, |
| | | send_time_slot, |
| | | libtemplateid, |
| | | libtemplatename, |
| | | show_date, |
| | | show_time_morn, |
| | | show_time_noon, |
| | | show_time_night, |
| | | stop_state, |
| | | svrtaskid, |
| | | text_param, |
| | | taskname, |
| | | templateid, |
| | | templatename, |
| | | labelinfo, |
| | | state, |
| | | count, |
| | | executed, |
| | | unexecuted, |
| | | fail, |
| | | patientid, |
| | | patientname, |
| | | addtime, |
| | | checkuserid, |
| | | checkusername, |
| | | checktime, |
| | | type, |
| | | typename, |
| | | usebqsms, |
| | | usebhsms, |
| | | usesendsms, |
| | | deptcode, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | pid, |
| | | guid, |
| | | preachform, |
| | | is_send, |
| | | send_state, |
| | | param |
| | | from svy_task |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskList" parameterType="com.smartor.domain.SvyTask" resultMap="SvyTaskResult"> |
| | | <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="templateid != null and templateid != ''"> and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''"> and templatename like concat('%', #{templatename}, '%')</if> |
| | | <if test="labelinfo != null and labelinfo != ''"> and labelinfo = #{labelinfo}</if> |
| | | <if test="state != null "> and state = #{state}</if> |
| | | <if test="count != null "> and count = #{count}</if> |
| | | <if test="executed != null "> and executed = #{executed}</if> |
| | | <if test="unexecuted != null "> and unexecuted = #{unexecuted}</if> |
| | | <if test="fail != null "> and fail = #{fail}</if> |
| | | <if test="patientid != null and patientid != ''"> and patientid = #{patientid}</if> |
| | | <if test="patientname != null and patientname != ''"> and patientname like concat('%', #{patientname}, '%')</if> |
| | | <if test="addtime != null "> and addtime = #{addtime}</if> |
| | | <if test="checkuserid != null and checkuserid != ''"> and checkuserid = #{checkuserid}</if> |
| | | <if test="checkusername != null and checkusername != ''"> and checkusername like concat('%', #{checkusername}, '%')</if> |
| | | <if test="checktime != null "> and checktime = #{checktime}</if> |
| | | <if test="type != null and type != ''"> and type = #{type}</if> |
| | | <if test="typename != null and typename != ''"> and typename like concat('%', #{typename}, '%')</if> |
| | | <if test="usebqsms != null "> and usebqsms = #{usebqsms}</if> |
| | | <if test="usebhsms != null "> and usebhsms = #{usebhsms}</if> |
| | | <if test="usesendsms != null "> and usesendsms = #{usesendsms}</if> |
| | | <if test="deptcode != null and deptcode != ''"> and deptcode = #{deptcode}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="preachform != null and preachform != ''"> and preachform = #{preachform}</if> |
| | | <if test="isSend != null "> and is_send = #{isSend}</if> |
| | | <if test="sendState != null and sendState != ''"> and send_state = #{sendState}</if> |
| | | <if test="param != null and param != ''"> and param = #{param}</if> |
| | | <if test="svrtaskid != null ">and svrtaskid = #{svrtaskid}</if> |
| | | <if test="taskname != null and taskname != ''">and taskname 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}, |
| | | '%') |
| | | </if> |
| | | <if test="labelinfo != null and labelinfo != ''">and labelinfo = #{labelinfo}</if> |
| | | <if test="state != null ">and state = #{state}</if> |
| | | <if test="count != null ">and count = #{count}</if> |
| | | <if test="executed != null ">and executed = #{executed}</if> |
| | | <if test="unexecuted != null ">and unexecuted = #{unexecuted}</if> |
| | | <if test="fail != null ">and fail = #{fail}</if> |
| | | <if test="patientid != null and patientid != ''">and patientid = #{patientid}</if> |
| | | <if test="patientname != null and patientname != ''">and patientname like concat('%', #{patientname}, |
| | | '%') |
| | | </if> |
| | | <if test="addtime != null ">and addtime = #{addtime}</if> |
| | | <if test="checkuserid != null and checkuserid != ''">and checkuserid = #{checkuserid}</if> |
| | | <if test="checkusername != null and checkusername != ''">and checkusername like concat('%', |
| | | #{checkusername}, '%') |
| | | </if> |
| | | <if test="checktime != null ">and checktime = #{checktime}</if> |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | | <if test="typename != null and typename != ''">and typename like concat('%', #{typename}, '%')</if> |
| | | <if test="usebqsms != null ">and usebqsms = #{usebqsms}</if> |
| | | <if test="usebhsms != null ">and usebhsms = #{usebhsms}</if> |
| | | <if test="usesendsms != null ">and usesendsms = #{usesendsms}</if> |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="preachform != null and preachform != ''">and preachform = #{preachform}</if> |
| | | <if test="isSend != null ">and is_send = #{isSend}</if> |
| | | <if test="sendState != null and sendState != ''">and send_state = #{sendState}</if> |
| | | <if test="param != null and param != ''">and param = #{param}</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and send_time_slot like concat('%', #{sendTimeSlot}, |
| | | '%') |
| | | </if> |
| | | <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="isSend != null">is_send,</if> |
| | | <if test="sendState != null">send_state,</if> |
| | | <if test="param != null">param,</if> |
| | | </trim> |
| | | <if test="textParam != null">text_param,</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">send_time_slot,</if> |
| | | <if test="stopState != null">stop_state,</if> |
| | | <if test="showDate != null and showDate != ''">show_date,</if> |
| | | <if test="showTimeNight != null and showTimeNight != ''">show_time_night,</if> |
| | | <if test="showTimeNoon != null and showTimeNoon != ''">show_time_noon,</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> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="svrtaskid != null">#{svrtaskid},</if> |
| | | <if test="taskname != null">#{taskname},</if> |
| | |
| | | <if test="isSend != null">#{isSend},</if> |
| | | <if test="sendState != null">#{sendState},</if> |
| | | <if test="param != null">#{param},</if> |
| | | </trim> |
| | | <if test="textParam != null">#{textParam},</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">#{sendTimeSlot},</if> |
| | | <if test="stopState != null">#{stopState},</if> |
| | | <if test="showDate != null and showDate != ''">#{showDate},</if> |
| | | <if test="showTimeNight != null and showTimeNight != ''">#{showTimeNight},</if> |
| | | <if test="showTimeNoon != null and showTimeNoon != ''">#{showTimeNoon},</if> |
| | | <if test="showTimeMorn != null and showTimeMorn != ''">#{showTimeMorn},</if> |
| | | <if test="libtemplateid != null ">#{libtemplateid},</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">#{libtemplatename},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyTask" parameterType="com.smartor.domain.SvyTask"> |
| | |
| | | <if test="isSend != null">is_send = #{isSend},</if> |
| | | <if test="sendState != null">send_state = #{sendState},</if> |
| | | <if test="param != null">param = #{param},</if> |
| | | <if test="textParam != null">text_param = #{textParam},</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">send_time_slot=#{sendTimeSlot},</if> |
| | | <if test="stopState != null ">stop_state=#{stopState},</if> |
| | | <if test="showDate != null and showDate != ''">show_date=#{showDate},</if> |
| | | <if test="showTimeNight != null and showTimeNight != ''">show_time_night=#{showTimeNight},</if> |
| | | <if test="showTimeNoon != null and showTimeNoon != ''">show_time_noon=#{showTimeNoon},</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> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskByTaskid" parameterType="Long"> |
| | | delete from svy_task where taskid = #{taskid} |
| | | delete |
| | | from svy_task |
| | | where taskid = #{taskid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskByTaskids" parameterType="String"> |
| | |
| | | <result property="admindate" column="admindate"/> |
| | | <result property="roomno" column="roomno"/> |
| | | <result property="bedno" column="bedno"/> |
| | | <result property="patid" column="patid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskSingleVo"> |
| | | select id, |
| | | sendname, |
| | | patid, |
| | | phone, |
| | | sex, |
| | | age, |
| | |
| | | <if test="admindate != null ">and admindate = #{admindate}</if> |
| | | <if test="roomno != null and roomno != ''">and roomno = #{roomno}</if> |
| | | <if test="bedno != null and bedno != ''">and bedno = #{bedno}</if> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="admindate != null">admindate,</if> |
| | | <if test="roomno != null">roomno,</if> |
| | | <if test="bedno != null">bedno,</if> |
| | | <if test="patid != null">patid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="sendname != null">#{sendname},</if> |
| | |
| | | <if test="admindate != null">#{admindate},</if> |
| | | <if test="roomno != null">#{roomno},</if> |
| | | <if test="bedno != null">#{bedno},</if> |
| | | <if test="patid != null">#{patid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="admindate != null">admindate = #{admindate},</if> |
| | | <if test="roomno != null">roomno = #{roomno},</if> |
| | | <if test="bedno != null">bedno = #{bedno},</if> |
| | | <if test="patid != null">patid = #{patid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="deleteSvyTaskcallByCondition" > |
| | | update svy_task_single |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where patid = #{patid} and taskid = #{taskid} |
| | | </update> |
| | | </mapper> |
| | |
| | | <mapper namespace="com.smartor.mapper.SvyTaskTemplateMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyTaskTemplate" id="SvyTaskTemplateResult"> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="id" column="id"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="svycode" column="svycode"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateVo"> |
| | | select svyid, |
| | | select id, |
| | | templateid, |
| | | categoryid, |
| | | svycode, |
| | |
| | | |
| | | <select id="selectSvyTaskTemplateBySvyid" parameterType="Long" resultMap="SvyTaskTemplateResult"> |
| | | <include refid="selectSvyTaskTemplateVo"/> |
| | | where svyid = #{svyid} |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTaskTemplate" parameterType="com.smartor.domain.SvyTaskTemplate" useGeneratedKeys="true" |
| | | keyProperty="svyid"> |
| | | keyProperty="id"> |
| | | insert into svy_task_template |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateid != null">templateid,</if> |
| | |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | </trim> |
| | | where svyid = #{svyid} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskTemplateBySvyid" parameterType="Long"> |
| | | delete |
| | | from svy_task_template |
| | | where svyid = #{svyid} |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskTemplateBySvyids" parameterType="String"> |
| | | delete from svy_task_template where svyid in |
| | | <foreach item="svyid" collection="array" open="(" separator="," close=")"> |
| | | #{svyid} |
| | | delete from svy_task_template 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.SvyTaskTemplateScriptMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyTaskTemplateScript" id="SvyTaskTemplateScriptResult"> |
| | | <result property="ID" column="ID" /> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="templateQuestionNum" column="templateQuestionNum" /> |
| | | <result property="templateID" column="templateID" /> |
| | | <result property="scriptID" column="scriptID" /> |
| | | <result property="questiontitle" column="questiontitle" /> |
| | | <result property="language" column="language" /> |
| | | <result property="categoryName" column="categoryName" /> |
| | | <result property="questionPoint" column="questionPoint" /> |
| | | <result property="questionText" column="questionText" /> |
| | | <result property="questionVoice" column="questionVoice" /> |
| | | <result property="noMatchText" column="noMatchText" /> |
| | | <result property="noMatchVoice" column="noMatchVoice" /> |
| | | <result property="slienceText" column="slienceText" /> |
| | | <result property="slienceVoice" column="slienceVoice" /> |
| | | <result property="submoduleText" column="submoduleText" /> |
| | | <result property="submoduleVoice" column="submoduleVoice" /> |
| | | <result property="noClearlyText" column="noClearlyText" /> |
| | | <result property="noClearlyVoice" column="noClearlyVoice" /> |
| | | <result property="isMust" column="is_must" /> |
| | | <result property="playWavOnly" column="playWavOnly" /> |
| | | <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="orgid" column="orgid" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="valueType" column="value_type" /> |
| | | <result property="targetOptions" column="targetOptions" /> |
| | | <result property="targettype" column="targettype" /> |
| | | <result property="targetid" column="targetid" /> |
| | | <result property="targetvalue" column="targetvalue" /> |
| | | <result property="nextQuestion" column="next_question" /> |
| | | <result property="questionResult" column="question_result" /> |
| | | <result property="otherdata" column="otherdata" /> |
| | | <result property="picturePath" column="picture_path" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateScriptVo"> |
| | | select ID, taskid, templateQuestionNum, templateID, scriptID, questiontitle, language, categoryName, questionPoint, questionText, questionVoice, noMatchText, noMatchVoice, slienceText, slienceVoice, submoduleText, submoduleVoice, noClearlyText, noClearlyVoice, is_must, playWavOnly, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, value_type, targetOptions, targettype, targetid, targetvalue, next_question, question_result, otherdata, picture_path from svy_task_template_script |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskTemplateScriptList" parameterType="com.smartor.domain.SvyTaskTemplateScript" resultMap="SvyTaskTemplateScriptResult"> |
| | | <include refid="selectSvyTaskTemplateScriptVo"/> |
| | | <where> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | | <if test="templateQuestionNum != null "> and templateQuestionNum = #{templateQuestionNum}</if> |
| | | <if test="templateID != null "> and templateID = #{templateID}</if> |
| | | <if test="scriptID != null "> and scriptID = #{scriptID}</if> |
| | | <if test="questiontitle != null and questiontitle != ''"> and questiontitle = #{questiontitle}</if> |
| | | <if test="language != null and language != ''"> and language = #{language}</if> |
| | | <if test="categoryName != null and categoryName != ''"> and categoryName like concat('%', #{categoryName}, '%')</if> |
| | | <if test="questionPoint != null and questionPoint != ''"> and questionPoint = #{questionPoint}</if> |
| | | <if test="questionText != null and questionText != ''"> and questionText = #{questionText}</if> |
| | | <if test="questionVoice != null and questionVoice != ''"> and questionVoice = #{questionVoice}</if> |
| | | <if test="noMatchText != null and noMatchText != ''"> and noMatchText = #{noMatchText}</if> |
| | | <if test="noMatchVoice != null and noMatchVoice != ''"> and noMatchVoice = #{noMatchVoice}</if> |
| | | <if test="slienceText != null and slienceText != ''"> and slienceText = #{slienceText}</if> |
| | | <if test="slienceVoice != null and slienceVoice != ''"> and slienceVoice = #{slienceVoice}</if> |
| | | <if test="submoduleText != null and submoduleText != ''"> and submoduleText = #{submoduleText}</if> |
| | | <if test="submoduleVoice != null and submoduleVoice != ''"> and submoduleVoice = #{submoduleVoice}</if> |
| | | <if test="noClearlyText != null and noClearlyText != ''"> and noClearlyText = #{noClearlyText}</if> |
| | | <if test="noClearlyVoice != null and noClearlyVoice != ''"> and noClearlyVoice = #{noClearlyVoice}</if> |
| | | <if test="isMust != null and isMust != ''"> and is_must = #{isMust}</if> |
| | | <if test="playWavOnly != null "> and playWavOnly = #{playWavOnly}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="valueType != null "> and value_type = #{valueType}</if> |
| | | <if test="targetOptions != null and targetOptions != ''"> and targetOptions = #{targetOptions}</if> |
| | | <if test="targettype != null and targettype != ''"> and targettype = #{targettype}</if> |
| | | <if test="targetid != null "> and targetid = #{targetid}</if> |
| | | <if test="targetvalue != null and targetvalue != ''"> and targetvalue = #{targetvalue}</if> |
| | | <if test="nextQuestion != null "> and next_question = #{nextQuestion}</if> |
| | | <if test="questionResult != null and questionResult != ''"> and question_result = #{questionResult}</if> |
| | | <if test="otherdata != null and otherdata != ''"> and otherdata = #{otherdata}</if> |
| | | <if test="picturePath != null and picturePath != ''"> and picture_path = #{picturePath}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskTemplateScriptByID" parameterType="Long" resultMap="SvyTaskTemplateScriptResult"> |
| | | <include refid="selectSvyTaskTemplateScriptVo"/> |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTaskTemplateScript" parameterType="com.smartor.domain.SvyTaskTemplateScript" useGeneratedKeys="true" keyProperty="ID"> |
| | | insert into svy_task_template_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="templateQuestionNum != null">templateQuestionNum,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="scriptID != null">scriptID,</if> |
| | | <if test="questiontitle != null">questiontitle,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="questionPoint != null">questionPoint,</if> |
| | | <if test="questionText != null">questionText,</if> |
| | | <if test="questionVoice != null">questionVoice,</if> |
| | | <if test="noMatchText != null">noMatchText,</if> |
| | | <if test="noMatchVoice != null">noMatchVoice,</if> |
| | | <if test="slienceText != null">slienceText,</if> |
| | | <if test="slienceVoice != null">slienceVoice,</if> |
| | | <if test="submoduleText != null">submoduleText,</if> |
| | | <if test="submoduleVoice != null">submoduleVoice,</if> |
| | | <if test="noClearlyText != null">noClearlyText,</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice,</if> |
| | | <if test="isMust != null">is_must,</if> |
| | | <if test="playWavOnly != null">playWavOnly,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="targetOptions != null">targetOptions,</if> |
| | | <if test="targettype != null">targettype,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetvalue != null">targetvalue,</if> |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | <if test="questionResult != null">question_result,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="templateQuestionNum != null">#{templateQuestionNum},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="scriptID != null">#{scriptID},</if> |
| | | <if test="questiontitle != null">#{questiontitle},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="questionPoint != null">#{questionPoint},</if> |
| | | <if test="questionText != null">#{questionText},</if> |
| | | <if test="questionVoice != null">#{questionVoice},</if> |
| | | <if test="noMatchText != null">#{noMatchText},</if> |
| | | <if test="noMatchVoice != null">#{noMatchVoice},</if> |
| | | <if test="slienceText != null">#{slienceText},</if> |
| | | <if test="slienceVoice != null">#{slienceVoice},</if> |
| | | <if test="submoduleText != null">#{submoduleText},</if> |
| | | <if test="submoduleVoice != null">#{submoduleVoice},</if> |
| | | <if test="noClearlyText != null">#{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">#{noClearlyVoice},</if> |
| | | <if test="isMust != null">#{isMust},</if> |
| | | <if test="playWavOnly != null">#{playWavOnly},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="targetOptions != null">#{targetOptions},</if> |
| | | <if test="targettype != null">#{targettype},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="targetvalue != null">#{targetvalue},</if> |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | <if test="questionResult != null">#{questionResult},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyTaskTemplateScript" parameterType="com.smartor.domain.SvyTaskTemplateScript"> |
| | | update svy_task_template_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="templateQuestionNum != null">templateQuestionNum = #{templateQuestionNum},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="scriptID != null">scriptID = #{scriptID},</if> |
| | | <if test="questiontitle != null">questiontitle = #{questiontitle},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="questionPoint != null">questionPoint = #{questionPoint},</if> |
| | | <if test="questionText != null">questionText = #{questionText},</if> |
| | | <if test="questionVoice != null">questionVoice = #{questionVoice},</if> |
| | | <if test="noMatchText != null">noMatchText = #{noMatchText},</if> |
| | | <if test="noMatchVoice != null">noMatchVoice = #{noMatchVoice},</if> |
| | | <if test="slienceText != null">slienceText = #{slienceText},</if> |
| | | <if test="slienceVoice != null">slienceVoice = #{slienceVoice},</if> |
| | | <if test="submoduleText != null">submoduleText = #{submoduleText},</if> |
| | | <if test="submoduleVoice != null">submoduleVoice = #{submoduleVoice},</if> |
| | | <if test="noClearlyText != null">noClearlyText = #{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice = #{noClearlyVoice},</if> |
| | | <if test="isMust != null">is_must = #{isMust},</if> |
| | | <if test="playWavOnly != null">playWavOnly = #{playWavOnly},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="targetOptions != null">targetOptions = #{targetOptions},</if> |
| | | <if test="targettype != null">targettype = #{targettype},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | <if test="questionResult != null">question_result = #{questionResult},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskTemplateScriptByID" parameterType="Long"> |
| | | delete from svy_task_template_script where ID = #{ID} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskTemplateScriptByIDs" parameterType="String"> |
| | | delete from svy_task_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.SvyTaskTemplateTargetoptionMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyTaskTemplateTargetoption" id="SvyTaskTemplateTargetoptionResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="templateID" column="templateID" /> |
| | | <result property="targetid" column="targetid" /> |
| | | <result property="targetname" column="targetname" /> |
| | | <result property="targettype" column="targettype" /> |
| | | <result property="categoryName" column="categoryName" /> |
| | | <result property="targetvalue" column="targetvalue" /> |
| | | <result property="targetregex2" column="targetregex2" /> |
| | | <result property="targetregex" column="targetregex" /> |
| | | <result property="optiondesc" column="optiondesc" /> |
| | | <result property="language" column="language" /> |
| | | <result property="version" column="version" /> |
| | | <result property="groupid" column="groupid" /> |
| | | <result property="isabnormal" column="isabnormal" /> |
| | | <result property="warnup" column="warnup" /> |
| | | <result property="warndown" column="warndown" /> |
| | | <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="orgid" column="orgid" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="scriptid" column="scriptid" /> |
| | | <result property="nodynamiccruxsJson" column="nodynamiccruxs" /> |
| | | <result property="dynamiccruxsJson" column="dynamiccruxs" /> |
| | | <result property="nextQuestion" column="next_question" /> |
| | | <result property="picturePath" column="picture_path" /> |
| | | </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 |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskTemplateTargetoptionList" parameterType="SvyTaskTemplateTargetoption" resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <include refid="selectSvyTaskTemplateTargetoptionVo"/> |
| | | <where> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | | <if test="templateID != null "> and templateID = #{templateID}</if> |
| | | <if test="targetid != null "> and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''"> and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="targettype != null and targettype != ''"> and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''"> and categoryName like concat('%', #{categoryName}, '%')</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="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="isabnormal != null "> and isabnormal = #{isabnormal}</if> |
| | | <if test="warnup != null "> and warnup = #{warnup}</if> |
| | | <if test="warndown != null "> and warndown = #{warndown}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="scriptid != null "> and scriptid = #{scriptid}</if> |
| | | <if test="nodynamiccruxs != null and nodynamiccruxs != ''"> and nodynamiccruxs = #{nodynamiccruxsJson}</if> |
| | | <if test="dynamiccruxs != null and dynamiccruxs != ''"> and dynamiccruxs = #{dynamiccruxsJson}</if> |
| | | <if test="nextQuestion != null "> and next_question = #{nextQuestion}</if> |
| | | <if test="picturePath != null and picturePath != ''"> and picture_path = #{picturePath}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskTemplateTargetoptionById" parameterType="Long" resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <include refid="selectSvyTaskTemplateTargetoptionVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTaskTemplateTargetoption" parameterType="com.smartor.domain.SvyTaskTemplateTargetoption" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_task_template_targetoption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetname != null">targetname,</if> |
| | | <if test="targettype != null">targettype,</if> |
| | | <if test="categoryName != null">categoryName,</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="language != null">language,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="groupid != null">groupid,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="warnup != null">warnup,</if> |
| | | <if test="warndown != null">warndown,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="scriptid != null">scriptid,</if> |
| | | <if test="nodynamiccruxs != null">nodynamiccruxs,</if> |
| | | <if test="dynamiccruxs != null">dynamiccruxs,</if> |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="targetname != null">#{targetname},</if> |
| | | <if test="targettype != null">#{targettype},</if> |
| | | <if test="categoryName != null">#{categoryName},</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="language != null">#{language},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="groupid != null">#{groupid},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="warnup != null">#{warnup},</if> |
| | | <if test="warndown != null">#{warndown},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="scriptid != null">#{scriptid},</if> |
| | | <if test="nodynamiccruxs != null">#{nodynamiccruxsJson},</if> |
| | | <if test="dynamiccruxs != null">#{dynamiccruxsJson},</if> |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyTaskTemplateTargetoption" parameterType="com.smartor.domain.SvyTaskTemplateTargetoption"> |
| | | update svy_task_template_targetoption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="targetname != null">targetname = #{targetname},</if> |
| | | <if test="targettype != null">targettype = #{targettype},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</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="language != null">language = #{language},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="groupid != null">groupid = #{groupid},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="warnup != null">warnup = #{warnup},</if> |
| | | <if test="warndown != null">warndown = #{warndown},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="scriptid != null">scriptid = #{scriptid},</if> |
| | | <if test="nodynamiccruxs != null">nodynamiccruxs = #{nodynamiccruxsJson},</if> |
| | | <if test="dynamiccruxs != null">dynamiccruxs = #{dynamiccruxsJson},</if> |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskTemplateTargetoptionById" parameterType="Long"> |
| | | delete from svy_task_template_targetoption where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskTemplateTargetoptionByIds" parameterType="String"> |
| | | delete from svy_task_template_targetoption 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.SvyTasksingledetailMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyTasksingledetail" id="SvyTasksingledetailResult"> |
| | | <result property="calldetailid" column="calldetailid" /> |
| | | <result property="callid" column="callid" /> |
| | | <result property="uuid" column="uuid" /> |
| | | <result property="phone" column="phone" /> |
| | | <result property="displayno" column="displayno" /> |
| | | <result property="operate" column="operate" /> |
| | | <result property="inbound" column="inbound" /> |
| | | <result property="incoming" column="incoming" /> |
| | | <result property="assigntime" column="assigntime" /> |
| | | <result property="starttime" column="starttime" /> |
| | | <result property="answertime" column="answertime" /> |
| | | <result property="silent" column="silent" /> |
| | | <result property="dtmfKey" column="dtmf_key" /> |
| | | <result property="musicpath" column="musicpath" /> |
| | | <result property="sentIndex" column="sent_index" /> |
| | | <result property="sentBegin" column="sent_begin" /> |
| | | <result property="asrtext" column="asrtext" /> |
| | | <result property="beginTime" column="begin_time" /> |
| | | <result property="endTime" column="end_time" /> |
| | | <result property="sentEnd" column="sent_end" /> |
| | | <result property="recordpath" column="recordpath" /> |
| | | <result property="recordurl" column="recordurl" /> |
| | | <result property="templateid" column="templateid" /> |
| | | <result property="templatequestionnum" column="templatequestionnum" /> |
| | | <result property="switchid" column="switchid" /> |
| | | <result property="questiontext" column="questiontext" /> |
| | | <result property="questionvoice" column="questionvoice" /> |
| | | <result property="categoryname" column="categoryname" /> |
| | | <result property="targetoptions" column="targetoptions" /> |
| | | <result property="targetvalue" column="targetvalue" /> |
| | | <result property="matchedtext" column="matchedtext" /> |
| | | <result property="addtime" column="addtime" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="valueType" column="value_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTasksingledetailVo"> |
| | | select calldetailid, callid, uuid, phone, displayno, operate, inbound, incoming, assigntime, starttime, answertime, silent, dtmf_key, musicpath, sent_index, sent_begin, asrtext, begin_time, end_time, sent_end, recordpath, recordurl, templateid, templatequestionnum, switchid, questiontext, questionvoice, categoryname, targetoptions, targetvalue, matchedtext, addtime, isupload, upload_time, orgid, create_time, del_flag, update_by, update_time, create_by, pid, guid, value_type from svy_tasksingledetail |
| | | </sql> |
| | | |
| | | <select id="selectSvyTasksingledetailList" parameterType="com.smartor.domain.SvyTasksingledetail" resultMap="SvyTasksingledetailResult"> |
| | | <include refid="selectSvyTasksingledetailVo"/> |
| | | <where> |
| | | <if test="callid != null and callid != ''"> and callid = #{callid}</if> |
| | | <if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''"> and phone = #{phone}</if> |
| | | <if test="displayno != null and displayno != ''"> and displayno = #{displayno}</if> |
| | | <if test="operate != null and operate != ''"> and operate = #{operate}</if> |
| | | <if test="inbound != null "> and inbound = #{inbound}</if> |
| | | <if test="incoming != null "> and incoming = #{incoming}</if> |
| | | <if test="assigntime != null "> and assigntime = #{assigntime}</if> |
| | | <if test="starttime != null "> and starttime = #{starttime}</if> |
| | | <if test="answertime != null "> and answertime = #{answertime}</if> |
| | | <if test="silent != null "> and silent = #{silent}</if> |
| | | <if test="dtmfKey != null and dtmfKey != ''"> and dtmf_key = #{dtmfKey}</if> |
| | | <if test="musicpath != null and musicpath != ''"> and musicpath = #{musicpath}</if> |
| | | <if test="sentIndex != null "> and sent_index = #{sentIndex}</if> |
| | | <if test="sentBegin != null "> and sent_begin = #{sentBegin}</if> |
| | | <if test="asrtext != null and asrtext != ''"> and asrtext = #{asrtext}</if> |
| | | <if test="beginTime != null "> and begin_time = #{beginTime}</if> |
| | | <if test="endTime != null "> and end_time = #{endTime}</if> |
| | | <if test="sentEnd != null "> and sent_end = #{sentEnd}</if> |
| | | <if test="recordpath != null and recordpath != ''"> and recordpath = #{recordpath}</if> |
| | | <if test="recordurl != null and recordurl != ''"> and recordurl = #{recordurl}</if> |
| | | <if test="templateid != null and templateid != ''"> and templateid = #{templateid}</if> |
| | | <if test="templatequestionnum != null "> and templatequestionnum = #{templatequestionnum}</if> |
| | | <if test="switchid != null "> and switchid = #{switchid}</if> |
| | | <if test="questiontext != null and questiontext != ''"> and questiontext = #{questiontext}</if> |
| | | <if test="questionvoice != null and questionvoice != ''"> and questionvoice = #{questionvoice}</if> |
| | | <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> |
| | | <if test="targetoptions != null and targetoptions != ''"> and targetoptions = #{targetoptions}</if> |
| | | <if test="targetvalue != null and targetvalue != ''"> and targetvalue = #{targetvalue}</if> |
| | | <if test="matchedtext != null and matchedtext != ''"> and matchedtext = #{matchedtext}</if> |
| | | <if test="addtime != null "> and addtime = #{addtime}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="valueType != null and valueType != ''"> and value_type = #{valueType}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyTasksingledetailByCalldetailid" parameterType="String" resultMap="SvyTasksingledetailResult"> |
| | | <include refid="selectSvyTasksingledetailVo"/> |
| | | where calldetailid = #{calldetailid} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTasksingledetail" parameterType="com.smartor.domain.SvyTasksingledetail"> |
| | | insert into svy_tasksingledetail |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="calldetailid != null">calldetailid,</if> |
| | | <if test="callid != null">callid,</if> |
| | | <if test="uuid != null">uuid,</if> |
| | | <if test="phone != null">phone,</if> |
| | | <if test="displayno != null">displayno,</if> |
| | | <if test="operate != null">operate,</if> |
| | | <if test="inbound != null">inbound,</if> |
| | | <if test="incoming != null">incoming,</if> |
| | | <if test="assigntime != null">assigntime,</if> |
| | | <if test="starttime != null">starttime,</if> |
| | | <if test="answertime != null">answertime,</if> |
| | | <if test="silent != null">silent,</if> |
| | | <if test="dtmfKey != null">dtmf_key,</if> |
| | | <if test="musicpath != null">musicpath,</if> |
| | | <if test="sentIndex != null">sent_index,</if> |
| | | <if test="sentBegin != null">sent_begin,</if> |
| | | <if test="asrtext != null">asrtext,</if> |
| | | <if test="beginTime != null">begin_time,</if> |
| | | <if test="endTime != null">end_time,</if> |
| | | <if test="sentEnd != null">sent_end,</if> |
| | | <if test="recordpath != null">recordpath,</if> |
| | | <if test="recordurl != null">recordurl,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="templatequestionnum != null">templatequestionnum,</if> |
| | | <if test="switchid != null">switchid,</if> |
| | | <if test="questiontext != null">questiontext,</if> |
| | | <if test="questionvoice != null">questionvoice,</if> |
| | | <if test="categoryname != null">categoryname,</if> |
| | | <if test="targetoptions != null">targetoptions,</if> |
| | | <if test="targetvalue != null">targetvalue,</if> |
| | | <if test="matchedtext != null">matchedtext,</if> |
| | | <if test="addtime != null">addtime,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</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="uuid != null">#{uuid},</if> |
| | | <if test="phone != null">#{phone},</if> |
| | | <if test="displayno != null">#{displayno},</if> |
| | | <if test="operate != null">#{operate},</if> |
| | | <if test="inbound != null">#{inbound},</if> |
| | | <if test="incoming != null">#{incoming},</if> |
| | | <if test="assigntime != null">#{assigntime},</if> |
| | | <if test="starttime != null">#{starttime},</if> |
| | | <if test="answertime != null">#{answertime},</if> |
| | | <if test="silent != null">#{silent},</if> |
| | | <if test="dtmfKey != null">#{dtmfKey},</if> |
| | | <if test="musicpath != null">#{musicpath},</if> |
| | | <if test="sentIndex != null">#{sentIndex},</if> |
| | | <if test="sentBegin != null">#{sentBegin},</if> |
| | | <if test="asrtext != null">#{asrtext},</if> |
| | | <if test="beginTime != null">#{beginTime},</if> |
| | | <if test="endTime != null">#{endTime},</if> |
| | | <if test="sentEnd != null">#{sentEnd},</if> |
| | | <if test="recordpath != null">#{recordpath},</if> |
| | | <if test="recordurl != null">#{recordurl},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="templatequestionnum != null">#{templatequestionnum},</if> |
| | | <if test="switchid != null">#{switchid},</if> |
| | | <if test="questiontext != null">#{questiontext},</if> |
| | | <if test="questionvoice != null">#{questionvoice},</if> |
| | | <if test="categoryname != null">#{categoryname},</if> |
| | | <if test="targetoptions != null">#{targetoptions},</if> |
| | | <if test="targetvalue != null">#{targetvalue},</if> |
| | | <if test="matchedtext != null">#{matchedtext},</if> |
| | | <if test="addtime != null">#{addtime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyTasksingledetail" parameterType="com.smartor.domain.SvyTasksingledetail"> |
| | | update svy_tasksingledetail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="callid != null">callid = #{callid},</if> |
| | | <if test="uuid != null">uuid = #{uuid},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="displayno != null">displayno = #{displayno},</if> |
| | | <if test="operate != null">operate = #{operate},</if> |
| | | <if test="inbound != null">inbound = #{inbound},</if> |
| | | <if test="incoming != null">incoming = #{incoming},</if> |
| | | <if test="assigntime != null">assigntime = #{assigntime},</if> |
| | | <if test="starttime != null">starttime = #{starttime},</if> |
| | | <if test="answertime != null">answertime = #{answertime},</if> |
| | | <if test="silent != null">silent = #{silent},</if> |
| | | <if test="dtmfKey != null">dtmf_key = #{dtmfKey},</if> |
| | | <if test="musicpath != null">musicpath = #{musicpath},</if> |
| | | <if test="sentIndex != null">sent_index = #{sentIndex},</if> |
| | | <if test="sentBegin != null">sent_begin = #{sentBegin},</if> |
| | | <if test="asrtext != null">asrtext = #{asrtext},</if> |
| | | <if test="beginTime != null">begin_time = #{beginTime},</if> |
| | | <if test="endTime != null">end_time = #{endTime},</if> |
| | | <if test="sentEnd != null">sent_end = #{sentEnd},</if> |
| | | <if test="recordpath != null">recordpath = #{recordpath},</if> |
| | | <if test="recordurl != null">recordurl = #{recordurl},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="templatequestionnum != null">templatequestionnum = #{templatequestionnum},</if> |
| | | <if test="switchid != null">switchid = #{switchid},</if> |
| | | <if test="questiontext != null">questiontext = #{questiontext},</if> |
| | | <if test="questionvoice != null">questionvoice = #{questionvoice},</if> |
| | | <if test="categoryname != null">categoryname = #{categoryname},</if> |
| | | <if test="targetoptions != null">targetoptions = #{targetoptions},</if> |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="matchedtext != null">matchedtext = #{matchedtext},</if> |
| | | <if test="addtime != null">addtime = #{addtime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | </trim> |
| | | where calldetailid = #{calldetailid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTasksingledetailByCalldetailid" parameterType="String"> |
| | | delete from svy_tasksingledetail where calldetailid = #{calldetailid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTasksingledetailByCalldetailids" parameterType="String"> |
| | | delete from svy_tasksingledetail where calldetailid in |
| | | <foreach item="calldetailid" collection="array" open="(" separator="," close=")"> |
| | | #{calldetailid} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |