| | |
| | | public void onMessage(Message message, byte[] pattern) { |
| | | log.info("çå¬Redis keyè¿æï¼keyï¼{}ï¼channelï¼{}", message.toString(), new String(pattern)); |
| | | String content = message.toString(); |
| | | //夿æ¯ä¸æ¯ä»»å¡ä¿¡æ¯ï¼å¦æä¸æ¯ï¼ç´æ¥è¿åï¼ä¸éè¦æ§è¡ |
| | | if (!content.contains("taskid")) { |
| | | log.info("䏿¯ä»»å¡ä¿¡æ¯"); |
| | | return; |
| | | } |
| | | IvrTaskcallMQ ivrTaskcallMQ = null; |
| | | try { |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | |
| | | import com.google.zxing.client.j2se.MatrixToImageWriter; |
| | | import com.google.zxing.common.BitMatrix; |
| | | import com.google.zxing.qrcode.QRCodeWriter; |
| | | import com.mchange.v2.uid.UidUtils; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.framework.config.ServerConfig; |
| | | import com.smartor.domain.Question; |
| | | import com.smartor.domain.SvyLibTemplate; |
| | | import freemarker.template.Configuration; |
| | |
| | | import freemarker.template.TemplateException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.io.StringWriter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | @Slf4j |
| | | @Api(description = "é®å·äºç»´ç ") |
| | | @RestController |
| | | @RequestMapping("/qrcode") |
| | |
| | | public QRCodeController(Configuration configuration) { |
| | | this.configuration = configuration; |
| | | } |
| | | |
| | | @Value("${ruoyi.profile}") |
| | | private String profile; |
| | | |
| | | @Autowired |
| | | private ServerConfig serverConfig; |
| | | |
| | | /** |
| | | * é®å·é¢ç® |
| | |
| | | } |
| | | |
| | | /** |
| | | * @param reqid é®å·ID |
| | | * @param userid ç¨æ·ID |
| | | * @param url é®å·ID |
| | | * @param url ç¨æ·ID |
| | | */ |
| | | @ApiOperation("è·åé®å·äºç»´ç ") |
| | | @GetMapping(value = "/getQRcode/{reqid}/{userid}") |
| | | public void getQRcode(@PathVariable("reqid") String reqid, @PathVariable("userid") String userid) { |
| | | String url = "http://192.168.2.10:8080/smartor/svytitle/generateStaticHtml"; |
| | | String filePath = "D:\\daima\\qrcode.png"; // ä¿åäºç»´ç å¾åçæä»¶è·¯å¾ |
| | | |
| | | @PostMapping(value = "/getQRcode") |
| | | public AjaxResult getQRcode(@RequestParam("url") String url) { |
| | | log.info("è·åé®å·äºç»´ç çå
¥åï¼{}", url); |
| | | String uuid = UUID.randomUUID().toString().replace("-", ""); |
| | | String filePath = profile + "\\qrpath" + "\\" + uuid + ".png"; // ä¿åäºç»´ç å¾åçæä»¶è·¯å¾ |
| | | //夿æä»¶å¤¹æ¯å¦åå¨ |
| | | File file = new File(profile + "\\qrpath"); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | generateQRCode(url, filePath); |
| | | |
| | | System.out.println("QR Code generated successfully!"); |
| | | return AjaxResult.success(serverConfig.getUrl() + "/profile/qrpath/" + uuid + ".png"); |
| | | } |
| | | |
| | | private void generateQRCode(String url, String filePath) { |
| | |
| | | // return success(svyLibTemplateService.selectSvyLibTemplateBySvyid(svyid)); |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢é®å· |
| | | */ |
| | | @ApiOperation("æ°å¢é®å·") |
| | | @PostMapping("/addSvyLibTemplate") |
| | | public AjaxResult addSvyLibTemplate(@RequestBody SvyLibTemplate svyLibTemplate) { |
| | | return toAjax(svyLibTemplateService.insertSvyLibTemplate(svyLibTemplate)); |
| | | } |
| | | // /** |
| | | // * æ°å¢é®å· |
| | | // */ |
| | | // @ApiOperation("æ°å¢é®å·") |
| | | // @PostMapping("/addSvyLibTemplate") |
| | | // public AjaxResult addSvyLibTemplate(@RequestBody SvyLibTemplate svyLibTemplate) { |
| | | // return toAjax(svyLibTemplateService.insertSvyLibTemplate(svyLibTemplate)); |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.SvyLibTemplateScript; |
| | | import com.smartor.service.ISvyLibTemplateScriptService; |
| | | 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 ls |
| | | * @date 2024-06-18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytemplatescript") |
| | | public class SvyLibTemplateScriptController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyLibTemplateScriptService svyLibTemplateScriptService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | startPage(); |
| | | List<SvyLibTemplateScript> list = svyLibTemplateScriptService.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ¨¡æ¿é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | List<SvyLibTemplateScript> list = svyLibTemplateScriptService.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | ExcelUtil<SvyLibTemplateScript> util = new ExcelUtil<SvyLibTemplateScript>(SvyLibTemplateScript.class); |
| | | util.exportExcel(response, list, "模æ¿é®å·é¢ç®æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·å模æ¿é®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{topicid}") |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) |
| | | { |
| | | return success(svyLibTemplateScriptService.selectSvyLibTemplateScriptByTopicid(topicid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | return toAjax(svyLibTemplateScriptService.insertSvyLibTemplateScript(svyLibTemplateScript)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | return toAjax(svyLibTemplateScriptService.updateSvyLibTemplateScript(svyLibTemplateScript)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{topicids}") |
| | | public AjaxResult remove(@PathVariable Long[] topicids) |
| | | { |
| | | return toAjax(svyLibTemplateScriptService.deleteSvyLibTemplateScriptByTopicids(topicids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.SvyLibTemplateTargetoption; |
| | | import com.smartor.service.ISvyLibTemplateTargetoptionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·é®é¢ææ é项åºController |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytargetoption") |
| | | public class SvyLibTemplateTargetoptionController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyLibTemplateTargetoptionService svyLibTemplateTargetoptionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | | startPage(); |
| | | List<SvyLibTemplateTargetoption> list = svyLibTemplateTargetoptionService.selectSvyLibTemplateTargetoptionList(svyLibTemplateTargetoption); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·é®é¢ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | | List<SvyLibTemplateTargetoption> list = svyLibTemplateTargetoptionService.selectSvyLibTemplateTargetoptionList(svyLibTemplateTargetoption); |
| | | ExcelUtil<SvyLibTemplateTargetoption> util = new ExcelUtil<SvyLibTemplateTargetoption>(SvyLibTemplateTargetoption.class); |
| | | util.exportExcel(response, list, "é®å·é®é¢ææ éé¡¹åºæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·é®é¢ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyLibTemplateTargetoptionService.selectSvyLibTemplateTargetoptionById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | | return toAjax(svyLibTemplateTargetoptionService.insertSvyLibTemplateTargetoption(svyLibTemplateTargetoption)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | | return toAjax(svyLibTemplateTargetoptionService.updateSvyLibTemplateTargetoption(svyLibTemplateTargetoption)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyLibTemplateTargetoptionService.deleteSvyLibTemplateTargetoptionByIds(ids)); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.service.impl.RemoteDataSaveServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | import java.net.ServerSocket; |
| | | import java.net.Socket; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.Instant; |
| | | import java.time.ZoneId; |
| | | import java.time.ZonedDateTime; |
| | | import java.util.*; |
| | | import java.util.concurrent.Executor; |
| | | import java.util.concurrent.Executors; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | |
| | | @RestController |
| | | @Slf4j |
| | |
| | | timeout=60000: |
| | | |
| | | |
| | | accessKeyId: LTAI4G5zjJRkun2eRdzU8GhR |
| | | accessKeySecret: 6EIRr9uZeRobvHBRqskyGwjTLKpHYv |
| | | accessKeyId: LTAI5tPfc1VJzz7VuhzcBwug |
| | | accessKeySecret: gG1srKxPFDBNWe2oHfqmK1qsSQkf1e |
| | | signName: æå·å©æ¹ç§æ |
| | | |
| | | #æºè½å¼å«(䏿µ·) |
| | |
| | | |
| | | #请æ±IPå端å£å· |
| | | req_path: 192.168.2.10:8099 |
| | | |
| | | #äºç»´ç è·¯å¾ |
| | | qrpath: D:\qrcode |
| | |
| | | private String targettype; |
| | | |
| | | /** |
| | | * ææ æè¿° |
| | | */ |
| | | @Excel(name = "ææ æè¿°") |
| | | @ApiModelProperty(value = "ææ æè¿°") |
| | | private String targetdesc; |
| | | |
| | | /** |
| | | * ææ åç§° |
| | | */ |
| | | @ApiModelProperty("ææ åç§°") |
| | |
| | | private String targettype; |
| | | |
| | | /** |
| | | * ææ æè¿° |
| | | */ |
| | | @Excel(name = "ææ æè¿°") |
| | | @ApiModelProperty(value = "ææ æè¿°") |
| | | private String targetdesc; |
| | | |
| | | /** |
| | | * ææ åç§° |
| | | */ |
| | | @ApiModelProperty("ææ åç§°") |
| | |
| | | @Excel(name = " é¢ç® ") |
| | | @ApiModelProperty("é¢ç®") |
| | | private String script; |
| | | /** |
| | | * é¢ç® |
| | | */ |
| | | @Excel(name = " é¢ç®å¾ç ") |
| | | @ApiModelProperty("é¢ç®å¾ç") |
| | | private String scriptPicture; |
| | | |
| | | /** |
| | | * æåº |
| | |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | @ApiModelProperty(value = "åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级") |
| | | private String scoretype; |
| | | |
| | | @ApiModelProperty(value = "é¢ç®åå¼ï¼æ°å1,2çï¼åæ¯AãBï¼Cï¼Dçï¼") |
| | | private String score; |
| | | |
| | | @ApiModelProperty(value = "éç¨ç¾ç
") |
| | | private String icd10Name; |
| | | |
| | | @ApiModelProperty(value = "é®é¢ä¸»é¢") |
| | | private String topic; |
| | | |
| | | @ApiModelProperty(value = "éç¨ç¾ç
ï¼æ°ç»ï¼") |
| | | private List<String> icd10NameList; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | |
| | | * é®å·é¢ç®éå |
| | | */ |
| | | @ApiModelProperty(value = "é®å·é¢ç®éå") |
| | | private List<SvyLibScript> svyLibTopics; |
| | | private List<SvyLibTemplateScript> svyLibScripts; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³èéå |
| | |
| | | private String otherdata = ""; |
| | | |
| | | /** |
| | | * é®é¢æ»åå¼ |
| | | */ |
| | | @ApiModelProperty("é®é¢æ»åå¼") |
| | | private String scriptScore; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | @ApiModelProperty(value = "åæ°ç±»åï¼æ°åï¼åæ¯ï¼ç级ï¼") |
| | | private String scoreType; |
| | | |
| | | |
| | | public SvyLibTemplate() { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模æ¿é®å·é¢ç®å¯¹è±¡ svy_lib_template_script |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-18 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTemplateScript", description = "模æ¿é®å·é¢ç®å¯¹è±¡") |
| | | public class SvyLibTemplateScript extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty("èªå¢ID") |
| | | private Long id; |
| | | |
| | | /** |
| | | * èçæ¬ID |
| | | */ |
| | | @Excel(name = " èçæ¬ID ") |
| | | @ApiModelProperty("èçæ¬ID") |
| | | private Long oldid; |
| | | |
| | | /** |
| | | * é®å·ID |
| | | */ |
| | | @Excel(name = " é®å·ID ") |
| | | @ApiModelProperty("é®å·ID") |
| | | private Long svyid; |
| | | |
| | | /** |
| | | * é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 4å
¶å® |
| | | */ |
| | | @Excel(name = " é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 4å
¶å®") |
| | | @ApiModelProperty("é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 4å
¶å®") |
| | | private String scriptType; |
| | | |
| | | /** |
| | | * é¢ç®Code |
| | | */ |
| | | @Excel(name = " é¢ç®Code ") |
| | | @ApiModelProperty("é¢ç®Code") |
| | | private String scriptCode; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * é¢ç® |
| | | */ |
| | | @Excel(name = " é¢ç® ") |
| | | @ApiModelProperty("é¢ç®") |
| | | private String script; |
| | | |
| | | /** |
| | | * é¢ç®æ ç¾ |
| | | */ |
| | | @Excel(name = "é¢ç®æ ç¾") |
| | | @ApiModelProperty("é¢ç®æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * æåº |
| | | */ |
| | | @Excel(name = " æåº ") |
| | | @ApiModelProperty("æåº") |
| | | private Long sort; |
| | | |
| | | /** |
| | | * æ¯å¦å¿
å¡« 0å¿
å¡« 1ä¸å¿
å¡« |
| | | */ |
| | | @Excel(name = " æ¯å¦å¿
å¡« 0å¿
å¡« 1ä¸å¿
å¡«") |
| | | @ApiModelProperty("æ¯å¦å¿
å¡« 0å¿
å¡« 1ä¸å¿
å¡«") |
| | | private String ismandatory; |
| | | |
| | | /** |
| | | * æ¯å¦éè |
| | | */ |
| | | @Excel(name = " æ¯å¦éè ") |
| | | @ApiModelProperty("æ¯å¦éè") |
| | | private Long ishide; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty("å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty("æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty("ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * åºå¼ |
| | | */ |
| | | @ApiModelProperty("ï¼åºå¼ï¼") |
| | | private Long svyTopicid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty("ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty("GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | @Excel(name = "åç±»id") |
| | | @ApiModelProperty("åç±»id") |
| | | private Long categoryid; |
| | | |
| | | /** |
| | | * é¢ç®å
容 |
| | | */ |
| | | @Excel(name = "é¢ç®å
容") |
| | | @ApiModelProperty("é¢ç®æè¿°") |
| | | private String scriptContent; |
| | | |
| | | /** |
| | | * é¢ç®å¾ç |
| | | */ |
| | | @Excel(name = "é¢ç®å¾ç") |
| | | @ApiModelProperty("é¢ç®å¾ç") |
| | | private String scriptPicture; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty("éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨ |
| | | */ |
| | | @Excel(name = "æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨") |
| | | @ApiModelProperty("æ¯å¦å¯ç¨ 0å¯ç¨ 1ä¸å¯ç¨") |
| | | private String isavailable; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty("è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®", readConverterExp = "å=å¨åé") |
| | | @ApiModelProperty("å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=,é=项,2=,æ=æ¬,3=,æ°=å¼") |
| | | @ApiModelProperty("å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | private String valueType; |
| | | |
| | | /** |
| | | * åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼ |
| | | */ |
| | | @Excel(name = "åå¤", readConverterExp = "æ=é®é¢çåå¤ï¼ç»é®çé¢ç¨ç") |
| | | @ApiModelProperty("åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | /** |
| | | * åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级 |
| | | */ |
| | | @Excel(name = "åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级") |
| | | @ApiModelProperty("åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级") |
| | | private String scoretype; |
| | | |
| | | /** |
| | | * 模æ¿é®é¢é项éå |
| | | */ |
| | | @Excel(name = "模æ¿é®é¢é项éå") |
| | | @ApiModelProperty("模æ¿é®é¢é项éå") |
| | | private List<SvyLibTemplateTargetoption> svyLibTemplateTargetoptions; |
| | | |
| | | /** |
| | | * é¢ç®åå¼ï¼æ°å1,2çï¼åæ¯AãBï¼Cï¼Dçï¼ |
| | | */ |
| | | @Excel(name = "é¢ç®åå¼ï¼æ°å1,2çï¼åæ¯AãBï¼Cï¼Dçï¼") |
| | | @ApiModelProperty("é¢ç®åå¼ï¼æ°å1,2çï¼åæ¯AãBï¼Cï¼Dçï¼") |
| | | private String score; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * é®å·é®é¢ææ é项åºå¯¹è±¡ svy_liba_template_targetoption |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-18 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTemplateTargetoption", description = "é®å·é®é¢ææ é项åºå¯¹è±¡") |
| | | public class SvyLibTemplateTargetoption extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ ID |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ ID") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ ID") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * ææ åç§° |
| | | */ |
| | | @Excel(name = "ææ åç§°") |
| | | @ApiModelProperty(value = "ææ åç§°") |
| | | private String targetname; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = "模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | |
| | | /** |
| | | * è¯æ¯ID |
| | | */ |
| | | @Excel(name = "è¯æ¯ID") |
| | | @ApiModelProperty(value = "è¯æ¯ID") |
| | | private Long scriptid; |
| | | |
| | | /** |
| | | * è¯æ¯ID |
| | | */ |
| | | @Excel(name = "é¢è¦éå¼ä¸é") |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | private Long warnup; |
| | | |
| | | /** |
| | | * è¯æ¯ID |
| | | */ |
| | | @Excel(name = "é¢è¦éå¼ä¸é") |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | private Long warndown; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ ç±»å |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ ç±»å") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ ç±»å") |
| | | private String targettype; |
| | | |
| | | /** |
| | | * ç±»å«åç§° |
| | | */ |
| | | @Excel(name = "ç±»å«åç§°") |
| | | @ApiModelProperty(value = "ç±»å«åç§°") |
| | | private String categoryName = null; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ å¼ |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ å¼") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ å¼") |
| | | private String targetvalue; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ æ£å |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ æ£å") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ æ£å") |
| | | private String targetregex; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ æ£å |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ æ£å2") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ æ£å2") |
| | | private String targetregex2; |
| | | |
| | | @Excel(name = "æ£åå
³é®åéå(å«)") |
| | | private String nodynamiccruxsJson; |
| | | |
| | | @Excel(name = "æ£åå
³é®åéå(ä¸å«)") |
| | | private String dynamiccruxsJson; |
| | | |
| | | @ApiModelProperty(value = "æ£åå
³é®å(å«)") |
| | | @Excel(name = "æ£åå
³é®å(å«)") |
| | | private List<String> nodynamiccruxs = new ArrayList<>(); |
| | | |
| | | @ApiModelProperty(value = "æ£åå
³é®å(ä¸å«)") |
| | | @Excel(name = "æ£åå
³é®å(ä¸å«)") |
| | | private List<String> dynamiccruxs = new ArrayList<>(); |
| | | |
| | | /** |
| | | * é项æè¿° |
| | | */ |
| | | @Excel(name = "é项æè¿°") |
| | | @ApiModelProperty(value = "é项æè¿°") |
| | | private String optiondesc; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | @Excel(name = "çæ¬") |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private String version; |
| | | |
| | | /** |
| | | * åç»ID |
| | | */ |
| | | @Excel(name = "åç»ID") |
| | | @ApiModelProperty(value = "åç»ID") |
| | | private String groupid; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | */ |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | private Long isabnormal; |
| | | |
| | | // /** |
| | | // * é¢è¦éå¼ä¸é |
| | | // */ |
| | | // @Excel(name = "é¢è¦éå¼ä¸é") |
| | | // @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | // private Long warnup; |
| | | // |
| | | // /** |
| | | // * é¢è¦éå¼ä¸é |
| | | // */ |
| | | // @Excel(name = "é¢è¦éå¼ä¸é") |
| | | // @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | // private Long warndown; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * æ¯å¦æ¯ç¨æ·éæ©çé项 |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦æ¯ç¨æ·éæ©çé项") |
| | | private Boolean isUserOperation = false; |
| | | |
| | | |
| | | /** |
| | | * ä¸ä¸é¢ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¸é¢") |
| | | private Integer nextQuestion; |
| | | |
| | | /** |
| | | * é项å¾çè·¯å¾ |
| | | */ |
| | | @ApiModelProperty(value = "é项å¾çè·¯å¾") |
| | | private String picturePath; |
| | | |
| | | } |
| | |
| | | /** |
| | | * é¢ç®å¾çè·¯å¾ |
| | | */ |
| | | @Excel(name = "é¢ç®å¾çè·¯å¾") |
| | | @ApiModelProperty(value = "é¢ç®å¾çè·¯å¾") |
| | | private String picturePath; |
| | | @Excel(name = "é¢ç®å¾ç") |
| | | @ApiModelProperty(value = "é¢ç®å¾ç") |
| | | private String scriptPicture; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyLibTemplateScript; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模æ¿é®å·é¢ç®Mapperæ¥å£ |
| | | * |
| | | * @author ls |
| | | * @date 2024-06-18 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibTemplateScriptMapper { |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param topicid 模æ¿é®å·é¢ç®ä¸»é® |
| | | * @return 模æ¿é®å·é¢ç® |
| | | */ |
| | | public SvyLibTemplateScript selectSvyLibTemplateScriptByTopicid(Long topicid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç®å表 |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return 模æ¿é®å·é¢ç®éå |
| | | */ |
| | | public List<SvyLibTemplateScript> selectSvyLibTemplateScriptList(SvyLibTemplateScript svyLibTemplateScript); |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplateScript(SvyLibTemplateScript svyLibTemplateScript); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplateScript(SvyLibTemplateScript svyLibTemplateScript); |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param topicid 模æ¿é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateScriptByTopicid(Long topicid); |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param topicids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateScriptByTopicids(Long[] topicids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyLibTemplateTargetoption; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·é®é¢ææ é项åºMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-18 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibTemplateTargetoptionMapper { |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param id é®å·é®é¢ææ é项åºä¸»é® |
| | | * @return é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | public SvyLibTemplateTargetoption selectSvyLibTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ é项åºå表 |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return é®å·é®é¢ææ é项åºéå |
| | | */ |
| | | public List<SvyLibTemplateTargetoption> selectSvyLibTemplateTargetoptionList(SvyLibTemplateTargetoption svyLibTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ°å¢é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplateTargetoption(SvyLibTemplateTargetoption svyLibTemplateTargetoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplateTargetoption(SvyLibTemplateTargetoption svyLibTemplateTargetoption); |
| | | |
| | | /** |
| | | * å é¤é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param id é®å·é®é¢ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateTargetoptionByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyLibTemplateScript; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模æ¿é®å·é¢ç®Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-18 |
| | | */ |
| | | public interface ISvyLibTemplateScriptService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param topicid 模æ¿é®å·é¢ç®ä¸»é® |
| | | * @return 模æ¿é®å·é¢ç® |
| | | */ |
| | | public SvyLibTemplateScript selectSvyLibTemplateScriptByTopicid(Long topicid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç®å表 |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return 模æ¿é®å·é¢ç®éå |
| | | */ |
| | | public List<SvyLibTemplateScript> selectSvyLibTemplateScriptList(SvyLibTemplateScript svyLibTemplateScript); |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplateScript(SvyLibTemplateScript svyLibTemplateScript); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplateScript(SvyLibTemplateScript svyLibTemplateScript); |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param topicids éè¦å é¤ç模æ¿é®å·é¢ç®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateScriptByTopicids(Long[] topicids); |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿é®å·é¢ç®ä¿¡æ¯ |
| | | * |
| | | * @param topicid 模æ¿é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateScriptByTopicid(Long topicid); |
| | | } |
| | |
| | | */ |
| | | public List<SvyLibTemplate> selectSvyLibTemplateList(SvyLibTemplateReq svyLibTemplateReq); |
| | | |
| | | /** |
| | | * æ°å¢é®å· |
| | | * |
| | | * @param svyLibTemplate é®å· |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplate(SvyLibTemplate svyLibTemplate); |
| | | // /** |
| | | // * æ°å¢é®å· |
| | | // * |
| | | // * @param svyLibTemplate é®å· |
| | | // * @return ç»æ |
| | | // */ |
| | | // public int insertSvyLibTemplate(SvyLibTemplate svyLibTemplate); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyLibTemplateTargetoption; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·é®é¢ææ é项åºServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-18 |
| | | */ |
| | | public interface ISvyLibTemplateTargetoptionService { |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param id é®å·é®é¢ææ é项åºä¸»é® |
| | | * @return é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | public SvyLibTemplateTargetoption selectSvyLibTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ é项åºå表 |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return é®å·é®é¢ææ é项åºéå |
| | | */ |
| | | public List<SvyLibTemplateTargetoption> selectSvyLibTemplateTargetoptionList(SvyLibTemplateTargetoption svyLibTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ°å¢é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplateTargetoption(SvyLibTemplateTargetoption svyLibTemplateTargetoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplateTargetoption(SvyLibTemplateTargetoption svyLibTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çé®å·é®é¢ææ é项åºä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateTargetoptionByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é®å·é®é¢ææ é项åºä¿¡æ¯ |
| | | * |
| | | * @param id é®å·é®é¢ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateTargetoptionById(Long id); |
| | | } |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.google.gson.Gson; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.lang.reflect.Array; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * ææ é项åºServiceä¸å¡å±å¤ç |
| | |
| | | List<IvrLibaTarget> ivrLibaTargets = ivrLibaTargetMapper.selectIvrLibaTargetList(ivrLibaTarget); |
| | | List<IvrLibaTargetVO> ivrLibaTargetVOS = DtoConversionUtils.sourceToTarget(ivrLibaTargets, IvrLibaTargetVO.class); |
| | | for (IvrLibaTargetVO ivrLibaTarget1 : ivrLibaTargetVOS) { |
| | | ivrLibaTarget1.setSuitWayList(JSONArray.parseArray(ivrLibaTarget1.getSuitWay(), String.class)); |
| | | |
| | | IvrLibaTargetoption ivrLibaTargetoption = new IvrLibaTargetoption(); |
| | | ivrLibaTargetoption.setTargetid(ivrLibaTarget1.getId()); |
| | | //è·åè¯¥ææ çé项 |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int saveOrupdateIvrLibaTarget(IvrLibaTargetVO ivrLibaTargetVO) { |
| | | IvrLibaTarget ivrLibaTarget = DtoConversionUtils.sourceToTarget(ivrLibaTargetVO, IvrLibaTarget.class); |
| | | if (ObjectUtils.isEmpty(ivrLibaTargetVO.getSuitWayList())) |
| | | if (ObjectUtils.isNotEmpty(ivrLibaTargetVO.getSuitWayList())) |
| | | ivrLibaTarget.setSuitWay(JSON.toJSONString(ivrLibaTargetVO.getSuitWayList())); |
| | | ivrLibaTarget.setUpdateTime(DateUtils.getNowDate()); |
| | | if (ivrLibaTargetVO.getIsoperation() != null && ivrLibaTargetVO.getIsoperation() == 1) { |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.SvyLibScript; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | for (int j = 0; j < svyLibTopics.size(); j++) { |
| | | log.info("é®é¢id为ï¼{}", svyLibTopics.get(j).getSvyscriptId()); |
| | | if (StringUtils.isNotEmpty(svyLibTopics.get(j).getIcd10Name())) |
| | | svyLibTopics.get(j).setIcd10NameList(JSONArray.parseArray(svyLibTopics.get(j).getIcd10Name(), String.class)); |
| | | |
| | | if (StringUtils.isNotEmpty(svyLibTopics.get(j).getScripttype()) && svyLibTopics.get(j).getScripttype().equals("3") || svyLibTopics.get(j).getId() == null) { |
| | | //ä½çé¢ï¼ä¸éè¦é项 |
| | | continue; |
| | |
| | | @Override |
| | | public Integer saveOrUpdateScript(SvyLibScript svyLibTopic) { |
| | | Integer i = null; |
| | | if (CollectionUtils.isNotEmpty(svyLibTopic.getIcd10NameList()) && svyLibTopic.getIcd10NameList().size() > 0) { |
| | | //å°æ°ç»è½¬æå符串 |
| | | svyLibTopic.setIcd10Name(JSON.toJSONString(svyLibTopic.getIcd10NameList())); |
| | | } |
| | | |
| | | //对é¢ç®è¿è¡å¤ç |
| | | if (svyLibTopic.getIsoperation() != null && svyLibTopic.getIsoperation() == 1) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyLibTemplateScript; |
| | | import com.smartor.mapper.SvyLibTemplateScriptMapper; |
| | | import com.smartor.service.ISvyLibTemplateScriptService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模æ¿é®å·é¢ç®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-18 |
| | | */ |
| | | @Service |
| | | public class SvyLibTemplateScriptServiceImpl implements ISvyLibTemplateScriptService |
| | | { |
| | | @Autowired |
| | | private SvyLibTemplateScriptMapper svyLibTemplateScriptMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param topicid 模æ¿é®å·é¢ç®ä¸»é® |
| | | * @return 模æ¿é®å·é¢ç® |
| | | */ |
| | | @Override |
| | | public SvyLibTemplateScript selectSvyLibTemplateScriptByTopicid(Long topicid) |
| | | { |
| | | return svyLibTemplateScriptMapper.selectSvyLibTemplateScriptByTopicid(topicid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç®å表 |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return 模æ¿é®å·é¢ç® |
| | | */ |
| | | @Override |
| | | public List<SvyLibTemplateScript> selectSvyLibTemplateScriptList(SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | return svyLibTemplateScriptMapper.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyLibTemplateScript(SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | svyLibTemplateScript.setCreateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateScriptMapper.insertSvyLibTemplateScript(svyLibTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param svyLibTemplateScript 模æ¿é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibTemplateScript(SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | svyLibTemplateScript.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateScriptMapper.updateSvyLibTemplateScript(svyLibTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿é®å·é¢ç® |
| | | * |
| | | * @param topicids éè¦å é¤ç模æ¿é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateScriptByTopicids(Long[] topicids) |
| | | { |
| | | return svyLibTemplateScriptMapper.deleteSvyLibTemplateScriptByTopicids(topicids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿é®å·é¢ç®ä¿¡æ¯ |
| | | * |
| | | * @param topicid 模æ¿é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateScriptByTopicid(Long topicid) |
| | | { |
| | | return svyLibTemplateScriptMapper.deleteSvyLibTemplateScriptByTopicid(topicid); |
| | | } |
| | | } |
| | |
| | | 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 com.smartor.service.ISvyLibTemplateService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.smartor.service.ISvyLibTemplateService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * é®å·Serviceä¸å¡å±å¤ç |
| | |
| | | @Autowired |
| | | private Icd10AssociationMapper icd10AssociationMapper; |
| | | @Autowired |
| | | private SvyLibScriptMapper svyLibScriptMapper; |
| | | private SvyLibTemplateScriptMapper svyLibTemplateScriptMapper; |
| | | @Autowired |
| | | private SvyLibScriptOptionMapper svyLibTopicoptionMapper; |
| | | private SvyLibTemplateTargetoptionMapper svyLibTemplateTargetoptionMapper; |
| | | @Autowired |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | |
| | |
| | | List<SvyLibTemplate> svyLibTemplates = svyLibTemplateMapper.selectSvyLibTemplateList(svyLibTemplateReq); |
| | | //æ·»å é¢ç® |
| | | for (int i = 0; i < svyLibTemplates.size(); i++) { |
| | | SvyLibScript svyLibTopic = new SvyLibScript(); |
| | | svyLibTopic.setSvyid(svyLibTemplates.get(i).getSvyid()); |
| | | List<SvyLibScript> svyLibTopics = svyLibScriptMapper.selectSvyLibScriptList(svyLibTopic); |
| | | // SvyLibScript svyLibScript = new SvyLibScript(); |
| | | // svyLibScript.setSvyid(svyLibTemplates.get(i).getSvyid()); |
| | | // List<SvyLibScript> svyLibTopics = svyLibScriptMapper.selectSvyLibScriptList(svyLibScript); |
| | | SvyLibTemplateScript svyLibTemplateScript = new SvyLibTemplateScript(); |
| | | svyLibTemplateScript.setSvyid(svyLibTemplates.get(i).getSvyid()); |
| | | List<SvyLibTemplateScript> svyLibTemplateScripts = svyLibTemplateScriptMapper.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | //è·åé¢ç®é项 |
| | | a: |
| | | for (int j = 0; j < svyLibTopics.size(); j++) { |
| | | log.info("é®é¢id为ï¼{}", svyLibTopics.get(j).getSvyscriptId()); |
| | | if (StringUtils.isNotEmpty(svyLibTopics.get(j).getScripttype()) && svyLibTopics.get(j).getScripttype().equals("3") || svyLibTopics.get(j).getSvyscriptId() == null) { |
| | | for (int j = 0; j < svyLibTemplateScripts.size(); j++) { |
| | | log.info("é®é¢id为ï¼{}", svyLibTemplateScripts.get(j).getId()); |
| | | if (StringUtils.isNotEmpty(svyLibTemplateScripts.get(j).getScriptType()) && svyLibTemplateScripts.get(j).getScriptType().equals("3") || svyLibTemplateScripts.get(j).getId() == null) { |
| | | //ä½çé¢ï¼ä¸éè¦é项 |
| | | continue a; |
| | | } else { |
| | | SvyLibScriptOption svyLibTopicoption = new SvyLibScriptOption(); |
| | | svyLibTopicoption.setTopicid(svyLibTopics.get(j).getSvyscriptId()); |
| | | List<SvyLibScriptOption> svyLibTopicoptions = svyLibTopicoptionMapper.selectSvyLibScriptOptionList(svyLibTopicoption); |
| | | SvyLibTemplateTargetoption svyLibTopicoption = new SvyLibTemplateTargetoption(); |
| | | svyLibTopicoption.setScriptid(svyLibTemplateScripts.get(j).getId()); |
| | | List<SvyLibTemplateTargetoption> svyLibTemplateTargetoptions = svyLibTemplateTargetoptionMapper.selectSvyLibTemplateTargetoptionList(svyLibTopicoption); |
| | | //å°æ¥è¯¢åºçéé¡¹ç®æ¾å°é¢ç®ä¸ |
| | | svyLibTopics.get(j).setSvyLibScriptOptions(svyLibTopicoptions); |
| | | svyLibTemplateScripts.get(j).setSvyLibTemplateTargetoptions(svyLibTemplateTargetoptions); |
| | | } |
| | | } |
| | | //å°é¢ç®æ¾å°é®å·åè¡¨ä¸ |
| | | svyLibTemplates.get(i).setSvyLibTopics(svyLibTopics); |
| | | svyLibTemplates.get(i).setSvyLibScripts(svyLibTemplateScripts); |
| | | |
| | | //è·åæ¯ä¸ªé®å·å¯¹åºçç§å®¤ |
| | | TempDetpRelevance tempDetpRelevance = new TempDetpRelevance(); |
| | |
| | | return libTemplates; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å· |
| | | * |
| | | * @param svyLibTemplate é®å· |
| | | * @return ç»æ |
| | | */ |
| | | @Transactional |
| | | @Override |
| | | public int insertSvyLibTemplate(SvyLibTemplate svyLibTemplate) { |
| | | svyLibTemplate.setCreateTime(DateUtils.getNowDate()); |
| | | svyLibTemplateMapper.insertSvyLibTemplate(svyLibTemplate); |
| | | //å
³èé®å·ç¾ç
|
| | | for (String icdId : svyLibTemplate.getIcdID()) { |
| | | Icd10Association icd10Association = new Icd10Association(); |
| | | icd10Association.setIcd10code(icdId); |
| | | icd10Association.setSvyid(svyLibTemplate.getSvyid()); |
| | | icd10AssociationMapper.insertIcd10Association(icd10Association); |
| | | } |
| | | //æ°å¢é®é¢é¢ç® |
| | | for (int i = 0; i < svyLibTemplate.getSvyLibTopics().size(); i++) { |
| | | SvyLibScript svyLibScript = svyLibTemplate.getSvyLibTopics().get(i); |
| | | svyLibScript.setSvyid(svyLibTemplate.getSvyid()); |
| | | //é¢ç®çé项ç®ï¼ç´æ¥ç¨svy_topicoption表ï¼ç¨svyTopicidfå»å
³è |
| | | svyLibScriptMapper.insertSvyLibScript(svyLibScript); |
| | | } |
| | | return 1; |
| | | } |
| | | // /** |
| | | // * æ°å¢é®å· |
| | | // * |
| | | // * @param svyLibTemplate é®å· |
| | | // * @return ç»æ |
| | | // */ |
| | | // @Transactional |
| | | // @Override |
| | | // public int insertSvyLibTemplate(SvyLibTemplate svyLibTemplate) { |
| | | // svyLibTemplate.setCreateTime(DateUtils.getNowDate()); |
| | | // svyLibTemplateMapper.insertSvyLibTemplate(svyLibTemplate); |
| | | // //å
³èé®å·ç¾ç
|
| | | // for (String icdId : svyLibTemplate.getIcdID()) { |
| | | // Icd10Association icd10Association = new Icd10Association(); |
| | | // icd10Association.setIcd10code(icdId); |
| | | // icd10Association.setSvyid(svyLibTemplate.getSvyid()); |
| | | // icd10AssociationMapper.insertIcd10Association(icd10Association); |
| | | // } |
| | | // //æ°å¢é®é¢é¢ç® |
| | | // for (int i = 0; i < svyLibTemplate.getSvyLibScripts().size(); i++) { |
| | | // SvyLibScript svyLibScript = svyLibTemplate.getSvyLibScripts().get(i); |
| | | // svyLibScript.setSvyid(svyLibTemplate.getSvyid()); |
| | | // //é¢ç®çé项ç®ï¼ç´æ¥ç¨svy_topicoption表ï¼ç¨svyTopicidfå»å
³è |
| | | // svyLibScriptMapper.insertSvyLibScript(svyLibScript); |
| | | // } |
| | | // return 1; |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯ |
| | |
| | | } |
| | | |
| | | //å¤çé¢ç® |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplate.getSvyLibTopics())) { |
| | | for (SvyLibScript svyLibTopic : svyLibTemplate.getSvyLibTopics()) { |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplate.getSvyLibScripts())) { |
| | | for (SvyLibTemplateScript svyLibScript : svyLibTemplate.getSvyLibScripts()) { |
| | | SvyLibTemplateScript svyLibTemplateScript = DtoConversionUtils.sourceToTarget(svyLibScript, SvyLibTemplateScript.class); |
| | | //对é¢ç®è¿è¡å¤ç |
| | | if (svyLibTopic.getIsoperation() != null && svyLibTopic.getIsoperation() == 1) { |
| | | if (svyLibScript.getIsoperation() != null && svyLibScript.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTopic.setSvyid(svyLibTemplate.getSvyid()); |
| | | //é¢ç®çé项ç®ï¼ç´æ¥ç¨svy_topicoption表ï¼ç¨svyTopicidå»å
³è |
| | | svyLibScriptMapper.insertSvyLibScript(svyLibTopic); |
| | | } else if (svyLibTopic.getIsoperation() != null && svyLibTopic.getIsoperation() == 2) { |
| | | svyLibTemplateScript.setSvyid(svyLibTemplate.getSvyid()); |
| | | svyLibTemplateScript.setId(null); |
| | | svyLibTemplateScriptMapper.insertSvyLibTemplateScript(svyLibTemplateScript); |
| | | |
| | | } else if (svyLibScript.getIsoperation() != null && svyLibScript.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTopic.setSvyid(svyLibTemplate.getSvyid()); |
| | | svyLibScriptMapper.updateSvyLibScript(svyLibTopic); |
| | | svyLibTemplateScript.setSvyid(svyLibTemplate.getSvyid()); |
| | | svyLibTemplateScriptMapper.updateSvyLibTemplateScript(svyLibTemplateScript); |
| | | } |
| | | |
| | | //对é¢ç®é项è¿è¡å¤ç |
| | | if (CollectionUtils.isNotEmpty(svyLibTopic.getSvyLibScriptOptions())) { |
| | | for (SvyLibScriptOption svyLibTopicoption : svyLibTopic.getSvyLibScriptOptions()) { |
| | | if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 1) { |
| | | if (CollectionUtils.isNotEmpty(svyLibScript.getSvyLibTemplateTargetoptions())) { |
| | | for (SvyLibTemplateTargetoption svyLibTemplateTargetoption : svyLibScript.getSvyLibTemplateTargetoptions()) { |
| | | if (svyLibTemplateTargetoption.getIsoperation() != null && svyLibTemplateTargetoption.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getId()); |
| | | svyLibTopicoptionMapper.insertSvyLibScriptOption(svyLibTopicoption); |
| | | } else if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 2) { |
| | | svyLibTemplateTargetoption.setScriptid(svyLibScript.getId()); |
| | | svyLibTemplateTargetoptionMapper.insertSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } else if (svyLibTemplateTargetoption.getIsoperation() != null && svyLibTemplateTargetoption.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getId()); |
| | | svyLibTopicoptionMapper.updateSvyLibScriptOption(svyLibTopicoption); |
| | | svyLibTemplateTargetoption.setScriptid(svyLibScript.getId()); |
| | | svyLibTemplateTargetoptionMapper.updateSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyLibTemplateTargetoption; |
| | | import com.smartor.mapper.SvyLibTemplateTargetoptionMapper; |
| | | import com.smartor.service.ISvyLibTemplateTargetoptionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·é®é¢ææ é项åºServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-18 |
| | | */ |
| | | @Service |
| | | public class SvyLibTemplateTargetoptionServiceImpl implements ISvyLibTemplateTargetoptionService { |
| | | @Autowired |
| | | private SvyLibTemplateTargetoptionMapper svyLibTemplateTargetoptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param id é®å·é®é¢ææ é项åºä¸»é® |
| | | * @return é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @Override |
| | | public SvyLibTemplateTargetoption selectSvyLibTemplateTargetoptionById(Long id) { |
| | | return svyLibTemplateTargetoptionMapper.selectSvyLibTemplateTargetoptionById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ é项åºå表 |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @Override |
| | | public List<SvyLibTemplateTargetoption> selectSvyLibTemplateTargetoptionList(SvyLibTemplateTargetoption svyLibTemplateTargetoption) { |
| | | return svyLibTemplateTargetoptionMapper.selectSvyLibTemplateTargetoptionList(svyLibTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyLibTemplateTargetoption(SvyLibTemplateTargetoption svyLibTemplateTargetoption) { |
| | | svyLibTemplateTargetoption.setCreateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateTargetoptionMapper.insertSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param svyLibTemplateTargetoption é®å·é®é¢ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibTemplateTargetoption(SvyLibTemplateTargetoption svyLibTemplateTargetoption) { |
| | | svyLibTemplateTargetoption.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateTargetoptionMapper.updateSvyLibTemplateTargetoption(svyLibTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é®é¢ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çé®å·é®é¢ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateTargetoptionByIds(Long[] ids) { |
| | | return svyLibTemplateTargetoptionMapper.deleteSvyLibTemplateTargetoptionByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·é®é¢ææ é项åºä¿¡æ¯ |
| | | * |
| | | * @param id é®å·é®é¢ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateTargetoptionById(Long id) { |
| | | return svyLibTemplateTargetoptionMapper.deleteSvyLibTemplateTargetoptionById(id); |
| | | } |
| | | } |
| | |
| | | <result property="tag" column="tag"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="targetdesc" column="targetdesc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptVo"> |
| | | select id, |
| | | suitway, |
| | | targetdesc, |
| | | campus, |
| | | deptNames, |
| | | deptIds, |
| | |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="reply != null">reply,</if> |
| | | <if test="targetdesc != null">targetdesc,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="questiontitle != null">#{questiontitle},</if> |
| | |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="targetdesc != null">#{targetdesc},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="targetdesc != null">targetdesc = #{targetdesc},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="scripttype" column="script_type"/> |
| | | <result property="scriptcode" column="script_code"/> |
| | | <result property="script" column="script"/> |
| | | <result property="scriptPicture" column="script_picture"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="ismandatory" column="ismandatory"/> |
| | | <result property="ishide" column="ishide"/> |
| | |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="scoretype" column="scoretype"/> |
| | | <result property="score" column="score"/> |
| | | <result property="icd10Name" column="icd10_name"/> |
| | | <result property="topic" column="topic"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptVo"> |
| | | select id, |
| | | oldid, |
| | | scoretype, |
| | | score, |
| | | value_type, |
| | | reply, |
| | | svyid, |
| | | script_type, |
| | | script_code, |
| | | script, |
| | | topic, |
| | | sort, |
| | | ismandatory, |
| | | ishide, |
| | |
| | | suitway, |
| | | isavailable, |
| | | otherdata, |
| | | script_picture, |
| | | language, |
| | | icd10_name, |
| | | svy_scriptid as svyscriptId |
| | | from svy_lib_script |
| | | </sql> |
| | |
| | | <if test="scripttype != null and scripttype != ''">and script_type = #{scripttype}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="script != null and script != ''">and script like concat('%', #{script}, '%')</if> |
| | | <if test="icd10Name != null and icd10Name != ''">and icd10_name like concat('%', #{icd10Name}, '%')</if> |
| | | |
| | | <if test="ishide != null ">and ishide = #{ishide}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="isavailable != null and isavailable != ''">and isavailable = #{isavailable}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="scoretype != null and scoretype != ''">and scoretype = #{scoretype}</if> |
| | | <if test="score != null and score != ''">and score = #{score}</if> |
| | | <if test="topic != null and topic != ''">and topic = #{topic}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="otherdata != null and otherdata!=''">otherdata,</if> |
| | | <if test="valueType != null and valueType!=''">value_type,</if> |
| | | <if test="reply != null and reply!=''">otherdata,</if> |
| | | <if test="scoretype != null and scoretype!=''">scoretype,</if> |
| | | <if test="score != null and score!=''">score,</if> |
| | | <if test="icd10Name != null and icd10Name!=''">icd10_name,</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">script_picture,</if> |
| | | <if test="topic != null and topic != ''">topic,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | |
| | | <if test="otherdata != null and otherdata!=''">#{otherdata},</if> |
| | | <if test="valueType != null and valueType!=''">#{valueType},</if> |
| | | <if test="reply != null and reply!=''">#{therdata},</if> |
| | | <if test="scoretype != null and scoretype!=''">#{scoretype},</if> |
| | | <if test="score != null and score!=''">#{score},</if> |
| | | <if test="icd10Name != null and icd10Name!=''">#{icd10Name},</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">#{scriptPicture},</if> |
| | | <if test="topic != null and topic != ''">#{topic},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="otherdata != null and otherdata!=''">otherdata = #{otherdata},</if> |
| | | <if test="valueType != null and valueType!=''">value_type = #{valueType},</if> |
| | | <if test="reply != null and reply!=''">therdata =#{therdata},</if> |
| | | <if test="scoretype != null and scoretype!=''">scoretype = #{scoretype},</if> |
| | | <if test="score != null and score!=''">score = #{score},</if> |
| | | <if test="icd10Name != null and icd10Name!=''">icd10_name = #{icd10Name},</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">script_picture = #{scriptPicture},</if> |
| | | <if test="topic != null and topic != ''">topic = #{topic},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="scriptScore" column="script_score"/> |
| | | <result property="scoreType" column="score_type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateVo"> |
| | |
| | | categoryid, |
| | | value_type, |
| | | reply, |
| | | score_type, |
| | | svycode, |
| | | svyname, |
| | | description, |
| | |
| | | label_info, |
| | | campus, |
| | | suitway, |
| | | script_score, |
| | | otherdata |
| | | from svy_lib_template |
| | | </sql> |
| | |
| | | a.version,a.centerlibrarycode, a.centerlibraryid, a.islocal, a.isenable, a.orgid, a.del_flag, a.create_by, |
| | | a.create_time, a.update_by, a.update_time, a.isupload, |
| | | a.upload_time,a.dept_names,a.value_type,a.label_info,a.reply, |
| | | a.campus,a.suitway,a.otherdata |
| | | a.campus,a.suitway,a.script_score,a.score_type,a.otherdata |
| | | ,c.icdname from svy_lib_template |
| | | a,icd10_association b,icd10 c |
| | | <where> |
| | |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="reply != null">reply,</if> |
| | | <if test="scriptScore != null">script_score,</if> |
| | | <if test="scoreType != null">score_type,</if> |
| | | value_type, |
| | | reply, |
| | | </trim> |
| | |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="scriptScore != null">#{scriptScore},</if> |
| | | <if test="scoreType != null">#{scoreType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="otherdata != null">otherdata=#{otherdata},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="scriptScore != null">script_score = #{scriptScore},</if> |
| | | <if test="scoreType != null">score_type = #{scoreType},</if> |
| | | </trim> |
| | | where svyid = #{svyid} |
| | | </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.SvyLibTemplateScriptMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTemplateScript" id="SvyLibTemplateScriptResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="oldid" column="oldid"/> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="scriptType" column="script_type"/> |
| | | <result property="scriptCode" column="script_code"/> |
| | | <result property="script" column="script"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="ismandatory" column="ismandatory"/> |
| | | <result property="ishide" column="ishide"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="svyTopicid" column="svy_topicid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="scriptContent" column="script_content"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="isavailable" column="isavailable"/> |
| | | <result property="language" column="language"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="scoretype" column="scoretype"/> |
| | | <result property="score" column="score"/> |
| | | <result property="scriptPicture" column="script_picture"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateScriptVo"> |
| | | select id, |
| | | oldid, |
| | | svyid, |
| | | script_type, |
| | | script_code, |
| | | script, |
| | | tag, |
| | | sort, |
| | | ismandatory, |
| | | ishide, |
| | | del_flag, |
| | | orgid, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | isupload, |
| | | upload_time, |
| | | svy_topicid, |
| | | pid, |
| | | guid, |
| | | categoryid, |
| | | script_content, |
| | | suitway, |
| | | script_picture, |
| | | isavailable, language, otherdata, value_type, reply, scoretype, score |
| | | from svy_lib_template_script |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTemplateScriptList" parameterType="com.smartor.domain.SvyLibTemplateScript" |
| | | resultMap="SvyLibTemplateScriptResult"> |
| | | <include refid="selectSvyLibTemplateScriptVo"/> |
| | | <where> |
| | | <if test="oldid != null ">and oldid = #{oldid}</if> |
| | | <if test="svyid != null ">and svyid = #{svyid}</if> |
| | | <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if> |
| | | <if test="scriptCode != null and scriptCode != ''">and script_code = #{scriptCode}</if> |
| | | <if test="script != null and script != ''">and script = #{script}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="sort != null ">and sort = #{sort}</if> |
| | | <if test="ismandatory != null and ismandatory != ''">and ismandatory = #{ismandatory}</if> |
| | | <if test="ishide != null ">and ishide = #{ishide}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="svyTopicid != null ">and svy_topicid = #{svyTopicid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="isavailable != null and isavailable != ''">and isavailable = #{isavailable}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="reply != null and reply != ''">and reply = #{reply}</if> |
| | | <if test="scoretype != null and scoretype != ''">and scoretype = #{scoretype}</if> |
| | | <if test="score != null and score != ''">and score = #{score}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTemplateScriptByTopicid" parameterType="Long" resultMap="SvyLibTemplateScriptResult"> |
| | | <include refid="selectSvyLibTemplateScriptVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTemplateScript" parameterType="com.smartor.domain.SvyLibTemplateScript" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_lib_template_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">oldid,</if> |
| | | <if test="svyid != null">svyid,</if> |
| | | <if test="scriptType != null">script_type,</if> |
| | | <if test="scriptCode != null">script_code,</if> |
| | | <if test="script != null">script,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="sort != null">sort,</if> |
| | | <if test="ismandatory != null">ismandatory,</if> |
| | | <if test="ishide != null">ishide,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="svyTopicid != null">svy_topicid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="categoryid != null">categoryid,</if> |
| | | <if test="scriptContent != null">script_content,</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> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="reply != null">reply,</if> |
| | | <if test="scoretype != null">scoretype,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="scriptPicture != null">script_picture,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | | <if test="svyid != null">#{svyid},</if> |
| | | <if test="scriptType != null">#{scriptType},</if> |
| | | <if test="scriptCode != null">#{scriptCode},</if> |
| | | <if test="script != null">#{script},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="sort != null">#{sort},</if> |
| | | <if test="ismandatory != null">#{ismandatory},</if> |
| | | <if test="ishide != null">#{ishide},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="svyTopicid != null">#{svyTopicid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | <if test="scriptContent != null">#{scriptContent},</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> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="scoretype != null">#{scoretype},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="scriptPicture != null">#{scriptPicture},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTemplateScript" parameterType="com.smartor.domain.SvyLibTemplateScript"> |
| | | update svy_lib_template_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="oldid != null">oldid = #{oldid},</if> |
| | | <if test="svyid != null">svyid = #{svyid},</if> |
| | | <if test="scriptType != null">script_type = #{scriptType},</if> |
| | | <if test="scriptCode != null">script_code = #{scriptCode},</if> |
| | | <if test="script != null">script = #{script},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="sort != null">sort = #{sort},</if> |
| | | <if test="ismandatory != null">ismandatory = #{ismandatory},</if> |
| | | <if test="ishide != null">ishide = #{ishide},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="svyTopicid != null">svy_topicid = #{svyTopicid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="categoryid != null">categoryid = #{categoryid},</if> |
| | | <if test="scriptContent != null">script_content = #{scriptContent},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="isavailable != null">isavailable = #{isavailable},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="scoretype != null">scoretype = #{scoretype},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="scriptPicture != null">script_picture = #{scriptPicture},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTemplateScriptByTopicid" parameterType="Long"> |
| | | delete |
| | | from svy_lib_template_script |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyLibTemplateScriptByTopicids" parameterType="String"> |
| | | delete from svy_lib_template_script where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTemplateTargetoptionMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTemplateTargetoption" id="SvyLibTemplateTargetoptionResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="groupid" column="groupid"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | | <result property="scriptid" column="scriptid"/> |
| | | <result property="templateID" column="templateID"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="targetvalue" column="targetvalue"/> |
| | | <result property="isabnormal" column="isabnormal"/> |
| | | <result property="warnup" column="warnup"/> |
| | | <result property="warndown" column="warndown"/> |
| | | <result property="targetregex" column="targetregex"/> |
| | | <result property="targetregex2" column="targetregex2"/> |
| | | <result property="dynamiccruxsJson" column="dynamiccruxs"/> |
| | | <result property="nodynamiccruxsJson" column="nodynamiccruxs"/> |
| | | <result property="optiondesc" column="optiondesc"/> |
| | | <result property="nextQuestion" column="next_question"/> |
| | | <result property="language" column="language"/> |
| | | <result property="version" column="version"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateTargetoptionVo"> |
| | | select id, |
| | | groupid, |
| | | categoryName, |
| | | scriptid, |
| | | templateID, |
| | | targettype, |
| | | targetid, |
| | | targetname, |
| | | targetvalue, |
| | | isabnormal, |
| | | warnup, |
| | | warndown, |
| | | targetregex, |
| | | targetregex2, |
| | | dynamiccruxs, |
| | | nodynamiccruxs, |
| | | optiondesc, |
| | | next_question, language, version, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, picture_path |
| | | from svy_lib_template_targetoption |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTemplateTargetoptionList" parameterType="com.smartor.domain.SvyLibTemplateTargetoption" |
| | | resultMap="SvyLibTemplateTargetoptionResult"> |
| | | <include refid="selectSvyLibTemplateTargetoptionVo"/> |
| | | <where> |
| | | <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | '%') |
| | | </if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if> |
| | | <if test="warnup != null ">and warnup = #{warnup}</if> |
| | | <if test="warndown != null ">and warndown = #{warndown}</if> |
| | | <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if> |
| | | <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if> |
| | | <if test="dynamiccruxsJson != null and dynamiccruxsJson != ''">and dynamiccruxs = #{dynamiccruxsJson}</if> |
| | | <if test="nodynamiccruxsJson != null and nodynamiccruxsJson != ''">and nodynamiccruxs = |
| | | #{nodynamiccruxsJson} |
| | | </if> |
| | | <if test="optiondesc != null and optiondesc != ''">and optiondesc = #{optiondesc}</if> |
| | | <if test="nextQuestion != null ">and next_question = #{nextQuestion}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="version != null and version != ''">and version = #{version}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="picturePath != null and picturePath != ''">and picture_path = #{picturePath}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTemplateTargetoptionById" parameterType="Long" resultMap="SvyLibTemplateTargetoptionResult"> |
| | | <include refid="selectSvyLibTemplateTargetoptionVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTemplateTargetoption" parameterType="com.smartor.domain.SvyLibTemplateTargetoption" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_lib_template_targetoption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="groupid != null">groupid,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="scriptid != null">scriptid,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="targettype != null">targettype,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetname != null">targetname,</if> |
| | | <if test="targetvalue != null">targetvalue,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="warnup != null">warnup,</if> |
| | | <if test="warndown != null">warndown,</if> |
| | | <if test="targetregex != null">targetregex,</if> |
| | | <if test="targetregex2 != null">targetregex2,</if> |
| | | <if test="dynamiccruxs != null">dynamiccruxs,</if> |
| | | <if test="nodynamiccruxs != null">nodynamiccruxs,</if> |
| | | <if test="optiondesc != null">optiondesc,</if> |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="groupid != null">#{groupid},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="scriptid != null">#{scriptid},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="targettype != null">#{targettype},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="targetname != null">#{targetname},</if> |
| | | <if test="targetvalue != null">#{targetvalue},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="warnup != null">#{warnup},</if> |
| | | <if test="warndown != null">#{warndown},</if> |
| | | <if test="targetregex != null">#{targetregex},</if> |
| | | <if test="targetregex2 != null">#{targetregex2},</if> |
| | | <if test="dynamiccruxs != null">#{dynamiccruxsJson},</if> |
| | | <if test="nodynamiccruxs != null">#{nodynamiccruxsJson},</if> |
| | | <if test="optiondesc != null">#{optiondesc},</if> |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTemplateTargetoption" parameterType="com.smartor.domain.SvyLibTemplateTargetoption"> |
| | | update svy_lib_template_targetoption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="groupid != null">groupid = #{groupid},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="scriptid != null">scriptid = #{scriptid},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="targettype != null">targettype = #{targettype},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="targetname != null">targetname = #{targetname},</if> |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="warnup != null">warnup = #{warnup},</if> |
| | | <if test="warndown != null">warndown = #{warndown},</if> |
| | | <if test="targetregex != null">targetregex = #{targetregex},</if> |
| | | <if test="targetregex2 != null">targetregex2 = #{targetregex2},</if> |
| | | <if test="dynamiccruxs != null">dynamiccruxs = #{dynamiccruxsJson},</if> |
| | | <if test="nodynamiccruxs != null">nodynamiccruxs = #{nodynamiccruxsJson},</if> |
| | | <if test="optiondesc != null">optiondesc = #{optiondesc},</if> |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTemplateTargetoptionById" parameterType="Long"> |
| | | delete |
| | | from svy_lib_template_targetoption |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyLibTemplateTargetoptionByIds" parameterType="String"> |
| | | delete from svy_lib_template_targetoption where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <result property="scoretype" column="scoretype" /> |
| | | <result property="score" column="score" /> |
| | | <result property="showtype" column="showtype" /> |
| | | <result property="picturePath" column="picture_path" /> |
| | | <result property="scriptPicture" column="script_picture" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskScriptVo"> |
| | | select id, script_type, script_code, script, tag, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, answer, pid, guid, taskid, optiondesc, nexttopicid, nexttopicsort, scoretype, score, showtype, picture_path from svy_task_script |
| | | select id, script_type, script_code, script, tag, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, answer, pid, guid, taskid, optiondesc, nexttopicid, nexttopicsort, scoretype, score, showtype, script_picture from svy_task_script |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskScriptList" parameterType="com.smartor.domain.SvyTaskScript" resultMap="SvyTaskScriptResult"> |
| | |
| | | <if test="scoretype != null">scoretype,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="showtype != null">showtype,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="scriptPicture != null">script_picture,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptType != null">#{scriptType},</if> |
| | |
| | | <if test="scoretype != null">#{scoretype},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="showtype != null">#{showtype},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="scriptPicture != null">#{scriptPicture},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="showtype != null">showtype = #{showtype},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="scriptPicture != null">script_picture = #{scriptPicture},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |