| | |
| | | /** |
| | | * å é¤å®£æèµæåº |
| | | */ |
| | | @ApiOperation("å é¤å®£æèµæåº") |
| | | @PreAuthorize("@ss.hasPermi('system:library:remove')") |
| | | @Log(title = "宣æèµæåº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(heLibraryService.deleteHeLibraryByIds(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.HeTask; |
| | | import com.smartor.domain.HeTaskVO; |
| | | import com.smartor.domain.PatArchiveReq; |
| | | import com.smartor.domain.PatHetaskRelevanceVO; |
| | | import com.smartor.service.IHeTaskService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 宣æä»»å¡Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Api(description = "宣æä»»å¡") |
| | | @RestController |
| | | @RequestMapping("/smartor/hetask") |
| | | public class HeTaskController extends BaseController { |
| | | @Autowired |
| | | private IHeTaskService heTaskService; |
| | | |
| | | /** |
| | | * æ¥è¯¢å®£æä»»å¡å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
宣æä»»å¡å表") |
| | | @PreAuthorize("@ss.hasPermi('system:task:list')") |
| | | @PostMapping("/getPatHeTaskList") |
| | | public TableDataInfo getPatHeTaskList(@RequestBody PatHetaskRelevanceVO patHetaskRelevanceVO) { |
| | | startPage(); |
| | | List<PatHetaskRelevanceVO> list = heTaskService.selectHeTaskList(patHetaskRelevanceVO); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | // /** |
| | | // * 导åºå®£æä»»å¡å表 |
| | | // */ |
| | | // @PreAuthorize("@ss.hasPermi('system:task:export')") |
| | | // @Log(title = "宣æä»»å¡", businessType = BusinessType.EXPORT) |
| | | // @PostMapping("/export") |
| | | // public void export(HttpServletResponse response, HeTask heTask) { |
| | | // List<HeTask> list = heTaskService.selectHeTaskList(heTask); |
| | | // ExcelUtil<HeTask> util = new ExcelUtil<HeTask>(HeTask.class); |
| | | // util.exportExcel(response, list, "宣æä»»å¡æ°æ®"); |
| | | // } |
| | | |
| | | /** |
| | | * è·å宣æä»»å¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·å宣æä»»å¡è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:task:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(heTaskService.selectHeTaskById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å®£æä»»å¡ |
| | | */ |
| | | @ApiOperation("æ°å¢å®£æä»»å¡(åéä»»å¡)") |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "宣æä»»å¡", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeTaskVO heTaskVO) { |
| | | return toAjax(heTaskService.insertHeTask(heTaskVO)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å®£æä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:task:edit')") |
| | | @Log(title = "宣æä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeTask heTask) { |
| | | return toAjax(heTaskService.updateHeTask(heTask)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å®£æä»»å¡ |
| | | */ |
| | | @ApiOperation("å é¤å®£æä»»å¡") |
| | | @PreAuthorize("@ss.hasPermi('system:task:remove')") |
| | | @Log(title = "宣æä»»å¡", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(heTaskService.deleteHeTaskByIds(ids)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·åæ£è
ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
ä¿¡æ¯") |
| | | @PostMapping("/getPatientInfo") |
| | | public TableDataInfo getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) { |
| | | return getDataTable(heTaskService.getPatientInfo(patArchiveReq)); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.IvrLibaTarget; |
| | | import com.smartor.domain.IvrLibaTargetAssort; |
| | | import com.smartor.domain.IvrLibaTargetVO; |
| | | import com.smartor.service.IIvrLibaTargetService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | } |
| | | |
| | | /** |
| | | * è·åææ ä¿¡æ¯éè¿targetID |
| | | * è·åææ ä¿¡æ¯éè¿id |
| | | */ |
| | | @ApiOperation("è·åææ ä¿¡æ¯éè¿targetID") |
| | | @ApiOperation("è·åææ ä¿¡æ¯éè¿id") |
| | | @PreAuthorize("@ss.hasPermi('system:target:query')") |
| | | @GetMapping(value = "/getInfo/{targetID}") |
| | | public AjaxResult getInfo(@PathVariable("targetID") Long targetID) { |
| | | return success(ivrLibaTargetService.selectIvrLibaTargetByTargetID(targetID)); |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaTargetService.selectIvrLibaTargetByTargetID(id)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperation("å 餿æ ") |
| | | @PreAuthorize("@ss.hasPermi('system:target:remove')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{targetIDs}") |
| | | public AjaxResult remove(@PathVariable Long[] targetIDs) { |
| | | return toAjax(ivrLibaTargetService.deleteIvrLibaTargetByTargetIDs(targetIDs)); |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(ivrLibaTargetService.deleteIvrLibaTargetByTargetIDs(ids)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(IvrLibaTemplateVO ivrLibaTemplateVO) { |
| | | public AjaxResult selectInfoByCondition(@RequestBody IvrLibaTemplateVO ivrLibaTemplateVO) { |
| | | if (ObjectUtils.isEmpty(ivrLibaTemplateVO)) { |
| | | throw new BaseException("æ¥è¯¢æ¨¡æ¿è¯¦æ
å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("è·å模çé®é¢ææ åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:target:query')") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) { |
| | | return success(ivrLibaTemplateTargetService.selectIvrLibaTemplateTargetByID(ID)); |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long id) { |
| | | return success(ivrLibaTemplateTargetService.selectIvrLibaTemplateTargetByID(id)); |
| | | } |
| | | |
| | | /** |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.PatHetaskRelevance; |
| | | import com.smartor.service.IPatHetaskRelevanceService; |
| | | 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-01-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/pathetaskrelevance") |
| | | public class PatHetaskRelevanceController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IPatHetaskRelevanceService patHetaskRelevanceService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¸å®£æä»»å¡å
³èå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatHetaskRelevance patHetaskRelevance) |
| | | { |
| | | startPage(); |
| | | List<PatHetaskRelevance> list = patHetaskRelevanceService.selectPatHetaskRelevanceList(patHetaskRelevance); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
ä¸å®£æä»»å¡å
³èå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:export')") |
| | | @Log(title = "æ£è
ä¸å®£æä»»å¡å
³è", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatHetaskRelevance patHetaskRelevance) |
| | | { |
| | | List<PatHetaskRelevance> list = patHetaskRelevanceService.selectPatHetaskRelevanceList(patHetaskRelevance); |
| | | ExcelUtil<PatHetaskRelevance> util = new ExcelUtil<PatHetaskRelevance>(PatHetaskRelevance.class); |
| | | util.exportExcel(response, list, "æ£è
ä¸å®£æä»»å¡å
³èæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ£è
ä¸å®£æä»»å¡å
³è详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(patHetaskRelevanceService.selectPatHetaskRelevanceById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:add')") |
| | | @Log(title = "æ£è
ä¸å®£æä»»å¡å
³è", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody PatHetaskRelevance patHetaskRelevance) |
| | | { |
| | | return toAjax(patHetaskRelevanceService.insertPatHetaskRelevance(patHetaskRelevance)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:edit')") |
| | | @Log(title = "æ£è
ä¸å®£æä»»å¡å
³è", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody PatHetaskRelevance patHetaskRelevance) |
| | | { |
| | | return toAjax(patHetaskRelevanceService.updatePatHetaskRelevance(patHetaskRelevance)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:remove')") |
| | | @Log(title = "æ£è
ä¸å®£æä»»å¡å
³è", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(patHetaskRelevanceService.deletePatHetaskRelevanceByIds(ids)); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·æ¨¡æ¿åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibTitleCategory svyLibTitleCategory) { |
| | |
| | | /** |
| | | * è·åé®å·æ¨¡æ¿å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·æ¨¡æ¿å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyLibTitleCategoryService.selectSvyLibTitleCategoryById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibTitleCategory svyLibTitleCategory) { |
| | | return toAjax(svyLibTitleCategoryService.insertSvyLibTitleCategory(svyLibTitleCategory)); |
| | | } |
| | | // /** |
| | | // * æ°å¢é®å·æ¨¡æ¿åç±» |
| | | // */ |
| | | // @ApiOperation("æ°å¢é®å·æ¨¡æ¿åç±»") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.INSERT) |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibTitleCategory svyLibTitleCategory) { |
| | | // return toAjax(svyLibTitleCategoryService.insertSvyLibTitleCategory(svyLibTitleCategory)); |
| | | // } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * å é¤é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("å é¤é®å·æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·å表") |
| | | @ApiOperation("æ¥è¯¢é®å·å表详æ
") |
| | | @PostMapping("/selectSvyLibTitlelist") |
| | | public TableDataInfo selectSvyLibTitlelist(@RequestBody SvyLibTitleReq svyLibTitleReq) { |
| | | startPage(); |
| | |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·åé®å·è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytitle:query')") |
| | | @GetMapping(value = "/{svyid}") |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { |
| | | return success(svyLibTitleService.selectSvyLibTitleBySvyid(svyid)); |
| | | } |
| | | // |
| | | // /** |
| | | // * è·åé®å·è¯¦ç»ä¿¡æ¯(å表) |
| | | // */ |
| | | // @ApiOperation("è·åé®å·è¯¦ç»ä¿¡æ¯") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svytitle:query')") |
| | | // @GetMapping(value = "/{svyid}") |
| | | // public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { |
| | | // return success(svyLibTitleService.selectSvyLibTitleBySvyid(svyid)); |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢é®å· |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·é¢ç®åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibTopicCategory svyLibTopicCategory) { |
| | |
| | | /** |
| | | * è·åé®å·é¢ç®å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·é¢ç®å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyLibTopicCategoryService.selectSvyLibTopicCategoryById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç®åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibTopicCategory svyLibTopicCategory) { |
| | | return toAjax(svyLibTopicCategoryService.insertSvyLibTopicCategory(svyLibTopicCategory)); |
| | | } |
| | | // /** |
| | | // * æ°å¢é®å·é¢ç®åç±» |
| | | // */ |
| | | // @PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.INSERT) |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibTopicCategory svyLibTopicCategory) { |
| | | // return toAjax(svyLibTopicCategoryService.insertSvyLibTopicCategory(svyLibTopicCategory)); |
| | | // } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç®åç±» |
| | |
| | | /** |
| | | * å é¤é®å·é¢ç®åç±» |
| | | */ |
| | | @ApiOperation("å é¤é®å·é¢ç®åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.smartor.domain.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibTopic svyLibTopic) { |
| | | startPage(); |
| | | PageUtils.startPageByPost(svyLibTopic.getPageNum(), svyLibTopic.getPageSize()); |
| | | List<SvyLibTopic> list = svyLibTopicService.selectSvyLibTopicList(svyLibTopic); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | util.exportExcel(response, list, "é®å·é¢ç®æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:query')") |
| | | @GetMapping(value = "/getInfo/{topicid}") |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) { |
| | | return success(svyLibTopicService.selectSvyLibTopicByTopicid(topicid)); |
| | | } |
| | | // /** |
| | | // * è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | // */ |
| | | // @ApiOperation("è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svytopic:query')") |
| | | // @GetMapping(value = "/getInfo/{topicid}") |
| | | // public AjaxResult getInfo(@PathVariable("topicid") Long topicid) { |
| | | // return success(svyLibTopicService.selectSvyLibTopicByTopicid(topicid)); |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç® |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.TempDetpRelevance; |
| | | import com.smartor.service.ITempDetpRelevanceService; |
| | | 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-01-04 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/relevance") |
| | | public class TempDetpRelevanceController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ITempDetpRelevanceService tempDetpRelevanceService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿ç§å®¤å
³èå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TempDetpRelevance tempDetpRelevance) |
| | | { |
| | | startPage(); |
| | | List<TempDetpRelevance> list = tempDetpRelevanceService.selectTempDetpRelevanceList(tempDetpRelevance); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ¨¡æ¿ç§å®¤å
³èå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:export')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TempDetpRelevance tempDetpRelevance) |
| | | { |
| | | List<TempDetpRelevance> list = tempDetpRelevanceService.selectTempDetpRelevanceList(tempDetpRelevance); |
| | | ExcelUtil<TempDetpRelevance> util = new ExcelUtil<TempDetpRelevance>(TempDetpRelevance.class); |
| | | util.exportExcel(response, list, "模æ¿ç§å®¤å
³èæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·å模æ¿ç§å®¤å
³è详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(tempDetpRelevanceService.selectTempDetpRelevanceById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿ç§å®¤å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:add')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TempDetpRelevance tempDetpRelevance) |
| | | { |
| | | return toAjax(tempDetpRelevanceService.insertTempDetpRelevance(tempDetpRelevance)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿ç§å®¤å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:edit')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TempDetpRelevance tempDetpRelevance) |
| | | { |
| | | return toAjax(tempDetpRelevanceService.updateTempDetpRelevance(tempDetpRelevance)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿ç§å®¤å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:remove')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(tempDetpRelevanceService.deleteTempDetpRelevanceByIds(ids)); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("åéééæ¶æ¯") |
| | | @PostMapping("/sendNotification") |
| | | public void sendNotification(@RequestBody DingTalkReqVo dingTalkReqVo) throws ApiException { |
| | | dingTalkService.sendNotification(dingTalkReqVo); |
| | | public Boolean sendNotification(@RequestBody DingTalkReqVo dingTalkReqVo) throws ApiException { |
| | | Boolean aBoolean = dingTalkService.sendNotification(dingTalkReqVo); |
| | | return aBoolean; |
| | | } |
| | | |
| | | } |
| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Api(description = "é¨é¨ä¿¡æ¯") |
| | | @RestController |
| | | @RequestMapping("/system/dept") |
| | | public class SysDeptController extends BaseController |
| | |
| | | /** |
| | | * è·åé¨é¨å表 |
| | | */ |
| | | @ApiOperation("è·åé¨é¨å表") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:list')") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(SysDept dept) |
| | |
| | | /** |
| | | * æ¥è¯¢é¨é¨åè¡¨ï¼æé¤èç¹ï¼ |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é¨é¨åè¡¨ï¼æé¤èç¹ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:list')") |
| | | @GetMapping("/list/exclude/{deptId}") |
| | | public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) |
| | |
| | | /** |
| | | * æ ¹æ®é¨é¨ç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ ¹æ®é¨é¨ç¼å·è·å详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:query')") |
| | | @GetMapping(value = "/{deptId}") |
| | | @GetMapping(value = "/getInfo/{deptId}") |
| | | public AjaxResult getInfo(@PathVariable Long deptId) |
| | | { |
| | | deptService.checkDeptDataScope(deptId); |
| | |
| | | /** |
| | | * æ°å¢é¨é¨ |
| | | */ |
| | | @ApiOperation("æ°å¢é¨é¨") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:add')") |
| | | @Log(title = "é¨é¨ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysDept dept) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(deptService.checkDeptNameUnique(dept))) |
| | |
| | | /** |
| | | * ä¿®æ¹é¨é¨ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é¨é¨") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:edit')") |
| | | @Log(title = "é¨é¨ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysDept dept) |
| | | { |
| | | Long deptId = dept.getDeptId(); |
| | |
| | | /** |
| | | * å é¤é¨é¨ |
| | | */ |
| | | @ApiOperation("å é¤é¨é¨") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:remove')") |
| | | @Log(title = "é¨é¨ç®¡ç", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{deptId}") |
| | | @GetMapping("/remove/{deptId}") |
| | | public AjaxResult remove(@PathVariable Long deptId) |
| | | { |
| | | if (deptService.hasChildByDeptId(deptId)) |
| | |
| | | <artifactId>UserAgentUtils</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>io.swagger</groupId> |
| | | <artifactId>swagger-annotations</artifactId> |
| | | <version>1.6.2</version> |
| | | </dependency> |
| | | |
| | | <!-- servletå
--> |
| | | <dependency> |
| | | <groupId>javax.servlet</groupId> |
| | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SysDept", description = "é¨é¨è¡¨") |
| | | public class SysDept extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** é¨é¨ID */ |
| | | @ApiModelProperty("é¨é¨ID") |
| | | private Long deptId; |
| | | |
| | | /** ç¶é¨é¨ID */ |
| | | @ApiModelProperty("ç¶é¨é¨ID") |
| | | private Long parentId; |
| | | |
| | | /** ç¥çº§å表 */ |
| | | @ApiModelProperty("ç¥çº§å表") |
| | | private String ancestors; |
| | | |
| | | /** é¨é¨åç§° */ |
| | | @ApiModelProperty("é¨é¨åç§°") |
| | | private String deptName; |
| | | |
| | | /** æ¾ç¤ºé¡ºåº */ |
| | | @ApiModelProperty("æ¾ç¤ºé¡ºåº") |
| | | private Integer orderNum; |
| | | |
| | | /** è´è´£äºº */ |
| | | @ApiModelProperty("è´è´£äºº") |
| | | private String leader; |
| | | |
| | | /** èç³»çµè¯ */ |
| | | @ApiModelProperty("èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | /** é®ç®± */ |
| | | @ApiModelProperty("é®ç®±") |
| | | private String email; |
| | | |
| | | /** é¨é¨ç¶æ:0æ£å¸¸,1åç¨ */ |
| | | @ApiModelProperty("é¨é¨ç¶æ:0æ£å¸¸,1åç¨") |
| | | private String status; |
| | | |
| | | /** å 餿 å¿ï¼0代表åå¨ 2代表å é¤ï¼ */ |
| | | @ApiModelProperty("å 餿 å¿ï¼0代表åå¨ 2代表å é¤ï¼") |
| | | private String delFlag; |
| | | |
| | | /** ç¶é¨é¨åç§° */ |
| | | @ApiModelProperty("ç¶é¨é¨åç§°") |
| | | private String parentName; |
| | | |
| | | /** åé¨é¨ */ |
| | | @ApiModelProperty("åé¨é¨") |
| | | private List<SysDept> children = new ArrayList<SysDept>(); |
| | | |
| | | public Long getDeptId() |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.enums; |
| | | |
| | | /** |
| | | * åéç±»åæä¸¾ |
| | | */ |
| | | public enum SendTypeEnum { |
| | | DMT(1, "å¤åªä½"), |
| | | ZZ(2, "纸质"), |
| | | DH(3, "çµè¯"), |
| | | DX(4, "çä¿¡"), |
| | | GZH(5, "微信å
¬ä¼å·"), |
| | | WXXCH(6, "微信å°ç¨åº"), |
| | | ZFB(7, "æ¯ä»å®"), |
| | | ZNXCH(8, "æºè½å°ç¨åº"), |
| | | DD(9, "éé"); |
| | | |
| | | |
| | | private Integer code; |
| | | private String desc; |
| | | |
| | | SendTypeEnum(Integer code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public static String getDescByCode(Integer code) { |
| | | SendTypeEnum[] organEnums = values(); |
| | | for (int i = 0; i < organEnums.length; i++) { |
| | | SendTypeEnum organEnum = organEnums[i]; |
| | | if (organEnum.getCode() == code) { |
| | | return organEnum.getDesc(); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public Integer getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Integer code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | } |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.SysDeptMapper"> |
| | | |
| | | <resultMap type="SysDept" id="SysDeptResult"> |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.SysDept" id="SysDeptResult"> |
| | | <id property="deptId" column="dept_id" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="ancestors" column="ancestors" /> |
| | |
| | | from sys_dept d |
| | | </sql> |
| | | |
| | | <select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult"> |
| | | <select id="selectDeptList" parameterType="com.ruoyi.common.core.domain.entity.SysDept" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where d.del_flag = '0' |
| | | <if test="deptId != null and deptId != 0"> |
| | |
| | | where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertDept" parameterType="SysDept"> |
| | | <insert id="insertDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept"> |
| | | insert into sys_dept( |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |
| | | <if test="parentId != null and parentId != 0">parent_id,</if> |
| | |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateDept" parameterType="SysDept"> |
| | | <update id="updateDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept"> |
| | | update sys_dept |
| | | <set> |
| | | <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.common; |
| | | |
| | | import com.aliyun.dysmsapi20170525.models.SendSmsResponseBody; |
| | | import com.smartor.domain.BaseSmsRequest; |
| | | import com.smartor.domain.DingTalkReqVo; |
| | | import com.smartor.domain.SendMagParam; |
| | | import com.smartor.service.DingTalkService; |
| | | import com.smartor.service.impl.BaseSmsaccountServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * åéæå¡å·¥å
·ç±» |
| | | */ |
| | | @Component |
| | | public class SendService { |
| | | @Autowired |
| | | private BaseSmsaccountServiceImpl baseSmsaccountService; |
| | | |
| | | @Autowired |
| | | private DingTalkService dingTalkService; |
| | | |
| | | public Boolean sendMsg(SendMagParam sendMagParam) { |
| | | switch (sendMagParam.getType()) { |
| | | case ("å¤åªä½"): |
| | | |
| | | case ("纸质"): |
| | | |
| | | case ("çµè¯"): |
| | | |
| | | case ("çä¿¡"): |
| | | BaseSmsRequest baseSmsRequest = new BaseSmsRequest(); |
| | | baseSmsRequest.setPhoneNumber(sendMagParam.getPhone()); |
| | | baseSmsRequest.setTemplateCode("SMS_461860582"); |
| | | |
| | | SendSmsResponseBody sendSmsResponseBody = baseSmsaccountService.sendMsg(baseSmsRequest); |
| | | if (sendSmsResponseBody.getCode().equals("OK")) { |
| | | return true; |
| | | } |
| | | return false; |
| | | case ("微信å
¬ä¼å·"): |
| | | |
| | | case ("微信å°ç¨åº"): |
| | | |
| | | case ("æ¯ä»å®"): |
| | | |
| | | case ("æºè½å°ç¨åº"): |
| | | |
| | | case ("éé"): |
| | | DingTalkReqVo dingTalkReqVo = new DingTalkReqVo(); |
| | | Boolean aBoolean = dingTalkService.sendNotification(dingTalkReqVo); |
| | | if (aBoolean) { |
| | | return true; |
| | | } |
| | | default: |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | 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; |
| | | |
| | |
| | | * åæ°æ® |
| | | */ |
| | | @ApiModelProperty(value = "åæ°æ®") |
| | | private List<HeCategory> heCategoryList; |
| | | private List<HeCategory> heCategoryList = new ArrayList<>(); |
| | | |
| | | @Override |
| | | public String toString() { |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | 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; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 宣æèµæåºå¯¹è±¡ he_library |
| | |
| | | */ |
| | | @Excel(name = "æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨") |
| | | @ApiModelProperty("æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨") |
| | | private String isavailable; |
| | | private String isavailable = "0"; |
| | | |
| | | /** |
| | | * éç¨ç¾ç
|
| | |
| | | @ApiModelProperty("éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @Excel(name = "ç§å®¤åç§°") |
| | | @ApiModelProperty("ç§å®¤åç§°") |
| | | private String deptNames = ""; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty("æ ç¾ä¿¡æ¯") |
| | | private String labelInfo = ""; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @Excel(name = "é¢åº") |
| | | @ApiModelProperty("é¢åº") |
| | | private String campus = ""; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | @ApiModelProperty("å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata = ""; |
| | | |
| | | } |
| | |
| | | private String guid; |
| | | |
| | | /** |
| | | * æ ç¾åç§° |
| | | */ |
| | | @Excel(name = " æ ç¾åç§° ") |
| | | @ApiModelProperty(" æ ç¾åç§° ") |
| | | private String tagname; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 宣æèµæåºå¯¹è±¡ he_library |
| | | * 宣æèµæåºè§å¾å¯¹è±¡ he_library |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-24 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "HeLibrary", description = "宣æèµæåºå¯¹è±¡") |
| | | @ApiModel(value = "HeLibraryVO", description = "宣æèµæåºè§å¾å¯¹è±¡") |
| | | public class HeLibraryVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | private String suitdisease; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @Excel(name = "ç§å®¤åç§°") |
| | | @ApiModelProperty("ç§å®¤åç§°") |
| | | private String deptNames = ""; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty("æ ç¾ä¿¡æ¯") |
| | | private String labelInfo = ""; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @Excel(name = "é¢åº") |
| | | @ApiModelProperty("é¢åº") |
| | | private String campus = ""; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | |
| | | private String suitway; |
| | | |
| | | @ApiModelProperty("ææ æ ç¾å¯¹è±¡éå") |
| | | private List<HeLibraryTag> heLibraryTagList; |
| | | private List<HeLibraryTag> heLibraryTagList = new ArrayList<>(); |
| | | |
| | | @ApiModelProperty("模æ¿ç§å®¤å
³è表") |
| | | private List<TempDetpRelevance> tempDetpRelevances = new ArrayList<>(); |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | @ApiModelProperty("å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata = ""; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 宣æä»»å¡å¯¹è±¡ he_task |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "HeTask", description = "宣æä»»å¡å¯¹è±¡") |
| | | public class HeTask extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ£è
æå¡ä»»å¡id |
| | | */ |
| | | @Excel(name = "æ£è
æå¡ä»»å¡id") |
| | | @ApiModelProperty(value = "æ£è
æå¡ä»»å¡id") |
| | | private Long svrtaskid; |
| | | |
| | | /** |
| | | * ç
人idéå |
| | | */ |
| | | @Excel(name = " ç
人idéå") |
| | | @ApiModelProperty(value = "ç
人idéåï¼å符串以éå·å½¢å¼åéï¼") |
| | | private String patientid; |
| | | |
| | | /** |
| | | * 宣æåç±» |
| | | */ |
| | | @Excel(name = " 宣æåç±» ") |
| | | @ApiModelProperty(value = "宣æåç±»") |
| | | private String classification; |
| | | |
| | | /** |
| | | * 宣æid |
| | | */ |
| | | @Excel(name = " 宣æid ") |
| | | @ApiModelProperty(value = "宣æid") |
| | | private Long preachcategoryid; |
| | | |
| | | /** |
| | | * 宣æåç§° |
| | | */ |
| | | @Excel(name = " 宣æåç§° ") |
| | | @ApiModelProperty(value = "宣æåç§°") |
| | | private String preachname; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | @Excel(name = " çæ¬ ") |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private BigDecimal version; |
| | | |
| | | /** |
| | | * 宣æå½¢å¼ 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 Long preachform; |
| | | |
| | | /** |
| | | * ç»ç»å½¢å¼ï¼1.å人宣æ 2.å¤äººå®£æ |
| | | */ |
| | | @Excel(name = "ç»ç»å½¢å¼ï¼1.å人宣æ 2.å¤äººå®£æ") |
| | | @ApiModelProperty(value = " ç»ç»å½¢å¼ï¼1.å人宣æ 2.å¤äººå®£æ") |
| | | private Long orgform; |
| | | |
| | | /** |
| | | * 宣ææè¿° |
| | | */ |
| | | @Excel(name = " 宣ææè¿° ") |
| | | @ApiModelProperty(value = "宣ææè¿°") |
| | | private String preachdescription; |
| | | |
| | | /** |
| | | * 宣æå
容 |
| | | */ |
| | | @Excel(name = " 宣æå
容 ") |
| | | @ApiModelProperty(value = "宣æå
容") |
| | | private String preachcontent; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = " 模æ¿ID ") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * 宣æä»£ç |
| | | */ |
| | | @Excel(name = " 宣æä»£ç ") |
| | | @ApiModelProperty(value = "宣æä»£ç ") |
| | | private String preachcode; |
| | | |
| | | /** |
| | | * ä¸å¿åºID |
| | | */ |
| | | @Excel(name = " ä¸å¿åºID ") |
| | | @ApiModelProperty(value = "ä¸å¿åºID") |
| | | private Long centerlibraryid; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ |
| | | */ |
| | | @Excel(name = " æ¯å¦å¯ç¨ ") |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨") |
| | | private Long 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; |
| | | |
| | | /** |
| | | * æ¯å¦æ¬å° |
| | | */ |
| | | @Excel(name = " æ¯å¦æ¬å° ") |
| | | @ApiModelProperty(value = "æ¯å¦æ¬å°") |
| | | private Long islocal; |
| | | |
| | | /** |
| | | * ä¸å¿åºä»£ç |
| | | */ |
| | | @Excel(name = " ä¸å¿åºä»£ç ") |
| | | @ApiModelProperty(value = "ä¸å¿åºä»£ç ") |
| | | private String centerlibrarycode; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * ä»»å¡åéæ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "ä»»å¡åéæ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä»»å¡åéæ¶é´") |
| | | private Date sendTime; |
| | | |
| | | /** |
| | | * åéç¶æ ï¼ 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 Long sendState; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 宣æä»»å¡å¯¹è±¡ he_task |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "HeTaskVO", description = "宣æä»»å¡è¯¦æ
è¿å对象") |
| | | public class HeTaskVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ£è
æå¡ä»»å¡id |
| | | */ |
| | | @Excel(name = "æ£è
æå¡ä»»å¡id") |
| | | @ApiModelProperty(value = "æ£è
æå¡ä»»å¡id") |
| | | private Long svrtaskid; |
| | | |
| | | // /** |
| | | // * ç
人idéå |
| | | // */ |
| | | // @Excel(name = " ç
人idéå") |
| | | // @ApiModelProperty(value = "ç
人idéå") |
| | | // private String patientids; |
| | | |
| | | /** |
| | | * 宣æåç±» |
| | | */ |
| | | @Excel(name = " 宣æåç±» ") |
| | | @ApiModelProperty(value = "宣æåç±»") |
| | | private String classification; |
| | | |
| | | /** |
| | | * 宣æåç±» |
| | | */ |
| | | @Excel(name = " 宣æåç±» ") |
| | | @ApiModelProperty(value = "宣æåç±»id") |
| | | private Long preachcategoryid; |
| | | |
| | | /** |
| | | * 宣æåç§° |
| | | */ |
| | | @Excel(name = " 宣æåç§° ") |
| | | @ApiModelProperty(value = "宣æåç§°") |
| | | private String preachname; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | @Excel(name = " çæ¬ ") |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private BigDecimal version; |
| | | |
| | | /** |
| | | * 宣æå½¢å¼ 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 Long preachform; |
| | | |
| | | /** |
| | | * ç»ç»å½¢å¼ï¼1.å人宣æ 2.å¤äººå®£æ |
| | | */ |
| | | @Excel(name = "ç»ç»å½¢å¼ï¼1.å人宣æ 2.å¤äººå®£æ") |
| | | @ApiModelProperty(value = " ç»ç»å½¢å¼ï¼1.å人宣æ 2.å¤äººå®£æ") |
| | | private Long orgform; |
| | | |
| | | /** |
| | | * 宣ææè¿° |
| | | */ |
| | | @Excel(name = " 宣ææè¿° ") |
| | | @ApiModelProperty(value = "宣ææè¿°") |
| | | private String preachdescription; |
| | | |
| | | /** |
| | | * 宣æå
容 |
| | | */ |
| | | @Excel(name = " 宣æå
容 ") |
| | | @ApiModelProperty(value = "宣æå
容") |
| | | private String preachcontent; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = " 模æ¿ID ") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * 宣æä»£ç |
| | | */ |
| | | @Excel(name = " 宣æä»£ç ") |
| | | @ApiModelProperty(value = "宣æä»£ç ") |
| | | private String preachcode; |
| | | |
| | | /** |
| | | * ä¸å¿åºID |
| | | */ |
| | | @Excel(name = " ä¸å¿åºID ") |
| | | @ApiModelProperty(value = "ä¸å¿åºID") |
| | | private Long centerlibraryid; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ |
| | | */ |
| | | @Excel(name = " æ¯å¦å¯ç¨ ") |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨") |
| | | private Long 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; |
| | | |
| | | /** |
| | | * æ¯å¦æ¬å° |
| | | */ |
| | | @Excel(name = " æ¯å¦æ¬å° ") |
| | | @ApiModelProperty(value = "æ¯å¦æ¬å°") |
| | | private Long islocal; |
| | | |
| | | /** |
| | | * ä¸å¿åºä»£ç |
| | | */ |
| | | @Excel(name = " ä¸å¿åºä»£ç ") |
| | | @ApiModelProperty(value = "ä¸å¿åºä»£ç ") |
| | | private String centerlibrarycode; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * ä»»å¡åéæ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "ä»»å¡åéæ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä»»å¡åéæ¶é´") |
| | | private Date sendTime; |
| | | |
| | | /** |
| | | * æ¯å¦åé ï¼ 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 Long sendState = 0L; |
| | | |
| | | /** |
| | | * æ£è
å
³èä¿¡æ¯ |
| | | */ |
| | | private List<PatHetaskRelevance> patHetaskRelevances; |
| | | |
| | | /** |
| | | * 宣æèµæåºä¿¡æ¯ |
| | | */ |
| | | private HeLibraryVO heLibraryVOs; |
| | | |
| | | } |
| | |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "HeLibrary", description = "éè¿æ¨¡æ¿å¯¹è±¡") |
| | | @ApiModel(value = "IvrLibaExtemplate", description = "éè¿æ¨¡æ¿å¯¹è±¡") |
| | | public class IvrLibaExtemplate extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | */ |
| | | @ApiModelProperty("åæ°åé") |
| | | @Excel(name = " åæ°åé ") |
| | | private String parameter; |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * ç¶ID |
| | |
| | | * å é¤ |
| | | */ |
| | | @ApiModelProperty("å é¤") |
| | | private String delFlag; |
| | | private Long delFlag; |
| | | |
| | | /** |
| | | * ç¶id |
| | |
| | | * å é¤ |
| | | */ |
| | | @ApiModelProperty("å é¤") |
| | | private String delFlag; |
| | | private Long delFlag; |
| | | |
| | | /** |
| | | * ç¶id |
| | |
| | | */ |
| | | @ApiModelProperty("åæ°åé") |
| | | @Excel(name = " åæ°åé ") |
| | | private String parameter; |
| | | private String otherdata; |
| | | // /** |
| | | // * ææ éå |
| | | // */ |
| | |
| | | * $column.columnComment |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long targetID; |
| | | private Long id; |
| | | |
| | | /** |
| | | * åç»ID |
| | |
| | | private Integer pageSize; |
| | | |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("targetID", getTargetID()).append("groupid", getGroupid()).append("targettype", getTargettype()).append("targetname", getTargetname()).append("targetdesc", getTargetdesc()).append("language", getLanguage()).append("version", getVersion()).append("isenable", getIsenable()).append("isabnormal", getIsabnormal()).append("warnup", getWarnup()).append("warndown", getWarndown()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).append("orgid", getOrgid()).append("pid", getPid()).append("guid", getGuid()).append("assortid", getAssortid()).toString(); |
| | | } |
| | | |
| | | } |
| | |
| | | * å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "å é¤") |
| | | private String delFlag; |
| | | private Long delFlag; |
| | | |
| | | /** |
| | | * ç¶id |
| | |
| | | * å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "å é¤") |
| | | private String delFlag; |
| | | private Long delFlag; |
| | | |
| | | /** |
| | | * ç¶id |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾åç§°") |
| | | @Excel(name = "æ ç¾åç§°") |
| | | private List<BaseTag> tagList; |
| | | private List<BaseTag> tagList = new ArrayList<>(); |
| | | |
| | | } |
| | |
| | | * $column.columnComment |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long targetID; |
| | | private Long id; |
| | | |
| | | /** |
| | | * åç»ID |
| | |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelInfo; |
| | | private String labelInfo = ""; |
| | | |
| | | /** |
| | | * éç¨å¹é
è¯æ¯id |
| | |
| | | */ |
| | | @Excel(name = "é¨é¨åç§°") |
| | | @ApiModelProperty(value = "é¨é¨åç§°") |
| | | private String deptNames; |
| | | private String deptNames = ""; |
| | | |
| | | /** |
| | | * F_KSDM |
| | |
| | | */ |
| | | @Excel(name = "å»é¢é¢åº") |
| | | @ApiModelProperty(value = "å»é¢é¢åº") |
| | | private String campus; |
| | | private String campus = ""; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | |
| | | @ApiModelProperty(value = "æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty(value = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | |
| | | } |
| | |
| | | * å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "å é¤") |
| | | private String delFlag; |
| | | private Long delFlag; |
| | | |
| | | /** |
| | | * ç¶id |
| | |
| | | * å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "å é¤") |
| | | private String delFlag; |
| | | private Long delFlag; |
| | | |
| | | /** |
| | | * ç¶id |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | * è¯æ¯é项 |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯é项") |
| | | private List<IvrLibaTemplateTargetoption> ivrLibaTemplateTargetoptionList; |
| | | private List<IvrLibaTemplateTargetoption> ivrLibaTemplateTargetoptionList = new ArrayList<>(); |
| | | } |
| | |
| | | * æ¨¡æ¿ææ ID |
| | | */ |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ ID") |
| | | private Long ID; |
| | | private Long id; |
| | | |
| | | /** |
| | | * 模æ¿è¯æ¯ID |
| | |
| | | */ |
| | | @Excel(name = "ææ ID") |
| | | @ApiModelProperty(value = "ææ ID") |
| | | private String targetID; |
| | | private String targetid; |
| | | |
| | | /** |
| | | * è¯æ¯ææ ID |
| | | */ |
| | | @Excel(name = "è¯æ¯ææ ID") |
| | | @ApiModelProperty(value = "è¯æ¯ææ ID") |
| | | private String questionTargetID; |
| | | private String questionTargetid; |
| | | |
| | | /** |
| | | * åºç¡æ£å |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelInfo; |
| | | private String labelInfo = ""; |
| | | |
| | | /** |
| | | * éç¨å¹é
è¯æ¯id |
| | |
| | | */ |
| | | @Excel(name = "é¨é¨åç§°") |
| | | @ApiModelProperty(value = "é¨é¨åç§°") |
| | | private String deptNames; |
| | | private String deptNames = ""; |
| | | |
| | | /** |
| | | * F_KSDM |
| | |
| | | */ |
| | | @Excel(name = "å»é¢é¢åº") |
| | | @ApiModelProperty(value = "å»é¢é¢åº") |
| | | private String campus; |
| | | private String campus = ""; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | |
| | | @Excel(name = "æ ç¾") |
| | | @ApiModelProperty(value = "æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty(value = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | |
| | | // private List<IvrLibaTemplateTarget> ivrLibaTemplateTargetList; |
| | | |
| | | @ApiModelProperty(value = "模æ¿é®é¢éå") |
| | | private List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList; |
| | | private List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList = new ArrayList<>(); |
| | | |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ éå") |
| | | private List<IvrLibaTemplateTag> ivrLibaTemplateTagList; |
| | | // |
| | | // @ApiModelProperty(value = "模æ¿é项éå") |
| | | // private List<IvrLibaTemplateTargetoption> ivrLibaTemplateTargetoptionList; |
| | | private List<IvrLibaTemplateTag> ivrLibaTemplateTagList = new ArrayList<>(); |
| | | |
| | | @ApiModelProperty(value = "模æ¿ç§å®¤å
³è表éå") |
| | | private List<TempDetpRelevance> tempDetpRelevances = new ArrayList<>(); |
| | | |
| | | } |
| | |
| | | @Excel(name = " ééå· ") |
| | | private String dduserid; |
| | | |
| | | /** |
| | | * ééå· |
| | | */ |
| | | @ApiModelProperty("ç§å®¤") |
| | | @Excel(name = " ç§å®¤ ") |
| | | private String dept; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("patid", getPatid()).append("name", getName()).append("sex", getSex()).append("idcardno", getIdcardno()).append("birthdate", getBirthdate()).append("age", getAge()).append("source", getSource()).append("archivetime", getArchivetime()).append("archiveby", getArchiveby()).append("telcode", getTelcode()).append("relativetelcode", getRelativetelcode()).append("idcardtype", getIdcardtype()).append("orgid", getOrgid()).append("openid", getOpenid()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).toString(); |
| | |
| | | /** |
| | | * æ¥çå
¨é¨ 0 æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3 |
| | | */ |
| | | @ApiModelProperty(value = "æ¥çå
¨é¨ 0 æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3") |
| | | @ApiModelProperty(value = " æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3") |
| | | private Long allhosp; |
| | | |
| | | |
| | |
| | | @ApiModelProperty(value = "pageSize") |
| | | @Excel(name = "pageSize") |
| | | private Integer pageSize; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | 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; |
| | | |
| | |
| | | private String tag; |
| | | |
| | | @ApiModelProperty("æ ç¾éå") |
| | | List<PatArchivetag> tagList; |
| | | List<PatArchivetag> tagList = new ArrayList<>(); |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * æ£è
ä¸å®£æä»»å¡å
³è对象 pat_hetask_relevance |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "PatHetaskRelevance", description = "æ£è
ä¸å®£æä»»å¡å
³è对象") |
| | | public class PatHetaskRelevance extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty("主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ£è
ID |
| | | */ |
| | | @Excel(name = "æ£è
ID") |
| | | @ApiModelProperty("æ£è
ID") |
| | | private Long patId; |
| | | |
| | | /** |
| | | * 宣æä»»å¡ID |
| | | */ |
| | | @Excel(name = "宣æä»»å¡ID") |
| | | @ApiModelProperty("宣æä»»å¡ID") |
| | | private Long heTaskId; |
| | | |
| | | /** |
| | | * å é¤ï¼0ä¸å é¤ 1å é¤ |
| | | */ |
| | | @ApiModelProperty("å é¤ï¼0ä¸å é¤ 1å é¤") |
| | | private Long delFlag; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @Excel(name = "å§å") |
| | | @ApiModelProperty("å§å") |
| | | private String name; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @Excel(name = "å¹´é¾") |
| | | @ApiModelProperty("å¹´é¾") |
| | | private Long age; |
| | | |
| | | /** |
| | | * æ§å« |
| | | */ |
| | | @Excel(name = "æ§å«") |
| | | @ApiModelProperty("æ§å«") |
| | | private Long sex; |
| | | |
| | | /** |
| | | * åºå· |
| | | */ |
| | | @Excel(name = "åºå·") |
| | | @ApiModelProperty("åºå·") |
| | | private Long badNo; |
| | | |
| | | /** |
| | | * ç§å®¤ |
| | | */ |
| | | @Excel(name = "ç§å®¤") |
| | | @ApiModelProperty("ç§å®¤") |
| | | private String dept; |
| | | |
| | | /** |
| | | * ç¾ç
åç§° |
| | | */ |
| | | @Excel(name = "ç¾ç
åç§°") |
| | | @ApiModelProperty("ç¾ç
åç§°") |
| | | private String icdName; |
| | | |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @Excel(name = "ææºå·") |
| | | @ApiModelProperty("ææºå·") |
| | | private String phone; |
| | | |
| | | /** |
| | | * ç
åå· |
| | | */ |
| | | @Excel(name = "ç
åå·") |
| | | @ApiModelProperty("ç
åå·") |
| | | private String medicalRecordNo; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * æ£è
ä¸å®£æä»»å¡å
³èå¯¹è±¡åæ° pat_hetask_relevance |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "PatHetaskRelevanceVO", description = "æ£è
ä¸å®£æä»»å¡å
³èå¯¹è±¡åæ°") |
| | | public class PatHetaskRelevanceVO extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty("主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ£è
ID |
| | | */ |
| | | @Excel(name = "æ£è
ID") |
| | | @ApiModelProperty("æ£è
ID") |
| | | private Long patId; |
| | | |
| | | /** |
| | | * 宣æä»»å¡ID |
| | | */ |
| | | @Excel(name = "宣æä»»å¡ID") |
| | | @ApiModelProperty("宣æä»»å¡ID") |
| | | private Long heTaskId; |
| | | |
| | | /** |
| | | * å é¤ï¼0ä¸å é¤ 1å é¤ |
| | | */ |
| | | @ApiModelProperty("å é¤ï¼0ä¸å é¤ 1å é¤") |
| | | private Long delFlag; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @Excel(name = "å§å") |
| | | @ApiModelProperty("å§å") |
| | | private String name; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @Excel(name = "å¹´é¾") |
| | | @ApiModelProperty("å¹´é¾") |
| | | private Long age; |
| | | |
| | | /** |
| | | * æ§å« |
| | | */ |
| | | @Excel(name = "æ§å«") |
| | | @ApiModelProperty("æ§å«") |
| | | private Long sex; |
| | | |
| | | /** |
| | | * åºå· |
| | | */ |
| | | @Excel(name = "åºå·") |
| | | @ApiModelProperty("åºå·") |
| | | private Long badNo; |
| | | |
| | | /** |
| | | * ç§å®¤ |
| | | */ |
| | | @Excel(name = "ç§å®¤") |
| | | @ApiModelProperty("ç§å®¤") |
| | | private String dept; |
| | | |
| | | /** |
| | | * ç¾ç
åç§° |
| | | */ |
| | | @Excel(name = "ç¾ç
åç§°") |
| | | @ApiModelProperty("ç¾ç
åç§°") |
| | | private String icdName; |
| | | |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @Excel(name = "ææºå·") |
| | | @ApiModelProperty("ææºå·") |
| | | private String phone; |
| | | |
| | | /** |
| | | * ç
åå· |
| | | */ |
| | | @Excel(name = "ç
åå·") |
| | | @ApiModelProperty("ç
åå·") |
| | | private String medicalRecordNo; |
| | | |
| | | /** |
| | | * 宣æä»»å¡ |
| | | */ |
| | | @ApiModelProperty("宣æä»»å¡") |
| | | private HeTask heTask; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class SendMagParam { |
| | | //åéç±»å |
| | | private String type; |
| | | |
| | | //çµè¯å·ç |
| | | private String phone; |
| | | |
| | | //åéå
容 |
| | | private String content; |
| | | |
| | | //模æ¿code ä¾å¦ ï¼ SMS_461860582 |
| | | private String tmpCode; |
| | | } |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | * äºçº§åç±» |
| | | */ |
| | | @ApiModelProperty(value = "äºçº§åç±»") |
| | | private List<SvyCategory> svyCategoryList; |
| | | private List<SvyCategory> svyCategoryList=new ArrayList<>(); |
| | | |
| | | } |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨") |
| | | @Excel(name = " æ¯å¦å¯ç¨ ") |
| | | private Long isenable; |
| | | private String isenable = "0"; |
| | | |
| | | /** |
| | | * æºæID |
| | |
| | | private List<SvyLibTopic> svyLibTopics; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³èéå |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ç§å®¤å
³èéå") |
| | | private List<TempDetpRelevance> tempDetpRelevances = new ArrayList<>(); |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @Excel(name = "ç§å®¤åç§°") |
| | | @ApiModelProperty("ç§å®¤åç§°") |
| | | private String deptNames = ""; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty("æ ç¾ä¿¡æ¯") |
| | | private String labelInfo = ""; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @Excel(name = "é¢åº") |
| | | @ApiModelProperty("é¢åº") |
| | | private String campus = ""; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "é¢éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3åº") |
| | | @ApiModelProperty("éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway = ""; |
| | | |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @ApiModelProperty("å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata = ""; |
| | | |
| | | |
| | | public SvyLibTitle() { |
| | | } |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | private Long orgid; |
| | | |
| | | @ApiModelProperty(value = "æ çå对象éå") |
| | | private List<SvyLibTitleCategory> svyLibTitleCategoryList; |
| | | private List<SvyLibTitleCategory> svyLibTitleCategoryList = new ArrayList<>(); |
| | | } |
| | |
| | | @ApiModelProperty(value = "é®å·åç±»ID") |
| | | private Long categoryid; |
| | | |
| | | /** |
| | | * é®å·ID |
| | | */ |
| | | @ApiModelProperty(value = "é®å·ID") |
| | | private Long svyid; |
| | | |
| | | |
| | | /** |
| | | * é®å·åç§° |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @Excel(name = " é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 ") |
| | | @ApiModelProperty("é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空") |
| | | private Long topictype; |
| | | private String topictype = ""; |
| | | |
| | | /** |
| | | * é¢ç®Code |
| | |
| | | * æ¯å¦å¿
å¡« |
| | | */ |
| | | @ApiModelProperty("æ¯å¦å¿
å¡«") |
| | | private Long ismandatory; |
| | | private String ismandatory; |
| | | |
| | | /** |
| | | * æ¯å¦éè |
| | |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty("æ ç¾") |
| | | private String tag; |
| | | private String tag = ""; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | |
| | | private Long svyTopicId; |
| | | |
| | | /** |
| | | * é¢ç®å
容 |
| | | */ |
| | | @ApiModelProperty("é¢ç®å
容") |
| | | private String topicContent; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @ApiModelProperty("éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨ |
| | | */ |
| | | @ApiModelProperty("æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨") |
| | | private String isavailable = "0"; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @ApiModelProperty("è¯è¨") |
| | | private String language = ""; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @ApiModelProperty("å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata = ""; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | @ApiModelProperty("é®é¢é项") |
| | | private List<SvyLibTopicoption> svyLibTopicoptions; |
| | | private List<SvyLibTopicoption> svyLibTopicoptions = new ArrayList<>(); |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | | @ApiModelProperty(value = "pageNum") |
| | | @Excel(name = "pageNum") |
| | | private Integer pageNum; |
| | | |
| | | /** |
| | | * pageSize |
| | | */ |
| | | @ApiModelProperty(value = "pageSize") |
| | | @Excel(name = "pageSize") |
| | | private Integer pageSize; |
| | | } |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * å对象 |
| | | */ |
| | | @ApiModelProperty("å对象é") |
| | | private List<SvyLibTopicCategory> svyLibTopicCategoryList; |
| | | private List<SvyLibTopicCategory> svyLibTopicCategoryList = new ArrayList<>(); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³è对象 temp_detp_relevance |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-04 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "TempDetpRelevance", description = "模æ¿ç§å®¤å
³è对象") |
| | | public class TempDetpRelevance extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | private Long id; |
| | | |
| | | /** |
| | | * 模æ¿id |
| | | */ |
| | | @Excel(name = "模æ¿id") |
| | | @ApiModelProperty(value = "模æ¿id") |
| | | private Long tempid; |
| | | |
| | | /** |
| | | * ç§å®¤id |
| | | */ |
| | | @Excel(name = "ç§å®¤id") |
| | | @ApiModelProperty(value = "ç§å®¤id") |
| | | private Long deptId; |
| | | |
| | | /** |
| | | * 1 : é®å·ã2 : é访ã3 : 宣æ |
| | | */ |
| | | @Excel(name = "1 : é®å·ã2 : é访ã3 : 宣æ") |
| | | @ApiModelProperty(value = "1 : é®å·ã2 : é访ã3 : 宣æ") |
| | | private Long type; |
| | | |
| | | /** |
| | | * å é¤ï¼ 0 æªå é¤ 1 å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "å é¤ï¼ 0 æªå é¤ 1 å é¤") |
| | | private Long delFlag; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.HeTask; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 宣æä»»å¡Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Mapper |
| | | public interface HeTaskMapper { |
| | | /** |
| | | * æ¥è¯¢å®£æä»»å¡ |
| | | * |
| | | * @param id 宣æä»»å¡ä¸»é® |
| | | * @return 宣æä»»å¡ |
| | | */ |
| | | public HeTask selectHeTaskById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å®£æä»»å¡å表 |
| | | * |
| | | * @param heTask 宣æä»»å¡ |
| | | * @return 宣æä»»å¡éå |
| | | */ |
| | | public List<HeTask> selectHeTaskList(HeTask heTask); |
| | | |
| | | /** |
| | | * æ°å¢å®£æä»»å¡ |
| | | * |
| | | * @param heTask 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertHeTask(HeTask heTask); |
| | | |
| | | /** |
| | | * ä¿®æ¹å®£æä»»å¡ |
| | | * |
| | | * @param heTask 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateHeTask(HeTask heTask); |
| | | |
| | | /** |
| | | * å é¤å®£æä»»å¡ |
| | | * |
| | | * @param id 宣æä»»å¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHeTaskById(Long id); |
| | | |
| | | // /** |
| | | // * æ¹éå é¤å®£æä»»å¡ |
| | | // * |
| | | // * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | // * @return ç»æ |
| | | // */ |
| | | // public int deleteHeTaskByIds(Long[] ids); |
| | | } |
| | |
| | | * @param targetID ææ é项åºä¸»é® |
| | | * @return ææ éé¡¹åº |
| | | */ |
| | | public IvrLibaTarget selectIvrLibaTargetByTargetID(Long targetID); |
| | | public IvrLibaTarget selectIvrLibaTargetByTargetID(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææ é项åºå表 |
| | |
| | | * @param targetID ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrLibaTargetByTargetID(Long targetID); |
| | | public int deleteIvrLibaTargetByTargetID(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿æ éé¡¹åº |
| | |
| | | * @param targetIDs éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrLibaTargetByTargetIDs(Long[] targetIDs); |
| | | public int deleteIvrLibaTargetByTargetIDs(Long[] ids); |
| | | } |
| | |
| | | * @param ID 模çé®é¢ææ åºä¸»é® |
| | | * @return 模çé®é¢ææ åº |
| | | */ |
| | | public IvrLibaTemplateTarget selectIvrLibaTemplateTargetByID(Long ID); |
| | | public IvrLibaTemplateTarget selectIvrLibaTemplateTargetByID(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡çé®é¢ææ åºå表 |
| | |
| | | * @param ID 模çé®é¢ææ åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrLibaTemplateTargetByID(Long ID); |
| | | public int deleteIvrLibaTemplateTargetByID(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡çé®é¢ææ åº |
| | |
| | | * @param IDs éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrLibaTemplateTargetByIDs(Long[] IDs); |
| | | public int deleteIvrLibaTemplateTargetByIDs(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.PatHetaskRelevance; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
ä¸å®£æä»»å¡å
³èMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Mapper |
| | | public interface PatHetaskRelevanceMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param id æ£è
ä¸å®£æä»»å¡å
³èä¸»é® |
| | | * @return æ£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | public PatHetaskRelevance selectPatHetaskRelevanceById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¸å®£æä»»å¡å
³èå表 |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return æ£è
ä¸å®£æä»»å¡å
³èéå |
| | | */ |
| | | public List<PatHetaskRelevance> selectPatHetaskRelevanceList(PatHetaskRelevance patHetaskRelevance); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatHetaskRelevance(PatHetaskRelevance patHetaskRelevance); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatHetaskRelevance(PatHetaskRelevance patHetaskRelevance); |
| | | |
| | | /** |
| | | * å 餿£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param id æ£è
ä¸å®£æä»»å¡å
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatHetaskRelevanceById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatHetaskRelevanceByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.TempDetpRelevance; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³èMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-04 |
| | | */ |
| | | @Mapper |
| | | public interface TempDetpRelevanceMapper { |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param id 模æ¿ç§å®¤å
³èä¸»é® |
| | | * @return 模æ¿ç§å®¤å
³è |
| | | */ |
| | | public TempDetpRelevance selectTempDetpRelevanceById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿ç§å®¤å
³èå表 |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return 模æ¿ç§å®¤å
³èéå |
| | | */ |
| | | public List<TempDetpRelevance> selectTempDetpRelevanceList(TempDetpRelevance tempDetpRelevance); |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int insertTempDetpRelevance(TempDetpRelevance tempDetpRelevance); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int updateTempDetpRelevance(TempDetpRelevance tempDetpRelevance); |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param id 模æ¿ç§å®¤å
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTempDetpRelevanceById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTempDetpRelevanceByIds(Long[] ids); |
| | | } |
| | |
| | | public int deleteHeLibraryByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤å®£æèµæåºä¿¡æ¯ |
| | | * |
| | | * @param id 宣æèµæåºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHeLibraryById(Long id); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹å®£æè¯¦æ
|
| | | */ |
| | | public Integer saveOrUpdateScript(HeLibraryVO heLibraryVO); |
| | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶ |
| | | */ |
| | | public HeLibraryVO selectInfoByCondition(HeLibrary heLibrary); |
| | | public List<HeLibraryVO> selectInfoByCondition(HeLibrary heLibrary); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 宣æä»»å¡Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | public interface IHeTaskService { |
| | | /** |
| | | * æ¥è¯¢å®£æä»»å¡ |
| | | * |
| | | * @param id 宣æä»»å¡ä¸»é® |
| | | * @return 宣æä»»å¡ |
| | | */ |
| | | public HeTaskVO selectHeTaskById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å®£æä»»å¡å表 |
| | | * |
| | | * @param heTask 宣æä»»å¡ |
| | | * @return 宣æä»»å¡éå |
| | | */ |
| | | public List<PatHetaskRelevanceVO> selectHeTaskList(PatHetaskRelevanceVO patHetaskRelevanceVO); |
| | | |
| | | /** |
| | | * æ°å¢å®£æä»»å¡ |
| | | * |
| | | * @param heTaskVO 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertHeTask(HeTaskVO heTaskVO); |
| | | |
| | | /** |
| | | * ä¿®æ¹å®£æä»»å¡ |
| | | * |
| | | * @param heTask 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateHeTask(HeTask heTask); |
| | | |
| | | /** |
| | | * æ¹éå é¤å®£æä»»å¡ |
| | | * |
| | | * @param ids éè¦å é¤ç宣æä»»å¡ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHeTaskByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤å®£æä»»å¡ä¿¡æ¯ |
| | | * |
| | | * @param id 宣æä»»å¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHeTaskById(Long id); |
| | | |
| | | /** |
| | | * è·åæ£è
ä¿¡æ¯ |
| | | * |
| | | * @param patArchiveReq |
| | | * @return PatHetaskRelevance |
| | | */ |
| | | public List<PatHetaskRelevance> getPatientInfo(PatArchiveReq patArchiveReq); |
| | | } |
| | |
| | | * @param targetID ææ é项åºä¸»é® |
| | | * @return ææ éé¡¹åº |
| | | */ |
| | | public IvrLibaTarget selectIvrLibaTargetByTargetID(Long targetID); |
| | | public IvrLibaTarget selectIvrLibaTargetByTargetID(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææ é项åºå表 |
| | |
| | | * @param targetIDs éè¦å é¤çææ é项åºä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrLibaTargetByTargetIDs(Long[] targetIDs); |
| | | public int deleteIvrLibaTargetByTargetIDs(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿æ é项åºä¿¡æ¯ |
| | |
| | | * @param targetID ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrLibaTargetByTargetID(Long targetID); |
| | | public int deleteIvrLibaTargetByTargetID(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.PatHetaskRelevance; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
ä¸å®£æä»»å¡å
³èServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | public interface IPatHetaskRelevanceService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param id æ£è
ä¸å®£æä»»å¡å
³èä¸»é® |
| | | * @return æ£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | public PatHetaskRelevance selectPatHetaskRelevanceById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¸å®£æä»»å¡å
³èå表 |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return æ£è
ä¸å®£æä»»å¡å
³èéå |
| | | */ |
| | | public List<PatHetaskRelevance> selectPatHetaskRelevanceList(PatHetaskRelevance patHetaskRelevance); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatHetaskRelevance(PatHetaskRelevance patHetaskRelevance); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatHetaskRelevance(PatHetaskRelevance patHetaskRelevance); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param ids éè¦å é¤çæ£è
ä¸å®£æä»»å¡å
³è主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatHetaskRelevanceByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿£è
ä¸å®£æä»»å¡å
³èä¿¡æ¯ |
| | | * |
| | | * @param id æ£è
ä¸å®£æä»»å¡å
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatHetaskRelevanceById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.TempDetpRelevance; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³èServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-04 |
| | | */ |
| | | public interface ITempDetpRelevanceService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param id 模æ¿ç§å®¤å
³èä¸»é® |
| | | * @return 模æ¿ç§å®¤å
³è |
| | | */ |
| | | public TempDetpRelevance selectTempDetpRelevanceById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿ç§å®¤å
³èå表 |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return 模æ¿ç§å®¤å
³èéå |
| | | */ |
| | | public List<TempDetpRelevance> selectTempDetpRelevanceList(TempDetpRelevance tempDetpRelevance); |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int insertTempDetpRelevance(TempDetpRelevance tempDetpRelevance); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int updateTempDetpRelevance(TempDetpRelevance tempDetpRelevance); |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param ids éè¦å é¤ç模æ¿ç§å®¤å
³è主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTempDetpRelevanceByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿ç§å®¤å
³èä¿¡æ¯ |
| | | * |
| | | * @param id 模æ¿ç§å®¤å
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTempDetpRelevanceById(Long id); |
| | | } |
| | |
| | | import com.smartor.mapper.HeLibraryAssortMapper; |
| | | import com.smartor.service.IHeLibraryAssortService; |
| | | import io.jsonwebtoken.lang.Collections; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @author ruoyi |
| | | * @date 2023-12-24 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class HeLibraryAssortServiceImpl implements IHeLibraryAssortService { |
| | | @Autowired |
| | |
| | | } |
| | | |
| | | HeLibraryAssort heLibraryAssort = DtoConversionUtils.sourceToTarget(heLibraryAssortVO, HeLibraryAssort.class); |
| | | Integer integer = heLibraryAssortMapper.selectSeqMax(); |
| | | if (integer != null) { |
| | | heLibraryAssort.setSeqno(integer.longValue() + 1); |
| | | //è·ååºå·æå¤§å¼ |
| | | Integer seqMax = null; |
| | | try { |
| | | seqMax = heLibraryAssortMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax = 0; |
| | | } |
| | | if (seqMax != null) { |
| | | heLibraryAssort.setSeqno(seqMax.longValue() + 1); |
| | | } else { |
| | | heLibraryAssort.setSeqno(1L); |
| | | } |
| | |
| | | if (CollectionUtils.isNotEmpty(heLibraryAssortVO.getHeLibraryAssortList())) { |
| | | for (HeLibraryAssort heLibraryAssort1 : heLibraryAssortVO.getHeLibraryAssortList()) { |
| | | heLibraryAssort1.setPid(heLibraryAssort.getId()); |
| | | Integer seqMax = heLibraryAssortMapper.selectSeqMax(); |
| | | if (seqMax != null) { |
| | | heLibraryAssort1.setSeqno(seqMax.longValue() + 1); |
| | | Integer seqMax1 = null; |
| | | try { |
| | | seqMax1 = heLibraryAssortMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax1 = 0; |
| | | } |
| | | if (seqMax1 != null) { |
| | | heLibraryAssort1.setSeqno(seqMax1.longValue() + 1); |
| | | } else { |
| | | heLibraryAssort1.setSeqno(1L); |
| | | } |
| | |
| | | Integer i = null; |
| | | |
| | | for (Long id : ids) { |
| | | if (id < 0) { |
| | | log.info("宣æåç±»idå°äº0ï¼ä¸ºé»è®¤åç±»ï¼ä¸è½å é¤ï¼idï¼{}", id); |
| | | continue; |
| | | } |
| | | i = heLibraryAssortMapper.deleteHeLibraryAssortById(id); |
| | | //å 餿ååï¼å¦æè¯¥å é¤çID䏿忰æ®ï¼åå°åæ°æ®æ¾å°æªåé
ä¸é¢ |
| | | HeLibraryAssort heLibraryAssort = new HeLibraryAssort(); |
| | |
| | | if (CollectionUtils.isNotEmpty(heLibraryAssortList1)) { |
| | | for (HeLibraryAssort heLibraryAssort1 : heLibraryAssortList1) { |
| | | //设置æªåé
ID |
| | | heLibraryAssort1.setPid(999999999L); |
| | | heLibraryAssort1.setPid(-1L); |
| | | heLibraryAssortMapper.updateHeLibraryAssort(heLibraryAssort1); |
| | | } |
| | | } |
| | |
| | | import com.smartor.domain.HeLibrary; |
| | | import com.smartor.domain.HeLibraryTag; |
| | | import com.smartor.domain.HeLibraryVO; |
| | | import com.smartor.domain.TempDetpRelevance; |
| | | import com.smartor.mapper.HeLibraryMapper; |
| | | import com.smartor.mapper.HeLibraryTagMapper; |
| | | import com.smartor.mapper.TempDetpRelevanceMapper; |
| | | import com.smartor.service.IHeLibraryService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | |
| | | |
| | | @Autowired |
| | | private HeLibraryTagMapper heLibraryTagMapper; |
| | | |
| | | @Autowired |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢å®£æèµæåº |
| | |
| | | */ |
| | | @Override |
| | | public int deleteHeLibraryByIds(Long[] ids) { |
| | | return heLibraryMapper.deleteHeLibraryByIds(ids); |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | i = heLibraryMapper.deleteHeLibraryById(id); |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | /** |
| | | * å é¤å®£æèµæåºä¿¡æ¯ |
| | | * |
| | | * @param id 宣æèµæåºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteHeLibraryById(Long id) { |
| | | return heLibraryMapper.deleteHeLibraryById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹å®£æè¯¦æ
|
| | |
| | | } |
| | | } |
| | | |
| | | //对ç§å®¤è¿è¡å¤ç |
| | | for (TempDetpRelevance tempDetpRelevance : heLibraryVO.getTempDetpRelevances()) { |
| | | if (tempDetpRelevance.getId() == null) { |
| | | //æ°å¢ |
| | | tempDetpRelevance.setTempid(heLibrary.getId()); |
| | | tempDetpRelevance.setType(3L); |
| | | tempDetpRelevanceMapper.insertTempDetpRelevance(tempDetpRelevance); |
| | | } else { |
| | | tempDetpRelevanceMapper.updateTempDetpRelevance(tempDetpRelevance); |
| | | } |
| | | } |
| | | |
| | | return i; |
| | | } |
| | | |
| | | @Override |
| | | public HeLibraryVO selectInfoByCondition(HeLibrary heLibrary) { |
| | | public List<HeLibraryVO> selectInfoByCondition(HeLibrary heLibrary) { |
| | | log.info("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶çå
¥å为ï¼{}", heLibrary); |
| | | List<HeLibrary> heLibraries = selectHeLibraryList(heLibrary); |
| | | if (CollectionUtils.isEmpty(heLibraries)) { |
| | | log.info("æä¾çæ¡ä»¶,æ¥è¯¢å®£ææ°æ®ä¸ºç©ºï¼{}", heLibraries); |
| | | throw new BaseException("æä¾çæ¡ä»¶,æ¥è¯¢å®£ææ°æ®ä¸ºç©º"); |
| | | } |
| | | |
| | | //ç¨äºè¿å |
| | | HeLibraryVO heLibraryVO = DtoConversionUtils.sourceToTarget(heLibraries.get(0), HeLibraryVO.class); |
| | | //æ ¹æ®å®£æIDæ¥è¯¢å®£æææ éå |
| | | HeLibraryTag heLibraryTag = new HeLibraryTag(); |
| | | heLibraryTag.setHeid(heLibraryVO.getId()); |
| | | List<HeLibraryTag> heLibraryTags = heLibraryTagMapper.selectHeLibraryTagList(heLibraryTag); |
| | | heLibraryVO.setHeLibraryTagList(heLibraryTags); |
| | | |
| | | return heLibraryVO; |
| | | List<HeLibraryVO> heLibraryVOS = DtoConversionUtils.sourceToTarget(heLibraries, HeLibraryVO.class); |
| | | if (CollectionUtils.isNotEmpty(heLibraryVOS) && heLibraryVOS.size() == 1) { |
| | | //æ ¹æ®å®£æIDæ¥è¯¢å®£æææ éå |
| | | HeLibraryTag heLibraryTag = new HeLibraryTag(); |
| | | heLibraryTag.setHeid(heLibraryVOS.get(0).getId()); |
| | | List<HeLibraryTag> heLibraryTags = heLibraryTagMapper.selectHeLibraryTagList(heLibraryTag); |
| | | heLibraryVOS.get(0).setHeLibraryTagList(heLibraryTags); |
| | | } |
| | | return heLibraryVOS; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.enums.SendTypeEnum; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.common.SendService; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.HeTaskMapper; |
| | | import com.smartor.mapper.PatArchiveMapper; |
| | | import com.smartor.mapper.PatHetaskRelevanceMapper; |
| | | import com.smartor.service.IHeTaskService; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Timer; |
| | | import java.util.TimerTask; |
| | | |
| | | /** |
| | | * 宣æä»»å¡Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Service |
| | | public class HeTaskServiceImpl implements IHeTaskService { |
| | | @Autowired |
| | | private HeTaskMapper heTaskMapper; |
| | | |
| | | @Autowired |
| | | private PatArchiveMapper patArchiveMapper; |
| | | |
| | | @Autowired |
| | | private PatArchiveServiceImpl patArchiveService; |
| | | |
| | | @Autowired |
| | | private HeLibraryServiceImpl heLibraryService; |
| | | |
| | | @Autowired |
| | | private PatHetaskRelevanceMapper patHetaskRelevanceMapper; |
| | | |
| | | @Autowired |
| | | private SendService sendService; |
| | | |
| | | /** |
| | | * æ¥è¯¢å®£æä»»å¡ |
| | | * |
| | | * @param id 宣æä»»å¡ä¸»é® |
| | | * @return 宣æä»»å¡ |
| | | */ |
| | | @Override |
| | | public HeTaskVO selectHeTaskById(Long id) { |
| | | // HeTask heTask = heTaskMapper.selectHeTaskById(id); |
| | | // HeTaskVO heTaskVO = DtoConversionUtils.sourceToTarget(heTask, HeTaskVO.class); |
| | | // |
| | | // //è·åæ£è
ä¿¡æ¯ |
| | | // if (StringUtils.isNotEmpty(heTask.getPatientid())) { |
| | | // List<PatArchive> patArchives = new ArrayList<>(); |
| | | // String[] patientids = heTask.getPatientid().split(","); |
| | | // for (String patientid : patientids) { |
| | | // PatArchive patArchive = patArchiveMapper.selectPatArchiveByPatid(Long.valueOf(patientid)); |
| | | // patArchives.add(patArchive); |
| | | // } |
| | | // heTaskVO.setPatArchives(patArchives); |
| | | // } |
| | | // |
| | | // //è·åå®£ææ¨¡æ¿ä¿¡æ¯ |
| | | // if (heTask.getPreachcategoryid() != null) { |
| | | // HeLibrary heLibrary = new HeLibrary(); |
| | | // heLibrary.setId(heTask.getPreachcategoryid()); |
| | | // HeLibraryVO heLibraryVO = heLibraryService.selectInfoByCondition(heLibrary); |
| | | // heTaskVO.setHeLibraryVOs(heLibraryVO); |
| | | // } |
| | | |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å®£æä»»å¡å表 |
| | | * |
| | | * @param patHetaskRelevanceVO 宣æä»»å¡ |
| | | * @return 宣æä»»å¡ |
| | | */ |
| | | @Override |
| | | public List<PatHetaskRelevanceVO> selectHeTaskList(PatHetaskRelevanceVO patHetaskRelevanceVO) { |
| | | PatHetaskRelevance patHetaskRelevance = new PatHetaskRelevance(); |
| | | List<PatHetaskRelevance> patHetaskRelevances = patHetaskRelevanceMapper.selectPatHetaskRelevanceList(patHetaskRelevance); |
| | | List<PatHetaskRelevanceVO> patHetaskRelevanceVOS = DtoConversionUtils.sourceToTarget(patHetaskRelevances, PatHetaskRelevanceVO.class); |
| | | for (PatHetaskRelevanceVO patHetaskRelevanceVO1 : patHetaskRelevanceVOS) { |
| | | HeTask heTask1 = heTaskMapper.selectHeTaskById(patHetaskRelevanceVO1.getHeTaskId()); |
| | | patHetaskRelevanceVO1.setHeTask(heTask1); |
| | | } |
| | | return patHetaskRelevanceVOS; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å®£æä»»å¡ |
| | | * |
| | | * @param heTaskVO 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public int insertHeTask(HeTaskVO heTaskVO) { |
| | | |
| | | Integer integer = 0; |
| | | //夿åéç¶æ 0 æååé 1 宿¶åé 2 ç«å³åé |
| | | if (heTaskVO.getIsSend() == 2) { |
| | | //åéæ¹å¼ |
| | | String sendtype = SendTypeEnum.getDescByCode(heTaskVO.getPreachform().intValue()); |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | //å¼å§åé |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType(sendtype); |
| | | sendMagParam.setPhone(patHetaskRelevance.getPhone()); |
| | | //è¿éçæ¨¡æ¿IDä¸ç¡®å®ï¼å
è¿æ ·å |
| | | sendMagParam.setTmpCode("SMS_461860582"); |
| | | sendMagParam.setContent("Teståéæ°æ®"); |
| | | Boolean success = sendService.sendMsg(sendMagParam); |
| | | if (success) { |
| | | integer = integer + 1; |
| | | } |
| | | |
| | | //å¿
é¡»å
¨é¨æåï¼æè½ä¿®æ¹åéç¶æ |
| | | if (heTaskVO.getPatHetaskRelevances().size() == integer) { |
| | | //妿åéæå |
| | | heTaskVO.setSendState(1L); |
| | | } |
| | | } |
| | | //å°ä»»å¡ä¿¡æ¯æ°å¢å°å®£æä»»å¡è¡¨ä¸ |
| | | HeTask heTask = DtoConversionUtils.sourceToTarget(heTaskVO, HeTask.class); |
| | | heTask.setCreateTime(DateUtils.getNowDate()); |
| | | heTaskMapper.insertHeTask(heTask); |
| | | |
| | | //å°ä»»å¡ä¸æ£è
å
³è |
| | | Integer i = null; |
| | | if (ObjectUtils.isNotEmpty(heTaskVO.getPatHetaskRelevances())) { |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | patHetaskRelevance.setHeTaskId(heTask.getId()); |
| | | i = patHetaskRelevanceMapper.insertPatHetaskRelevance(patHetaskRelevance); |
| | | } |
| | | |
| | | } |
| | | |
| | | } else if (heTaskVO.getIsSend() == 1) { |
| | | //宿¶åé(弿¥) |
| | | Timer timer = new Timer(); |
| | | timer.schedule(new TimerTask() { |
| | | @Override |
| | | public void run() { |
| | | Integer integer = 0; |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | String sendtype = SendTypeEnum.getDescByCode(heTaskVO.getPreachform().intValue()); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType(sendtype); |
| | | sendMagParam.setPhone(patHetaskRelevance.getPhone()); |
| | | //è¿éçæ¨¡æ¿IDä¸ç¡®å®ï¼å
è¿æ ·å |
| | | sendMagParam.setTmpCode("SMS_461860582"); |
| | | sendMagParam.setContent("Teståéæ°æ®"); |
| | | Boolean success = sendService.sendMsg(sendMagParam); |
| | | if (success) { |
| | | integer = integer + 1; |
| | | } |
| | | } |
| | | //å¿
é¡»å
¨é¨æåï¼æè½ä¿®æ¹åéç¶æ |
| | | if (heTaskVO.getPatHetaskRelevances().size() == integer) { |
| | | //妿åéæå |
| | | heTaskVO.setSendState(1L); |
| | | } |
| | | HeTask heTask = DtoConversionUtils.sourceToTarget(heTaskVO, HeTask.class); |
| | | heTask.setCreateTime(DateUtils.getNowDate()); |
| | | heTaskMapper.insertHeTask(heTask); |
| | | |
| | | if (ObjectUtils.isNotEmpty(heTaskVO.getPatHetaskRelevances())) { |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | patHetaskRelevance.setHeTaskId(heTask.getId()); |
| | | patHetaskRelevanceMapper.insertPatHetaskRelevance(patHetaskRelevance); |
| | | } |
| | | |
| | | } |
| | | } |
| | | }, heTaskVO.getSendTime()); |
| | | |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å®£æä»»å¡ |
| | | * |
| | | * @param heTask 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateHeTask(HeTask heTask) { |
| | | heTask.setUpdateTime(DateUtils.getNowDate()); |
| | | return heTaskMapper.updateHeTask(heTask); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤å®£æä»»å¡ |
| | | * |
| | | * @param ids éè¦å é¤ç宣æä»»å¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteHeTaskByIds(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | i = heTaskMapper.deleteHeTaskById(id); |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | /** |
| | | * å é¤å®£æä»»å¡ä¿¡æ¯ |
| | | * |
| | | * @param id 宣æä»»å¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteHeTaskById(Long id) { |
| | | return heTaskMapper.deleteHeTaskById(id); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ£è
ä¿¡æ¯ |
| | | * |
| | | * @param patArchiveReq |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<PatHetaskRelevance> getPatientInfo(PatArchiveReq patArchiveReq) { |
| | | List<PatHetaskRelevance> patHetaskRelevances = new ArrayList<>(); |
| | | |
| | | List<PatArchive> patArchiveList = new ArrayList<>(); |
| | | if (patArchiveReq.getAllhosp() != null && patArchiveReq.getAllhosp() == 1) { |
| | | // æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3 |
| | | List<PatArchive> patArchives1 = patArchiveMapper.selectPatArchiveInfoByInhosp(patArchiveReq); |
| | | if (CollectionUtils.isNotEmpty(patArchives1)) { |
| | | patArchiveList.addAll(patArchives1); |
| | | } |
| | | } else if (patArchiveReq.getAllhosp() != null && patArchiveReq.getAllhosp() == 2) { |
| | | // æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3 |
| | | List<PatArchive> patArchives2 = patArchiveMapper.selectPatArchiveInfoByOuthosp(patArchiveReq); |
| | | if (CollectionUtils.isNotEmpty(patArchives2)) { |
| | | patArchiveList.addAll(patArchives2); |
| | | } |
| | | } else if (patArchiveReq.getAllhosp() != null && patArchiveReq.getAllhosp() == 3) { |
| | | // æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3 |
| | | List<PatArchive> patArchives3 = patArchiveMapper.selectPatArchiveInfoByPhysical(patArchiveReq); |
| | | if (CollectionUtils.isNotEmpty(patArchives3)) { |
| | | patArchiveList.addAll(patArchives3); |
| | | } |
| | | } |
| | | for (PatArchive patArchive : patArchiveList) { |
| | | PatHetaskRelevance patHetaskRelevance = DtoConversionUtils.sourceToTarget(patArchive, PatHetaskRelevance.class); |
| | | patHetaskRelevance.setDept(patArchive.getArchiveby()); |
| | | patHetaskRelevance.setCreateTime(patArchive.getCreateTime()); |
| | | patHetaskRelevance.setCreateBy(patArchive.getCreateBy()); |
| | | patHetaskRelevances.add(patHetaskRelevance); |
| | | } |
| | | |
| | | return patHetaskRelevances; |
| | | } |
| | | |
| | | } |
| | |
| | | import com.smartor.domain.IvrLibaExtemplateCategory; |
| | | import com.smartor.mapper.IvrLibaExtemplateCategoryMapper; |
| | | import com.smartor.service.IIvrLibaExtemplateCategoryService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class IvrLibaExtemplateCategoryServiceImpl implements IIvrLibaExtemplateCategoryService { |
| | | @Autowired |
| | |
| | | public int deleteIvrLibaExtemplateCategoryByIntertcatids(Long[] intertcatids) { |
| | | Integer i = null; |
| | | for (Long intertcatid : intertcatids) { |
| | | //è´æ°çID为é»è®¤å¼ï¼ä¸å¯ä»¥å é¤ |
| | | if (intertcatid < 0) { |
| | | log.info("intertcatidçå¼ä¸ºï¼{}", intertcatid); |
| | | continue; |
| | | } |
| | | i = ivrLibaExtemplateCategoryMapper.deleteIvrLibaExtemplateCategoryByIntertcatid(intertcatid); |
| | | //å 餿ååï¼å¦æè¯¥å é¤çID䏿忰æ®ï¼åå°åæ°æ®æ¾å°æªåé
ä¸é¢ |
| | | IvrLibaExtemplateCategory ivrLibaExtemplateCategory = new IvrLibaExtemplateCategory(); |
| | |
| | | if (CollectionUtils.isNotEmpty(ivrLibaExtemplateCategories)) { |
| | | for (IvrLibaExtemplateCategory ivrLibaExtemplateCategory1 : ivrLibaExtemplateCategories) { |
| | | //设置æªåé
ID |
| | | ivrLibaExtemplateCategory1.setPid(999999999L); |
| | | ivrLibaExtemplateCategory1.setPid(-1L); |
| | | ivrLibaExtemplateCategoryMapper.updateIvrLibaExtemplateCategory(ivrLibaExtemplateCategory1); |
| | | } |
| | | } |
| | |
| | | if (ObjectUtils.isEmpty(ivrLibaScriptAssortVO)) { |
| | | throw new BaseException("å
¥å为空,è¯·æ£æ¥å,åæ°å¢"); |
| | | } |
| | | Integer seqMax = ivrLibaScriptAssortMapper.selectSeqMax(); |
| | | //è·ååºå·æå¤§å¼ |
| | | Integer seqMax = null; |
| | | try { |
| | | seqMax = ivrLibaScriptAssortMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax = 0; |
| | | } |
| | | |
| | | IvrLibaScriptAssort ivrLibaScriptAssort = DtoConversionUtils.sourceToTarget(ivrLibaScriptAssortVO, IvrLibaScriptAssort.class); |
| | | if (seqMax == null) { |
| | | ivrLibaScriptAssort.setSeqno(1); |
| | |
| | | //æ°å¢äºçº§æ |
| | | if (CollectionUtils.isNotEmpty(ivrLibaScriptAssortVO.getIvrLibaScriptAssortList())) { |
| | | for (IvrLibaScriptAssort ivrLibaScriptAssort1 : ivrLibaScriptAssortVO.getIvrLibaScriptAssortList()) { |
| | | Integer seqMax1 = ivrLibaScriptAssortMapper.selectSeqMax(); |
| | | //è·ååºå·æå¤§å¼ |
| | | Integer seqMax1 = null; |
| | | try { |
| | | seqMax1 = ivrLibaScriptAssortMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax1 = 0; |
| | | } |
| | | ivrLibaScriptAssort1.setPid(ivrLibaScriptAssort.getId()); |
| | | if (seqMax == null) { |
| | | ivrLibaScriptAssort1.setSeqno(1); |
| | |
| | | public Integer deleteIvrLibaScriptAssortByIds(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | if (id < 0) { |
| | | log.info("该é®é¢è¯æ¯åç±»id为é»è®¤IDï¼ä¸è½å é¤,id:{}", id); |
| | | continue; |
| | | } |
| | | i = ivrLibaScriptAssortMapper.deleteIvrLibaScriptAssortById(id); |
| | | //æ¥è¯¢å é¤idæå¯¹å°±çåæ°æ® |
| | | IvrLibaScriptAssort ivrLibaScriptAssort = new IvrLibaScriptAssort(); |
| | |
| | | |
| | | if (CollectionUtils.isNotEmpty(ivrLibaScriptAssorts)) { |
| | | for (IvrLibaScriptAssort ivrLibaScriptAssort1 : ivrLibaScriptAssorts) { |
| | | ivrLibaScriptAssort1.setPid(999999999L); |
| | | ivrLibaScriptAssort1.setPid(-1L); |
| | | ivrLibaScriptAssortMapper.updateIvrLibaScriptAssort(ivrLibaScriptAssort1); |
| | | } |
| | | } |
| | |
| | | if (ObjectUtils.isEmpty(ivrLibaTargetAssortVO)) { |
| | | throw new BaseException("å
¥å为空,è¯·æ£æ¥å,åæ°å¢"); |
| | | } |
| | | Integer seqMax = ivrLibaTargetAssortMapper.selectSeqMax(); |
| | | |
| | | //è·ååºå·æå¤§å¼ |
| | | Integer seqMax = null; |
| | | try { |
| | | seqMax = ivrLibaTargetAssortMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax = 0; |
| | | } |
| | | IvrLibaTargetAssort ivrLibaTargetAssort = DtoConversionUtils.sourceToTarget(ivrLibaTargetAssortVO, IvrLibaTargetAssort.class); |
| | | ivrLibaTargetAssort.setSeqno(1); |
| | | if (seqMax != null) { |
| | |
| | | //æ°å¢äºçº§æ |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTargetAssortVO.getIvrLibaTargetAssortList())) { |
| | | for (IvrLibaTargetAssort ivrLibaTargetAssort1 : ivrLibaTargetAssortVO.getIvrLibaTargetAssortList()) { |
| | | int seqMax1 = ivrLibaTargetAssortMapper.selectSeqMax(); |
| | | //è·ååºå·æå¤§å¼ |
| | | Integer seqMax1 = null; |
| | | try { |
| | | seqMax1 = ivrLibaTargetAssortMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax1 = 0; |
| | | } |
| | | ivrLibaTargetAssort1.setPid(ivrLibaTargetAssort.getId()); |
| | | ivrLibaTargetAssort1.setSeqno(1); |
| | | if (seqMax != null) { |
| | |
| | | public Integer deleteIvrLibaTargetAssortByIds(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | if (id < 0) { |
| | | log.info("è¯¥ææ åç±»id为é»è®¤IDï¼ä¸è½å é¤ï¼id:{}", id); |
| | | continue; |
| | | } |
| | | i = ivrLibaTargetAssortMapper.deleteIvrLibaTargetAssortById(id); |
| | | IvrLibaTargetAssort ivrLibaTargetAssort = new IvrLibaTargetAssort(); |
| | | ivrLibaTargetAssort.setPid(id); |
| | |
| | | List<IvrLibaTargetAssort> ivrLibaTargetAssorts = ivrLibaTargetAssortMapper.selectIvrLibaTargetAssortList(ivrLibaTargetAssort); |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTargetAssorts)) { |
| | | for (IvrLibaTargetAssort ivrLibaTargetAssort1 : ivrLibaTargetAssorts) { |
| | | ivrLibaTargetAssort1.setPid(999999999L); |
| | | ivrLibaTargetAssort1.setPid(-1L); |
| | | ivrLibaTargetAssortMapper.updateIvrLibaTargetAssort(ivrLibaTargetAssort1); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æ¥è¯¢ææ éé¡¹åº |
| | | * |
| | | * @param targetID ææ é项åºä¸»é® |
| | | * @param id ææ é项åºä¸»é® |
| | | * @return ææ éé¡¹åº |
| | | */ |
| | | @Override |
| | | public IvrLibaTarget selectIvrLibaTargetByTargetID(Long targetID) { |
| | | return ivrLibaTargetMapper.selectIvrLibaTargetByTargetID(targetID); |
| | | public IvrLibaTarget selectIvrLibaTargetByTargetID(Long id) { |
| | | return ivrLibaTargetMapper.selectIvrLibaTargetByTargetID(id); |
| | | } |
| | | |
| | | /** |
| | |
| | | List<IvrLibaTargetVO> ivrLibaTargetVOS = DtoConversionUtils.sourceToTarget(ivrLibaTargets, IvrLibaTargetVO.class); |
| | | for (IvrLibaTargetVO ivrLibaTarget1 : ivrLibaTargetVOS) { |
| | | IvrLibaTargetoption ivrLibaTargetoption = new IvrLibaTargetoption(); |
| | | ivrLibaTargetoption.setTargetid(ivrLibaTarget1.getTargetID()); |
| | | ivrLibaTargetoption.setTargetid(ivrLibaTarget1.getId()); |
| | | //è·åè¯¥ææ çé项 |
| | | List<IvrLibaTargetoption> ivrLibaTargetoptions = ivrLibaTargetoptionMapper.selectIvrLibaTargetoptionList(ivrLibaTargetoption); |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTargetoptions)) { |
| | | ivrLibaTarget1.setTargetoptionList(ivrLibaTargetoptions); |
| | | } |
| | | //è·åè¯¥ææ çæ ç¾ |
| | | List<BaseTag> baseTags = ivrLibaTargetTagMapper.selectTagName(ivrLibaTarget1.getTargetID()); |
| | | List<BaseTag> baseTags = ivrLibaTargetTagMapper.selectTagName(ivrLibaTarget1.getId()); |
| | | ivrLibaTarget1.setBaseTagList(baseTags); |
| | | } |
| | | //ä¸é¢ç¨å·¦å¤æè§æç¹é®é¢ï¼whereä¸çoptionçdelä¼å¯¼è´å·¦è¾¹çæ¥è¯¢ä¸å
¨ï¼å
ä¸ç¨å§ |
| | |
| | | for (BaseTag baseTag : ivrLibaTargetVO.getBaseTagList()) { |
| | | IvrLibaTargetTag ivrLibaTargetTag = new IvrLibaTargetTag(); |
| | | ivrLibaTargetTag.setTagcategoryid(baseTag.getTagcategoryid()); |
| | | ivrLibaTargetTag.setTargetid(ivrLibaTarget.getTargetID()); |
| | | ivrLibaTargetTag.setTargetid(ivrLibaTarget.getId()); |
| | | //åç«¯ä¼ æ¥çbaseTagçtagidå°±æ¯ææ æ ç¾ç主é®id,䏿¯baseTagçä¸»é® |
| | | ivrLibaTargetTag.setTagid(baseTag.getTagid()); |
| | | ivrLibaTargetTagMapper.insertIvrLibaTargetTag(ivrLibaTargetTag); |
| | |
| | | for (IvrLibaTargetoption targetoption : ivrLibaTargetVO.getTargetoptionList()) { |
| | | if (ObjectUtils.isEmpty(targetoption)) continue; |
| | | log.info("targetoptionçæ°æ®ä¸ºï¼{}", targetoption); |
| | | targetoption.setTargetid(ivrLibaTarget.getTargetID()); |
| | | targetoption.setTargetid(ivrLibaTarget.getId()); |
| | | ivrLibaTargetoptionMapper.insertIvrLibaTargetoption(targetoption); |
| | | } |
| | | |
| | | log.info("ææ id为ï¼{}", ivrLibaTarget.getTargetID().intValue()); |
| | | return ivrLibaTarget.getTargetID().intValue(); |
| | | log.info("ææ id为ï¼{}", ivrLibaTarget.getId().intValue()); |
| | | return ivrLibaTarget.getId().intValue(); |
| | | } |
| | | |
| | | /** |
| | |
| | | //æ°å¢ |
| | | IvrLibaTargetTag ivrLibaTargetTag = new IvrLibaTargetTag(); |
| | | ivrLibaTargetTag.setTagcategoryid(baseTag.getTagcategoryid()); |
| | | ivrLibaTargetTag.setTargetid(ivrLibaTarget.getTargetID()); |
| | | ivrLibaTargetTag.setTargetid(ivrLibaTarget.getId()); |
| | | //åç«¯ä¼ æ¥çbaseTagçtagidå°±æ¯ææ æ ç¾ç主é®id,䏿¯baseTagçä¸»é® |
| | | ivrLibaTargetTag.setTagid(baseTag.getTagid()); |
| | | ivrLibaTargetTagMapper.insertIvrLibaTargetTag(ivrLibaTargetTag); |
| | |
| | | for (IvrLibaTargetoption ivrLibaTargetoption : ivrLibaTargetVO.getTargetoptionList()) { |
| | | if (ivrLibaTargetoption.getIsoperation() != null && ivrLibaTargetoption.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | ivrLibaTargetoption.setTargetid(ivrLibaTarget.getTargetID()); |
| | | ivrLibaTargetoption.setTargetid(ivrLibaTarget.getId()); |
| | | ivrLibaTargetoptionMapper.insertIvrLibaTargetoption(ivrLibaTargetoption); |
| | | } else if (ivrLibaTargetoption.getIsoperation() != null && ivrLibaTargetoption.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | |
| | | } |
| | | } |
| | | |
| | | return ivrLibaTarget.getTargetID().intValue(); |
| | | return ivrLibaTarget.getId().intValue(); |
| | | } |
| | | |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrLibaTargetByTargetIDs(Long[] targetIDs) { |
| | | return ivrLibaTargetMapper.deleteIvrLibaTargetByTargetIDs(targetIDs); |
| | | public int deleteIvrLibaTargetByTargetIDs(Long[] ids) { |
| | | return ivrLibaTargetMapper.deleteIvrLibaTargetByTargetIDs(ids); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrLibaTargetByTargetID(Long targetID) { |
| | | return ivrLibaTargetMapper.deleteIvrLibaTargetByTargetID(targetID); |
| | | public int deleteIvrLibaTargetByTargetID(Long id) { |
| | | return ivrLibaTargetMapper.deleteIvrLibaTargetByTargetID(id); |
| | | } |
| | | } |
| | |
| | | if (ObjectUtils.isEmpty(ivrLibaTemplateAssortVO)) { |
| | | throw new BaseException("å
¥å为空,è¯·æ£æ¥å,åæ°å¢"); |
| | | } |
| | | Integer seqMax = ivrLibaTemplateAssortMapper.selectSeqMax(); |
| | | Integer seqMax = null; |
| | | try { |
| | | seqMax = ivrLibaTemplateAssortMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax = 0; |
| | | } |
| | | |
| | | IvrLibaTemplateAssort ivrLibaTemplateAssort = DtoConversionUtils.sourceToTarget(ivrLibaTemplateAssortVO, IvrLibaTemplateAssort.class); |
| | | ivrLibaTemplateAssort.setSeqno(1); |
| | | if (seqMax != null) { |
| | |
| | | //æ°å¢äºçº§æ |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTemplateAssortVO.getIvrLibaTemplateAssortList())) { |
| | | for (IvrLibaTemplateAssort ivrLibaTemplateAssort1 : ivrLibaTemplateAssortVO.getIvrLibaTemplateAssortList()) { |
| | | int seqMax1 = ivrLibaTemplateAssortMapper.selectSeqMax(); |
| | | Integer seqMax1 = null; |
| | | try { |
| | | seqMax1 = ivrLibaTemplateAssortMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax1 = 0; |
| | | } |
| | | ivrLibaTemplateAssort1.setPid(ivrLibaTemplateAssort.getId()); |
| | | ivrLibaTemplateAssort1.setSeqno(seqMax1 + 1); |
| | | ivrLibaTemplateAssortMapper.insertIvrLibaTemplateAssort(ivrLibaTemplateAssort1); |
| | |
| | | public Integer deleteIvrLibaTemplateAssortByIds(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | if (id < 0) { |
| | | log.info("该模æ¿åç±»id为é»è®¤id,ä¸è½å é¤ï¼id:{}", id); |
| | | continue; |
| | | } |
| | | i = ivrLibaTemplateAssortMapper.deleteIvrLibaTemplateAssortById(id); |
| | | IvrLibaTemplateAssort ivrLibaTemplateAssort = new IvrLibaTemplateAssort(); |
| | | ivrLibaTemplateAssort.setPid(id); |
| | | List<IvrLibaTemplateAssort> ivrLibaTemplateAssorts = ivrLibaTemplateAssortMapper.selectIvrLibaTemplateAssortList(ivrLibaTemplateAssort); |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTemplateAssorts)) { |
| | | for (IvrLibaTemplateAssort ivrLibaTemplateAssort1 : ivrLibaTemplateAssorts) { |
| | | ivrLibaTemplateAssort1.setPid(999999999L); |
| | | ivrLibaTemplateAssort1.setPid(-1L); |
| | | ivrLibaTemplateAssortMapper.updateIvrLibaTemplateAssort(ivrLibaTemplateAssort1); |
| | | } |
| | | } |
| | |
| | | @Autowired |
| | | private IvrLibaTemplateScriptMapper ivrLibaTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿åº |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | //对ç§å®¤è¿è¡å¤ç |
| | | for (TempDetpRelevance tempDetpRelevance : ivrLibaTemplateVO.getTempDetpRelevances()) { |
| | | if (tempDetpRelevance.getId() == null) { |
| | | //æ°å¢ |
| | | tempDetpRelevance.setTempid(ivrLibaTemplate.getID()); |
| | | tempDetpRelevance.setType(2L); |
| | | tempDetpRelevanceMapper.insertTempDetpRelevance(tempDetpRelevance); |
| | | } else { |
| | | tempDetpRelevanceMapper.updateTempDetpRelevance(tempDetpRelevance); |
| | | } |
| | | } |
| | | |
| | | return i; |
| | | } |
| | | |
| | |
| | | * @return 模çé®é¢ææ åº |
| | | */ |
| | | @Override |
| | | public IvrLibaTemplateTarget selectIvrLibaTemplateTargetByID(Long ID) { |
| | | return ivrLibaTemplateTargetMapper.selectIvrLibaTemplateTargetByID(ID); |
| | | public IvrLibaTemplateTarget selectIvrLibaTemplateTargetByID(Long id) { |
| | | return ivrLibaTemplateTargetMapper.selectIvrLibaTemplateTargetByID(id); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public int deleteIvrLibaTemplateTargetByIDs(Long[] IDs) { |
| | | public int deleteIvrLibaTemplateTargetByIDs(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : IDs) { |
| | | for (Long id : ids) { |
| | | i = ivrLibaTemplateTargetMapper.deleteIvrLibaTemplateTargetByID(id); |
| | | } |
| | | return i; |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrLibaTemplateTargetByID(Long ID) { |
| | | return ivrLibaTemplateTargetMapper.deleteIvrLibaTemplateTargetByID(ID); |
| | | public int deleteIvrLibaTemplateTargetByID(Long id) { |
| | | return ivrLibaTemplateTargetMapper.deleteIvrLibaTemplateTargetByID(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.PatHetaskRelevance; |
| | | import com.smartor.mapper.PatHetaskRelevanceMapper; |
| | | import com.smartor.service.IPatHetaskRelevanceService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
ä¸å®£æä»»å¡å
³èServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Service |
| | | public class PatHetaskRelevanceServiceImpl implements IPatHetaskRelevanceService |
| | | { |
| | | @Autowired |
| | | private PatHetaskRelevanceMapper patHetaskRelevanceMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param id æ£è
ä¸å®£æä»»å¡å
³èä¸»é® |
| | | * @return æ£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | @Override |
| | | public PatHetaskRelevance selectPatHetaskRelevanceById(Long id) |
| | | { |
| | | return patHetaskRelevanceMapper.selectPatHetaskRelevanceById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¸å®£æä»»å¡å
³èå表 |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return æ£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | @Override |
| | | public List<PatHetaskRelevance> selectPatHetaskRelevanceList(PatHetaskRelevance patHetaskRelevance) |
| | | { |
| | | return patHetaskRelevanceMapper.selectPatHetaskRelevanceList(patHetaskRelevance); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPatHetaskRelevance(PatHetaskRelevance patHetaskRelevance) |
| | | { |
| | | patHetaskRelevance.setCreateTime(DateUtils.getNowDate()); |
| | | return patHetaskRelevanceMapper.insertPatHetaskRelevance(patHetaskRelevance); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param patHetaskRelevance æ£è
ä¸å®£æä»»å¡å
³è |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePatHetaskRelevance(PatHetaskRelevance patHetaskRelevance) |
| | | { |
| | | patHetaskRelevance.setUpdateTime(DateUtils.getNowDate()); |
| | | return patHetaskRelevanceMapper.updatePatHetaskRelevance(patHetaskRelevance); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
ä¸å®£æä»»å¡å
³è |
| | | * |
| | | * @param ids éè¦å é¤çæ£è
ä¸å®£æä»»å¡å
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatHetaskRelevanceByIds(Long[] ids) |
| | | { |
| | | return patHetaskRelevanceMapper.deletePatHetaskRelevanceByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
ä¸å®£æä»»å¡å
³èä¿¡æ¯ |
| | | * |
| | | * @param id æ£è
ä¸å®£æä»»å¡å
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatHetaskRelevanceById(Long id) |
| | | { |
| | | return patHetaskRelevanceMapper.deletePatHetaskRelevanceById(id); |
| | | } |
| | | } |
| | |
| | | if (spans.size() != 0) { |
| | | Elements radio__type = spans.get(0).getElementsByClass("radio__type"); |
| | | if (radio__type.size() != 0) { |
| | | svyLibTopic.setTopictype(1L); |
| | | svyLibTopic.setTopictype("1"); |
| | | } else { |
| | | Elements checkbox__type = spans.get(0).getElementsByClass("checkbox__type"); |
| | | if (checkbox__type.size() != 0) { |
| | | svyLibTopic.setTopictype(2L); |
| | | svyLibTopic.setTopictype("2"); |
| | | } |
| | | } |
| | | |
| | |
| | | svyLibTopic2.setTopic(legend); |
| | | svyLibTopic2.setDelFlag("0"); |
| | | svyLibTopic.setIsupload(0L); |
| | | svyLibTopic2.setTopictype(4L); |
| | | svyLibTopic2.setTopictype("4"); |
| | | svyLibTopic2.setOrgid(fileName); |
| | | try { |
| | | svyLibTopicMapper.insertSvyLibTopic(svyLibTopic2); |
| | |
| | | svyLibTopic3.setTopic(legend); |
| | | svyLibTopic3.setDelFlag("0"); |
| | | svyLibTopic3.setIsupload(0L); |
| | | svyLibTopic3.setTopictype(3L); |
| | | svyLibTopic3.setTopictype("3"); |
| | | svyLibTopic3.setOrgid(fileName); |
| | | try { |
| | | svyLibTopicMapper.insertSvyLibTopic(svyLibTopic3); |
| | |
| | | public int deleteSvyLibTitleCategoryByIds(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | if (id < 0) { |
| | | log.info("é®å·æ¨¡æ¿åç±»çIDå°äº0ï¼ä¸ºé»è®¤åç±»ï¼ä¸è½å é¤,id:{}", id); |
| | | continue; |
| | | } |
| | | i = svyLibTitleCategoryMapper.deleteSvyLibTitleCategoryById(id); |
| | | SvyLibTitleCategory svyLibTitleCategory = new SvyLibTitleCategory(); |
| | | svyLibTitleCategory.setPid(id); |
| | |
| | | List<SvyLibTitleCategory> svyLibTitleCategoryList = svyLibTitleCategoryMapper.selectSvyLibTitleCategoryList(svyLibTitleCategory); |
| | | if (CollectionUtils.isNotEmpty(svyLibTitleCategoryList)) { |
| | | for (SvyLibTitleCategory svyLibTitleCategory1 : svyLibTitleCategoryList) { |
| | | svyLibTitleCategory1.setPid(999999999L); |
| | | svyLibTitleCategory1.setPid(-1L); |
| | | svyLibTitleCategoryMapper.updateSvyLibTitleCategory(svyLibTitleCategory1); |
| | | } |
| | | } |
| | |
| | | if (ObjectUtils.isEmpty(svyLibTitleCategoryVO)) { |
| | | throw new BaseException("å
¥å为空,è¯·æ£æ¥å,åæ°å¢"); |
| | | } |
| | | Integer seqMax = svyLibTitleCategoryMapper.selectSeqMax(); |
| | | |
| | | //è·ååºå·æå¤§å¼ |
| | | Integer seqMax = null; |
| | | try { |
| | | seqMax = svyLibTitleCategoryMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax = 0; |
| | | } |
| | | SvyLibTitleCategory svyLibTitleCategory = DtoConversionUtils.sourceToTarget(svyLibTitleCategoryVO, SvyLibTitleCategory.class); |
| | | svyLibTitleCategory.setSeqno(1); |
| | | if (seqMax != null) { |
| | |
| | | //æ°å¢äºçº§æ |
| | | if (CollectionUtils.isNotEmpty(svyLibTitleCategoryVO.getSvyLibTitleCategoryList())) { |
| | | for (SvyLibTitleCategory svyLibTitleCategory1 : svyLibTitleCategoryVO.getSvyLibTitleCategoryList()) { |
| | | Integer seqMax1 = svyLibTitleCategoryMapper.selectSeqMax(); |
| | | Integer seqMax1 = null; |
| | | try { |
| | | seqMax1 = svyLibTitleCategoryMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax1 = 0; |
| | | } |
| | | svyLibTitleCategory1.setPid(svyLibTitleCategory.getId()); |
| | | svyLibTitleCategory1.setSeqno(1); |
| | | if (seqMax1 != null) { |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | private SvyLibTopicMapper svyLibTopicMapper; |
| | | @Autowired |
| | | private SvyLibTopicoptionMapper svyLibTopicoptionMapper; |
| | | @Autowired |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å· |
| | |
| | | a: |
| | | for (int j = 0; j < svyLibTopics.size(); j++) { |
| | | log.info("é®é¢id为ï¼{}", svyLibTopics.get(j).getSvyTopicId()); |
| | | if (svyLibTopics.get(j).getTopictype() != null && svyLibTopics.get(j).getTopictype() == 3 || svyLibTopics.get(j).getSvyTopicId() == null) { |
| | | if (StringUtils.isNotEmpty(svyLibTopics.get(j).getTopictype()) && svyLibTopics.get(j).getTopictype().equals("3") || svyLibTopics.get(j).getSvyTopicId() == null) { |
| | | //ä½çé¢ï¼ä¸éè¦é项 |
| | | continue a; |
| | | } else { |
| | |
| | | } |
| | | //å°é¢ç®æ¾å°é®å·åè¡¨ä¸ |
| | | svyLibTitles.get(i).setSvyLibTopics(svyLibTopics); |
| | | |
| | | //è·åæ¯ä¸ªé®å·å¯¹åºçç§å®¤ |
| | | TempDetpRelevance tempDetpRelevance = new TempDetpRelevance(); |
| | | tempDetpRelevance.setTempid(svyLibTitles.get(i).getSvyid()); |
| | | List<TempDetpRelevance> tempDetpRelevances = tempDetpRelevanceMapper.selectTempDetpRelevanceList(tempDetpRelevance); |
| | | svyLibTitles.get(i).setTempDetpRelevances(CollectionUtils.isNotEmpty(tempDetpRelevances) ? tempDetpRelevances : new ArrayList<>()); |
| | | } |
| | | |
| | | //å
å°ç¸åçidçicdname,æ´çå°ä¸å |
| | |
| | | svyLibTopic.setSvyid(svyLibTitle.getSvyid()); |
| | | //é¢ç®çé项ç®ï¼ç´æ¥ç¨svy_topicoption表ï¼ç¨svyTopicidå»å
³è |
| | | svyLibTopicMapper.insertSvyLibTopic(svyLibTopic); |
| | | } else if (svyLibTitle.getIsoperation() != null && svyLibTopic.getIsoperation() == 2) { |
| | | } else if (svyLibTopic.getIsoperation() != null && svyLibTopic.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTopic.setSvyid(svyLibTitle.getSvyid()); |
| | | svyLibTopicMapper.updateSvyLibTopic(svyLibTopic); |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | if (CollectionUtils.isNotEmpty(svyLibTitle.getTempDetpRelevances())) { |
| | | for (TempDetpRelevance tempDetpRelevance : svyLibTitle.getTempDetpRelevances()) { |
| | | if (tempDetpRelevance.getId() == null) { |
| | | //æ°å¢ |
| | | tempDetpRelevance.setTempid(svyLibTitle.getSvyid()); |
| | | tempDetpRelevance.setType(1L); |
| | | tempDetpRelevanceMapper.insertTempDetpRelevance(tempDetpRelevance); |
| | | } else { |
| | | tempDetpRelevanceMapper.updateTempDetpRelevance(tempDetpRelevance); |
| | | } |
| | | } |
| | | |
| | | } |
| | | return i; |
| | | } |
| | | |
| | |
| | | public int deleteSvyLibTopicCategoryByIds(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | if (id < 0) { |
| | | log.info("å°äº0çå¼ä¸ºé»è®¤å¼ä¸è½å é¤ï¼{}", id); |
| | | continue; |
| | | } |
| | | i = svyLibTopicCategoryMapper.deleteSvyLibTopicCategoryById(id); |
| | | SvyLibTopicCategory svyLibTopicCategory = new SvyLibTopicCategory(); |
| | | svyLibTopicCategory.setPid(id); |
| | | List<SvyLibTopicCategory> svyLibTopicCategories = svyLibTopicCategoryMapper.selectSvyLibTopicCategoryList(svyLibTopicCategory); |
| | | if (CollectionUtils.isNotEmpty(svyLibTopicCategories)) { |
| | | for (SvyLibTopicCategory svyLibTopicCategory1 : svyLibTopicCategories) { |
| | | svyLibTopicCategory1.setPid(999999999L); |
| | | svyLibTopicCategory1.setPid(-1L); |
| | | svyLibTopicCategoryMapper.updateSvyLibTopicCategory(svyLibTopicCategory1); |
| | | } |
| | | } |
| | |
| | | if (ObjectUtils.isEmpty(svyLibTopicCategoryVO)) { |
| | | throw new BaseException("å
¥å为空,è¯·æ£æ¥å,åæ°å¢"); |
| | | } |
| | | Integer seqMax = svyLibTopicCategoryMapper.selectSeqMax(); |
| | | Integer seqMax = null; |
| | | try { |
| | | seqMax = svyLibTopicCategoryMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax = 0; |
| | | } |
| | | |
| | | SvyLibTopicCategory svyLibTopicCategory = DtoConversionUtils.sourceToTarget(svyLibTopicCategoryVO, SvyLibTopicCategory.class); |
| | | svyLibTopicCategory.setSeqno(1); |
| | | if (seqMax != null) { |
| | |
| | | //æ°å¢äºçº§æ |
| | | if (CollectionUtils.isNotEmpty(svyLibTopicCategoryVO.getSvyLibTopicCategoryList())) { |
| | | for (SvyLibTopicCategory svyLibTopicCategory1 : svyLibTopicCategoryVO.getSvyLibTopicCategoryList()) { |
| | | Integer seqMax1 = svyLibTopicCategoryMapper.selectSeqMax(); |
| | | Integer seqMax1 = null; |
| | | try { |
| | | seqMax1 = svyLibTopicCategoryMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax1 = 0; |
| | | } |
| | | svyLibTopicCategory1.setPid(svyLibTopicCategory.getId()); |
| | | svyLibTopicCategory1.setSeqno(1); |
| | | if (seqMax1 != null) { |
| | |
| | | |
| | | for (int j = 0; j < svyLibTopics.size(); j++) { |
| | | log.info("é®é¢id为ï¼{}", svyLibTopics.get(j).getSvyTopicId()); |
| | | if (svyLibTopics.get(j).getTopictype() != null && svyLibTopics.get(j).getTopictype() == 3 || svyLibTopics.get(j).getSvyTopicId() == null) { |
| | | if (StringUtils.isNotEmpty(svyLibTopics.get(j).getTopictype()) && svyLibTopics.get(j).getTopictype().equals("3") || svyLibTopics.get(j).getTopicid() == null) { |
| | | //ä½çé¢ï¼ä¸éè¦é项 |
| | | continue; |
| | | } else { |
| | | SvyLibTopicoption svyLibTopicoption = new SvyLibTopicoption(); |
| | | svyLibTopicoption.setTopicid(svyLibTopics.get(j).getSvyTopicId()); |
| | | svyLibTopicoption.setTopicid(svyLibTopics.get(j).getTopicid()); |
| | | List<SvyLibTopicoption> svyLibTopicoptions = svyLibTopicoptionMapper.selectSvyLibTopicoptionList(svyLibTopicoption); |
| | | //å°æ¥è¯¢åºçéé¡¹ç®æ¾å°é¢ç®ä¸ |
| | | svyLibTopics.get(j).setSvyLibTopicoptions(svyLibTopicoptions); |
| | |
| | | return svyLibTopicMapper.insertSvyLibTopic(svyLibTopic); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public Integer saveOrUpdateTopic(SvyLibTopic svyLibTopic) { |
| | | Integer i = null; |
| | |
| | | if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getTopicid()); |
| | | svyLibTopicoption.setCreateTime(new Date()); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } else if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getTopicid()); |
| | | svyLibTopicoption.setUpdateTime(new Date()); |
| | | svyLibTopicoptionMapper.updateSvyLibTopicoption(svyLibTopicoption); |
| | | } else if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 3) { |
| | | //å é¤ |
| | | svyLibTopicoptionMapper.deleteSvyLibTopicoptionByOptionid(svyLibTopicoption.getOptionid()); |
| | | } |
| | | } |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTopicByTopicids(Long[] topicids) { |
| | | return svyLibTopicMapper.deleteSvyLibTopicByTopicids(topicids); |
| | | Integer i = null; |
| | | for (Long topicid : topicids) { |
| | | i = svyLibTopicMapper.deleteSvyLibTopicByTopicid(topicid); |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | /** |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.TempDetpRelevance; |
| | | import com.smartor.mapper.TempDetpRelevanceMapper; |
| | | import com.smartor.service.ITempDetpRelevanceService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³èServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-04 |
| | | */ |
| | | @Service |
| | | public class TempDetpRelevanceServiceImpl implements ITempDetpRelevanceService |
| | | { |
| | | @Autowired |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param id 模æ¿ç§å®¤å
³èä¸»é® |
| | | * @return 模æ¿ç§å®¤å
³è |
| | | */ |
| | | @Override |
| | | public TempDetpRelevance selectTempDetpRelevanceById(Long id) |
| | | { |
| | | return tempDetpRelevanceMapper.selectTempDetpRelevanceById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿ç§å®¤å
³èå表 |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return 模æ¿ç§å®¤å
³è |
| | | */ |
| | | @Override |
| | | public List<TempDetpRelevance> selectTempDetpRelevanceList(TempDetpRelevance tempDetpRelevance) |
| | | { |
| | | return tempDetpRelevanceMapper.selectTempDetpRelevanceList(tempDetpRelevance); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertTempDetpRelevance(TempDetpRelevance tempDetpRelevance) |
| | | { |
| | | tempDetpRelevance.setCreateTime(DateUtils.getNowDate()); |
| | | return tempDetpRelevanceMapper.insertTempDetpRelevance(tempDetpRelevance); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param tempDetpRelevance 模æ¿ç§å®¤å
³è |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateTempDetpRelevance(TempDetpRelevance tempDetpRelevance) |
| | | { |
| | | tempDetpRelevance.setUpdateTime(DateUtils.getNowDate()); |
| | | return tempDetpRelevanceMapper.updateTempDetpRelevance(tempDetpRelevance); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿ç§å®¤å
³è |
| | | * |
| | | * @param ids éè¦å é¤ç模æ¿ç§å®¤å
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteTempDetpRelevanceByIds(Long[] ids) |
| | | { |
| | | return tempDetpRelevanceMapper.deleteTempDetpRelevanceByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿ç§å®¤å
³èä¿¡æ¯ |
| | | * |
| | | * @param id 模æ¿ç§å®¤å
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteTempDetpRelevanceById(Long id) |
| | | { |
| | | return tempDetpRelevanceMapper.deleteTempDetpRelevanceById(id); |
| | | } |
| | | } |
| | |
| | | <?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.HeLibraryMapper"> |
| | | |
| | | |
| | | <resultMap type="com.smartor.domain.HeLibrary" id="HeLibraryResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="classification" column="classification" /> |
| | | <result property="assortid" column="assortid" /> |
| | | <result property="preachname" column="preachname" /> |
| | | <result property="version" column="version" /> |
| | | <result property="preachform" column="preachform" /> |
| | | <result property="preachdescription" column="preachdescription" /> |
| | | <result property="preachcontent" column="preachcontent" /> |
| | | <result property="templateid" column="templateid" /> |
| | | <result property="preachcode" column="preachcode" /> |
| | | <result property="centerlibraryid" column="centerlibraryid" /> |
| | | <result property="isenable" column="isenable" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <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="islocal" column="islocal" /> |
| | | <result property="centerlibrarycode" column="centerlibrarycode" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="parameter" column="parameter" /> |
| | | <result property="isavailable" column="isavailable" /> |
| | | <result property="suitdisease" column="suitdisease" /> |
| | | <result property="suitway" column="suitway" /> |
| | | <result property="id" column="id"/> |
| | | <result property="classification" column="classification"/> |
| | | <result property="assortid" column="assortid"/> |
| | | <result property="preachname" column="preachname"/> |
| | | <result property="version" column="version"/> |
| | | <result property="preachform" column="preachform"/> |
| | | <result property="preachdescription" column="preachdescription"/> |
| | | <result property="preachcontent" column="preachcontent"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="preachcode" column="preachcode"/> |
| | | <result property="centerlibraryid" column="centerlibraryid"/> |
| | | <result property="isenable" column="isenable"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <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="islocal" column="islocal"/> |
| | | <result property="centerlibrarycode" column="centerlibrarycode"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="parameter" column="parameter"/> |
| | | <result property="isavailable" column="isavailable"/> |
| | | <result property="suitdisease" column="suitdisease"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="labelInfo" column="label_info"/> |
| | | <result property="campus" column="campus"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHeLibraryVo"> |
| | | select id, classification, assortid, preachname, version, preachform, preachdescription, preachcontent, templateid, preachcode, centerlibraryid, isenable, orgid, update_by, update_time, del_flag, create_by, create_time, isupload, upload_time, islocal, centerlibrarycode, pid, guid, parameter, isavailable, suitdisease, suitway from he_library |
| | | select id, |
| | | classification, |
| | | assortid, |
| | | preachname, |
| | | version, |
| | | preachform, |
| | | preachdescription, |
| | | preachcontent, |
| | | templateid, |
| | | preachcode, |
| | | centerlibraryid, |
| | | isenable, |
| | | orgid, |
| | | update_by, |
| | | update_time, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | islocal, |
| | | centerlibrarycode, |
| | | pid, |
| | | guid, |
| | | parameter, |
| | | isavailable, |
| | | suitdisease, |
| | | suitway, |
| | | dept_names, |
| | | label_info, |
| | | campus, |
| | | otherdata |
| | | from he_library |
| | | </sql> |
| | | |
| | | <select id="selectHeLibraryList" parameterType="com.smartor.domain.HeLibrary" resultMap="HeLibraryResult"> |
| | | <include refid="selectHeLibraryVo"/> |
| | | <where> |
| | | <if test="id != null "> and id = #{id}</if> |
| | | <if test="classification != null and classification != ''"> and classification = #{classification}</if> |
| | | <if test="assortid != null "> and assortid = #{assortid}</if> |
| | | <if test="preachname != null and preachname != ''"> and preachname like concat('%', #{preachname}, '%')</if> |
| | | <if test="version != null "> and version = #{version}</if> |
| | | <if test="preachform != null "> and preachform = #{preachform}</if> |
| | | <if test="preachdescription != null and preachdescription != ''"> and preachdescription = #{preachdescription}</if> |
| | | <if test="preachcontent != null and preachcontent != ''"> and preachcontent = #{preachcontent}</if> |
| | | <if test="templateid != null "> and templateid = #{templateid}</if> |
| | | <if test="preachcode != null and preachcode != ''"> and preachcode = #{preachcode}</if> |
| | | <if test="centerlibraryid != null "> and centerlibraryid = #{centerlibraryid}</if> |
| | | <if test="isenable != null "> and isenable = #{isenable}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="islocal != null "> and islocal = #{islocal}</if> |
| | | <if test="centerlibrarycode != null and centerlibrarycode != ''"> and centerlibrarycode = #{centerlibrarycode}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="parameter != null and parameter != ''"> and parameter = #{parameter}</if> |
| | | <if test="isavailable != null and isavailable != ''"> and isavailable = #{isavailable}</if> |
| | | <if test="suitdisease != null and suitdisease != ''"> and suitdisease = #{suitdisease}</if> |
| | | <if test="suitway != null and suitway != ''"> and suitway = #{suitway}</if> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="classification != null and classification != ''">and classification = #{classification}</if> |
| | | <if test="assortid != null ">and assortid = #{assortid}</if> |
| | | <if test="preachname != null and preachname != ''">and preachname like concat('%', #{preachname}, '%')</if> |
| | | <if test="version != null ">and version = #{version}</if> |
| | | <if test="preachform != null ">and preachform = #{preachform}</if> |
| | | <if test="preachdescription != null and preachdescription != ''">and preachdescription = |
| | | #{preachdescription} |
| | | </if> |
| | | <if test="preachcontent != null and preachcontent != ''">and preachcontent = #{preachcontent}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="preachcode != null and preachcode != ''">and preachcode = #{preachcode}</if> |
| | | <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if> |
| | | <if test="isenable != null ">and isenable = #{isenable}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="islocal != null ">and islocal = #{islocal}</if> |
| | | <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode = |
| | | #{centerlibrarycode} |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="parameter != null and parameter != ''">and parameter = #{parameter}</if> |
| | | <if test="isavailable != null and isavailable != ''">and isavailable = #{isavailable}</if> |
| | | <if test="suitdisease != null and suitdisease != ''">and suitdisease = #{suitdisease}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="deptNames != null and deptNames != ''">and dept_names = #{deptNames}</if> |
| | | <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if> |
| | | <if test="campus != null and campus != ''">and campus = #{campus}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectHeLibraryById" parameterType="Long" resultMap="HeLibraryResult"> |
| | | <include refid="selectHeLibraryVo"/> |
| | | where id = #{id} |
| | | where del_flag=0 and id = #{id} |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertHeLibrary" parameterType="com.smartor.domain.HeLibrary" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into he_library |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="isavailable != null">isavailable,</if> |
| | | <if test="suitdisease != null">suitdisease,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | </trim> |
| | | <if test="deptNames != null">dept_names,</if> |
| | | <if test="labelInfo != null">label_info,</if> |
| | | <if test="campus != null">campus,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="classification != null">#{classification},</if> |
| | | <if test="assortid != null">#{assortid},</if> |
| | |
| | | <if test="isavailable != null">#{isavailable},</if> |
| | | <if test="suitdisease != null">#{suitdisease},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | </trim> |
| | | <if test="deptNames != null ">#{deptNames},</if> |
| | | <if test="labelInfo != null">#{labelInfo},</if> |
| | | <if test="campus != null">#{campus},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateHeLibrary" parameterType="com.smartor.domain.HeLibrary"> |
| | |
| | | <if test="isavailable != null">isavailable = #{isavailable},</if> |
| | | <if test="suitdisease != null">suitdisease = #{suitdisease},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="deptNames != null">dept_names = #{deptNames},</if> |
| | | <if test="labelInfo != null ">label_info = #{labelInfo},</if> |
| | | <if test="campus != null">campus = #{campus},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteHeLibraryById" parameterType="Long"> |
| | | delete from he_library where id = #{id} |
| | | </delete> |
| | | <update id="deleteHeLibraryById" parameterType="Long"> |
| | | update he_library |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag =1,</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteHeLibraryByIds" parameterType="String"> |
| | | delete from he_library where id in |
| | | delete from he_library where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | |
| | | <result property="heid" column="heid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="tagname" column="tagname"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHeLibraryTagVo"> |
| | |
| | | upload_time, |
| | | heid, |
| | | pid, |
| | | guid |
| | | guid, |
| | | tagname |
| | | from he_library_tag |
| | | </sql> |
| | | |
| | |
| | | <if test="heid != null ">and heid = #{heid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="tagname != null and tagname != ''">and tagname = #{tagname}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="heid != null">heid,</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="heid != null">#{heid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="tagname != null">#{tagname},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="heid != null">heid = #{heid},</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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.HeTaskMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.HeTask" id="HeTaskResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="svrtaskid" column="svrtaskid"/> |
| | | <result property="patientid" column="patientid"/> |
| | | <result property="classification" column="classification"/> |
| | | <result property="preachcategoryid" column="preachcategoryid"/> |
| | | <result property="preachname" column="preachname"/> |
| | | <result property="version" column="version"/> |
| | | <result property="preachform" column="preachform"/> |
| | | <result property="orgform" column="orgform"/> |
| | | <result property="preachdescription" column="preachdescription"/> |
| | | <result property="preachcontent" column="preachcontent"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="preachcode" column="preachcode"/> |
| | | <result property="centerlibraryid" column="centerlibraryid"/> |
| | | <result property="isenable" column="isenable"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <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="islocal" column="islocal"/> |
| | | <result property="centerlibrarycode" column="centerlibrarycode"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="sendTime" column="send_time"/> |
| | | <result property="isSend" column="is_send"/> |
| | | <result property="sendState" column="send_state"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHeTaskVo"> |
| | | select id, |
| | | svrtaskid, |
| | | patientid, |
| | | classification, |
| | | preachcategoryid, |
| | | preachname, |
| | | version, |
| | | preachform, |
| | | orgform, |
| | | preachdescription, |
| | | preachcontent, |
| | | templateid, |
| | | preachcode, |
| | | centerlibraryid, |
| | | isenable, |
| | | orgid, |
| | | update_by, |
| | | update_time, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | islocal, |
| | | centerlibrarycode, |
| | | pid, |
| | | guid, |
| | | send_time, |
| | | is_send, |
| | | send_state |
| | | from he_task |
| | | </sql> |
| | | |
| | | <select id="selectHeTaskList" parameterType="com.smartor.domain.HeTask" resultMap="HeTaskResult"> |
| | | <include refid="selectHeTaskVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="svrtaskid != null ">and svrtaskid = #{svrtaskid}</if> |
| | | <if test="patientid != null ">and patientid = #{patientid}</if> |
| | | <if test="classification != null and classification != ''">and classification = #{classification}</if> |
| | | <if test="preachcategoryid != null ">and preachcategoryid = #{preachcategoryid}</if> |
| | | <if test="preachname != null and preachname != ''">and preachname like concat('%', #{preachname}, '%')</if> |
| | | <if test="version != null ">and version = #{version}</if> |
| | | <if test="preachform != null ">and preachform = #{preachform}</if> |
| | | <if test="orgform != null ">and orgform = #{orgform}</if> |
| | | <if test="preachdescription != null and preachdescription != ''">and preachdescription = |
| | | #{preachdescription} |
| | | </if> |
| | | <if test="preachcontent != null and preachcontent != ''">and preachcontent = #{preachcontent}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="preachcode != null and preachcode != ''">and preachcode = #{preachcode}</if> |
| | | <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if> |
| | | <if test="isenable != null ">and isenable = #{isenable}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="islocal != null ">and islocal = #{islocal}</if> |
| | | <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode = |
| | | #{centerlibrarycode} |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="sendTime != null ">and send_time = #{sendTime}</if> |
| | | <if test="isSend != null ">and is_send = #{isSend}</if> |
| | | <if test="sendState != null ">and send_state = #{sendState}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectHeTaskById" parameterType="Long" resultMap="HeTaskResult"> |
| | | <include refid="selectHeTaskVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertHeTask" parameterType="com.smartor.domain.HeTask" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into he_task |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="svrtaskid != null">svrtaskid,</if> |
| | | <if test="patientid != null">patientid,</if> |
| | | <if test="classification != null">classification,</if> |
| | | <if test="preachcategoryid != null">preachcategoryid,</if> |
| | | <if test="preachname != null">preachname,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="preachform != null">preachform,</if> |
| | | <if test="orgform != null">orgform,</if> |
| | | <if test="preachdescription != null">preachdescription,</if> |
| | | <if test="preachcontent != null">preachcontent,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="preachcode != null">preachcode,</if> |
| | | <if test="centerlibraryid != null">centerlibraryid,</if> |
| | | <if test="isenable != null">isenable,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</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="islocal != null">islocal,</if> |
| | | <if test="centerlibrarycode != null">centerlibrarycode,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="sendTime != null">send_time,</if> |
| | | <if test="isSend != null">is_send,</if> |
| | | <if test="sendState != null">send_state,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="svrtaskid != null">#{svrtaskid},</if> |
| | | <if test="patientid != null">#{patientid},</if> |
| | | <if test="classification != null">#{classification},</if> |
| | | <if test="preachcategoryid != null">#{preachcategoryid},</if> |
| | | <if test="preachname != null">#{preachname},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="preachform != null">#{preachform},</if> |
| | | <if test="orgform != null">#{orgform},</if> |
| | | <if test="preachdescription != null">#{preachdescription},</if> |
| | | <if test="preachcontent != null">#{preachcontent},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="preachcode != null">#{preachcode},</if> |
| | | <if test="centerlibraryid != null">#{centerlibraryid},</if> |
| | | <if test="isenable != null">#{isenable},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</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="islocal != null">#{islocal},</if> |
| | | <if test="centerlibrarycode != null">#{centerlibrarycode},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="sendTime != null">#{sendTime},</if> |
| | | <if test="isSend != null">#{isSend},</if> |
| | | <if test="sendState != null">#{sendState},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateHeTask" parameterType="com.smartor.domain.HeTask"> |
| | | update he_task |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="svrtaskid != null">svrtaskid = #{svrtaskid},</if> |
| | | <if test="patientid != null">patientid = #{patientid},</if> |
| | | <if test="classification != null">classification = #{classification},</if> |
| | | <if test="preachcategoryid != null">preachcategoryid = #{preachcategoryid},</if> |
| | | <if test="preachname != null">preachname = #{preachname},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="preachform != null">preachform = #{preachform},</if> |
| | | <if test="orgform != null">orgform = #{orgform},</if> |
| | | <if test="preachdescription != null">preachdescription = #{preachdescription},</if> |
| | | <if test="preachcontent != null">preachcontent = #{preachcontent},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="preachcode != null">preachcode = #{preachcode},</if> |
| | | <if test="centerlibraryid != null">centerlibraryid = #{centerlibraryid},</if> |
| | | <if test="isenable != null">isenable = #{isenable},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</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="islocal != null">islocal = #{islocal},</if> |
| | | <if test="centerlibrarycode != null">centerlibrarycode = #{centerlibrarycode},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="sendTime != null">send_time = #{sendTime},</if> |
| | | <if test="isSend != null">is_send = #{isSend},</if> |
| | | <if test="sendState != null">send_state = #{sendState},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteHeTaskById" parameterType="Long"> |
| | | update he_task |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <!-- <delete id="deleteHeTaskByIds" parameterType="String">--> |
| | | <!-- delete from he_task where id in --> |
| | | <!-- <foreach item="id" collection="array" open="(" separator="," close=")">--> |
| | | <!-- #{id}--> |
| | | <!-- </foreach>--> |
| | | <!-- </delete>--> |
| | | </mapper> |
| | |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="parameter" column="parameter"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="isAvailable" column="isAvailable"/> |
| | | <result property="campus" column="campus"/> |
| | |
| | | targetid, |
| | | targetname, |
| | | tag, |
| | | targetoptions, language, remark, version, usestate, adduserid, addtime, modifyuserid, modifytime, assortid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, parameter |
| | | targetoptions, language, remark, version, usestate, adduserid, addtime, modifyuserid, modifytime, assortid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, otherdata |
| | | from ivr_liba_script |
| | | </sql> |
| | | |
| | |
| | | <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="parameter != null and parameter != ''">and parameter = #{parameter}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="parameter != null">parameter,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="questiontitle != null">#{questiontitle},</if> |
| | |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="parameter != null">#{parameter},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="parameter != null">parameter = #{parameter},</if> |
| | | <if test="otherdata != null and otherdata != ''">otherdata = #{otherdata},</if> |
| | | <if test="deptNames != null">deptNames = #{deptNames},</if> |
| | | <if test="deptIds != null">deptIds = #{deptIds},</if> |
| | | <if test="campus != null">campus = #{campus},</if> |
| | |
| | | <mapper namespace="com.smartor.mapper.IvrLibaTargetMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTarget" id="IvrLibaTargetResult"> |
| | | <result property="targetID" column="targetID"/> |
| | | <result property="id" column="id"/> |
| | | <result property="groupid" column="groupid"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="targetname" column="targetname"/> |
| | |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTargetVO" id="IvrLibaTargetVOResult"> |
| | | <result property="targetID" column="targetID"/> |
| | | <result property="id" column="id"/> |
| | | <result property="groupid" column="groupid"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="targetname" column="targetname"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTargetVo"> |
| | | select targetID, |
| | | select id, |
| | | groupid, |
| | | targettype, |
| | | targetname, |
| | | targetdesc, language, version, isenable, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, |
| | | isAvailable, suitDisease, suitWay,parameter |
| | | isAvailable, suitDisease, suitWay, parameter |
| | | from ivr_liba_target |
| | | </sql> |
| | | |
| | |
| | | resultMap="IvrLibaTargetResult"> |
| | | <include refid="selectIvrLibaTargetVo"/> |
| | | <where> |
| | | del_flag != 1 |
| | | <if test="targetID != null ">and targetID = #{targetID}</if> |
| | | del_flag =0 |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | |
| | | </select> |
| | | |
| | | <select id="targetInfo" parameterType="com.smartor.domain.IvrLibaTarget" resultMap="IvrLibaTargetVOResult"> |
| | | select a.targetID, |
| | | select a.id, |
| | | a.groupid, |
| | | a.targettype, |
| | | a.targetname, |
| | |
| | | b.optiondesc |
| | | from ivr_liba_target a |
| | | LEFT JOIN ivr_liba_targetoption b |
| | | on a.targetID = b.targetid |
| | | on a.id = b.targetid |
| | | <where> |
| | | a.del_flag != 1 and b.del_flag != 1 |
| | | <if test="groupid != null and groupid != ''">and a.groupid = #{groupid}</if> |
| | |
| | | |
| | | <select id="selectIvrLibaTargetByTargetID" parameterType="Long" resultMap="IvrLibaTargetResult"> |
| | | <include refid="selectIvrLibaTargetVo"/> |
| | | where targetID = #{targetID} |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTarget" parameterType="com.smartor.domain.IvrLibaTarget" useGeneratedKeys="true" |
| | | keyProperty="targetID"> |
| | | keyProperty="id"> |
| | | insert into ivr_liba_target |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="groupid != null">groupid,</if> |
| | |
| | | <if test="isAvailable != null and isAvailable != ''">isAvailable = #{isAvailable},</if> |
| | | <if test="parameter != null and parameter != ''">parameter = #{parameter},</if> |
| | | </trim> |
| | | where targetID = #{targetID} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTargetByTargetID" parameterType="Long"> |
| | | delete |
| | | from ivr_liba_target |
| | | where targetID = #{targetID} |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrLibaTargetByTargetIDs" parameterType="String"> |
| | | delete from ivr_liba_target where targetID in |
| | | <foreach item="targetID" collection="array" open="(" separator="," close=")"> |
| | | #{targetID} |
| | | delete from ivr_liba_target where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | resultMap="IvrLibaTemplateAssortResult"> |
| | | <include refid="selectIvrLibaTemplateAssortVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="indexAssortName != null and indexAssortName != ''">and index_assort_name like concat('%', |
| | | #{indexAssortName}, '%') |
| | | </if> |
| | |
| | | |
| | | <select id="selectSeqMax" resultType="integer"> |
| | | select max(seqno) seqno |
| | | from iivr_liba_template_assort |
| | | from ivr_liba_template_assort |
| | | |
| | | </select> |
| | | </mapper> |
| | |
| | | <result property="modifyUserID" column="modifyUserID"/> |
| | | <result property="modifyTime" column="modifyTime"/> |
| | | <result property="groupID" column="groupID"/> |
| | | <result property="labelInfo" column="labelInfo"/> |
| | | <result property="labelInfo" column="label_info"/> |
| | | <result property="submoduleID" column="submoduleID"/> |
| | | <result property="playType" column="playType"/> |
| | | <result property="icd10code" column="icd10code"/> |
| | | <result property="icd10codename" column="icd10codename"/> |
| | | <result property="atuoTaskDayOffset" column="atuoTaskDayOffset"/> |
| | | <result property="deptIds" column="deptIds"/> |
| | | <result property="deptNames" column="deptNames"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="fKsdm" column="F_KSDM"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | |
| | | <result property="usestate" column="usestate"/> |
| | | <result property="campus" column="campus"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateVo"> |
| | |
| | | usestate, |
| | | campus, |
| | | tag, |
| | | submodule, language, note, isEnable, addUserID, addTime, modifyUserID, modifyTime, groupID, labelInfo, submoduleID, playType, icd10code, icd10codename, atuoTaskDayOffset, deptIds, deptNames, F_KSDM, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, parameter |
| | | otherdata, |
| | | suitway, |
| | | submodule, language, note, isEnable, addUserID, addTime, modifyUserID, modifyTime, groupID, label_info, submoduleID, playType, icd10code, icd10codename, atuoTaskDayOffset, deptIds, dept_names, F_KSDM, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, parameter |
| | | from ivr_liba_template |
| | | </sql> |
| | | |
| | |
| | | resultMap="IvrLibaTemplateResult"> |
| | | <include refid="selectIvrLibaTemplateVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, |
| | | '%') |
| | | </if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="suitway != null ">and suitway = #{suitway}</if> |
| | | <if test="targetname != null and targetname !='' ">and targetname = #{targetname}</if> |
| | | <if test="version != null and version !='' ">and version = #{version}</if> |
| | | <if test="usestate != null and usestate !='' ">and usestate = #{usestate}</if> |
| | |
| | | <if test="modifyUserID != null and modifyUserID != ''">and modifyUserID = #{modifyUserID}</if> |
| | | <if test="modifyTime != null ">and modifyTime = #{modifyTime}</if> |
| | | <if test="groupID != null and groupID != ''">and groupID = #{groupID}</if> |
| | | <if test="labelInfo != null and labelInfo != ''">and labelInfo = #{labelInfo}</if> |
| | | <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if> |
| | | <if test="submoduleID != null and submoduleID != ''">and submoduleID = #{submoduleID}</if> |
| | | <if test="playType != null ">and playType = #{playType}</if> |
| | | <if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</if> |
| | |
| | | <if test="icd10codename != null and icd10codename != ''">and icd10codename like concat('%', |
| | | #{icd10codename}, '%') |
| | | </if> |
| | | <if test="deptNames != null and deptNames != ''">and deptNames like concat('%', |
| | | <if test="deptNames != null and deptNames != ''">and dept_names like concat('%', |
| | | #{deptNames}, '%') |
| | | </if> |
| | | <if test="atuoTaskDayOffset != null ">and atuoTaskDayOffset = #{atuoTaskDayOffset}</if> |
| | |
| | | |
| | | <select id="selectIvrLibaTemplateByID" parameterType="Long" resultMap="IvrLibaTemplateResult"> |
| | | <include refid="selectIvrLibaTemplateVo"/> |
| | | where ID = #{ID} |
| | | where ID = #{ID} and del_flag=0 |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplate" parameterType="com.smartor.domain.IvrLibaTemplate" useGeneratedKeys="true" |
| | |
| | | <if test="modifyUserID != null">modifyUserID,</if> |
| | | <if test="modifyTime != null">modifyTime,</if> |
| | | <if test="groupID != null">groupID,</if> |
| | | <if test="labelInfo != null">labelInfo,</if> |
| | | <if test="labelInfo != null">label_info,</if> |
| | | <if test="submoduleID != null">submoduleID,</if> |
| | | <if test="playType != null">playType,</if> |
| | | <if test="icd10code != null">icd10code,</if> |
| | | <if test="icd10codename != null">icd10codename,</if> |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset,</if> |
| | | <if test="deptIds != null">deptIds,</if> |
| | | <if test="deptNames != null">deptNames,</if> |
| | | <if test="deptNames != null">dept_names,</if> |
| | | <if test="fKsdm != null">F_KSDM,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | |
| | | <if test="assortid != null">assortid,</if> |
| | | <if test="parameter != null">parameter,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">#{templateName},</if> |
| | |
| | | <if test="assortid != null">#{assortid},</if> |
| | | <if test="parameter != null">#{parameter},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="modifyUserID != null">modifyUserID = #{modifyUserID},</if> |
| | | <if test="modifyTime != null">modifyTime = #{modifyTime},</if> |
| | | <if test="groupID != null">groupID = #{groupID},</if> |
| | | <if test="labelInfo != null">labelInfo = #{labelInfo},</if> |
| | | <if test="labelInfo != null">label_info = #{labelInfo},</if> |
| | | <if test="submoduleID != null">submoduleID = #{submoduleID},</if> |
| | | <if test="playType != null">playType = #{playType},</if> |
| | | <if test="icd10code != null">icd10code = #{icd10code},</if> |
| | | <if test="icd10codename != null">icd10codename = #{icd10codename},</if> |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset = #{atuoTaskDayOffset},</if> |
| | | <if test="deptIds != null">deptIds = #{deptIds},</if> |
| | | <if test="deptNames != null">deptNames = #{deptNames},</if> |
| | | <if test="deptNames != null">dept_names = #{deptNames},</if> |
| | | <if test="fKsdm != null">F_KSDM = #{fKsdm},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | |
| | | <if test="assortid != null">assortid = #{assortid},</if> |
| | | <if test="parameter != null">parameter = #{parameter},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | |
| | | <result property="ID" column="ID"/> |
| | | <result property="templateQuestionNum" column="templateQuestionNum"/> |
| | | <result property="templateID" column="templateID"/> |
| | | <result property="scriptID" column="scriptID"/> |
| | | <result property="scriptid" column="scriptID"/> |
| | | <result property="questionPoint" column="questionPoint"/> |
| | | <result property="questionText" column="questionText"/> |
| | | <result property="questionVoice" column="questionVoice"/> |
| | |
| | | <mapper namespace="com.smartor.mapper.IvrLibaTemplateTargetMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTemplateTarget" id="IvrLibaTemplateTargetResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="id" column="id"/> |
| | | <result property="templateQuestionID" column="templateQuestionID"/> |
| | | <result property="templateQuestionNum" column="templateQuestionNum"/> |
| | | <result property="nextQuestionNum" column="nextQuestionNum"/> |
| | |
| | | <result property="targetType" column="targetType"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | | <result property="targetValue" column="targetValue"/> |
| | | <result property="targetID" column="targetID"/> |
| | | <result property="questionTargetID" column="questionTargetID"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="questionTargetid" column="questionTargetid"/> |
| | | <result property="basicRegex" column="basicRegex"/> |
| | | <result property="selfRegex" column="selfRegex"/> |
| | | <result property="regexUsedType" column="regexUsedType"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateTargetVo"> |
| | | select ID, |
| | | select id, |
| | | templateQuestionID, |
| | | templateQuestionNum, |
| | | nextQuestionNum, |
| | |
| | | targetType, |
| | | categoryName, |
| | | targetValue, |
| | | targetID, |
| | | questionTargetID, |
| | | targetid, |
| | | questionTargetid, |
| | | basicRegex, |
| | | selfRegex, |
| | | regexUsedType, language, isEnable, playType, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | |
| | | '%') |
| | | </if> |
| | | <if test="targetValue != null and targetValue != ''">and targetValue = #{targetValue}</if> |
| | | <if test="targetID != null and targetID != ''">and targetID = #{targetID}</if> |
| | | <if test="questionTargetID != null and questionTargetID != ''">and questionTargetID = #{questionTargetID} |
| | | <if test="targetid != null and targetid != ''">and targetid = #{targetid}</if> |
| | | <if test="questionTargetid != null and questionTargetid != ''">and questionTargetid = #{questionTargetid} |
| | | </if> |
| | | <if test="basicRegex != null and basicRegex != ''">and basicRegex = #{basicRegex}</if> |
| | | <if test="selfRegex != null and selfRegex != ''">and selfRegex = #{selfRegex}</if> |
| | |
| | | |
| | | <select id="selectIvrLibaTemplateTargetByID" parameterType="Long" resultMap="IvrLibaTemplateTargetResult"> |
| | | <include refid="selectIvrLibaTemplateTargetVo"/> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplateTarget" parameterType="com.smartor.domain.IvrLibaTemplateTarget"> |
| | |
| | | <if test="targetType != null">targetType,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="targetValue != null">targetValue,</if> |
| | | <if test="targetID != null">targetID,</if> |
| | | <if test="questionTargetID != null">questionTargetID,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="questionTargetid != null">questionTargetid,</if> |
| | | <if test="basicRegex != null">basicRegex,</if> |
| | | <if test="selfRegex != null">selfRegex,</if> |
| | | <if test="regexUsedType != null">regexUsedType,</if> |
| | |
| | | <if test="targetType != null">#{targetType},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="targetValue != null">#{targetValue},</if> |
| | | <if test="targetID != null">#{targetID},</if> |
| | | <if test="questionTargetID != null">#{questionTargetID},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="questionTargetid != null">#{questionTargetid},</if> |
| | | <if test="basicRegex != null">#{basicRegex},</if> |
| | | <if test="selfRegex != null">#{selfRegex},</if> |
| | | <if test="regexUsedType != null">#{regexUsedType},</if> |
| | |
| | | <if test="targetType != null">targetType = #{targetType},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="targetValue != null">targetValue = #{targetValue},</if> |
| | | <if test="targetID != null">targetID = #{targetID},</if> |
| | | <if test="questionTargetID != null">questionTargetID = #{questionTargetID},</if> |
| | | <if test="targetid != null">targetID = #{targetid},</if> |
| | | <if test="questionTargetid != null">questionTargetid = #{questionTargetid},</if> |
| | | <if test="basicRegex != null">basicRegex = #{basicRegex},</if> |
| | | <if test="selfRegex != null">selfRegex = #{selfRegex},</if> |
| | | <if test="regexUsedType != null">regexUsedType = #{regexUsedType},</if> |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteIvrLibaTemplateTargetByID" parameterType="Long"> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = 1,</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTemplateTargetByIDs" parameterType="String"> |
| | | delete from ivr_liba_template_target where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | delete from ivr_liba_template_target where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="openid" column="openid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="dept" column="deptname"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | |
| | | a.birthdate |
| | | from pat_archive a,pat_archivetag b ,base_tag c |
| | | <where> |
| | | a.del_flag=0 and |
| | | a.patid = b.patid and b.tagid = c.tagid |
| | | <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> |
| | | <if test="idcardno != null and idcardno != ''">and idcardno = #{idcardno}</if> |
| | |
| | | |
| | | <select id="selectPatArchiveByPatid" parameterType="Long" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | where patid = #{patid} |
| | | where patid = #{patid} and del_flag=0 |
| | | </select> |
| | | |
| | | <insert id="insertPatArchive"> |
| | |
| | | b.tagid as tagid, |
| | | a.patid, |
| | | a.name, |
| | | d.deptname, |
| | | a.sex, |
| | | a.nation, |
| | | a.native_place, |
| | |
| | | c.tagname as tag, |
| | | b.tagid as tagid, |
| | | a.patid, |
| | | d.deptname, |
| | | a.name, |
| | | a.sex, |
| | | a.nation, |
| | |
| | | a.patid, |
| | | a.name, |
| | | a.sex, |
| | | d.deptname, |
| | | a.nation, |
| | | a.native_place, |
| | | a.place_of_residence, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.PatHetaskRelevanceMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatHetaskRelevance" id="PatHetaskRelevanceResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="patId" column="pat_id"/> |
| | | <result property="heTaskId" column="he_task_id"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="name" column="name"/> |
| | | <result property="age" column="age"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="badNo" column="bad_no"/> |
| | | <result property="dept" column="dept"/> |
| | | <result property="icdName" column="icd_name"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="medicalRecordNo" column="medical_record_no"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatHetaskRelevanceVo"> |
| | | select id, |
| | | pat_id, |
| | | he_task_id, |
| | | del_flag, |
| | | create_time, |
| | | update_time, |
| | | remark, |
| | | name, |
| | | age, |
| | | sex, |
| | | bad_no, |
| | | dept, |
| | | icd_name, |
| | | phone, |
| | | medical_record_no |
| | | from pat_hetask_relevance |
| | | </sql> |
| | | |
| | | <select id="selectPatHetaskRelevanceList" parameterType="com.smartor.domain.PatHetaskRelevance" |
| | | resultMap="PatHetaskRelevanceResult"> |
| | | <include refid="selectPatHetaskRelevanceVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="patId != null ">and pat_id = #{patId}</if> |
| | | <if test="heTaskId != null ">and he_task_id = #{heTaskId}</if> |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="age != null ">and age = #{age}</if> |
| | | <if test="sex != null ">and sex = #{sex}</if> |
| | | <if test="badNo != null ">and bad_no = #{badNo}</if> |
| | | <if test="dept != null and dept != ''">and dept = #{dept}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">and medical_record_no = #{medicalRecordNo} |
| | | </if> |
| | | <if test="icdName != null and icdName != ''">and icd_name like concat('%', #{icdName}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatHetaskRelevanceById" parameterType="Long" resultMap="PatHetaskRelevanceResult"> |
| | | <include refid="selectPatHetaskRelevanceVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatHetaskRelevance" parameterType="com.smartor.domain.PatHetaskRelevance"> |
| | | insert into pat_hetask_relevance |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="patId != null">pat_id,</if> |
| | | <if test="heTaskId != null">he_task_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="name != null">name,</if> |
| | | <if test="age != null">age,</if> |
| | | <if test="sex != null">sex,</if> |
| | | <if test="badNo != null">bad_no,</if> |
| | | <if test="dept != null">dept,</if> |
| | | <if test="icdName != null">icd_name,</if> |
| | | <if test="phone != null">phone,</if> |
| | | <if test="medicalRecordNo != null">medical_record_no,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patId != null">#{patId},</if> |
| | | <if test="heTaskId != null">#{heTaskId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="name != null">#{name},</if> |
| | | <if test="age != null">#{age},</if> |
| | | <if test="sex != null">#{sex},</if> |
| | | <if test="badNo != null">#{badNo},</if> |
| | | <if test="dept != null">#{dept},</if> |
| | | <if test="icdName != null">#{icdName},</if> |
| | | <if test="phone != null">#{phone},</if> |
| | | <if test="medicalRecordNo != null">#{medicalRecordNo},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatHetaskRelevance" parameterType="com.smartor.domain.PatHetaskRelevance"> |
| | | update pat_hetask_relevance |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="patId != null">pat_id = #{patId},</if> |
| | | <if test="heTaskId != null">he_task_id = #{heTaskId},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="age != null">age = #{age},</if> |
| | | <if test="sex != null">sex = #{sex},</if> |
| | | <if test="badNo != null">bad_no = #{badNo},</if> |
| | | <if test="dept != null">dept = #{dept},</if> |
| | | <if test="icdName != null">icd_name = #{icdName},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="medicalRecordNo != null">medical_record_no = #{medicalRecordNo},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatHetaskRelevanceById" parameterType="Long"> |
| | | update pat_hetask_relevance |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag =1,</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deletePatHetaskRelevanceByIds" parameterType="String"> |
| | | delete from pat_hetask_relevance where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="labelInfo" column="label_info"/> |
| | | <result property="campus" column="campus"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTitleVo"> |
| | |
| | | update_by, |
| | | update_time, |
| | | isupload, |
| | | upload_time |
| | | upload_time, |
| | | dept_names, |
| | | label_info, |
| | | campus, |
| | | suitway, |
| | | otherdata |
| | | from svy_lib_title |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTitleList" parameterType="com.smartor.domain.SvyLibTitleReq" resultMap="SvyLibTitleResult"> |
| | | select a.svyid, a.categoryid, a.svycode, a.svyname, a.description, a.introduce,a.submitprompt, a.templateid, |
| | | a.version,a.centerlibrarycode, a.centerlibraryid, a.islocal, a.isenable, a.orgid, a.del_flag, a.create_by, |
| | | a.create_time, a.update_by, a.update_time, a.isupload, a.upload_time,c.icdname from svy_lib_title |
| | | a.create_time, a.update_by, a.update_time, a.isupload, a.upload_time,a.dept_names,a.label_info, |
| | | a.campus,a.suitway,a.otherdata |
| | | ,c.icdname from svy_lib_title |
| | | a,icd10_association b,icd10 c |
| | | <where> |
| | | a.del_flag=0 and |
| | | a.svyid=b.SVYID and b.ICD10CODE=c.icdcode |
| | | <if test="categoryid != null ">and a.categoryid = #{categoryid}</if> |
| | | <if test="svyid != null ">and a.svyid = #{svyid}</if> |
| | | <if test="svyname != null and svyname != ''">and a.svyname like concat('%', #{svyname}, '%')</if> |
| | | <if test="description != null and description != ''">and a.icdname like concat('%', #{description}, '%') |
| | | </if> |
| | |
| | | |
| | | <select id="selectSvyLibTitleBySvyid" parameterType="Long" resultMap="SvyLibTitleResult"> |
| | | <include refid="selectSvyLibTitleVo"/> |
| | | where svyid = #{svyid} |
| | | where svyid = #{svyid} and del_flag=0 |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTitle" parameterType="com.smartor.domain.SvyLibTitle" useGeneratedKeys="true" |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="deptNames != null">dept_names,</if> |
| | | <if test="labelInfo != null">label_info,</if> |
| | | <if test="campus != null">campus,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="deptNames != null">#{deptNames},</if> |
| | | <if test="labelInfo != null">#{labelInfo},</if> |
| | | <if test="campus != null">#{campus},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="deptNames != null">dept_names=#{deptNames},</if> |
| | | <if test="labelInfo != null">label_info=#{labelInfo},</if> |
| | | <if test="campus != null">campus=#{campus},</if> |
| | | <if test="suitway != null">suitway=#{suitway},</if> |
| | | <if test="otherdata != null">otherdata=#{otherdata},</if> |
| | | </trim> |
| | | where svyid = #{svyid} |
| | | </update> |
| | |
| | | resultMap="SvyLibTopicCategoryResult"> |
| | | <include refid="selectSvyLibTopicCategoryVo"/> |
| | | <where> |
| | | del_flat=0 |
| | | del_flag=0 |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="topicContent" column="topic_content"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="isavailable" column="isavailable"/> |
| | | <result property="language" column="language"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTopicVo"> |
| | |
| | | upload_time, |
| | | tag, |
| | | categoryid, |
| | | svy_topicid as svyTopicId |
| | | topic_content, |
| | | suitway, |
| | | isavailable, |
| | | otherdata, |
| | | language, |
| | | svy_topicid as svyTopicId |
| | | from svy_lib_topic |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTopicList" parameterType="com.smartor.domain.SvyLibTopic" resultMap="SvyLibTopicResult"> |
| | | <include refid="selectSvyLibTopicVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | | <if test="oldid != null ">and oldid = #{oldid}</if> |
| | | <if test="topictype != null ">and topictype = #{topictype}</if> |
| | | <if test="topictype != null and topictype != ''">and topictype = #{topictype}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="topic != null and topic != ''">and topic = #{topic}</if> |
| | | <if test="ishide != null ">and ishide = #{ishide}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="svyid != null and svyid != ''">and svyid = #{svyid}</if> |
| | | <if test="topicContent != null and topicContent != ''">and topic_content = #{topicContent}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="isavailable != null and isavailable != ''">and isavailable = #{isavailable}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="tag != null">tag,</if> |
| | | <if test="svyTopicId != null">svy_topicid,</if> |
| | | <if test="categoryid != null">categoryid,</if> |
| | | <if test="topicContent != null">topic_content,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="isavailable != null">isavailable,</if> |
| | | <if test="language != null and language!=''">language,</if> |
| | | <if test="otherdata != null and otherdata!=''">otherdata,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="svyTopicId != null">#{svyTopicId},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | <if test="topicContent != null">#{topicContent},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="isavailable != null">#{isavailable},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="categoryid != null">categoryid = #{categoryid},</if> |
| | | <if test="topicContent != null">topic_content = #{topicContent},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="isavailable != null">isavailable = #{isavailable},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="language != null and language!=''">language = #{language},</if> |
| | | <if test="otherdata != null and otherdata!=''">otherdata = #{otherdata},</if> |
| | | </trim> |
| | | where topicid = #{topicid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicByTopicid" parameterType="Long"> |
| | | delete |
| | | from svy_lib_topic |
| | | <update id="deleteSvyLibTopicByTopicid" parameterType="Long"> |
| | | update svy_lib_topic |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag =1,</if> |
| | | </trim> |
| | | where topicid = #{topicid} |
| | | </delete> |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicByTopicids" parameterType="String"> |
| | | delete from svy_lib_topic where topicid in |
| | |
| | | from svy_lib_topicoption |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTopicoptionList" parameterType="com.smartor.domain.SvyLibTopicoption" resultMap="SvyLibTopicoptionResult"> |
| | | <select id="selectSvyLibTopicoptionList" parameterType="com.smartor.domain.SvyLibTopicoption" |
| | | resultMap="SvyLibTopicoptionResult"> |
| | | <include refid="selectSvyLibTopicoptionVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | | <if test="svyid != null ">and svyid = #{svyid}</if> |
| | | <if test="topictype != null ">and topictype = #{topictype}</if> |
| | |
| | | where optionid = #{optionid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicoptionByOptionid" parameterType="Long"> |
| | | delete |
| | | from svy_lib_topicoption |
| | | <update id="deleteSvyLibTopicoptionByOptionid" parameterType="Long"> |
| | | update svy_lib_topicoption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = 1,</if> |
| | | </trim> |
| | | where optionid = #{optionid} |
| | | </delete> |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicoptionByOptionids" parameterType="String"> |
| | | delete from svy_lib_topicoption where optionid in |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.TempDetpRelevanceMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.TempDetpRelevance" id="TempDetpRelevanceResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="tempid" column="tempid" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | <result property="type" column="type" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTempDetpRelevanceVo"> |
| | | select id, tempid, dept_id, type, del_flag, create_time, update_time from temp_detp_relevance |
| | | </sql> |
| | | |
| | | <select id="selectTempDetpRelevanceList" parameterType="com.smartor.domain.TempDetpRelevance" resultMap="TempDetpRelevanceResult"> |
| | | <include refid="selectTempDetpRelevanceVo"/> |
| | | <where> |
| | | <if test="tempid != null "> and tempid = #{tempid}</if> |
| | | <if test="deptId != null "> and dept_id = #{deptId}</if> |
| | | <if test="type != null "> and type = #{type}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectTempDetpRelevanceById" parameterType="Long" resultMap="TempDetpRelevanceResult"> |
| | | <include refid="selectTempDetpRelevanceVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertTempDetpRelevance" parameterType="com.smartor.domain.TempDetpRelevance" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into temp_detp_relevance |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="tempid != null">tempid,</if> |
| | | <if test="deptId != null">dept_id,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="tempid != null">#{tempid},</if> |
| | | <if test="deptId != null">#{deptId},</if> |
| | | <if test="type != null">#{type},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateTempDetpRelevance" parameterType="com.smartor.domain.TempDetpRelevance"> |
| | | update temp_detp_relevance |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="tempid != null">tempid = #{tempid},</if> |
| | | <if test="deptId != null">dept_id = #{deptId},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteTempDetpRelevanceById" parameterType="Long"> |
| | | delete from temp_detp_relevance where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteTempDetpRelevanceByIds" parameterType="String"> |
| | | delete from temp_detp_relevance where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |