已添加44个文件
已删除18个文件
已修改26个文件
已重命名19个文件
已复制2个文件
| | |
| | | <artifactId>nls-sdk-common</artifactId> |
| | | <version>2.1.6</version> |
| | | </dependency> |
| | | <!-- rabbitmq ä¾èµ--> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-amqp</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
ÎļþÃû´Ó ruoyi-admin/src/main/java/com/ruoyi/web/component/RabbitMqReceiver.java ÐÞ¸Ä |
| | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.rabbitmq.client.Channel; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.enums.ServiceFromEnum; |
| | | import com.ruoyi.common.utils.RSAPublicKeyExample; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.web.task.PhoneTask; |
| | | import com.smartor.common.SendService; |
| | | import com.smartor.config.PhoneUtils; |
| | | import com.smartor.config.RabbitMqCallPhoneConfig; |
| | | import com.smartor.config.RobotPhoneUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.IvrTaskMapper; |
| | | import com.smartor.mapper.IvrTaskSingleMapper; |
| | | import com.smartor.service.IIvrTaskTemplateService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.amqp.core.Message; |
| | | import org.springframework.amqp.rabbit.annotation.RabbitListener; |
| | | import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory; |
| | | import org.springframework.amqp.rabbit.connection.ConnectionFactory; |
| | | import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.data.redis.connection.Message; |
| | | import org.springframework.data.redis.listener.KeyExpirationEventMessageListener; |
| | | import org.springframework.data.redis.listener.RedisMessageListenerContainer; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | |
| | | @Slf4j |
| | | @Component//ç嬿¤éå |
| | | public class RabbitMqReceiver { |
| | | public class RedisMqReceiver extends KeyExpirationEventMessageListener { |
| | | |
| | | @Value("${phonePath}") |
| | | private String phonePath; |
| | |
| | | |
| | | private static RedisCache redisCache; |
| | | |
| | | private static RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig; |
| | | |
| | | private static RobotPhoneUtils robotPhoneUtils; |
| | | |
| | | |
| | | // å建åºå®å¤§å°ççº¿ç¨æ± |
| | | private static final ExecutorService executorService = Executors.newFixedThreadPool(10); |
| | | |
| | | public RedisMqReceiver(RedisMessageListenerContainer listenerContainer) { |
| | | super(listenerContainer); |
| | | } |
| | | |
| | | |
| | | @Autowired |
| | | public void setIIvrTaskTemplateService(IIvrTaskTemplateService ivrTaskTemplateService) { |
| | | RabbitMqReceiver.ivrTaskTemplateService = ivrTaskTemplateService; |
| | | RedisMqReceiver.ivrTaskTemplateService = ivrTaskTemplateService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setRobotPhoneUtilsService(RobotPhoneUtils robotPhoneUtils) { |
| | | RabbitMqReceiver.robotPhoneUtils = robotPhoneUtils; |
| | | RedisMqReceiver.robotPhoneUtils = robotPhoneUtils; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setSendService(SendService sendService) { |
| | | RabbitMqReceiver.sendService = sendService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setRabbitMqCallPhoneConfig(RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig) { |
| | | RabbitMqReceiver.rabbitMqCallPhoneConfig = rabbitMqCallPhoneConfig; |
| | | RedisMqReceiver.sendService = sendService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setIvrTaskcallMapper(IvrTaskSingleMapper ivrTaskcallMapper) { |
| | | RabbitMqReceiver.ivrTaskcallMapper = ivrTaskcallMapper; |
| | | RedisMqReceiver.ivrTaskcallMapper = ivrTaskcallMapper; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setIvrTaskMapper(IvrTaskMapper ivrTaskMapper) { |
| | | RabbitMqReceiver.ivrTaskMapper = ivrTaskMapper; |
| | | RedisMqReceiver.ivrTaskMapper = ivrTaskMapper; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setRedisCache(RedisCache redisCache) { |
| | | RabbitMqReceiver.redisCache = redisCache; |
| | | RedisMqReceiver.redisCache = redisCache; |
| | | } |
| | | |
| | | /** |
| | | * ä»»å¡é访 |
| | | * concurrency = "50" å¹¶åæ°ä¸º50 |
| | | */ |
| | | @RabbitListener(queues = "task_queue", concurrency = "50") |
| | | public void phoneVisit(String content, Message message, Channel channel) throws IOException { |
| | | System.out.println("æ¶æ¯è¿æ¥äº----------------"); |
| | | @Override |
| | | public void onMessage(Message message, byte[] pattern) { |
| | | log.info("çå¬Redis keyè¿æï¼keyï¼{}ï¼channelï¼{}", message.toString(), new String(pattern)); |
| | | String content = message.toString(); |
| | | IvrTaskcallMQ ivrTaskcallMQ = null; |
| | | try { |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | |
| | | IvrTask ivrTask1 = ivrTaskMapper.selectIvrTaskByTaskid(ivrTaskcallMQ.getTaskid()); |
| | | if (ivrTask1.getStopState() != ivrTaskcallMQ.getStopState()) { |
| | | //å°æ¶æ¯ä»éåä¸åé¤ |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | return; |
| | | } |
| | | |
| | | if (StringUtils.isNotEmpty(ivrTaskcallMQ.getPreachform())) { |
| | | //å¦ä½ä»»å¡åéæ¹å¼ä¸ä¸ºç©º |
| | | String[] split = ivrTaskcallMQ.getPreachform().split(","); |
| | | System.out.println("splitçå¼ä¸ºï¼" + split); |
| | | for (String serviceFrom : split) { |
| | | String descByCode = ServiceFromEnum.getDescByCode(Integer.valueOf(serviceFrom)); |
| | | //è¿éå¯ä»¥èèç¨çç¥æ¨¡å¼ä¼åä¸ä¸ï¼ä¸ç¶å¤ªé¾çäº |
| | |
| | | break; |
| | | } |
| | | //éè¿å¤çº¿ç¨çæ¹å¼å»æçµè¯ |
| | | executorService.submit(new PhoneTask(ivrTaskcall1, ivrTaskTemplateVO1, redisCache, rabbitMqCallPhoneConfig, message, sendService, phonePath, robotPhoneUtils)); |
| | | executorService.submit(new PhoneTask(ivrTaskcall1, ivrTaskTemplateVO1, redisCache, sendService, phonePath, robotPhoneUtils)); |
| | | } |
| | | } else if (descByCode.equals("å¤åªä½")) { |
| | | //å¤åªä½ |
| | |
| | | } |
| | | } |
| | | //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | Integer integer = redisCache.getCacheObject(ivrTaskcallMQ.getTaskid().toString()); |
| | | if (integer != null && integer == 2) { |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | //å°æ¶æ¯ä»éåä¸å é¤ |
| | | } else if (integer == null) { |
| | | redisCache.setCacheObject(ivrTaskcallMQ.getTaskid().toString(), 1, 120, TimeUnit.MINUTES); |
| | | } else { |
| | |
| | | |
| | | log.error("============æ¶è´¹å¤±è´¥,å°è¯æ¶æ¯è¡¥å忬¡æ¶è´¹!=============="); |
| | | log.error(e.getMessage()); |
| | | channel.basicReject(message.getMessageProperties().getDeliveryTag(), true); |
| | | redisCache.setCacheObject(message.toString(), message.toString(), 60, TimeUnit.SECONDS); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æºå¨äººç¬¬ä¸å¥è¯è¯é³ |
| | | * concurrency = "50" å¹¶åæ°ä¸º50 |
| | | */ |
| | | @RabbitListener(queues = "ob_queue", concurrency = "50") |
| | | public void obVisit(String content, Message message, Channel channel) throws IOException { |
| | | try { |
| | | IvrTaskcallPhoneMQ ivrTaskcallMQ = null; |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | ivrTaskcallMQ = mapper.readValue(content, IvrTaskcallPhoneMQ.class); |
| | | //夿æ£è
æ¯å¦å·²ç»æ¥çµè¯ |
| | | String str = redisCache.getCacheObject(ivrTaskcallMQ.getUuid() + "state_id"); |
| | | System.out.println("-----------------" + str); |
| | | if (StringUtils.isNotEmpty(str) && str.equals("0")) { |
| | | //æ£è
å·²ç»æ¥å¬äºçµè¯ |
| | | new PhoneUtils().ttsPlayback(ivrTaskcallMQ.getScript(), ivrTaskcallMQ.getUuid()); |
| | | } else if (StringUtils.isNotEmpty(str) && str.equals("-10")) { |
| | | //è¿ä¸ªè¯´æ,å·²ç»æäºæå®éæ°è¿æ¯æ²¡æäººæ¥ï¼å¯ä»¥å°æ¶æ¯ä»éåä¸ç§»é¤äº |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | return; |
| | | } else { |
| | | //è¿è¡éåå°¾é¨ï¼è¿è¡ä¸ä¸æ¬¡æ ¡éª |
| | | // channel.basicRecover(false); |
| | | channel.basicReject(message.getMessageProperties().getDeliveryTag(), true); |
| | | System.out.println("++++++++++++++++++++++" + str); |
| | | return; |
| | | } |
| | | //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | } catch (Exception e) { |
| | | log.error("============æ¶è´¹å¤±è´¥,å°è¯æ¶æ¯è¡¥å忬¡æ¶è´¹!=============="); |
| | | log.error(e.getMessage()); |
| | | channel.basicReject(message.getMessageProperties().getDeliveryTag(), true); |
| | | } |
| | | } |
| | | // /** |
| | | // * æºå¨äººç¬¬ä¸å¥è¯è¯é³ |
| | | // * concurrency = "50" å¹¶åæ°ä¸º50 |
| | | // */ |
| | | // @RabbitListener(queues = "ob_queue", concurrency = "50") |
| | | // public void obVisit(String content, Message message, Channel channel) throws IOException { |
| | | // try { |
| | | // IvrTaskcallPhoneMQ ivrTaskcallMQ = null; |
| | | // ObjectMapper mapper = new ObjectMapper(); |
| | | // ivrTaskcallMQ = mapper.readValue(content, IvrTaskcallPhoneMQ.class); |
| | | // //夿æ£è
æ¯å¦å·²ç»æ¥çµè¯ |
| | | // String str = redisCache.getCacheObject(ivrTaskcallMQ.getUuid() + "state_id"); |
| | | // System.out.println("-----------------" + str); |
| | | // if (StringUtils.isNotEmpty(str) && str.equals("0")) { |
| | | // //æ£è
å·²ç»æ¥å¬äºçµè¯ |
| | | // new PhoneUtils().ttsPlayback(ivrTaskcallMQ.getScript(), ivrTaskcallMQ.getUuid()); |
| | | // } else if (StringUtils.isNotEmpty(str) && str.equals("-10")) { |
| | | // //è¿ä¸ªè¯´æ,å·²ç»æäºæå®éæ°è¿æ¯æ²¡æäººæ¥ï¼å¯ä»¥å°æ¶æ¯ä»éåä¸ç§»é¤äº |
| | | // channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | // return; |
| | | // } else { |
| | | // //è¿è¡éåå°¾é¨ï¼è¿è¡ä¸ä¸æ¬¡æ ¡éª |
| | | //// channel.basicRecover(false); |
| | | // channel.basicReject(message.getMessageProperties().getDeliveryTag(), true); |
| | | // System.out.println("++++++++++++++++++++++" + str); |
| | | // return; |
| | | // } |
| | | // //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | // channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | // } catch (Exception e) { |
| | | // log.error("============æ¶è´¹å¤±è´¥,å°è¯æ¶æ¯è¡¥å忬¡æ¶è´¹!=============="); |
| | | // log.error(e.getMessage()); |
| | | // channel.basicReject(message.getMessageProperties().getDeliveryTag(), true); |
| | | // } |
| | | // } |
| | | |
| | | |
| | | @Bean |
| | | public SimpleRabbitListenerContainerFactory jsonContainerFactory(ConnectionFactory connectionFactory) { |
| | | SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory(); |
| | | factory.setConnectionFactory(connectionFactory); |
| | | factory.setMessageConverter(new Jackson2JsonMessageConverter()); |
| | | return factory; |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.github.pagehelper.util.StringUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.config.PhoneUtils; |
| | | import com.smartor.config.RabbitMqCallPhoneConfig; |
| | | import com.smartor.domain.IvrLibaTemplate; |
| | | import com.smartor.domain.IvrLibaTemplateVO; |
| | | import com.smartor.domain.Test1Vo; |
| | |
| | | @Autowired |
| | | private PhoneUtils phoneUtils; |
| | | |
| | | @Autowired |
| | | private RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿åºå表 |
| | |
| | | return success(ivrLibaTemplateService.selectInfoByCondition(ivrLibaTemplateVO)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å¼å§æ§è¡(æµè¯ç¨) |
| | | */ |
| | | @PostMapping("/queryRabbitmq") |
| | | public AjaxResult queryRabbitmq(@RequestBody Test1Vo test1Vo) { |
| | | |
| | | log.info("-------------å¯å¨å¨è¯¢åºçè¶
æ¶æéå»¶è¿éå-------------"); |
| | | String data = JSON.toJSONString(test1Vo.getTestVo()); |
| | | String substring = data.substring(1, data.length() - 1); |
| | | rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.123", substring, test1Vo.getTimes()); |
| | | |
| | | log.info("-------------å»¶è¿éå{}msåæ§è¡.-------------", test1Vo.getTimes()); |
| | | return success(); |
| | | } |
| | | // |
| | | // /** |
| | | // * å¼å§æ§è¡(æµè¯ç¨) |
| | | // */ |
| | | // @PostMapping("/queryRabbitmq") |
| | | // public AjaxResult queryRabbitmq(@RequestBody Test1Vo test1Vo) { |
| | | // |
| | | // log.info("-------------å¯å¨å¨è¯¢åºçè¶
æ¶æéå»¶è¿éå-------------"); |
| | | // String data = JSON.toJSONString(test1Vo.getTestVo()); |
| | | // String substring = data.substring(1, data.length() - 1); |
| | | // rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.123", substring, test1Vo.getTimes()); |
| | | // |
| | | // log.info("-------------å»¶è¿éå{}msåæ§è¡.-------------", test1Vo.getTimes()); |
| | | // return success(); |
| | | // } |
| | | |
| | | @GetMapping("/tts") |
| | | public AjaxResult tts(@RequestParam("fileText") String fileText, @RequestParam("uuid") String uuid) { |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | |
| | | import com.google.zxing.common.BitMatrix; |
| | | import com.google.zxing.qrcode.QRCodeWriter; |
| | | import com.smartor.domain.Question; |
| | | import com.smartor.domain.SvyLibTemplate; |
| | | import freemarker.template.Configuration; |
| | | import freemarker.template.Template; |
| | | import freemarker.template.TemplateException; |
| | |
| | | public String generateStaticHtml(@PathVariable("reqid") String reqid, @PathVariable("userid") String userid) throws IOException, TemplateException { |
| | | // å建Freemarkeré
ç½® |
| | | Configuration configuration = new Configuration(Configuration.VERSION_2_3_31); |
| | | configuration.setClassForTemplateLoading(SvyLibTitleController.class, "/template"); |
| | | configuration.setClassForTemplateLoading(SvyLibTemplateController.class, "/template"); |
| | | configuration.setDefaultEncoding("UTF-8"); |
| | | |
| | | try { |
ÎļþÃû´Ó ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTopicCategoryController.java ÐÞ¸Ä |
| | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.SvyLibTopicCategory; |
| | | import com.smartor.domain.SvyLibTopicCategoryVO; |
| | | import com.smartor.service.ISvyLibTopicCategoryService; |
| | | import com.smartor.domain.SvyLibScriptCategory; |
| | | import com.smartor.domain.SvyLibScriptCategoryVO; |
| | | import com.smartor.service.ISvyLibScriptCategoryService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | */ |
| | | @Api(description = "é®å·é¢åºåç±»") |
| | | @RestController |
| | | @RequestMapping("/smartor/svyLibTopicCategory") |
| | | public class SvyLibTopicCategoryController extends BaseController { |
| | | @RequestMapping("/smartor/svyLibScriptCategory") |
| | | public class SvyLibScriptCategoryController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibTopicCategoryService svyLibTopicCategoryService; |
| | | private ISvyLibScriptCategoryService svyLibScriptCategoryService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®åç±»å表 |
| | |
| | | @ApiOperation("æ¥è¯¢é®å·é¢ç®åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibTopicCategory svyLibTopicCategory) { |
| | | public TableDataInfo list(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | startPage(); |
| | | List<SvyLibTopicCategoryVO> list = svyLibTopicCategoryService.selectSvyLibTopicCategoryList(svyLibTopicCategory); |
| | | List<SvyLibScriptCategoryVO> list = svyLibScriptCategoryService.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:export')") |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTopicCategory svyLibTopicCategory) { |
| | | List<SvyLibTopicCategoryVO> list = svyLibTopicCategoryService.selectSvyLibTopicCategoryList(svyLibTopicCategory); |
| | | ExcelUtil<SvyLibTopicCategoryVO> util = new ExcelUtil<SvyLibTopicCategoryVO>(SvyLibTopicCategoryVO.class); |
| | | public void export(HttpServletResponse response, SvyLibScriptCategory svyLibScriptCategory) { |
| | | List<SvyLibScriptCategoryVO> list = svyLibScriptCategoryService.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | ExcelUtil<SvyLibScriptCategoryVO> util = new ExcelUtil<SvyLibScriptCategoryVO>(SvyLibScriptCategoryVO.class); |
| | | util.exportExcel(response, list, "é®å·é¢ç®åç±»æ°æ®"); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyLibTopicCategoryService.selectSvyLibTopicCategoryById(id)); |
| | | return success(svyLibScriptCategoryService.selectSvyLibScriptCategoryById(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)); |
| | | // public AjaxResult add(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | // return toAjax(svyLibScriptCategoryService.insertSvyLibScriptCategory(svyLibScriptCategory)); |
| | | // } |
| | | |
| | | /** |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTopicCategory svyLibTopicCategory) { |
| | | return toAjax(svyLibTopicCategoryService.updateSvyLibTopicCategory(svyLibTopicCategory)); |
| | | public AjaxResult edit(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | return toAjax(svyLibScriptCategoryService.updateSvyLibScriptCategory(svyLibScriptCategory)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(svyLibTopicCategoryService.deleteSvyLibTopicCategoryByIds(ids)); |
| | | return toAjax(svyLibScriptCategoryService.deleteSvyLibScriptCategoryByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Log(title = "é®å·é¢ç®åç±»æ ", businessType = BusinessType.INSERT) |
| | | @ApiOperation("é®å·é¢ç®åç±»æ ") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody SvyLibTopicCategoryVO svyLibTopicCategoryVO) { |
| | | return toAjax(svyLibTopicCategoryService.insertSvyLibTopicCategoryTree(svyLibTopicCategoryVO)); |
| | | public AjaxResult addtree(@RequestBody SvyLibScriptCategoryVO svyLibScriptCategoryVO) { |
| | | return toAjax(svyLibScriptCategoryService.insertSvyLibScriptCategoryTree(svyLibScriptCategoryVO)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | 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; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.smartor.service.ISvyLibScriptService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·é¢ç®Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Api(description = "é®å·é¢ç®") |
| | | @RestController |
| | | @RequestMapping("/smartor/svyscript") |
| | | public class SvyLibScriptController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibScriptService svyLibScriptService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·é¢ç®å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibScript svyLibScript) { |
| | | PageUtils.startPageByPost(svyLibScript.getPageNum(), svyLibScript.getPageSize()); |
| | | List<SvyLibScript> list = svyLibScriptService.selectSvyLibScriptList(svyLibScript); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:export')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("导åºé®å·é¢ç®å表") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibScript svyLibScript) { |
| | | List<SvyLibScript> list = svyLibScriptService.selectSvyLibScriptList(svyLibScript); |
| | | ExcelUtil<SvyLibScript> util = new ExcelUtil<SvyLibScript>(SvyLibScript.class); |
| | | util.exportExcel(response, list, "é®å·é¢ç®æ°æ®"); |
| | | } |
| | | |
| | | // /** |
| | | // * è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | // */ |
| | | // @ApiOperation("è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svyScript:query')") |
| | | // @GetMapping(value = "/getInfo/{Scriptid}") |
| | | // public AjaxResult getInfo(@PathVariable("Scriptid") Long Scriptid) { |
| | | // return success(svyLibScriptService.selectSvyLibScriptByScriptid(Scriptid)); |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("æ°å¢é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:add')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibScript svyLibScript) { |
| | | return toAjax(svyLibScriptService.insertSvyLibScript(svyLibScript)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é®å·è¯¦æ
ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹é®å·è¯¦æ
ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateScript") |
| | | public AjaxResult saveOrUpdateScript(@RequestBody SvyLibScript svyLibScript) { |
| | | if (ObjectUtils.isEmpty(svyLibScript)) { |
| | | throw new BaseException("å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | } |
| | | return success(svyLibScriptService.saveOrUpdateScript(svyLibScript)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:edit')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibScript svyLibScript) { |
| | | return toAjax(svyLibScriptService.updateSvyLibScript(svyLibScript)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("å é¤é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:remove')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scriptids}") |
| | | public AjaxResult remove(@PathVariable Long[] scriptids) { |
| | | return toAjax(svyLibScriptService.deleteSvyLibScriptByScriptids(scriptids)); |
| | | } |
| | | |
| | | |
| | | } |
ÎļþÃû´Ó ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTopicoptionController.java ÐÞ¸Ä |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.smartor.domain.SvyLibTopicoption; |
| | | import com.smartor.service.ISvyLibTopicoptionService; |
| | | import com.smartor.domain.SvyLibScriptOption; |
| | | import com.smartor.service.ISvyLibScriptOptionService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·é®é¢é项Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytopicoption") |
| | | public class SvyLibTopicoptionController extends BaseController |
| | | @RequestMapping("/smartor/svytscroption") |
| | | public class SvyLibScriptOptionController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyLibTopicoptionService svyLibTopicoptionService; |
| | | private ISvyLibScriptOptionService svyLibTopicoptionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibTopicoption svyLibTopicoption) |
| | | public TableDataInfo list(@RequestBody SvyLibScriptOption svyLibTopicoption) |
| | | { |
| | | startPage(); |
| | | List<SvyLibTopicoption> list = svyLibTopicoptionService.selectSvyLibTopicoptionList(svyLibTopicoption); |
| | | List<SvyLibScriptOption> list = svyLibTopicoptionService.selectSvyLibScriptOptionList(svyLibTopicoption); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:export')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTopicoption svyLibTopicoption) |
| | | public void export(HttpServletResponse response, SvyLibScriptOption svyLibTopicoption) |
| | | { |
| | | List<SvyLibTopicoption> list = svyLibTopicoptionService.selectSvyLibTopicoptionList(svyLibTopicoption); |
| | | ExcelUtil<SvyLibTopicoption> util = new ExcelUtil<SvyLibTopicoption>(SvyLibTopicoption.class); |
| | | List<SvyLibScriptOption> list = svyLibTopicoptionService.selectSvyLibScriptOptionList(svyLibTopicoption); |
| | | ExcelUtil<SvyLibScriptOption> util = new ExcelUtil<SvyLibScriptOption>(SvyLibScriptOption.class); |
| | | util.exportExcel(response, list, "é®å·é®é¢éé¡¹æ°æ®"); |
| | | } |
| | | |
| | |
| | | @GetMapping(value = "/{optionid}") |
| | | public AjaxResult getInfo(@PathVariable("optionid") Long optionid) |
| | | { |
| | | return success(svyLibTopicoptionService.selectSvyLibTopicoptionByOptionid(optionid)); |
| | | return success(svyLibTopicoptionService.selectSvyLibScriptOptionByOptionid(optionid)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:add')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibTopicoption svyLibTopicoption) |
| | | public AjaxResult add(@RequestBody SvyLibScriptOption svyLibTopicoption) |
| | | { |
| | | return toAjax(svyLibTopicoptionService.insertSvyLibTopicoption(svyLibTopicoption)); |
| | | return toAjax(svyLibTopicoptionService.insertSvyLibScriptOption(svyLibTopicoption)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:edit')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTopicoption svyLibTopicoption) |
| | | public AjaxResult edit(@RequestBody SvyLibScriptOption svyLibTopicoption) |
| | | { |
| | | return toAjax(svyLibTopicoptionService.updateSvyLibTopicoption(svyLibTopicoption)); |
| | | return toAjax(svyLibTopicoptionService.updateSvyLibScriptOption(svyLibTopicoption)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @GetMapping("/remove/{optionids}") |
| | | public AjaxResult remove(@PathVariable Long[] optionids) |
| | | { |
| | | return toAjax(svyLibTopicoptionService.deleteSvyLibTopicoptionByOptionids(optionids)); |
| | | return toAjax(svyLibTopicoptionService.deleteSvyLibScriptOptionByOptionids(optionids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.SvyLibTemplateCategory; |
| | | import com.smartor.domain.SvyLibTemplateCategoryVO; |
| | | import com.smartor.service.ISvyLibTemplateCategoryService; |
| | | 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 2023-12-27 |
| | | */ |
| | | @Api(description = "é®å·æ¨¡æ¿åç±»") |
| | | @RestController |
| | | @RequestMapping("/smartor/svyLibTemplateCategory") |
| | | public class SvyLibTemplateCategoryController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibTemplateCategoryService svyLibTemplateCategoryService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·æ¨¡æ¿åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | startPage(); |
| | | List<SvyLibTemplateCategoryVO> list = svyLibTemplateCategoryService.selectSvyLibTemplateCategoryList(svyLibTemplateCategory); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·æ¨¡æ¿åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:export')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | List<SvyLibTemplateCategoryVO> list = svyLibTemplateCategoryService.selectSvyLibTemplateCategoryList(svyLibTemplateCategory); |
| | | ExcelUtil<SvyLibTemplateCategoryVO> util = new ExcelUtil<SvyLibTemplateCategoryVO>(SvyLibTemplateCategoryVO.class); |
| | | util.exportExcel(response, list, "é®å·æ¨¡æ¿åç±»æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·æ¨¡æ¿å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·æ¨¡æ¿å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyLibTemplateCategoryService.selectSvyLibTemplateCategoryById(id)); |
| | | } |
| | | |
| | | // /** |
| | | // * æ°å¢é®å·æ¨¡æ¿åç±» |
| | | // */ |
| | | // @ApiOperation("æ°å¢é®å·æ¨¡æ¿åç±»") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(Template = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.INSERT) |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | // return toAjax(svyLibTemplateCategoryService.insertSvyLibTemplateCategory(svyLibTemplateCategory)); |
| | | // } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | return toAjax(svyLibTemplateCategoryService.updateSvyLibTemplateCategory(svyLibTemplateCategory)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("å é¤é®å·æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(svyLibTemplateCategoryService.deleteSvyLibTemplateCategoryByIds(ids)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * é®å·æ¨¡æ¿åç±»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»æ ", businessType = BusinessType.INSERT) |
| | | @ApiOperation("é®å·æ¨¡æ¿åç±»æ ") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody SvyLibTemplateCategoryVO svyLibTemplateCategoryVO) { |
| | | return toAjax(svyLibTemplateCategoryService.insertSvyLibTemplateCategoryTree(svyLibTemplateCategoryVO)); |
| | | } |
| | | } |
ÎļþÃû´Ó ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTitleController.java ÐÞ¸Ä |
| | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.smartor.domain.SvyLibTitle; |
| | | import com.smartor.domain.SvyLibTitleReq; |
| | | import com.smartor.service.ISvyLibTitleService; |
| | | import com.smartor.domain.SvyLibTemplate; |
| | | import com.smartor.domain.SvyLibTemplateReq; |
| | | import com.smartor.service.ISvyLibTemplateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | |
| | | */ |
| | | @Api(description = "é®å·æ¨¡æ¿") |
| | | @RestController |
| | | @RequestMapping("/smartor/svytitle") |
| | | public class SvyLibTitleController extends BaseController { |
| | | @RequestMapping("/smartor/svyTemplate") |
| | | public class SvyLibTemplateController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibTitleService svyLibTitleService; |
| | | private ISvyLibTemplateService svyLibTemplateService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·å表详æ
") |
| | | @PostMapping("/selectSvyLibTitlelist") |
| | | public TableDataInfo selectSvyLibTitlelist(@RequestBody SvyLibTitleReq svyLibTitleReq) { |
| | | @PostMapping("/selectSvyLibTemplatelist") |
| | | public TableDataInfo selectSvyLibTemplatelist(@RequestBody SvyLibTemplateReq svyLibTemplateReq) { |
| | | startPage(); |
| | | List<SvyLibTitle> list = svyLibTitleService.selectSvyLibTitleList(svyLibTitleReq); |
| | | List<SvyLibTemplate> list = svyLibTemplateService.selectSvyLibTemplateList(svyLibTemplateReq); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | // * è·åé®å·è¯¦ç»ä¿¡æ¯(å表) |
| | | // */ |
| | | // @ApiOperation("è·åé®å·è¯¦ç»ä¿¡æ¯") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svytitle:query')") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:query')") |
| | | // @GetMapping(value = "/{svyid}") |
| | | // public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { |
| | | // return success(svyLibTitleService.selectSvyLibTitleBySvyid(svyid)); |
| | | // return success(svyLibTemplateService.selectSvyLibTemplateBySvyid(svyid)); |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢é®å· |
| | | */ |
| | | @ApiOperation("æ°å¢é®å·") |
| | | @PostMapping("/addSvyLibTitle") |
| | | public AjaxResult addSvyLibTitle(@RequestBody SvyLibTitle svyLibTitle) { |
| | | return toAjax(svyLibTitleService.insertSvyLibTitle(svyLibTitle)); |
| | | @PostMapping("/addSvyLibTemplate") |
| | | public AjaxResult addSvyLibTemplate(@RequestBody SvyLibTemplate svyLibTemplate) { |
| | | return toAjax(svyLibTemplateService.insertSvyLibTemplate(svyLibTemplate)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateTitle") |
| | | public AjaxResult saveOrUpdateTitle(@RequestBody SvyLibTitle svyLibTitle) { |
| | | if (ObjectUtils.isEmpty(svyLibTitle)) { |
| | | @PostMapping("/saveOrUpdateTemplate") |
| | | public AjaxResult saveOrUpdateTemplate(@RequestBody SvyLibTemplate svyLibTemplate) { |
| | | if (ObjectUtils.isEmpty(svyLibTemplate)) { |
| | | throw new BaseException("å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | } |
| | | return success(svyLibTitleService.saveOrUpdateTitle(svyLibTitle)); |
| | | return success(svyLibTemplateService.saveOrUpdateTemplate(svyLibTemplate)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å· |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytitle:edit')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:edit')") |
| | | @Log(title = "é®å·", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTitle svyLibTitle) { |
| | | return toAjax(svyLibTitleService.updateSvyLibTitle(svyLibTitle)); |
| | | public AjaxResult edit(@RequestBody SvyLibTemplate svyLibTemplate) { |
| | | return toAjax(svyLibTemplateService.updateSvyLibTemplate(svyLibTemplate)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å· |
| | | */ |
| | | @ApiOperation("å é¤é®å·") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytitle:remove')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") |
| | | @Log(title = "é®å·", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) { |
| | | return toAjax(svyLibTitleService.deleteSvyLibTitleBySvyids(svyids)); |
| | | return toAjax(svyLibTemplateService.deleteSvyLibTemplateBySvyids(svyids)); |
| | | } |
| | | |
| | | /** |
| | | * åéçä¿¡ |
| | | */ |
| | | @ApiOperation("åéçä¿¡") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytitle:remove')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") |
| | | @Log(title = "é®å·", businessType = BusinessType.DELETE) |
| | | @PostMapping("/sendMessage") |
| | | public AjaxResult sendMessage(@PathVariable Long[] svyids) { |
| | |
| | | // } catch (Exception e) { |
| | | // System.err.println("åéç信失败ï¼" + e.getMessage()); |
| | | // } |
| | | return toAjax(svyLibTitleService.deleteSvyLibTitleBySvyids(svyids)); |
| | | return toAjax(svyLibTemplateService.deleteSvyLibTemplateBySvyids(svyids)); |
| | | } |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.SvyTask; |
| | | import com.smartor.service.ISvyTaskService; |
| | | 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-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytask") |
| | | public class SvyTaskController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyTaskService svyTaskService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:task:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTask svyTask) |
| | | { |
| | | startPage(); |
| | | List<SvyTask> list = svyTaskService.selectSvyTaskList(svyTask); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:task:export')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTask svyTask) |
| | | { |
| | | List<SvyTask> list = svyTaskService.selectSvyTaskList(svyTask); |
| | | ExcelUtil<SvyTask> util = new ExcelUtil<SvyTask>(SvyTask.class); |
| | | util.exportExcel(response, list, "综åé®å·ä»»å¡ï¼ä»»å¡ï¼æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·å综åé®å·ä»»å¡ï¼ä»»å¡ï¼è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:task:query')") |
| | | @GetMapping(value = "/{taskid}") |
| | | public AjaxResult getInfo(@PathVariable("taskid") Long taskid) |
| | | { |
| | | return success(svyTaskService.selectSvyTaskByTaskid(taskid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTask svyTask) |
| | | { |
| | | return toAjax(svyTaskService.insertSvyTask(svyTask)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:task:edit')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTask svyTask) |
| | | { |
| | | return toAjax(svyTaskService.updateSvyTask(svyTask)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:task:remove')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{taskids}") |
| | | public AjaxResult remove(@PathVariable Long[] taskids) |
| | | { |
| | | return toAjax(svyTaskService.deleteSvyTaskByTaskids(taskids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.SvyTaskScript; |
| | | import com.smartor.service.ISvyTaskScriptService; |
| | | 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-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyTaskScript") |
| | | public class SvyTaskScriptController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyTaskScriptService svyTaskScriptService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskScript svyTaskScript) |
| | | { |
| | | startPage(); |
| | | List<SvyTaskScript> list = svyTaskScriptService.selectSvyTaskScriptList(svyTaskScript); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºä»»å¡é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskScript svyTaskScript) |
| | | { |
| | | List<SvyTaskScript> list = svyTaskScriptService.selectSvyTaskScriptList(svyTaskScript); |
| | | ExcelUtil<SvyTaskScript> util = new ExcelUtil<SvyTaskScript>(SvyTaskScript.class); |
| | | util.exportExcel(response, list, "ä»»å¡é®å·é¢ç®æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åä»»å¡é®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyTaskScriptService.selectSvyTaskScriptById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskScript svyTaskScript) |
| | | { |
| | | return toAjax(svyTaskScriptService.insertSvyTaskScript(svyTaskScript)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskScript svyTaskScript) |
| | | { |
| | | return toAjax(svyTaskScriptService.updateSvyTaskScript(svyTaskScript)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyTaskScriptService.deleteSvyTaskScriptByIds(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.SvyTaskScriptoption; |
| | | import com.smartor.service.ISvyTaskScriptoptionService; |
| | | 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-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyscriptoption") |
| | | public class SvyTaskScriptoptionController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyTaskScriptoptionService svyTaskScriptoptionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskScriptoption svyTaskScriptoption) |
| | | { |
| | | startPage(); |
| | | List<SvyTaskScriptoption> list = svyTaskScriptoptionService.selectSvyTaskScriptoptionList(svyTaskScriptoption); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:export')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskScriptoption svyTaskScriptoption) |
| | | { |
| | | List<SvyTaskScriptoption> list = svyTaskScriptoptionService.selectSvyTaskScriptoptionList(svyTaskScriptoption); |
| | | ExcelUtil<SvyTaskScriptoption> util = new ExcelUtil<SvyTaskScriptoption>(SvyTaskScriptoption.class); |
| | | util.exportExcel(response, list, "ä»»å¡é®å·é®é¢éé¡¹æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åä»»å¡é®å·é®é¢é项详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyTaskScriptoptionService.selectSvyTaskScriptoptionById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:add')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskScriptoption svyTaskScriptoption) |
| | | { |
| | | return toAjax(svyTaskScriptoptionService.insertSvyTaskScriptoption(svyTaskScriptoption)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:edit')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskScriptoption svyTaskScriptoption) |
| | | { |
| | | return toAjax(svyTaskScriptoptionService.updateSvyTaskScriptoption(svyTaskScriptoption)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:remove')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyTaskScriptoptionService.deleteSvyTaskScriptoptionByIds(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.SvyTaskSingle; |
| | | import com.smartor.service.ISvyTaskSingleService; |
| | | 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-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svysingle") |
| | | public class SvyTaskSingleController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyTaskSingleService svyTaskSingleService; |
| | | |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskSingle svyTaskSingle) |
| | | { |
| | | startPage(); |
| | | List<SvyTaskSingle> list = svyTaskSingleService.selectSvyTaskSingleList(svyTaskSingle); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºåä¸ä»»å¡ï¼é®å·ï¼å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:export')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskSingle svyTaskSingle) |
| | | { |
| | | List<SvyTaskSingle> list = svyTaskSingleService.selectSvyTaskSingleList(svyTaskSingle); |
| | | ExcelUtil<SvyTaskSingle> util = new ExcelUtil<SvyTaskSingle>(SvyTaskSingle.class); |
| | | util.exportExcel(response, list, "åä¸ä»»å¡ï¼é®å·ï¼æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·ååä¸ä»»å¡ï¼é®å·ï¼è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyTaskSingleService.selectSvyTaskSingleById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:add')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskSingle svyTaskSingle) |
| | | { |
| | | return toAjax(svyTaskSingleService.insertSvyTaskSingle(svyTaskSingle)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:edit')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskSingle svyTaskSingle) |
| | | { |
| | | return toAjax(svyTaskSingleService.updateSvyTaskSingle(svyTaskSingle)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:single:remove')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é®å·ï¼", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyTaskSingleService.deleteSvyTaskSingleByIds(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.SvyTaskTemplate; |
| | | import com.smartor.service.ISvyTaskTemplateService; |
| | | 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-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytemplate") |
| | | public class SvyTaskTemplateController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyTaskTemplateService svyTaskTemplateService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | startPage(); |
| | | List<SvyTaskTemplate> list = svyTaskTemplateService.selectSvyTaskTemplateList(svyTaskTemplate); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºä»»å¡é®å·æ¨¡æ¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | List<SvyTaskTemplate> list = svyTaskTemplateService.selectSvyTaskTemplateList(svyTaskTemplate); |
| | | ExcelUtil<SvyTaskTemplate> util = new ExcelUtil<SvyTaskTemplate>(SvyTaskTemplate.class); |
| | | util.exportExcel(response, list, "ä»»å¡é®å·æ¨¡æ¿æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åä»»å¡é®å·æ¨¡æ¿è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | @GetMapping(value = "/{svyid}") |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) |
| | | { |
| | | return success(svyTaskTemplateService.selectSvyTaskTemplateBySvyid(svyid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | return toAjax(svyTaskTemplateService.insertSvyTaskTemplate(svyTaskTemplate)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | return toAjax(svyTaskTemplateService.updateSvyTaskTemplate(svyTaskTemplate)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) |
| | | { |
| | | return toAjax(svyTaskTemplateService.deleteSvyTaskTemplateBySvyids(svyids)); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.SvyLibTopicRes; |
| | | import com.smartor.domain.SvyLibScript; |
| | | import com.smartor.domain.SvyLibScriptRes; |
| | | import com.smartor.domain.SvyTopic; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import com.smartor.service.ISvyTopicService; |
| | |
| | | * æ¥è¯¢é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:topic:list')") |
| | | @PostMapping("/list") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyTopic svyTopic) { |
| | | startPage(); |
| | | List<SvyTopic> list = svyTopicService.selectSvyTopicList(svyTopic); |
| | |
| | | @ApiOperation("导å
¥é¢ç®æ¨¡æ¿") |
| | | @PostMapping("/importTopicTemplate") |
| | | public void importTopicTemplate(HttpServletResponse response) { |
| | | ExcelUtil<SvyLibTopicRes> util = new ExcelUtil<SvyLibTopicRes>(SvyLibTopicRes.class); |
| | | ExcelUtil<SvyLibScriptRes> util = new ExcelUtil<SvyLibScriptRes>(SvyLibScriptRes.class); |
| | | util.importTemplateExcel(response, "导å
¥é¢ç®"); |
| | | } |
| | | |
| | |
| | | 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.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.ServiceThirdData; |
| | | import com.smartor.domain.SvyLibTopicRes; |
| | | import com.smartor.domain.SvyTopic; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import com.smartor.service.IServiceThirdDataService; |
| | | import com.smartor.service.ISvyTopicService; |
| | | 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 org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.core.config; |
| | | |
| | | import com.ruoyi.web.component.RedisMqReceiver; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.data.redis.connection.RedisConnectionFactory; |
| | | import org.springframework.data.redis.listener.RedisMessageListenerContainer; |
| | | |
| | | @Configuration |
| | | public class RedisConfiguration { |
| | | @Autowired |
| | | private RedisConnectionFactory redisConnectionFactory; |
| | | |
| | | // 第ä¸ä¸ª@Beanæ¯å建ä¸ä¸ªæ°çRedisæ¶æ¯çå¬å®¹å¨ï¼ç¶åæå®Redisè¿æ¥ã第äºä¸ª@Beanæ¯ç»æä»¬åççå¬ç±»æå®ä¸ä¸ªRedisæ¶æ¯çå¬å®¹å¨ï¼å³ç¬¬ä¸ä¸ª@Beançå
容 |
| | | |
| | | @Bean |
| | | public RedisMessageListenerContainer redisMessageListenerContainer() { |
| | | RedisMessageListenerContainer redisMessageListenerContainer = new RedisMessageListenerContainer(); |
| | | redisMessageListenerContainer.setConnectionFactory(redisConnectionFactory); |
| | | return redisMessageListenerContainer; |
| | | } |
| | | |
| | | @Bean |
| | | public RedisMqReceiver keyExpiredListener() { |
| | | return new RedisMqReceiver(this.redisMessageListenerContainer()); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | | import com.smartor.common.SendService; |
| | | import com.smartor.config.PhoneUtils; |
| | | import com.smartor.config.RabbitMqCallPhoneConfig; |
| | | import com.smartor.config.RobotPhoneUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.robot.RobotData; |
| | | import com.smartor.domain.robot.RobotDataConfig; |
| | | import com.smartor.domain.robot.RobotIdlenumVO; |
| | | import com.smartor.domain.robot.RobotScritpTemplateVO; |
| | | import org.springframework.amqp.core.Message; |
| | | import org.springframework.context.support.ClassPathXmlApplicationContext; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.*; |
| | | import java.util.concurrent.TimeUnit; |
| | |
| | | private List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVO; |
| | | private RedisCache redisCache; |
| | | private IvrTaskTemplateVO ivrTaskTemplateVO; |
| | | private RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig; |
| | | private Message message; |
| | | private SendService sendService; |
| | | private String phonePath; |
| | | private RobotPhoneUtils robotPhoneUtils; |
| | | |
| | | |
| | | public PhoneTask(IvrTaskSingle ivrTaskSingle, IvrTaskTemplateVO ivrTaskTemplateVO, RedisCache redisCache, RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig, Message message, SendService sendService, String phonePath, RobotPhoneUtils robotPhoneUtils) { |
| | | public PhoneTask(IvrTaskSingle ivrTaskSingle, IvrTaskTemplateVO ivrTaskTemplateVO, RedisCache redisCache, SendService sendService, String phonePath, RobotPhoneUtils robotPhoneUtils) { |
| | | this.ivrTaskSingle = DtoConversionUtils.sourceToTarget(ivrTaskSingle, IvrTaskSingle.class); |
| | | this.ivrTaskTemplateScriptVO = DtoConversionUtils.sourceToTarget(ivrTaskTemplateVO.getIvrTaskTemplateScriptVOList(), IvrTaskTemplateScriptVO.class); |
| | | this.ivrTaskTemplateVO = DtoConversionUtils.sourceToTarget(ivrTaskTemplateVO, IvrTaskTemplateVO.class); |
| | | this.redisCache = redisCache; |
| | | this.rabbitMqCallPhoneConfig = rabbitMqCallPhoneConfig; |
| | | this.message = message; |
| | | this.sendService = sendService; |
| | | this.phonePath = phonePath; |
| | | this.robotPhoneUtils = robotPhoneUtils; |
| | |
| | | Map<String, String> obMap = objectMapper.readValue(ob, Map.class); |
| | | Thread.sleep(1000); |
| | | redisCache.setCacheObject(uuid + "state_id", "0", 10, TimeUnit.MINUTES); |
| | | rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.ob1", data, 0L); |
| | | // rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.ob1", data, 0L); |
| | | //è¿éå
注éï¼state_id,çµè¯é£è¾¹ï¼åªè½è¿å6ï¼ä¸è½è¿å0ï¼è¿éè¦çµè¯é£è¾¹è¿è¡ä¿®æ¹ï¼é£è¾¹ä¿®æ¹ä¹åï¼ä¸é¢ä¸¤è¡å¯å é¤ï¼å°ä¸é¢çè§£å¼æ³¨é |
| | | // if (obMap.get("state_id").equals("0")) { |
| | | // // 说ææéäº |
| | |
| | | # æ°æ®æºé
ç½® |
| | | spring: |
| | | rabbitmq: |
| | | # host: 116.62.18.175 |
| | | host: 192.168.2.8 |
| | | password: guest |
| | | port: 5672 |
| | | username: guest |
| | | virtual-host: / |
| | | # å¼å¯æ¶æ¯åé确认 |
| | | publisher-confirms: true |
| | | publisher-returns: true |
| | | listener: |
| | | simple: |
| | | acknowledge-mode: manual |
| | | |
| | | datasource: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.BoundSetOperations; |
| | | import org.springframework.data.redis.core.HashOperations; |
| | |
| | | * |
| | | * @author ruoyi |
| | | **/ |
| | | @SuppressWarnings(value = { "unchecked", "rawtypes" }) |
| | | @SuppressWarnings(value = {"unchecked", "rawtypes"}) |
| | | @Component |
| | | public class RedisCache |
| | | { |
| | | public class RedisCache { |
| | | @Autowired |
| | | public RedisTemplate redisTemplate; |
| | | |
| | | /** |
| | | * ç¼ååºæ¬ç对象ï¼IntegerãStringãå®ä½ç±»ç |
| | | * |
| | | * @param key ç¼åçé®å¼ |
| | | * @param key ç¼åçé®å¼ |
| | | * @param value ç¼åçå¼ |
| | | */ |
| | | public <T> void setCacheObject(final String key, final T value) |
| | | { |
| | | public <T> void setCacheObject(final String key, final T value) { |
| | | redisTemplate.opsForValue().set(key, value); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ååºæ¬ç对象ï¼IntegerãStringãå®ä½ç±»ç |
| | | * |
| | | * @param key ç¼åçé®å¼ |
| | | * @param value ç¼åçå¼ |
| | | * @param timeout æ¶é´ |
| | | * @param key ç¼åçé®å¼ |
| | | * @param value ç¼åçå¼ |
| | | * @param timeout æ¶é´ |
| | | * @param timeUnit æ¶é´é¢ç²åº¦ |
| | | */ |
| | | public <T> void setCacheObject(final String key, final T value, final Integer timeout, final TimeUnit timeUnit) |
| | | { |
| | | public <T> void setCacheObject(final String key, final T value, final long timeout, final TimeUnit timeUnit) { |
| | | redisTemplate.opsForValue().set(key, value, timeout, timeUnit); |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æææ¶é´ |
| | | * |
| | | * @param key Redisé® |
| | | * @param key Redisé® |
| | | * @param timeout è¶
æ¶æ¶é´ |
| | | * @return true=设置æåï¼false=设置失败 |
| | | */ |
| | | public boolean expire(final String key, final long timeout) |
| | | { |
| | | public boolean expire(final String key, final long timeout) { |
| | | return expire(key, timeout, TimeUnit.SECONDS); |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æææ¶é´ |
| | | * |
| | | * @param key Redisé® |
| | | * @param key Redisé® |
| | | * @param timeout è¶
æ¶æ¶é´ |
| | | * @param unit æ¶é´åä½ |
| | | * @param unit æ¶é´åä½ |
| | | * @return true=设置æåï¼false=设置失败 |
| | | */ |
| | | public boolean expire(final String key, final long timeout, final TimeUnit unit) |
| | | { |
| | | public boolean expire(final String key, final long timeout, final TimeUnit unit) { |
| | | return redisTemplate.expire(key, timeout, unit); |
| | | } |
| | | |
| | |
| | | * @param key Redisé® |
| | | * @return æææ¶é´ |
| | | */ |
| | | public long getExpire(final String key) |
| | | { |
| | | public long getExpire(final String key) { |
| | | return redisTemplate.getExpire(key); |
| | | } |
| | | |
| | |
| | | * @param key é® |
| | | * @return true åå¨ falseä¸åå¨ |
| | | */ |
| | | public Boolean hasKey(String key) |
| | | { |
| | | public Boolean hasKey(String key) { |
| | | return redisTemplate.hasKey(key); |
| | | } |
| | | |
| | |
| | | * @param key ç¼åé®å¼ |
| | | * @return ç¼åé®å¼å¯¹åºçæ°æ® |
| | | */ |
| | | public <T> T getCacheObject(final String key) |
| | | { |
| | | public <T> T getCacheObject(final String key) { |
| | | ValueOperations<String, T> operation = redisTemplate.opsForValue(); |
| | | return operation.get(key); |
| | | } |
| | |
| | | * |
| | | * @param key |
| | | */ |
| | | public boolean deleteObject(final String key) |
| | | { |
| | | public boolean deleteObject(final String key) { |
| | | return redisTemplate.delete(key); |
| | | } |
| | | |
| | |
| | | * @param collection å¤ä¸ªå¯¹è±¡ |
| | | * @return |
| | | */ |
| | | public boolean deleteObject(final Collection collection) |
| | | { |
| | | public boolean deleteObject(final Collection collection) { |
| | | return redisTemplate.delete(collection) > 0; |
| | | } |
| | | |
| | | /** |
| | | * ç¼åListæ°æ® |
| | | * |
| | | * @param key ç¼åçé®å¼ |
| | | * @param key ç¼åçé®å¼ |
| | | * @param dataList å¾
ç¼åçListæ°æ® |
| | | * @return ç¼åç对象 |
| | | */ |
| | | public <T> long setCacheList(final String key, final List<T> dataList) |
| | | { |
| | | public <T> long setCacheList(final String key, final List<T> dataList) { |
| | | Long count = redisTemplate.opsForList().rightPushAll(key, dataList); |
| | | return count == null ? 0 : count; |
| | | } |
| | |
| | | * @param key ç¼åçé®å¼ |
| | | * @return ç¼åé®å¼å¯¹åºçæ°æ® |
| | | */ |
| | | public <T> List<T> getCacheList(final String key) |
| | | { |
| | | public <T> List<T> getCacheList(final String key) { |
| | | return redisTemplate.opsForList().range(key, 0, -1); |
| | | } |
| | | |
| | | /** |
| | | * ç¼åSet |
| | | * |
| | | * @param key ç¼åé®å¼ |
| | | * @param key ç¼åé®å¼ |
| | | * @param dataSet ç¼åçæ°æ® |
| | | * @return ç¼åæ°æ®ç对象 |
| | | */ |
| | | public <T> BoundSetOperations<String, T> setCacheSet(final String key, final Set<T> dataSet) |
| | | { |
| | | public <T> BoundSetOperations<String, T> setCacheSet(final String key, final Set<T> dataSet) { |
| | | BoundSetOperations<String, T> setOperation = redisTemplate.boundSetOps(key); |
| | | Iterator<T> it = dataSet.iterator(); |
| | | while (it.hasNext()) |
| | | { |
| | | while (it.hasNext()) { |
| | | setOperation.add(it.next()); |
| | | } |
| | | return setOperation; |
| | |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public <T> Set<T> getCacheSet(final String key) |
| | | { |
| | | public <T> Set<T> getCacheSet(final String key) { |
| | | return redisTemplate.opsForSet().members(key); |
| | | } |
| | | |
| | |
| | | * @param key |
| | | * @param dataMap |
| | | */ |
| | | public <T> void setCacheMap(final String key, final Map<String, T> dataMap) |
| | | { |
| | | public <T> void setCacheMap(final String key, final Map<String, T> dataMap) { |
| | | if (dataMap != null) { |
| | | redisTemplate.opsForHash().putAll(key, dataMap); |
| | | } |
| | |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public <T> Map<String, T> getCacheMap(final String key) |
| | | { |
| | | public <T> Map<String, T> getCacheMap(final String key) { |
| | | return redisTemplate.opsForHash().entries(key); |
| | | } |
| | | |
| | | /** |
| | | * å¾Hashä¸åå
¥æ°æ® |
| | | * |
| | | * @param key Redisé® |
| | | * @param hKey Hashé® |
| | | * @param key Redisé® |
| | | * @param hKey Hashé® |
| | | * @param value å¼ |
| | | */ |
| | | public <T> void setCacheMapValue(final String key, final String hKey, final T value) |
| | | { |
| | | public <T> void setCacheMapValue(final String key, final String hKey, final T value) { |
| | | redisTemplate.opsForHash().put(key, hKey, value); |
| | | } |
| | | |
| | | /** |
| | | * è·åHashä¸çæ°æ® |
| | | * |
| | | * @param key Redisé® |
| | | * @param key Redisé® |
| | | * @param hKey Hashé® |
| | | * @return Hashä¸ç对象 |
| | | */ |
| | | public <T> T getCacheMapValue(final String key, final String hKey) |
| | | { |
| | | public <T> T getCacheMapValue(final String key, final String hKey) { |
| | | HashOperations<String, String, T> opsForHash = redisTemplate.opsForHash(); |
| | | return opsForHash.get(key, hKey); |
| | | } |
| | |
| | | /** |
| | | * è·åå¤ä¸ªHashä¸çæ°æ® |
| | | * |
| | | * @param key Redisé® |
| | | * @param key Redisé® |
| | | * @param hKeys Hashé®éå |
| | | * @return Hash对象éå |
| | | */ |
| | | public <T> List<T> getMultiCacheMapValue(final String key, final Collection<Object> hKeys) |
| | | { |
| | | public <T> List<T> getMultiCacheMapValue(final String key, final Collection<Object> hKeys) { |
| | | return redisTemplate.opsForHash().multiGet(key, hKeys); |
| | | } |
| | | |
| | | /** |
| | | * å é¤Hashä¸çææ¡æ°æ® |
| | | * |
| | | * @param key Redisé® |
| | | * @param key Redisé® |
| | | * @param hKey Hashé® |
| | | * @return æ¯å¦æå |
| | | */ |
| | | public boolean deleteCacheMapValue(final String key, final String hKey) |
| | | { |
| | | public boolean deleteCacheMapValue(final String key, final String hKey) { |
| | | return redisTemplate.opsForHash().delete(key, hKey) > 0; |
| | | } |
| | | |
| | |
| | | * @param pattern å符串åç¼ |
| | | * @return 对象å表 |
| | | */ |
| | | public Collection<String> keys(final String pattern) |
| | | { |
| | | public Collection<String> keys(final String pattern) { |
| | | return redisTemplate.keys(pattern); |
| | | } |
| | | } |
| | |
| | | WeChatSendVo weChatSendVo = new WeChatSendVo(); |
| | | weChatSendVo.setUrl(sendMagParam.getUrl()); |
| | | weChatSendVo.setTemplateId(sendMagParam.getTmpCode()); |
| | | ObjectMapper objectMapper=new ObjectMapper(); |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | Map map = null; |
| | | try { |
| | | map = objectMapper.readValue(sendMagParam.getContent(), Map.class); |
| | |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * é项æè¿° |
| | | */ |
| | | @ApiModelProperty(value = "é项æè¿°") |
| | | private String optiondesc; |
| | | |
| | | /** |
| | | * é¢è¦æ è¯ |
| | | */ |
| | | @ApiModelProperty(value = "é¢è¦æ è¯") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸éï¼é对æ°å¼åææ ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸éï¼é对æ°å¼åææ ç±»å") |
| | | private Long warnup; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸éï¼é对æ°å¼åææ ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸éï¼é对æ°å¼åææ ç±»å") |
| | | private Long warndown; |
| | | |
| | | /** |
| | | * é项å¾çè·¯å¾ |
| | | */ |
| | | @ApiModelProperty(value = "é项å¾çè·¯å¾") |
| | | private String picturePath; |
| | | } |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | |
| | | @Excel(name = "éç¨æ¹å¼") |
| | | @ApiModelProperty(value = "éç¨æ¹å¼") |
| | | private String suitWay; |
| | | |
| | | @Excel(name = "éç¨æ¹å¼(å¤é)") |
| | | @ApiModelProperty(value = "éç¨æ¹å¼(å¤é)") |
| | | private List<String> suitWayList; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | |
| | | * åéç±»å: 1æå®æ¶é´åé 2å³å»åé |
| | | */ |
| | | @Excel(name = " åéç±»å: 1æå®æ¶é´åé 2å³å»åé ") |
| | | @ApiModelProperty(value = "åéç±»å: 1æå®æ¶é´åé 2å³å»åé ") |
| | | @ApiModelProperty(value = "åéç±»å: 1æå®æ¶é´åé 2å³å»åé 3æ¶é´ç¹") |
| | | private Long sendType; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskId; |
| | | |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 å³å»åé") |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 å³å»åé 3 æ¶é´ç¹") |
| | | private String sendType; |
| | | |
| | | /** |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTopic.java ÐÞ¸Ä |
| | |
| | | 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_lib_topic |
| | | * é®å·é¢ç®å¯¹è±¡ svy_lib_script |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTopic", description = "é®å·é¢ç®å¯¹è±¡") |
| | | public class SvyLibTopic extends BaseEntity { |
| | | @ApiModel(value = "SvyLibScript", description = "é®å·é¢ç®å¯¹è±¡") |
| | | public class SvyLibScript extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty("èªå¢ID") |
| | | private Long topicid; |
| | | private Long id; |
| | | |
| | | /** |
| | | * èçæ¬ID |
| | |
| | | */ |
| | | @Excel(name = " é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 ") |
| | | @ApiModelProperty("é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空") |
| | | private String topictype = ""; |
| | | private String scripttype = ""; |
| | | |
| | | /** |
| | | * é¢ç®Code |
| | | */ |
| | | @ApiModelProperty("é¢ç®Code") |
| | | private String topiccode; |
| | | private String scriptcode; |
| | | |
| | | /** |
| | | * é¢ç® |
| | | */ |
| | | @Excel(name = " é¢ç® ") |
| | | @ApiModelProperty("é¢ç®") |
| | | private String topic; |
| | | private String script; |
| | | |
| | | /** |
| | | * æåº |
| | |
| | | |
| | | |
| | | /** |
| | | * svy_topicé¢ç®è¡¨ç主é®ID |
| | | * svy_scripté¢ç®è¡¨ç主é®ID |
| | | */ |
| | | @ApiModelProperty("é¢ç®è¡¨ç主é®ID") |
| | | private Long svyTopicId; |
| | | private Long svyscriptId; |
| | | |
| | | /** |
| | | * é¢ç®å
容 |
| | | */ |
| | | @ApiModelProperty("é¢ç®å
容") |
| | | private String topicContent; |
| | | private String scriptContent; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | |
| | | private Integer isoperation; |
| | | |
| | | @ApiModelProperty("é®é¢é项") |
| | | private List<SvyLibTopicoption> svyLibTopicoptions = new ArrayList<>(); |
| | | private List<SvyLibScriptOption> svyLibScriptOptions = new ArrayList<>(); |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTopicCategory.java ÐÞ¸Ä |
| | |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTopicCategory", description = "é®å·é¢ç®å类对象") |
| | | public class SvyLibTopicCategory extends BaseEntity { |
| | | @ApiModel(value = "SvyLibScriptCategory", description = "é®å·é¢ç®å类对象") |
| | | public class SvyLibScriptCategory extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTopicCategoryVO.java ÐÞ¸Ä |
| | |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTopicCategoryVO", description = "é®å·é¢ç®å类对象") |
| | | public class SvyLibTopicCategoryVO extends BaseEntity { |
| | | @ApiModel(value = "SvyLibScriptCategoryVO", description = "é®å·é¢ç®å类对象") |
| | | public class SvyLibScriptCategoryVO extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | * å对象 |
| | | */ |
| | | @ApiModelProperty("å对象é") |
| | | private List<SvyLibTopicCategory> svyLibTopicCategoryList = new ArrayList<>(); |
| | | private List<SvyLibScriptCategory> svyLibScriptCategoryList = new ArrayList<>(); |
| | | |
| | | } |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTopicoption.java ÐÞ¸Ä |
| | |
| | | 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; |
| | | |
| | |
| | | * @date 2023-03-02 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTopicoption", description = "é®å·é®é¢é项对象") |
| | | public class SvyLibTopicoption extends BaseEntity { |
| | | @ApiModel(value = "SvyLibScriptOption", description = "é®å·é®é¢é项对象") |
| | | public class SvyLibScriptOption extends BaseEntity { |
| | | |
| | | /** |
| | | * èªå¢ID |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTopicRes.java ÐÞ¸Ä |
| | |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTopicRes", description = "é®å·é¢ç®è¿å") |
| | | public class SvyLibTopicRes extends BaseEntity { |
| | | @ApiModel(value = "SvyLibScriptRes", description = "é®å·é¢ç®è¿å") |
| | | public class SvyLibScriptRes extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTitle.java ÐÞ¸Ä |
| | |
| | | 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_lib_title |
| | | * é®å·å¯¹è±¡ svy_lib_Template |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTitle", description = "é®å·å¯¹è±¡") |
| | | public class SvyLibTitle extends BaseEntity { |
| | | @ApiModel(value = "SvyLibTemplate", description = "é®å·å¯¹è±¡") |
| | | public class SvyLibTemplate extends BaseEntity { |
| | | |
| | | /** |
| | | * èªå¢ID |
| | |
| | | * é®å·é¢ç®éå |
| | | */ |
| | | @ApiModelProperty(value = "é®å·é¢ç®éå") |
| | | private List<SvyLibTopic> svyLibTopics; |
| | | private List<SvyLibScript> svyLibTopics; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³èéå |
| | |
| | | private String reply; |
| | | |
| | | |
| | | public SvyLibTitle() { |
| | | public SvyLibTemplate() { |
| | | } |
| | | |
| | | public SvyLibTitle(Long svyid, String icdname) { |
| | | public SvyLibTemplate(Long svyid, String icdname) { |
| | | this.svyid = svyid; |
| | | this.icdname = icdname; |
| | | } |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTitleCategory.java ÐÞ¸Ä |
| | |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * é®å·æ¨¡æ¿å类对象 svy_lib_title_category |
| | | * é®å·æ¨¡æ¿å类对象 svy_lib_Template_category |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTitleCategory", description = "é®å·æ¨¡æ¿å类对象") |
| | | public class SvyLibTitleCategory extends BaseEntity { |
| | | @ApiModel(value = "SvyLibTemplateCategory", description = "é®å·æ¨¡æ¿å类对象") |
| | | public class SvyLibTemplateCategory extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTitleCategoryVO.java ÐÞ¸Ä |
| | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·æ¨¡æ¿å类对象 svy_lib_title_category |
| | | * é®å·æ¨¡æ¿å类对象 svy_lib_Template_category |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTitleCategory", description = "é®å·æ¨¡æ¿å类对象") |
| | | public class SvyLibTitleCategoryVO extends BaseEntity { |
| | | @ApiModel(value = "SvyLibTemplateCategory", description = "é®å·æ¨¡æ¿å类对象") |
| | | public class SvyLibTemplateCategoryVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | |
| | | private Long orgid; |
| | | |
| | | @ApiModelProperty(value = "æ çå对象éå") |
| | | private List<SvyLibTitleCategory> svyLibTitleCategoryList = new ArrayList<>(); |
| | | private List<SvyLibTemplateCategory> svyLibTemplateCategoryList = new ArrayList<>(); |
| | | } |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/domain/SvyLibTitleReq.java ÐÞ¸Ä |
| | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * é®å·è¯·æ± svy_lib_title |
| | | * é®å·è¯·æ± svy_lib_Template |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTitleReq", description = "é®å·è¯·æ±") |
| | | public class SvyLibTitleReq { |
| | | @ApiModel(value = "SvyLibTemplateReq", description = "é®å·è¯·æ±") |
| | | public class SvyLibTemplateReq { |
| | | |
| | | /** |
| | | * é®å·åç±»ID |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 综åé®å·ä»»å¡ï¼ä»»å¡ï¼å¯¹è±¡ svy_task |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Data |
| | | public class SvyTask extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * æ£è
æå¡ä»»å¡id |
| | | */ |
| | | @Excel(name = "æ£è
æå¡ä»»å¡id") |
| | | @ApiModelProperty(value = "æ£è
æå¡ä»»å¡id") |
| | | private Long svrtaskid; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "ä»»å¡åç§°") |
| | | private String taskname; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = " 模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateid; |
| | | |
| | | /** |
| | | * 模æ¿åç§° |
| | | */ |
| | | @Excel(name = " 模æ¿åç§°") |
| | | @ApiModelProperty(value = "模æ¿åç§°") |
| | | private String templatename; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = " æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelinfo; |
| | | |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | @Excel(name = " ç¶æ") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private Long state; |
| | | |
| | | /** |
| | | * æ°é |
| | | */ |
| | | @Excel(name = " æ°é") |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Long count; |
| | | |
| | | /** |
| | | * æ§è¡ |
| | | */ |
| | | @Excel(name = " æ§è¡") |
| | | @ApiModelProperty(value = "æ§è¡") |
| | | private Long executed; |
| | | |
| | | /** |
| | | * 䏿§è¡ |
| | | */ |
| | | @Excel(name = " 䏿§è¡") |
| | | @ApiModelProperty(value = "䏿§è¡") |
| | | private Long unexecuted; |
| | | |
| | | /** |
| | | * æ¯å¦å¤±è´¥ |
| | | */ |
| | | @Excel(name = " æ¯å¦å¤±è´¥") |
| | | @ApiModelProperty(value = "æ¯å¦å¤±è´¥") |
| | | private Long fail; |
| | | |
| | | /** |
| | | * æ£è
ID |
| | | */ |
| | | @Excel(name = " æ£è
ID") |
| | | @ApiModelProperty(value = "æ£è
ID") |
| | | private String patientid; |
| | | |
| | | /** |
| | | * æ£è
åç§° |
| | | */ |
| | | @Excel(name = " æ£è
åç§°") |
| | | @ApiModelProperty(value = "æ£è
åç§°") |
| | | private String patientname; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ°å¢æ¶é´") |
| | | private Date addtime; |
| | | |
| | | /** |
| | | * å®¡æ ¸äººid |
| | | */ |
| | | @Excel(name = " å®¡æ ¸äººid") |
| | | @ApiModelProperty(value = "å®¡æ ¸äººid") |
| | | private String checkuserid; |
| | | |
| | | /** |
| | | * å®¡æ ¸äºº |
| | | */ |
| | | @Excel(name = " å®¡æ ¸äºº") |
| | | @ApiModelProperty(value = "å®¡æ ¸äºº") |
| | | private String checkusername; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å®¡æ ¸æ¶é´") |
| | | private Date checktime; |
| | | |
| | | /** |
| | | * 1ï¼åºé¢é访ï¼2ï¼ä½æ£éç¥ï¼3ï¼æ»¡æåº¦è°æ¥ï¼4ï¼å®£æï¼ |
| | | */ |
| | | @Excel(name = " 1ï¼åºé¢é访ï¼2ï¼ä½æ£éç¥ï¼3ï¼æ»¡æåº¦è°æ¥ï¼4ï¼å®£æï¼ ") |
| | | @ApiModelProperty(value = "åºé¢é访ï¼2ï¼ä½æ£éç¥ï¼3ï¼æ»¡æåº¦è°æ¥ï¼4ï¼å®£æï¼") |
| | | private String type; |
| | | |
| | | /** |
| | | * ç±»ååç§° |
| | | */ |
| | | @Excel(name = " ç±»ååç§°") |
| | | @ApiModelProperty(value = "ç±»ååç§°") |
| | | private String typename; |
| | | |
| | | /** |
| | | * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | */ |
| | | @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | @ApiModelProperty(value = "0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡") |
| | | private Long usebqsms; |
| | | |
| | | /** |
| | | * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | */ |
| | | @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | @ApiModelProperty(value = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡") |
| | | private Long usebhsms; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "") |
| | | private Long usesendsms; |
| | | |
| | | /** |
| | | * é¨é¨code |
| | | */ |
| | | @Excel(name = " é¨é¨code") |
| | | @ApiModelProperty(value = "é¨é¨code") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * ä»»å¡å½¢å¼ 1,å¤åªä½ 2,纸质 3,çµè¯ 4,çä¿¡ 5.微信å
¬ä¼å· 6.微信å°ç¨åº 7.æ¯ä»å® 8.æºè½å°ç¨åº 9.éé |
| | | */ |
| | | @Excel(name = " ä»»å¡å½¢å¼ 1,å¤åªä½ 2,纸质 3,çµè¯ 4,çä¿¡ 5.微信å
¬ä¼å· 6.微信å°ç¨åº 7.æ¯ä»å® 8.æºè½å°ç¨åº 9.éé") |
| | | @ApiModelProperty(value = "ä»»å¡å½¢å¼ 1,å¤åªä½ 2,纸质 3,çµè¯ 4,çä¿¡ 5.微信å
¬ä¼å· 6.微信å°ç¨åº 7.æ¯ä»å® 8.æºè½å°ç¨åº 9.éé") |
| | | private String preachform; |
| | | |
| | | /** |
| | | * æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé |
| | | */ |
| | | @Excel(name = "æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé ") |
| | | @ApiModelProperty(value = "æ¯å¦åé ï¼ 0 æååé 1 宿¶åé 2 ç«å³åé") |
| | | private Long isSend; |
| | | |
| | | /** |
| | | * åéç¶æï¼ 0 失败 1æå |
| | | */ |
| | | @Excel(name = "åéç¶æï¼ 0 失败 1æå") |
| | | @ApiModelProperty(value = "åéç¶æï¼ 0 失败 1æå") |
| | | private String sendState; |
| | | |
| | | /** |
| | | * ææ¬åéåæ° |
| | | */ |
| | | @Excel(name = "ææ¬åéåæ°") |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String param; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é¢ç®å¯¹è±¡ svy_task_script |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Data |
| | | public class SvyTaskScript extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 |
| | | */ |
| | | @Excel(name = " é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 ") |
| | | @ApiModelProperty(value = "é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空") |
| | | private Long scriptType; |
| | | |
| | | /** |
| | | * é¢ç®Code |
| | | */ |
| | | @Excel(name = " é¢ç®Code ") |
| | | @ApiModelProperty(value = "é¢ç®Code") |
| | | private String scriptCode; |
| | | |
| | | /** |
| | | * é¢ç®ææ¬ |
| | | */ |
| | | @Excel(name = " é¢ç®ææ¬") |
| | | @ApiModelProperty(value = "é¢ç®ææ¬") |
| | | private String script; |
| | | |
| | | /** |
| | | * é¢ç®æ ç¾ |
| | | */ |
| | | @Excel(name = "é¢ç®æ ç¾") |
| | | @ApiModelProperty(value = "é¢ç®æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * é¢ç®åºå· |
| | | */ |
| | | @Excel(name = " é¢ç®åºå·") |
| | | @ApiModelProperty(value = "é¢ç®åºå·") |
| | | private Long sort; |
| | | |
| | | /** |
| | | * æ¯å¦å¿
å¡« |
| | | */ |
| | | @Excel(name = " æ¯å¦å¿
å¡« ") |
| | | @ApiModelProperty(value = "æ¯å¦å¿
å¡«") |
| | | private Long ismandatory; |
| | | |
| | | /** |
| | | * æ¯å¦éè |
| | | */ |
| | | @Excel(name = " æ¯å¦éè ") |
| | | @ApiModelProperty(value = "æ¯å¦éè") |
| | | private Long ishide; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @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 String answer; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @Excel(name = "ä»»å¡id") |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * é项æè¿° |
| | | */ |
| | | @Excel(name = "é项æè¿°") |
| | | @ApiModelProperty(value = "é项æè¿°") |
| | | private String optiondesc; |
| | | |
| | | /** |
| | | * ä¸ä¸ä¸ªé¢ç®ID |
| | | */ |
| | | @Excel(name = "ä¸ä¸ä¸ªé¢ç®ID") |
| | | @ApiModelProperty(value = "ä¸ä¸ä¸ªé¢ç®ID") |
| | | private Long nexttopicid; |
| | | |
| | | /** |
| | | * ä¸ä¸ä¸ªé¢ç®åºå· |
| | | */ |
| | | @Excel(name = "ä¸ä¸ä¸ªé¢ç®åºå·") |
| | | @ApiModelProperty(value = "ä¸ä¸ä¸ªé¢ç®åºå·") |
| | | private Long nexttopicsort; |
| | | |
| | | /** |
| | | * åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级 |
| | | */ |
| | | @Excel(name = "åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级") |
| | | @ApiModelProperty(value = "åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级") |
| | | private String scoretype; |
| | | |
| | | /** |
| | | * é¢ç®åå¼ï¼æ°å1,2çï¼åæ¯AãBï¼Cï¼Dçï¼ |
| | | */ |
| | | @Excel(name = "é¢ç®åå¼ï¼æ°å1,2çï¼åæ¯AãBï¼Cï¼Dçï¼") |
| | | @ApiModelProperty(value = " é¢ç®åå¼ï¼æ°å1,2çï¼åæ¯AãBï¼Cï¼Dçï¼") |
| | | private String score; |
| | | |
| | | /** |
| | | * é¢ç®å
容å±ç¤ºç±»åï¼1ï¼ææ¬ï¼2ï¼å¾ï¼3ï¼è¯é³ï¼4ï¼è§é¢ |
| | | */ |
| | | @Excel(name = "é¢ç®å
容å±ç¤ºç±»åï¼1ï¼ææ¬ï¼2ï¼å¾ï¼3ï¼è¯é³ï¼4ï¼è§é¢") |
| | | @ApiModelProperty(value = "é¢ç®å
容å±ç¤ºç±»åï¼1ï¼ææ¬ï¼2ï¼å¾ï¼3ï¼è¯é³ï¼4ï¼è§é¢") |
| | | private String showtype; |
| | | |
| | | /** |
| | | * é¢ç®å¾çè·¯å¾ |
| | | */ |
| | | @Excel(name = "é¢ç®å¾çè·¯å¾") |
| | | @ApiModelProperty(value = "é¢ç®å¾çè·¯å¾") |
| | | private String picturePath; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项对象 svy_task_scriptoption |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Data |
| | | public class SvyTaskScriptoption extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * é¢ç®ID |
| | | */ |
| | | @Excel(name = " é¢ç®ID ") |
| | | @ApiModelProperty(value = "é¢ç®ID") |
| | | private Long taskScriptId; |
| | | |
| | | /** |
| | | * é®å·ID |
| | | */ |
| | | @Excel(name = " é®å·ID ") |
| | | @ApiModelProperty(value = "é®å·ID") |
| | | private Long svyid; |
| | | |
| | | /** |
| | | * é¢ç®ç±»å |
| | | */ |
| | | @Excel(name = " é¢ç®ç±»å ") |
| | | @ApiModelProperty(value = "é¢ç®ç±»å") |
| | | private Long scriptType; |
| | | |
| | | /** |
| | | * é项Code |
| | | */ |
| | | @Excel(name = " é项Code ") |
| | | @ApiModelProperty(value = "é项Code") |
| | | private String optioncode; |
| | | |
| | | /** |
| | | * é项å
容 |
| | | */ |
| | | @Excel(name = " é项å
容 ") |
| | | @ApiModelProperty(value = "é项å
容") |
| | | private String optioncontent; |
| | | |
| | | /** |
| | | * é项æ ç¾ |
| | | */ |
| | | @Excel(name = "é项æ ç¾") |
| | | @ApiModelProperty(value = "é项æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * æ¯å¦åå¨æç» |
| | | */ |
| | | @Excel(name = " æ¯å¦åå¨æç» ") |
| | | @ApiModelProperty(value = "æ¯å¦å卿ç»") |
| | | private Long isexistdetail; |
| | | |
| | | /** |
| | | * æç»æ¯å¦å¿
å¡« |
| | | */ |
| | | @Excel(name = " æç»æ¯å¦å¿
å¡« ") |
| | | @ApiModelProperty(value = "æç»æ¯å¦å¿
å¡«") |
| | | private Long detailismandatory; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸é¡¹ç® |
| | | */ |
| | | @Excel(name = " æ¯å¦å¼å¸¸é¡¹ç® ") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸é¡¹ç®") |
| | | private Long isexceptionitem; |
| | | |
| | | /** |
| | | * æ¯å¦è·è¿ |
| | | */ |
| | | @Excel(name = " æ¯å¦è·è¿ ") |
| | | @ApiModelProperty(value = "æ¯å¦è·è¿") |
| | | private Long istrack; |
| | | |
| | | /** |
| | | * æ¯å¦å
许éå å½å
¥ |
| | | */ |
| | | @Excel(name = "æ¯å¦å
许éå å½å
¥") |
| | | @ApiModelProperty(value = "æ¯å¦å
许éå å½å
¥") |
| | | private Long withadditional; |
| | | |
| | | /** |
| | | * åæ° |
| | | */ |
| | | @Excel(name = " åæ° ") |
| | | @ApiModelProperty(value = "åæ°") |
| | | private Long score; |
| | | |
| | | /** |
| | | * æç¤º |
| | | */ |
| | | @Excel(name = " æç¤º ") |
| | | @ApiModelProperty(value = "æç¤º") |
| | | private String prompt; |
| | | |
| | | /** |
| | | * 跳转 |
| | | */ |
| | | @Excel(name = " 跳转 ") |
| | | @ApiModelProperty(value = "跳转") |
| | | private String jump; |
| | | |
| | | /** |
| | | * ç¶é项ID |
| | | */ |
| | | @Excel(name = " ç¶é项ID ") |
| | | @ApiModelProperty(value = "ç¶é项ID") |
| | | private Long parentoptionid; |
| | | |
| | | /** |
| | | * æ¯å¦äºæ¥ |
| | | */ |
| | | @Excel(name = " æ¯å¦äºæ¥ ") |
| | | @ApiModelProperty(value = "æ¯å¦äºæ¥") |
| | | private Long ismutex; |
| | | |
| | | /** |
| | | * éªè¯è§å |
| | | */ |
| | | @Excel(name = " éªè¯è§å ") |
| | | @ApiModelProperty(value = "éªè¯è§å") |
| | | private String verifyrule; |
| | | |
| | | /** |
| | | * æåº |
| | | */ |
| | | @Excel(name = " æåº ") |
| | | @ApiModelProperty(value = "æåº") |
| | | private Long sort; |
| | | |
| | | /** |
| | | * éªè¯ç±»å;0.ä¸éªè¯ 1.æ´æ° 2.å°æ° 3.ææºå· 4.èº«ä»½è¯ 5.æ¥æ |
| | | */ |
| | | @Excel(name = " éªè¯ç±»å;0.ä¸éªè¯ 1.æ´æ° 2.å°æ° 3.ææºå· 4.èº«ä»½è¯ 5.æ¥æ ") |
| | | @ApiModelProperty(value = "éªè¯ç±»å;0.ä¸éªè¯ 1.æ´æ° 2.å°æ° 3.ææºå· 4.èº«ä»½è¯ 5.æ¥æ") |
| | | private Long verificationtype; |
| | | |
| | | /** |
| | | * æ¯å¦éå¶èå´ |
| | | */ |
| | | @Excel(name = " æ¯å¦éå¶èå´ ") |
| | | @ApiModelProperty(value = "æ¯å¦éå¶èå´") |
| | | private Long isrange; |
| | | |
| | | /** |
| | | * æå°èå´ |
| | | */ |
| | | @Excel(name = " æå°èå´ ") |
| | | @ApiModelProperty(value = "æå°èå´") |
| | | private String minrange; |
| | | |
| | | /** |
| | | * æå¤§èå´ |
| | | */ |
| | | @Excel(name = " æå¤§èå´ ") |
| | | @ApiModelProperty(value = "æå¤§èå´") |
| | | private String maxrange; |
| | | |
| | | /** |
| | | * èå´é¿åº¦;ç¨äºå°æ°ä¿ç使° |
| | | */ |
| | | @Excel(name = " èå´é¿åº¦;ç¨äºå°æ°ä¿ç使° ") |
| | | @ApiModelProperty(value = "èå´é¿åº¦;ç¨äºå°æ°ä¿ç使° ") |
| | | private Long rangelength; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ä¸ä¸çæ¬ID |
| | | */ |
| | | @Excel(name = " ä¸ä¸çæ¬ID ") |
| | | @ApiModelProperty(value = "ä¸ä¸çæ¬ID") |
| | | private Long oldid; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @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 Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * ä»»å¡ID |
| | | */ |
| | | @Excel(name = "ä»»å¡ID") |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * ä¸ä¸ä¸ªé¢ç®ID |
| | | */ |
| | | @Excel(name = "ä¸ä¸ä¸ªé¢ç®ID") |
| | | @ApiModelProperty(value = "ä¸ä¸ä¸ªé¢ç®ID") |
| | | private Long nexttopicid; |
| | | |
| | | /** |
| | | * ä¸ä¸ä¸ªé¢ç®åºå· |
| | | */ |
| | | @Excel(name = "ä¸ä¸ä¸ªé¢ç®åºå·") |
| | | @ApiModelProperty(value = "ä¸ä¸ä¸ªé¢ç®åºå·") |
| | | private Long nexttopicsort; |
| | | |
| | | /** |
| | | * åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级 |
| | | */ |
| | | @Excel(name = "åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级") |
| | | @ApiModelProperty(value = "åå¼ç±»åï¼1ï¼æ°åï¼2ï¼ç级") |
| | | private String scoretype; |
| | | |
| | | /** |
| | | * é¢ç®å
容å±ç¤ºç±»åï¼1ï¼ææ¬ï¼2ï¼å¾ï¼3ï¼è¯é³ï¼4ï¼è§é¢ |
| | | */ |
| | | @Excel(name = "é¢ç®å
容å±ç¤ºç±»åï¼1ï¼ææ¬ï¼2ï¼å¾ï¼3ï¼è¯é³ï¼4ï¼è§é¢") |
| | | @ApiModelProperty(value = "é¢ç®å
容å±ç¤ºç±»åï¼1ï¼ææ¬ï¼2ï¼å¾ï¼3ï¼è¯é³ï¼4ï¼è§é¢") |
| | | private String showtype; |
| | | |
| | | /** |
| | | * é¢ç®å¾çè·¯å¾ |
| | | */ |
| | | @Excel(name = "é¢ç®å¾çè·¯å¾") |
| | | @ApiModelProperty(value = "é¢ç®å¾çè·¯å¾") |
| | | private String picturePath; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é®å·ï¼å¯¹è±¡ svy_task_single |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Data |
| | | public class SvyTaskSingle extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * è®°å½å
³é®å¼ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * åé人 ï¼æ£è
ï¼ |
| | | */ |
| | | @Excel(name = " åé人 ", readConverterExp = "æ£=è
") |
| | | @ApiModelProperty(value = "åé人 ï¼æ£è
ï¼") |
| | | private String sendname; |
| | | |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @Excel(name = " ææºå· ") |
| | | @ApiModelProperty(value = "ææºå·") |
| | | private String phone; |
| | | |
| | | /** |
| | | * æ§å« |
| | | */ |
| | | @Excel(name = " æ§å«") |
| | | @ApiModelProperty(value = "æ§å«") |
| | | private String sex; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @Excel(name = " å¹´é¾ ") |
| | | @ApiModelProperty(value = "å¹´é¾") |
| | | private Long age; |
| | | |
| | | /** |
| | | * 身份è¯å· |
| | | */ |
| | | @Excel(name = " 身份è¯å· ") |
| | | @ApiModelProperty(value = "身份è¯å·") |
| | | private String sfzh; |
| | | |
| | | /** |
| | | * å°å |
| | | */ |
| | | @Excel(name = " å°å ") |
| | | @ApiModelProperty(value = "å°å") |
| | | private String addr; |
| | | |
| | | /** |
| | | * åé人详æ
|
| | | */ |
| | | @Excel(name = " åé人详æ
") |
| | | @ApiModelProperty(value = "åé人详æ
") |
| | | private String senderdetail; |
| | | |
| | | /** |
| | | * ä»»å¡ç±»å(0éç¥ã1宣æã2é¨è¯ã3åºé¢ã4å¤è¯ã5使£ã6é®å·ã7廿â¦â¦) |
| | | */ |
| | | @Excel(name = "ä»»å¡ç±»å(0éç¥ã1宣æã2é¨è¯ã3åºé¢ã4å¤è¯ã5使£ã6é®å·ã7廿â¦â¦)") |
| | | @ApiModelProperty(value = "ä»»å¡ç±»å(0éç¥ã1宣æã2é¨è¯ã3åºé¢ã4å¤è¯ã5使£ã6é®å·ã7廿â¦â¦)") |
| | | private String type; |
| | | |
| | | /** |
| | | * ä»»å¡ID |
| | | */ |
| | | @Excel(name = " ä»»å¡ID ") |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = " 模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateid; |
| | | |
| | | /** |
| | | * 模æ¿å |
| | | */ |
| | | @Excel(name = " 模æ¿å ") |
| | | @ApiModelProperty(value = "模æ¿å") |
| | | private String templatename; |
| | | |
| | | /** |
| | | * å鿥æ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " å鿥æ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å鿥æ") |
| | | private Date senddate; |
| | | |
| | | /** |
| | | * ä¸åå¼å§åéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " ä¸åå¼å§åéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "ä¸åå¼å§åéæ¶é´éå¶") |
| | | private String sendlimitabegin; |
| | | |
| | | /** |
| | | * ä¸åç»æåéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " ä¸åç»æåéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "ä¸åç»æåéæ¶é´éå¶") |
| | | private String sendlimitaend; |
| | | |
| | | /** |
| | | * ä¸åå¼å§åéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " ä¸åå¼å§åéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "ä¸åå¼å§åéæ¶é´éå¶") |
| | | private String sendlimitpbegin; |
| | | |
| | | /** |
| | | * ä¸åç»æåéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " ä¸åç»æåéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "ä¸åç»æåéæ¶é´éå¶") |
| | | private String sendlimitpend; |
| | | |
| | | /** |
| | | * æä¸å¼å§åéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " æä¸å¼å§åéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "æä¸å¼å§åéæ¶é´éå¶") |
| | | private String sendlimitnbegin; |
| | | |
| | | /** |
| | | * æä¸ç»æåéæ¶é´éå¶ |
| | | */ |
| | | @Excel(name = " æä¸ç»æåéæ¶é´éå¶") |
| | | @ApiModelProperty(value = "æä¸ç»æåéæ¶é´éå¶") |
| | | private String sendlimitnend; |
| | | |
| | | /** |
| | | * åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé |
| | | */ |
| | | @Excel(name = " åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | @ApiModelProperty(value = "åéç¶æ ï¼1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | private Long sendstate; |
| | | |
| | | /** |
| | | * åéUUID |
| | | */ |
| | | @Excel(name = " åéUUID ") |
| | | @ApiModelProperty(value = "åéUUID") |
| | | private String senduuid; |
| | | |
| | | /** |
| | | * ç»æ |
| | | */ |
| | | @Excel(name = " ç»æ ") |
| | | @ApiModelProperty(value = "ç»æ") |
| | | private String result; |
| | | |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " 宿æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | private Date finishtime; |
| | | |
| | | /** |
| | | * ç¨æ·ID |
| | | */ |
| | | @Excel(name = " ç¨æ·ID ") |
| | | @ApiModelProperty(value = "ç¨æ·ID") |
| | | private String userid; |
| | | |
| | | /** |
| | | * ç¨æ·å |
| | | */ |
| | | @Excel(name = " ç¨æ·å ") |
| | | @ApiModelProperty(value = "ç¨æ·å") |
| | | private String username; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "å¤å¼UUID") |
| | | private String outbounduuid; |
| | | |
| | | /** |
| | | * å°±è¯è®°å½ç¼å· ï¼å¯¹åºâæ£è
åºé¢è®°å½ä¸»é®âãâæ£è
é¨è¯è®°å½ä¸»é®âï¼ |
| | | */ |
| | | @Excel(name = " å°±è¯è®°å½ç¼å· ", readConverterExp = "对=åºâæ£è
åºé¢è®°å½ä¸»é®âãâæ£è
é¨è¯è®°å½ä¸»é®â") |
| | | @ApiModelProperty(value = "å°±è¯è®°å½ç¼å· ï¼å¯¹åºâæ£è
åºé¢è®°å½ä¸»é®âãâæ£è
é¨è¯è®°å½ä¸»é®âï¼") |
| | | private Long recordid; |
| | | |
| | | /** |
| | | * éæ¨æ»æ° |
| | | */ |
| | | @Excel(name = " éæ¨æ»æ° ") |
| | | @ApiModelProperty(value = "éæ¨æ»æ°") |
| | | private Long recallcount; |
| | | |
| | | /** |
| | | * å½åéæ¨æ¬¡æ° |
| | | */ |
| | | @Excel(name = " å½åéæ¨æ¬¡æ° ") |
| | | @ApiModelProperty(value = "å½åéæ¨æ¬¡æ°") |
| | | private Long exrecallcount; |
| | | |
| | | /** |
| | | * æåæ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " æåæ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æåæ¶é´") |
| | | private Date pulltime; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "") |
| | | private Long bqsms; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @ApiModelProperty(value = "") |
| | | private Long bhsms; |
| | | |
| | | /** |
| | | * é¨é¨code |
| | | */ |
| | | @Excel(name = " é¨é¨code") |
| | | @ApiModelProperty(value = "é¨é¨code") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * æ ç¾ç¶æ |
| | | */ |
| | | @Excel(name = " æ ç¾ç¶æ") |
| | | @ApiModelProperty(value = "æ ç¾ç¶æ") |
| | | private Long labelstatus; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * ææ¬åéåæ° |
| | | */ |
| | | @Excel(name = "ææ¬åéåæ°") |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String textParam; |
| | | |
| | | /** |
| | | * 1,çä¿¡ã2,线ä¸ã3,è¯é³ã4,è§é¢ã5,纸质 6.龿¥ 7.éé 8.微信 |
| | | */ |
| | | @Excel(name = " 1,çä¿¡ã2,线ä¸ã3,è¯é³ã4,è§é¢ã5,纸质 6.龿¥ 7.éé 8.微信") |
| | | @ApiModelProperty(value = "1,çä¿¡ã2,线ä¸ã3,è¯é³ã4,è§é¢ã5,纸质 6.龿¥ 7.éé 8.微信") |
| | | private String serviceform; |
| | | |
| | | /** |
| | | * åºå· |
| | | */ |
| | | @Excel(name = "åºå·") |
| | | @ApiModelProperty(value = "åºå·") |
| | | private String badNo; |
| | | |
| | | /** |
| | | * ç¾ç
åç§° |
| | | */ |
| | | @Excel(name = "ç¾ç
åç§°") |
| | | @ApiModelProperty(value = "ç¾ç
åç§°") |
| | | private String icdName; |
| | | |
| | | /** |
| | | * ç
åå· |
| | | */ |
| | | @Excel(name = "ç
åå·") |
| | | @ApiModelProperty(value = "ç
åå·") |
| | | private String medicalRecordNo; |
| | | |
| | | /** |
| | | * 宣æå
容 |
| | | */ |
| | | @Excel(name = "宣æå
容") |
| | | @ApiModelProperty(value = "宣æå
容") |
| | | private String preachcontent; |
| | | |
| | | /** |
| | | * åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé |
| | | */ |
| | | @Excel(name = "åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé") |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé") |
| | | private String sendType; |
| | | |
| | | /** |
| | | * åéæ¶é´æ®µ |
| | | */ |
| | | @Excel(name = "åéæ¶é´æ®µ") |
| | | @ApiModelProperty(value = "åéæ¶é´æ®µ") |
| | | private String sendTimeSlot; |
| | | |
| | | /** |
| | | * ä»»å¡åç§° |
| | | */ |
| | | @Excel(name = "ä»»å¡åç§°") |
| | | @ApiModelProperty(value = "ä»»å¡åç§°") |
| | | private String taskName; |
| | | |
| | | /** |
| | | * ä»»å¡æè¿° |
| | | */ |
| | | @Excel(name = "ä»»å¡æè¿°") |
| | | @ApiModelProperty(value = "ä»»å¡æè¿°") |
| | | private String taskDesc; |
| | | |
| | | /** |
| | | * å建人 |
| | | */ |
| | | @Excel(name = "å建人") |
| | | @ApiModelProperty(value = "å建人") |
| | | private String operator; |
| | | |
| | | /** |
| | | * å建人ç¼å· |
| | | */ |
| | | @Excel(name = "å建人ç¼å·") |
| | | @ApiModelProperty(value = "å建人ç¼å·") |
| | | private String operatorNo; |
| | | |
| | | /** |
| | | * å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼ |
| | | */ |
| | | @Excel(name = "å°±è¯ç¼å·", readConverterExp = "对=åºçouthospnoãinhospno") |
| | | @ApiModelProperty(value = "å°±è¯ç¼å·") |
| | | private String hospno; |
| | | |
| | | /** |
| | | * å°±è¯ç±»åï¼1é¨è¯ 2åºé¢ï¼ |
| | | */ |
| | | @Excel(name = "å°±è¯ç±»å", readConverterExp = "1=é¨è¯,2=åºé¢") |
| | | @ApiModelProperty(value = "å°±è¯ç±»åï¼1é¨è¯ 2åºé¢ï¼") |
| | | private String hospType; |
| | | |
| | | /** |
| | | * 微信 |
| | | */ |
| | | @Excel(name = "微信") |
| | | @ApiModelProperty(value = "微信") |
| | | private String wechat; |
| | | |
| | | /** |
| | | * è¯æåç§° |
| | | */ |
| | | @Excel(name = "è¯æåç§°") |
| | | @ApiModelProperty(value = "è¯æåç§°") |
| | | private String diagname; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @Excel(name = "ç§å®¤åç§°") |
| | | @ApiModelProperty(value = "ç§å®¤åç§°") |
| | | private String deptname; |
| | | |
| | | /** |
| | | * å°±è¯æ¥æ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "å°±è¯æ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å°±è¯æ¥æ") |
| | | private Date admindate; |
| | | |
| | | /** |
| | | * ç
æ¿å· |
| | | */ |
| | | @Excel(name = "ç
æ¿å·") |
| | | @ApiModelProperty(value = "ç
æ¿å·") |
| | | private String roomno; |
| | | |
| | | /** |
| | | * ç
åºå· |
| | | */ |
| | | @Excel(name = "ç
åºå·") |
| | | @ApiModelProperty(value = "ç
åºå·") |
| | | private String bedno; |
| | | |
| | | |
| | | } |
copy from smartor/src/main/java/com/smartor/domain/SvyLibTitle.java
copy to smartor/src/main/java/com/smartor/domain/SvyTaskTemplate.java
Îļþ´Ó smartor/src/main/java/com/smartor/domain/SvyLibTitle.java ¸´ÖÆ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * é®å·å¯¹è±¡ svy_lib_title |
| | | * ä»»å¡é®å·æ¨¡æ¿å¯¹è±¡ svy_task_template |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTitle", description = "é®å·å¯¹è±¡") |
| | | public class SvyLibTitle extends BaseEntity { |
| | | public class SvyTaskTemplate extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long svyid; |
| | | |
| | | /** |
| | | * 模æ¿é®å·ID |
| | | */ |
| | | @Excel(name = " 模æ¿é®å·ID ") |
| | | @ApiModelProperty(value = "模æ¿é®å·ID") |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * é®å·åç±»ID |
| | | */ |
| | | @ApiModelProperty(value = "é®å·åç±»ID", required = true) |
| | | @Excel(name = " é®å·åç±»ID ") |
| | | @ApiModelProperty(value = "é®å·åç±»ID") |
| | | private Long categoryid; |
| | | |
| | | /** |
| | | * é®å·ä»£ç |
| | | */ |
| | | @ApiModelProperty(value = "é®å·ä»£ç ") |
| | | @Excel(name = " é®å·ä»£ç ") |
| | | @ApiModelProperty(value = "é®å·ä»£ç ") |
| | | private String svycode; |
| | | |
| | | /** |
| | | * é®å·åç§° |
| | | */ |
| | | @ApiModelProperty(value = "é®å·åç§°", required = true) |
| | | @Excel(name = " é®å·åç§° ") |
| | | @ApiModelProperty(value = "é®å·åç§°") |
| | | private String svyname; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | @ApiModelProperty(value = "æè¿°", required = true) |
| | | @Excel(name = " æè¿° ") |
| | | @ApiModelProperty(value = "æè¿°") |
| | | private String description; |
| | | |
| | | /** |
| | | * é®å·ä»ç» |
| | | */ |
| | | @ApiModelProperty(value = "é®å·ä»ç»") |
| | | @Excel(name = " é®å·ä»ç» ") |
| | | @ApiModelProperty(value = "é®å·ä»ç»") |
| | | private String introduce; |
| | | |
| | | /** |
| | | * é®å·æç¤º |
| | | */ |
| | | @ApiModelProperty(value = "é®å·æç¤º") |
| | | @Excel(name = " é®å·æç¤º ") |
| | | @ApiModelProperty(value = "é®å·æç¤º") |
| | | private String submitprompt; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | * æ ç¾ |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | @Excel(name = " 模æ¿ID ") |
| | | private Long templateid; |
| | | @Excel(name = "æ ç¾") |
| | | @ApiModelProperty(value = "æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | @ApiModelProperty(value = "çæ¬") |
| | | @Excel(name = " çæ¬ ") |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private BigDecimal version; |
| | | |
| | | /** |
| | | * ä¸å¿åºä»£ç |
| | | */ |
| | | @ApiModelProperty(value = "ä¸å¿åºä»£ç ") |
| | | @Excel(name = " ä¸å¿åºä»£ç ") |
| | | @ApiModelProperty(value = "ä¸å¿åºä»£ç ") |
| | | private String centerlibrarycode; |
| | | |
| | | /** |
| | | * ä¸å¿åºID |
| | | */ |
| | | @ApiModelProperty(value = "ä¸å¿åºID") |
| | | @Excel(name = " ä¸å¿åºID ") |
| | | @ApiModelProperty(value = "ä¸å¿åºID") |
| | | private Long centerlibraryid; |
| | | |
| | | /** |
| | | * æ¯å¦æ¬å° |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦æ¬å°") |
| | | @Excel(name = " æ¯å¦æ¬å° ") |
| | | @ApiModelProperty(value = "æ¯å¦æ¬å°") |
| | | private Long islocal; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨") |
| | | @Excel(name = " æ¯å¦å¯ç¨ ") |
| | | private String isenable = "0"; |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨") |
| | | private String isenable; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * ç¾ç
åç§° |
| | | * é®é¢id |
| | | */ |
| | | @ApiModelProperty(value = "ç¾ç
åç§°") |
| | | private String icdname; |
| | | @Excel(name = "é®é¢id") |
| | | @ApiModelProperty(value = "é®é¢id") |
| | | private String taskScriptId; |
| | | |
| | | /** |
| | | * ç¾ç
ID |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¾ç
ID") |
| | | private List<String> icdID; |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * é®å·é¢ç®éå |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty(value = "é®å·é¢ç®éå") |
| | | private List<SvyLibTopic> svyLibTopics; |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³èéå |
| | | */ |
| | | @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 = ""; |
| | | @ApiModelProperty(value = "ç§å®¤åç§°") |
| | | private String deptNames; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty("æ ç¾ä¿¡æ¯") |
| | | private String labelInfo = ""; |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelInfo; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @Excel(name = "é¢åº") |
| | | @ApiModelProperty("é¢åº") |
| | | private String campus = ""; |
| | | @ApiModelProperty(value = "é¢åº") |
| | | private String campus; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "é¢éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3åº") |
| | | @ApiModelProperty("éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway = ""; |
| | | |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty(value = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @ApiModelProperty("å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata = ""; |
| | | @Excel(name = "å
¶å®æ°æ®", readConverterExp = "å=å¨åé") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=é项,2=ææ¬,3=æ°å¼") |
| | | private Long valueType; |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=,é=项,2=,æ=æ¬,3=,æ°=å¼") |
| | | @ApiModelProperty(value = " å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | private String valueType; |
| | | |
| | | |
| | | /** |
| | | * åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼ |
| | | */ |
| | | @Excel(name = "åå¤", readConverterExp = "æ=é®é¢çåå¤ï¼ç»é®çé¢ç¨ç") |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | /** |
| | | * ä»»å¡ID |
| | | */ |
| | | @Excel(name = "ä»»å¡ID") |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | public SvyLibTitle() { |
| | | } |
| | | |
| | | public SvyLibTitle(Long svyid, String icdname) { |
| | | this.svyid = svyid; |
| | | this.icdname = icdname; |
| | | } |
| | | } |
| | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyLibScriptCategory; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·é¢ç®åç±»Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibScriptCategoryMapper { |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®åç±» |
| | | * |
| | | * @param id é®å·é¢ç®åç±»ä¸»é® |
| | | * @return é®å·é¢ç®åç±» |
| | | */ |
| | | public SvyLibScriptCategory selectSvyLibScriptCategoryById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®åç±»å表 |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return é®å·é¢ç®åç±»éå |
| | | */ |
| | | public List<SvyLibScriptCategory> selectSvyLibScriptCategoryList(SvyLibScriptCategory svyLibScriptCategory); |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç®åç±» |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibScriptCategory(SvyLibScriptCategory svyLibScriptCategory); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç®åç±» |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibScriptCategory(SvyLibScriptCategory svyLibScriptCategory); |
| | | |
| | | /** |
| | | * å é¤é®å·é¢ç®åç±» |
| | | * |
| | | * @param id é®å·é¢ç®åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptCategoryById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é¢ç®åç±» |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptCategoryByIds(Long[] ids); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é¢ç®åç±» |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int selectSeqMax(); |
| | | } |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/mapper/SvyLibTopicMapper.java ÐÞ¸Ä |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.SvyLibTopic; |
| | | import com.smartor.domain.SvyLibTopicAndOptionRes; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import com.smartor.domain.SvyLibScript; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibTopicMapper { |
| | | public interface SvyLibScriptMapper { |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç® |
| | | * |
| | | * @param topicid é®å·é¢ç®ä¸»é® |
| | | * @return é®å·é¢ç® |
| | | */ |
| | | public SvyLibTopic selectSvyLibTopicByTopicid(Long topicid); |
| | | public SvyLibScript selectSvyLibScriptByScriptid(Long topicid); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®å表 |
| | |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return é®å·é¢ç®éå |
| | | */ |
| | | public List<SvyLibTopic> selectSvyLibTopicList(SvyLibTopic svyLibTopic); |
| | | public List<SvyLibScript> selectSvyLibScriptList(SvyLibScript svyLibTopic); |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç® |
| | |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTopic(SvyLibTopic svyLibTopic); |
| | | public int insertSvyLibScript(SvyLibScript svyLibTopic); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç® |
| | |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTopic(SvyLibTopic svyLibTopic); |
| | | public int updateSvyLibScript(SvyLibScript svyLibTopic); |
| | | |
| | | /** |
| | | * å é¤é®å·é¢ç® |
| | |
| | | * @param topicid é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTopicByTopicid(Long topicid); |
| | | public int deleteSvyLibScriptByScriptid(Long topicid); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é¢ç® |
| | |
| | | * @param topicids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTopicByTopicids(Long[] topicids); |
| | | public int deleteSvyLibScriptByScriptids(Long[] ids); |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyLibScriptOption; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·é®é¢é项Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibScriptOptionMapper { |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢é项 |
| | | * |
| | | * @param optionid é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return é®å·é®é¢é项 |
| | | */ |
| | | public SvyLibScriptOption selectSvyLibScriptOptionByOptionid(Long optionid); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢é项å表 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return é®å·é®é¢é项éå |
| | | */ |
| | | public List<SvyLibScriptOption> selectSvyLibScriptOptionList(SvyLibScriptOption svyLibScriptOption); |
| | | |
| | | /** |
| | | * æ°å¢é®å·é®é¢é项 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibScriptOption(SvyLibScriptOption svyLibScriptOption); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢é项 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibScriptOption(SvyLibScriptOption svyLibScriptOption); |
| | | |
| | | /** |
| | | * å é¤é®å·é®é¢é项 |
| | | * |
| | | * @param optionid é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptOptionByOptionid(Long optionid); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é®é¢é项 |
| | | * |
| | | * @param optionids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptOptionByOptionids(Long[] optionids); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyLibTemplateCategory; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·æ¨¡æ¿åç±»Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibTemplateCategoryMapper { |
| | | /** |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param id é®å·æ¨¡æ¿åç±»ä¸»é® |
| | | * @return é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | public SvyLibTemplateCategory selectSvyLibTemplateCategoryById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±»å表 |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return é®å·æ¨¡æ¿åç±»éå |
| | | */ |
| | | public List<SvyLibTemplateCategory> selectSvyLibTemplateCategoryList(SvyLibTemplateCategory svyLibTemplateCategory); |
| | | |
| | | /** |
| | | * æ°å¢é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplateCategory(SvyLibTemplateCategory svyLibTemplateCategory); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplateCategory(SvyLibTemplateCategory svyLibTemplateCategory); |
| | | |
| | | /** |
| | | * å é¤é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param id é®å·æ¨¡æ¿åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateCategoryById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateCategoryByIds(Long[] ids); |
| | | |
| | | /** |
| | | * è·ååºå·æå¤§å¼ |
| | | * |
| | | * @return |
| | | */ |
| | | public int selectSeqMax(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.SvyLibTemplate; |
| | | import com.smartor.domain.SvyLibTemplateReq; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * é®å·Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibTemplateMapper { |
| | | /** |
| | | * æ¥è¯¢é®å· |
| | | * |
| | | * @param svyid é®å·ä¸»é® |
| | | * @return é®å· |
| | | */ |
| | | public SvyLibTemplate selectSvyLibTemplateBySvyid(Long svyid); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·å表 |
| | | * |
| | | * @param svyLibTemplateReq é®å· |
| | | * @return é®å·éå |
| | | */ |
| | | public List<SvyLibTemplate> selectSvyLibTemplateList(SvyLibTemplateReq svyLibTemplateReq); |
| | | |
| | | /** |
| | | * æ°å¢é®å· |
| | | * |
| | | * @param svyLibTemplate é®å· |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplate(SvyLibTemplate svyLibTemplate); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å· |
| | | * |
| | | * @param svyLibTemplate é®å· |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplate(SvyLibTemplate svyLibTemplate); |
| | | |
| | | /** |
| | | * å é¤é®å· |
| | | * |
| | | * @param svyid é®å·ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateBySvyid(Long svyid); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å· |
| | | * |
| | | * @param svyids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateBySvyids(Long[] svyids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyTask; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 综åé®å·ä»»å¡ï¼ä»»å¡ï¼Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Mapper |
| | | public interface SvyTaskMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param taskid 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¸»é® |
| | | * @return 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | public SvyTask selectSvyTaskByTaskid(Long taskid); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return 综åé®å·ä»»å¡ï¼ä»»å¡ï¼éå |
| | | */ |
| | | public List<SvyTask> selectSvyTaskList(SvyTask svyTask); |
| | | |
| | | /** |
| | | * æ°å¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTask(SvyTask svyTask); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTask(SvyTask svyTask); |
| | | |
| | | /** |
| | | * å é¤ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param taskid 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskByTaskid(Long taskid); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param taskids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskByTaskids(Long[] taskids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyTaskScript; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é¢ç®Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Mapper |
| | | public interface SvyTaskScriptMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param id ä»»å¡é®å·é¢ç®ä¸»é® |
| | | * @return ä»»å¡é®å·é¢ç® |
| | | */ |
| | | public SvyTaskScript selectSvyTaskScriptById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç®å表 |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ä»»å¡é®å·é¢ç®éå |
| | | */ |
| | | public List<SvyTaskScript> selectSvyTaskScriptList(SvyTaskScript svyTaskScript); |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskScript(SvyTaskScript svyTaskScript); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskScript(SvyTaskScript svyTaskScript); |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param id ä»»å¡é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskScriptById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskScriptByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | |
| | | import com.smartor.domain.SvyTaskScriptoption; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Mapper |
| | | public interface SvyTaskScriptoptionMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | public SvyTaskScriptoption selectSvyTaskScriptoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ä»»å¡é®å·é®é¢é项éå |
| | | */ |
| | | public List<SvyTaskScriptoption> selectSvyTaskScriptoptionList(SvyTaskScriptoption svyTaskScriptoption); |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskScriptoption(SvyTaskScriptoption svyTaskScriptoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskScriptoption(SvyTaskScriptoption svyTaskScriptoption); |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskScriptoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskScriptoptionByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é®å·ï¼Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Mapper |
| | | public interface SvyTaskSingleMapper { |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param id åä¸ä»»å¡ï¼é®å·ï¼ä¸»é® |
| | | * @return åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | public SvyTaskSingle selectSvyTaskSingleById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼å表 |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return åä¸ä»»å¡ï¼é®å·ï¼éå |
| | | */ |
| | | public List<SvyTaskSingle> selectSvyTaskSingleList(SvyTaskSingle svyTaskSingle); |
| | | |
| | | /** |
| | | * æ°å¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskSingle(SvyTaskSingle svyTaskSingle); |
| | | |
| | | /** |
| | | * ä¿®æ¹åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskSingle(SvyTaskSingle svyTaskSingle); |
| | | |
| | | /** |
| | | * å é¤åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param id åä¸ä»»å¡ï¼é®å·ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskSingleById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskSingleByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.SvyTaskTemplate; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·æ¨¡æ¿Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Mapper |
| | | public interface SvyTaskTemplateMapper { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyid ä»»å¡é®å·æ¨¡æ¿ä¸»é® |
| | | * @return ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | public SvyTaskTemplate selectSvyTaskTemplateBySvyid(Long svyid); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿å表 |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ä»»å¡é®å·æ¨¡æ¿éå |
| | | */ |
| | | public List<SvyTaskTemplate> selectSvyTaskTemplateList(SvyTaskTemplate svyTaskTemplate); |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate); |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyid ä»»å¡é®å·æ¨¡æ¿ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateBySvyid(Long svyid); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateBySvyids(Long[] svyids); |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyLibTopic; |
| | | import com.smartor.domain.SvyLibTopicAndOptionRes; |
| | | import com.smartor.domain.SvyTopic; |
| | | import com.smartor.domain.SvyTopicReq; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyLibScriptCategory; |
| | | import com.smartor.domain.SvyLibScriptCategoryVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·é¢ç®åç±»Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | public interface ISvyLibScriptCategoryService { |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®åç±» |
| | | * |
| | | * @param id é®å·é¢ç®åç±»ä¸»é® |
| | | * @return é®å·é¢ç®åç±» |
| | | */ |
| | | public SvyLibScriptCategory selectSvyLibScriptCategoryById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®åç±»å表 |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return é®å·é¢ç®åç±»éå |
| | | */ |
| | | public List<SvyLibScriptCategoryVO> selectSvyLibScriptCategoryList(SvyLibScriptCategory svyLibScriptCategory); |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç®åç±» |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibScriptCategory(SvyLibScriptCategory svyLibScriptCategory); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç®åç±» |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibScriptCategory(SvyLibScriptCategory svyLibScriptCategory); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é¢ç®åç±» |
| | | * |
| | | * @param ids éè¦å é¤çé®å·é¢ç®å类主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptCategoryByIds(Long[] ids); |
| | | |
| | | public int insertSvyLibScriptCategoryTree(SvyLibScriptCategoryVO svyLibScriptCategoryVO); |
| | | |
| | | /** |
| | | * å é¤é®å·é¢ç®åç±»ä¿¡æ¯ |
| | | * |
| | | * @param id é®å·é¢ç®åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptCategoryById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.SvyLibScriptOption; |
| | | |
| | | /** |
| | | * é®å·é®é¢é项Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | public interface ISvyLibScriptOptionService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢é项 |
| | | * |
| | | * @param optionid é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return é®å·é®é¢é项 |
| | | */ |
| | | public SvyLibScriptOption selectSvyLibScriptOptionByOptionid(Long optionid); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢é项å表 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return é®å·é®é¢é项éå |
| | | */ |
| | | public List<SvyLibScriptOption> selectSvyLibScriptOptionList(SvyLibScriptOption svyLibScriptOption); |
| | | |
| | | /** |
| | | * æ°å¢é®å·é®é¢é项 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibScriptOption(SvyLibScriptOption svyLibScriptOption); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢é项 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibScriptOption(SvyLibScriptOption svyLibScriptOption); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é®é¢é项 |
| | | * |
| | | * @param optionids éè¦å é¤çé®å·é®é¢é项主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptOptionByOptionids(Long[] optionids); |
| | | |
| | | /** |
| | | * å é¤é®å·é®é¢éé¡¹ä¿¡æ¯ |
| | | * |
| | | * @param optionid é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptOptionByOptionid(Long optionid); |
| | | } |
ÎļþÃû´Ó smartor/src/main/java/com/smartor/service/ISvyLibTopicService.java ÐÞ¸Ä |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyLibTopic; |
| | | import com.smartor.domain.SvyLibScript; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface ISvyLibTopicService { |
| | | public interface ISvyLibScriptService { |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç® |
| | | * |
| | | * @param topicid é®å·é¢ç®ä¸»é® |
| | | * @return é®å·é¢ç® |
| | | */ |
| | | public SvyLibTopic selectSvyLibTopicByTopicid(Long topicid); |
| | | public SvyLibScript selectSvyLibScriptByScriptid(Long topicid); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®å表 |
| | |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return é®å·é¢ç®éå |
| | | */ |
| | | public List<SvyLibTopic> selectSvyLibTopicList(SvyLibTopic svyLibTopic); |
| | | public List<SvyLibScript> selectSvyLibScriptList(SvyLibScript svyLibTopic); |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç® |
| | |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTopic(SvyLibTopic svyLibTopic); |
| | | public int insertSvyLibScript(SvyLibScript svyLibTopic); |
| | | |
| | | public Integer saveOrUpdateTopic(SvyLibTopic svyLibTopic); |
| | | public Integer saveOrUpdateScript(SvyLibScript svyLibTopic); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç® |
| | |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTopic(SvyLibTopic svyLibTopic); |
| | | public int updateSvyLibScript(SvyLibScript svyLibTopic); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é¢ç® |
| | |
| | | * @param topicids éè¦å é¤çé®å·é¢ç®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTopicByTopicids(Long[] topicids); |
| | | public int deleteSvyLibScriptByScriptids(Long[] topicids); |
| | | |
| | | /** |
| | | * å é¤é®å·é¢ç®ä¿¡æ¯ |
| | |
| | | * @param topicid é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTopicByTopicid(Long topicid); |
| | | public int deleteSvyLibScriptByScriptid(Long topicid); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyLibTemplateCategory; |
| | | import com.smartor.domain.SvyLibTemplateCategoryVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·æ¨¡æ¿åç±»Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | public interface ISvyLibTemplateCategoryService { |
| | | /** |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param id é®å·æ¨¡æ¿åç±»ä¸»é® |
| | | * @return é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | public SvyLibTemplateCategory selectSvyLibTemplateCategoryById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±»å表 |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return é®å·æ¨¡æ¿åç±»éå |
| | | */ |
| | | public List<SvyLibTemplateCategoryVO> selectSvyLibTemplateCategoryList(SvyLibTemplateCategory svyLibTemplateCategory); |
| | | |
| | | /** |
| | | * æ°å¢é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplateCategory(SvyLibTemplateCategory svyLibTemplateCategory); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplateCategory(SvyLibTemplateCategory svyLibTemplateCategory); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param ids éè¦å é¤çé®å·æ¨¡æ¿å类主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateCategoryByIds(Long[] ids); |
| | | |
| | | public int insertSvyLibTemplateCategoryTree(SvyLibTemplateCategoryVO svyLibTemplateCategoryVO); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.smartor.domain.SvyLibTemplate; |
| | | import com.smartor.domain.SvyLibTemplateReq; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | /** |
| | | * é®å·Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | public interface ISvyLibTemplateService { |
| | | /** |
| | | * æ¥è¯¢é®å· |
| | | * |
| | | * @param svyid é®å·ä¸»é® |
| | | * @return é®å· |
| | | */ |
| | | public SvyLibTemplate selectSvyLibTemplateBySvyid(Long svyid); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·å表 |
| | | * |
| | | * @param svyLibTemplateReq é®å· |
| | | * @return é®å·éå |
| | | */ |
| | | public List<SvyLibTemplate> selectSvyLibTemplateList(SvyLibTemplateReq svyLibTemplateReq); |
| | | |
| | | /** |
| | | * æ°å¢é®å· |
| | | * |
| | | * @param svyLibTemplate é®å· |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplate(SvyLibTemplate svyLibTemplate); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯ |
| | | * @param svyLibTemplate |
| | | * @return |
| | | */ |
| | | public Integer saveOrUpdateTemplate(@RequestBody SvyLibTemplate svyLibTemplate); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å· |
| | | * |
| | | * @param svyLibTemplate é®å· |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplate(SvyLibTemplate svyLibTemplate); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å· |
| | | * |
| | | * @param svyids éè¦å é¤çé®å·ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateBySvyids(Long[] svyids); |
| | | |
| | | /** |
| | | * å é¤é®å·ä¿¡æ¯ |
| | | * |
| | | * @param svyid é®å·ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateBySvyid(Long svyid); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTaskScript; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é¢ç®Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | public interface ISvyTaskScriptService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param id ä»»å¡é®å·é¢ç®ä¸»é® |
| | | * @return ä»»å¡é®å·é¢ç® |
| | | */ |
| | | public SvyTaskScript selectSvyTaskScriptById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç®å表 |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ä»»å¡é®å·é¢ç®éå |
| | | */ |
| | | public List<SvyTaskScript> selectSvyTaskScriptList(SvyTaskScript svyTaskScript); |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskScript(SvyTaskScript svyTaskScript); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskScript(SvyTaskScript svyTaskScript); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param ids éè¦å é¤çä»»å¡é®å·é¢ç®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskScriptByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é¢ç®ä¿¡æ¯ |
| | | * |
| | | * @param id ä»»å¡é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskScriptById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTaskScriptoption; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | public interface ISvyTaskScriptoptionService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | public SvyTaskScriptoption selectSvyTaskScriptoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ä»»å¡é®å·é®é¢é项éå |
| | | */ |
| | | public List<SvyTaskScriptoption> selectSvyTaskScriptoptionList(SvyTaskScriptoption svyTaskScriptoption); |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskScriptoption(SvyTaskScriptoption svyTaskScriptoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskScriptoption(SvyTaskScriptoption svyTaskScriptoption); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param ids éè¦å é¤çä»»å¡é®å·é®é¢é项主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskScriptoptionByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢éé¡¹ä¿¡æ¯ |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskScriptoptionById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTask; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 综åé®å·ä»»å¡ï¼ä»»å¡ï¼Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | public interface ISvyTaskService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param taskid 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¸»é® |
| | | * @return 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | public SvyTask selectSvyTaskByTaskid(Long taskid); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return 综åé®å·ä»»å¡ï¼ä»»å¡ï¼éå |
| | | */ |
| | | public List<SvyTask> selectSvyTaskList(SvyTask svyTask); |
| | | |
| | | /** |
| | | * æ°å¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTask(SvyTask svyTask); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTask(SvyTask svyTask); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param taskids éè¦å é¤ç综åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskByTaskids(Long[] taskids); |
| | | |
| | | /** |
| | | * å é¤ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¿¡æ¯ |
| | | * |
| | | * @param taskid 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskByTaskid(Long taskid); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é®å·ï¼Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | public interface ISvyTaskSingleService |
| | | { |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param id åä¸ä»»å¡ï¼é®å·ï¼ä¸»é® |
| | | * @return åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | public SvyTaskSingle selectSvyTaskSingleById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼å表 |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return åä¸ä»»å¡ï¼é®å·ï¼éå |
| | | */ |
| | | public List<SvyTaskSingle> selectSvyTaskSingleList(SvyTaskSingle svyTaskSingle); |
| | | |
| | | /** |
| | | * æ°å¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskSingle(SvyTaskSingle svyTaskSingle); |
| | | |
| | | /** |
| | | * ä¿®æ¹åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskSingle(SvyTaskSingle svyTaskSingle); |
| | | |
| | | /** |
| | | * æ¹éå é¤åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param ids éè¦å é¤çåä¸ä»»å¡ï¼é®å·ï¼ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskSingleByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤åä¸ä»»å¡ï¼é®å·ï¼ä¿¡æ¯ |
| | | * |
| | | * @param id åä¸ä»»å¡ï¼é®å·ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskSingleById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyTaskTemplate; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·æ¨¡æ¿Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | public interface ISvyTaskTemplateService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyid ä»»å¡é®å·æ¨¡æ¿ä¸»é® |
| | | * @return ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | public SvyTaskTemplate selectSvyTaskTemplateBySvyid(Long svyid); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿å表 |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ä»»å¡é®å·æ¨¡æ¿éå |
| | | */ |
| | | public List<SvyTaskTemplate> selectSvyTaskTemplateList(SvyTaskTemplate svyTaskTemplate); |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyids éè¦å é¤çä»»å¡é®å·æ¨¡æ¿ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateBySvyids(Long[] svyids); |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·æ¨¡æ¿ä¿¡æ¯ |
| | | * |
| | | * @param svyid ä»»å¡é®å·æ¨¡æ¿ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyTaskTemplateBySvyid(Long svyid); |
| | | } |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.smartor.domain.SvyLibScriptRes; |
| | | import com.smartor.domain.SvyLibTopicAndOptionRes; |
| | | import com.smartor.domain.SvyLibTopicRes; |
| | | import com.smartor.domain.SvyTopic; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | * @param multipartFile |
| | | * @return |
| | | */ |
| | | public List<SvyLibTopicRes> importLitTopic(SysUser user, MultipartFile multipartFile); |
| | | public List<SvyLibScriptRes> importLitTopic(SysUser user, MultipartFile multipartFile); |
| | | |
| | | public Map<String, List<SvyLibTopicAndOptionRes>> showTopic(SvyTopicReq svyTopicReq); |
| | | } |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.google.gson.Gson; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.config.PhoneUtils; |
| | | import com.smartor.config.RabbitMqCallPhoneConfig; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.robot.back.RobotAIDialogBack; |
| | | import com.smartor.domain.robot.back.RobotCallBack; |
| | | import com.smartor.domain.robot.back.RobotcdrInfoBack; |
| | | import com.smartor.mapper.*; |
| | | import com.smartor.service.AIRobotPhoneCallBackService; |
| | | import com.smartor.service.IIvrTaskService; |
| | | import com.smartor.service.IIvrTaskSingleService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.concurrent.TimeUnit; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é访ï¼Serviceä¸å¡å±å¤ç |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.google.gson.Gson; |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int saveOrupdateIvrLibaTarget(IvrLibaTargetVO ivrLibaTargetVO) { |
| | | IvrLibaTarget ivrLibaTarget = DtoConversionUtils.sourceToTarget(ivrLibaTargetVO, IvrLibaTarget.class); |
| | | if (ObjectUtils.isEmpty(ivrLibaTargetVO.getSuitWayList())) |
| | | ivrLibaTarget.setSuitWay(JSON.toJSONString(ivrLibaTargetVO.getSuitWayList())); |
| | | ivrLibaTarget.setUpdateTime(DateUtils.getNowDate()); |
| | | if (ivrLibaTargetVO.getIsoperation() != null && ivrLibaTargetVO.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | |
| | | log.info("æä¾çæ¡ä»¶,æ¥è¯¢æ¨¡æ¿è¯¦æ
æ°æ®ä¸ºç©ºï¼{}", ivrLibaTemplates); |
| | | throw new BaseException("æä¾çæ¡ä»¶,æ¥è¯¢æ¨¡æ¿è¯¦æ
æ°æ®ä¸ºç©º"); |
| | | } |
| | | |
| | | log.info("ivrLibaTemplatesçæ¥è¯¢ç»æä¸º:{},æ°é为 : {}", ivrLibaTemplates.get(0), ivrLibaTemplates.size()); |
| | | //å®ä¹IvrLibaTemplateVO ç¨äºè¿å |
| | | IvrLibaTemplateVO templateVO = DtoConversionUtils.sourceToTarget(ivrLibaTemplates.get(0), IvrLibaTemplateVO.class); |
| | | |
| | |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.core.type.TypeReference; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.config.RabbitMqCallPhoneConfig; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | private IvrLibaTemplateTargetoptionMapper ivrLibaTemplateTargetOptionMapper; |
| | | |
| | | @Autowired |
| | | private RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig; |
| | | private RedisCache redisCache; |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡ |
| | |
| | | sendTaskVO.setSendType(ivrTask.getSendType().toString()); |
| | | } |
| | | //夿任塿¯å¦æ¯ç«å³åé |
| | | if (org.apache.commons.lang3.StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("2")) { |
| | | if (StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("2")) { |
| | | IvrTaskcallMQ ivrTaskcallMQ = new IvrTaskcallMQ(); |
| | | ivrTaskcallMQ.setTaskid(sendTaskVO.getTaskId()); |
| | | ivrTaskcallMQ.setSendType(sendTaskVO.getSendType()); |
| | |
| | | ivrTaskcallMQJson = ivrTaskcallMQJson.substring(1, ivrTaskcallMQJson.length() - 1); |
| | | |
| | | //ç«å³åé |
| | | rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.123", ivrTaskcallMQJson, 0L); |
| | | // rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.123", ivrTaskcallMQJson, 0L); |
| | | redisCache.setCacheObject(ivrTaskcallMQJson, ivrTaskcallMQJson, 1, TimeUnit.SECONDS); |
| | | |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | IvrTask ivrTask2 = new IvrTask(); |
| | | ivrTask2.setTaskid(ivrTask.getTaskid()); |
| | | ivrTask2.setSendState(2); |
| | | updateIvrTask(ivrTask2); |
| | | } else if (org.apache.commons.lang3.StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("1")) { |
| | | } else if (StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("1") || StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("3")) { |
| | | //æ¶é´æ®µåé |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | if (org.apache.commons.lang3.StringUtils.isNotEmpty(ivrTask.getSendTimeSlot())) { |
| | |
| | | Long finalMilliseconds = milliseconds; |
| | | String ivrTaskcallMQJson = JSON.toJSONString(ivrTaskcallMQ); |
| | | ivrTaskcallMQJson = ivrTaskcallMQJson.substring(1, ivrTaskcallMQJson.length() - 1); |
| | | rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.123", ivrTaskcallMQJson, milliseconds); |
| | | // rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.123", ivrTaskcallMQJson, milliseconds); |
| | | redisCache.setCacheObject(ivrTaskcallMQJson, ivrTaskcallMQJson, milliseconds / 1000, TimeUnit.SECONDS); |
| | | } |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | IvrTask ivrTask2 = new IvrTask(); |
| | |
| | | import com.alibaba.nls.client.protocol.tts.SpeechSynthesizer; |
| | | import com.alibaba.nls.client.protocol.tts.SpeechSynthesizerListener; |
| | | import com.alibaba.nls.client.protocol.tts.SpeechSynthesizerResponse; |
| | | import com.aliyun.dysmsapi20170525.Client; |
| | | import com.aliyun.dysmsapi20170525.models.*; |
| | | import com.aliyun.tea.TeaException; |
| | | import com.aliyun.teaopenapi.models.Config; |
| | | import com.aliyun.teautil.Common; |
| | | import com.aliyun.teautil.models.RuntimeOptions; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.*; |
| | | import com.smartor.service.IBaseSmsaccountService; |
| | | import com.smartor.service.ISvyLibTitleService; |
| | | import com.smartor.service.PersonVoiceService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jsoup.Jsoup; |
| | |
| | | import java.io.*; |
| | | import java.nio.ByteBuffer; |
| | | import java.nio.file.Files; |
| | | import java.time.Instant; |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * çä¿¡è´¦å·Serviceä¸å¡å±å¤ç |
| | |
| | | private String accessKeySecret; |
| | | |
| | | @Autowired |
| | | private SvyLibTitleMapper svyLibTitleMapper; |
| | | private SvyLibTemplateMapper svyLibTitleMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibTopicMapper svyLibTopicMapper; |
| | | private SvyLibScriptMapper svyLibTopicMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibTopicdirectionMapper svyLibTopicdirectionMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibTopicoptionMapper svyLibTopicoptionMapper; |
| | | private SvyLibScriptOptionMapper svyLibTopicoptionMapper; |
| | | // |
| | | // @Autowired |
| | | // private ISvyLibTitleService svyLibTitleService; |
| | |
| | | |
| | | //ä¿åtitle |
| | | String title = parse.title(); |
| | | SvyLibTitle svyLibTitle = new SvyLibTitle(); |
| | | SvyLibTemplate svyLibTitle = new SvyLibTemplate(); |
| | | // svyLibTitle.setCategoryid(System.currentTimeMillis()); |
| | | svyLibTitle.setSvyname(title); |
| | | svyLibTitle.setDelFlag("0"); |
| | | svyLibTitle.setIsupload(0L); |
| | | svyLibTitleMapper.insertSvyLibTitle(svyLibTitle); |
| | | svyLibTitleMapper.insertSvyLibTemplate(svyLibTitle); |
| | | |
| | | Element body = parse.body(); |
| | | Elements elementsByClass = body.getElementsByClass("topic__type-body"); |
| | |
| | | String legend = element.getElementsByTag("legend").text(); |
| | | System.out.println("é¢ç®ï¼ " + legend); |
| | | //å°é¢ç®ä¿åå°è¡¨ä¸ |
| | | SvyLibTopic svyLibTopic = new SvyLibTopic(); |
| | | SvyLibScript svyLibTopic = new SvyLibScript(); |
| | | svyLibTopic.setSvyid(svyLibTitle.getSvyid()); |
| | | |
| | | //å¤æè¯¥é¢ç®ä¸æ¯å¦æé项 |
| | |
| | | if (spans.size() != 0) { |
| | | Elements radio__type = spans.get(0).getElementsByClass("radio__type"); |
| | | if (radio__type.size() != 0) { |
| | | svyLibTopic.setTopictype("1"); |
| | | svyLibTopic.setScripttype("1"); |
| | | } else { |
| | | Elements checkbox__type = spans.get(0).getElementsByClass("checkbox__type"); |
| | | if (checkbox__type.size() != 0) { |
| | | svyLibTopic.setTopictype("2"); |
| | | svyLibTopic.setScripttype("2"); |
| | | } |
| | | } |
| | | |
| | | } |
| | | svyLibTopic.setTopiccode(IdUtils.simpleUUID()); |
| | | svyLibTopic.setTopic(legend); |
| | | svyLibTopic.setScriptcode(IdUtils.simpleUUID()); |
| | | svyLibTopic.setScript(legend); |
| | | svyLibTopic.setDelFlag("0"); |
| | | svyLibTopic.setIsupload(0L); |
| | | svyLibTopic.setOrgid(fileName); |
| | | try { |
| | | svyLibTopicMapper.insertSvyLibTopic(svyLibTopic); |
| | | svyLibTopicMapper.insertSvyLibScript(svyLibTopic); |
| | | } catch (Exception e) { |
| | | noExpiain(fileName.substring(0, fileName.length() - 5) + "åºå¼å¸¸äº1", fileContent); |
| | | continue a; |
| | |
| | | String text = label.text(); |
| | | //å°é¢ç®ååº |
| | | // item = item + "------" + text; |
| | | SvyLibTopicoption svyLibTopicoption = new SvyLibTopicoption(); |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getTopicid()); |
| | | SvyLibScriptOption svyLibTopicoption = new SvyLibScriptOption(); |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getId()); |
| | | svyLibTopicoption.setSvyid(svyLibTitle.getSvyid()); |
| | | svyLibTopicoption.setSort(i); |
| | | svyLibTopicoption.setOptioncode(IdUtils.simpleUUID()); |
| | |
| | | svyLibTopicoption.setDelFlag("0"); |
| | | svyLibTopicoption.setIsupload(0L); |
| | | try { |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | svyLibTopicoptionMapper.insertSvyLibScriptOption(svyLibTopicoption); |
| | | } catch (Exception e) { |
| | | noExpiain(fileName.substring(0, fileName.length() - 5) + "åºå¼å¸¸äº2", fileContent); |
| | | continue a; |
| | |
| | | |
| | | Elements elementsByClass2 = element.getElementsByClass("ui-control-group ui-matrix"); |
| | | if (elementsByClass2.size() > 0) { |
| | | SvyLibTopic svyLibTopic2 = new SvyLibTopic(); |
| | | SvyLibScript svyLibTopic2 = new SvyLibScript(); |
| | | svyLibTopic2.setSvyid(svyLibTitle.getSvyid()); |
| | | svyLibTopic2.setTopiccode(IdUtils.simpleUUID()); |
| | | svyLibTopic2.setTopic(legend); |
| | | svyLibTopic2.setScriptcode(IdUtils.simpleUUID()); |
| | | svyLibTopic2.setScript(legend); |
| | | svyLibTopic2.setDelFlag("0"); |
| | | svyLibTopic.setIsupload(0L); |
| | | svyLibTopic2.setTopictype("4"); |
| | | svyLibTopic2.setScripttype("4"); |
| | | svyLibTopic2.setOrgid(fileName); |
| | | try { |
| | | svyLibTopicMapper.insertSvyLibTopic(svyLibTopic2); |
| | | svyLibTopicMapper.insertSvyLibScript(svyLibTopic2); |
| | | } catch (Exception e) { |
| | | noExpiain(fileName.substring(0, fileName.length() - 5) + "åºå¼å¸¸äº22", fileContent); |
| | | continue a; |
| | |
| | | direction = direction + ele.text() + "â"; |
| | | } |
| | | SvyLibTopicdirection svyLibTopicdirection = new SvyLibTopicdirection(); |
| | | svyLibTopicdirection.setTopicid(svyLibTopic2.getTopicid()); |
| | | svyLibTopicdirection.setTopicid(svyLibTopic2.getId()); |
| | | svyLibTopicdirection.setDirection(direction); |
| | | svyLibTopicdirection.setTransverse(transverse); |
| | | svyLibTopicdirectionMapper.insertSvyLibTopicdirection(svyLibTopicdirection); |
| | |
| | | |
| | | |
| | | //å°é¢ç®ä¿åå°è¡¨ä¸ |
| | | SvyLibTopic svyLibTopic3 = new SvyLibTopic(); |
| | | SvyLibScript svyLibTopic3 = new SvyLibScript(); |
| | | svyLibTopic3.setSvyid(svyLibTitle.getSvyid()); |
| | | svyLibTopic3.setTopiccode(IdUtils.simpleUUID()); |
| | | svyLibTopic3.setTopic(legend); |
| | | svyLibTopic3.setScriptcode(IdUtils.simpleUUID()); |
| | | svyLibTopic3.setScript(legend); |
| | | svyLibTopic3.setDelFlag("0"); |
| | | svyLibTopic3.setIsupload(0L); |
| | | svyLibTopic3.setTopictype("3"); |
| | | svyLibTopic3.setScripttype("3"); |
| | | svyLibTopic3.setOrgid(fileName); |
| | | try { |
| | | svyLibTopicMapper.insertSvyLibTopic(svyLibTopic3); |
| | | svyLibTopicMapper.insertSvyLibScript(svyLibTopic3); |
| | | } catch (Exception e) { |
| | | noExpiain(fileName.substring(0, fileName.length() - 5) + "åºå¼å¸¸äº33", fileContent); |
| | | continue a; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.domain.SvyLibScriptCategory; |
| | | import com.smartor.domain.SvyLibScriptCategoryVO; |
| | | import com.smartor.mapper.SvyLibScriptCategoryMapper; |
| | | import com.smartor.service.ISvyLibScriptCategoryService; |
| | | 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; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * é®å·é¢ç®åç±»Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SvyLibScriptCategoryServiceImpl implements ISvyLibScriptCategoryService { |
| | | @Autowired |
| | | private SvyLibScriptCategoryMapper svyLibScriptCategoryMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®åç±» |
| | | * |
| | | * @param id é®å·é¢ç®åç±»ä¸»é® |
| | | * @return é®å·é¢ç®åç±» |
| | | */ |
| | | @Override |
| | | public SvyLibScriptCategory selectSvyLibScriptCategoryById(Long id) { |
| | | return svyLibScriptCategoryMapper.selectSvyLibScriptCategoryById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®åç±»å表 |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return é®å·é¢ç®åç±» |
| | | */ |
| | | @Override |
| | | public List<SvyLibScriptCategoryVO> selectSvyLibScriptCategoryList(SvyLibScriptCategory svyLibScriptCategory) { |
| | | List<SvyLibScriptCategory> svyLibScriptCategories = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | //å°pid为空çï¼è¿æ»¤æ |
| | | svyLibScriptCategories = svyLibScriptCategories.stream().filter(assort -> assort.getPid() == null).collect(Collectors.toList()); |
| | | |
| | | List<SvyLibScriptCategoryVO> SvyLibScriptCategoryVO = DtoConversionUtils.sourceToTarget(svyLibScriptCategories, SvyLibScriptCategoryVO.class); |
| | | //éåæ¥åºæ¥çæ°æ®ï¼éè¿ id=pid è·åä»ä»¬çåæ°æ® |
| | | for (SvyLibScriptCategoryVO svyLibScriptCategoryVO : SvyLibScriptCategoryVO) { |
| | | if (svyLibScriptCategoryVO.getPid() != null) { |
| | | continue; |
| | | } |
| | | SvyLibScriptCategory svyLibScriptCategory1 = new SvyLibScriptCategory(); |
| | | svyLibScriptCategory1.setPid(svyLibScriptCategoryVO.getId()); |
| | | List<SvyLibScriptCategory> svyLibScriptCategories1 = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory1); |
| | | if (!Collections.isEmpty(svyLibScriptCategories1)) { |
| | | svyLibScriptCategoryVO.setSvyLibScriptCategoryList(svyLibScriptCategories1); |
| | | } |
| | | } |
| | | return SvyLibScriptCategoryVO; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç®åç±» |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyLibScriptCategory(SvyLibScriptCategory svyLibScriptCategory) { |
| | | svyLibScriptCategory.setCreateTime(DateUtils.getNowDate()); |
| | | return svyLibScriptCategoryMapper.insertSvyLibScriptCategory(svyLibScriptCategory); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç®åç±» |
| | | * |
| | | * @param svyLibScriptCategory é®å·é¢ç®åç±» |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibScriptCategory(SvyLibScriptCategory svyLibScriptCategory) { |
| | | svyLibScriptCategory.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibScriptCategoryMapper.updateSvyLibScriptCategory(svyLibScriptCategory); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é¢ç®åç±» |
| | | * |
| | | * @param ids éè¦å é¤çé®å·é¢ç®åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibScriptCategoryByIds(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | if (id < 0) { |
| | | log.info("å°äº0çå¼ä¸ºé»è®¤å¼ä¸è½å é¤ï¼{}", id); |
| | | continue; |
| | | } |
| | | i = svyLibScriptCategoryMapper.deleteSvyLibScriptCategoryById(id); |
| | | SvyLibScriptCategory svyLibScriptCategory = new SvyLibScriptCategory(); |
| | | svyLibScriptCategory.setPid(id); |
| | | List<SvyLibScriptCategory> svyLibScriptCategories = svyLibScriptCategoryMapper.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | | if (CollectionUtils.isNotEmpty(svyLibScriptCategories)) { |
| | | for (SvyLibScriptCategory svyLibScriptCategory1 : svyLibScriptCategories) { |
| | | svyLibScriptCategory1.setPid(-1L); |
| | | svyLibScriptCategoryMapper.updateSvyLibScriptCategory(svyLibScriptCategory1); |
| | | } |
| | | } |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | @Override |
| | | public int insertSvyLibScriptCategoryTree(SvyLibScriptCategoryVO svyLibScriptCategoryVO) { |
| | | Integer i = null; |
| | | if (ObjectUtils.isEmpty(svyLibScriptCategoryVO)) { |
| | | throw new BaseException("å
¥å为空,è¯·æ£æ¥å,åæ°å¢"); |
| | | } |
| | | Integer seqMax = null; |
| | | try { |
| | | seqMax = svyLibScriptCategoryMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax = 0; |
| | | } |
| | | |
| | | SvyLibScriptCategory svyLibScriptCategory = DtoConversionUtils.sourceToTarget(svyLibScriptCategoryVO, SvyLibScriptCategory.class); |
| | | svyLibScriptCategory.setSeqno(1); |
| | | if (seqMax != null) { |
| | | svyLibScriptCategory.setSeqno(seqMax + 1); |
| | | } |
| | | i = svyLibScriptCategoryMapper.insertSvyLibScriptCategory(svyLibScriptCategory); |
| | | log.info("é®é¢è¯æ¯åç±»åºä¸çº§æ ç主é®:{}", svyLibScriptCategory.getId()); |
| | | |
| | | //æ°å¢äºçº§æ |
| | | if (CollectionUtils.isNotEmpty(svyLibScriptCategoryVO.getSvyLibScriptCategoryList())) { |
| | | for (SvyLibScriptCategory svyLibScriptCategory1 : svyLibScriptCategoryVO.getSvyLibScriptCategoryList()) { |
| | | Integer seqMax1 = null; |
| | | try { |
| | | seqMax1 = svyLibScriptCategoryMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax1 = 0; |
| | | } |
| | | svyLibScriptCategory1.setPid(svyLibScriptCategory.getId()); |
| | | svyLibScriptCategory1.setSeqno(1); |
| | | if (seqMax1 != null) { |
| | | svyLibScriptCategory1.setSeqno(seqMax1 + 1); |
| | | } |
| | | svyLibScriptCategoryMapper.insertSvyLibScriptCategory(svyLibScriptCategory1); |
| | | } |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·é¢ç®åç±»ä¿¡æ¯ |
| | | * |
| | | * @param id é®å·é¢ç®åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibScriptCategoryById(Long id) { |
| | | return svyLibScriptCategoryMapper.deleteSvyLibScriptCategoryById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyLibScript; |
| | | import com.smartor.mapper.SvyLibScriptOptionMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.smartor.mapper.SvyLibScriptOptionMapper; |
| | | import com.smartor.domain.SvyLibScriptOption; |
| | | import com.smartor.service.ISvyLibScriptOptionService; |
| | | |
| | | /** |
| | | * é®å·é®é¢é项Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @Service |
| | | public class SvyLibScriptOptionServiceImpl implements ISvyLibScriptOptionService |
| | | { |
| | | @Autowired |
| | | private SvyLibScriptOptionMapper svyLibScriptOptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢é项 |
| | | * |
| | | * @param optionid é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return é®å·é®é¢é项 |
| | | */ |
| | | @Override |
| | | public SvyLibScriptOption selectSvyLibScriptOptionByOptionid(Long optionid) |
| | | { |
| | | return svyLibScriptOptionMapper.selectSvyLibScriptOptionByOptionid(optionid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢é项å表 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return é®å·é®é¢é项 |
| | | */ |
| | | @Override |
| | | public List<SvyLibScriptOption> selectSvyLibScriptOptionList(SvyLibScriptOption svyLibScriptOption) |
| | | { |
| | | return svyLibScriptOptionMapper.selectSvyLibScriptOptionList(svyLibScriptOption); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é®é¢é项 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyLibScriptOption(SvyLibScriptOption svyLibScriptOption) |
| | | { |
| | | svyLibScriptOption.setCreateTime(DateUtils.getNowDate()); |
| | | return svyLibScriptOptionMapper.insertSvyLibScriptOption(svyLibScriptOption); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢é项 |
| | | * |
| | | * @param svyLibScriptOption é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibScriptOption(SvyLibScriptOption svyLibScriptOption) |
| | | { |
| | | svyLibScriptOption.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibScriptOptionMapper.updateSvyLibScriptOption(svyLibScriptOption); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é®é¢é项 |
| | | * |
| | | * @param optionids éè¦å é¤çé®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibScriptOptionByOptionids(Long[] optionids) |
| | | { |
| | | return svyLibScriptOptionMapper.deleteSvyLibScriptOptionByOptionids(optionids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·é®é¢éé¡¹ä¿¡æ¯ |
| | | * |
| | | * @param optionid é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibScriptOptionByOptionid(Long optionid) |
| | | { |
| | | return svyLibScriptOptionMapper.deleteSvyLibScriptOptionByOptionid(optionid); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.SvyLibScript; |
| | | import com.smartor.domain.SvyLibScriptOption; |
| | | import com.smartor.mapper.SvyLibScriptMapper; |
| | | import com.smartor.mapper.SvyLibScriptOptionMapper; |
| | | import com.smartor.service.ISvyLibScriptService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·é¢ç®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SvyLibScriptServiceImpl implements ISvyLibScriptService { |
| | | @Autowired |
| | | private SvyLibScriptMapper svyLibTopicMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibScriptOptionMapper svyLibScriptOptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç® |
| | | * |
| | | * @param topicid é®å·é¢ç®ä¸»é® |
| | | * @return é®å·é¢ç® |
| | | */ |
| | | @Override |
| | | public SvyLibScript selectSvyLibScriptByScriptid(Long topicid) { |
| | | return svyLibTopicMapper.selectSvyLibScriptByScriptid(topicid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®å表 |
| | | * |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return é®å·é¢ç® |
| | | */ |
| | | @Override |
| | | public List<SvyLibScript> selectSvyLibScriptList(SvyLibScript svyLibTopic) { |
| | | //æ·»å é¢ç® |
| | | |
| | | List<SvyLibScript> svyLibTopics = svyLibTopicMapper.selectSvyLibScriptList(svyLibTopic); |
| | | //è·åé¢ç®é项 |
| | | |
| | | 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).getId() == null) { |
| | | //ä½çé¢ï¼ä¸éè¦é项 |
| | | continue; |
| | | } else { |
| | | SvyLibScriptOption svyLibTopicoption = new SvyLibScriptOption(); |
| | | svyLibTopicoption.setTopicid(svyLibTopics.get(j).getId()); |
| | | List<SvyLibScriptOption> svyLibTopicoptions = svyLibScriptOptionMapper.selectSvyLibScriptOptionList(svyLibTopicoption); |
| | | //å°æ¥è¯¢åºçéé¡¹ç®æ¾å°é¢ç®ä¸ |
| | | svyLibTopics.get(j).setSvyLibScriptOptions(svyLibTopicoptions); |
| | | } |
| | | } |
| | | return svyLibTopics; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç® |
| | | * |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyLibScript(SvyLibScript svyLibTopic) { |
| | | svyLibTopic.setCreateTime(DateUtils.getNowDate()); |
| | | return svyLibTopicMapper.insertSvyLibScript(svyLibTopic); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public Integer saveOrUpdateScript(SvyLibScript svyLibTopic) { |
| | | Integer i = null; |
| | | |
| | | //对é¢ç®è¿è¡å¤ç |
| | | if (svyLibTopic.getIsoperation() != null && svyLibTopic.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | i = svyLibTopicMapper.insertSvyLibScript(svyLibTopic); |
| | | } else if (svyLibTopic.getIsoperation() != null && svyLibTopic.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | i = svyLibTopicMapper.updateSvyLibScript(svyLibTopic); |
| | | } |
| | | |
| | | //对é¢ç®é项è¿è¡å¤ç |
| | | if (CollectionUtils.isNotEmpty(svyLibTopic.getSvyLibScriptOptions())) { |
| | | for (SvyLibScriptOption svyLibTopicoption : svyLibTopic.getSvyLibScriptOptions()) { |
| | | if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getId()); |
| | | svyLibTopicoption.setCreateTime(new Date()); |
| | | svyLibScriptOptionMapper.insertSvyLibScriptOption(svyLibTopicoption); |
| | | } else if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getId()); |
| | | svyLibTopicoption.setUpdateTime(new Date()); |
| | | svyLibScriptOptionMapper.updateSvyLibScriptOption(svyLibTopicoption); |
| | | } else if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 3) { |
| | | //å é¤ |
| | | svyLibScriptOptionMapper.deleteSvyLibScriptOptionByOptionid(svyLibTopicoption.getOptionid()); |
| | | } |
| | | } |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç® |
| | | * |
| | | * @param svyLibTopic é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibScript(SvyLibScript svyLibTopic) { |
| | | svyLibTopic.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibTopicMapper.updateSvyLibScript(svyLibTopic); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·é¢ç® |
| | | * |
| | | * @param topicids éè¦å é¤çé®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibScriptByScriptids(Long[] topicids) { |
| | | Integer i = null; |
| | | for (Long topicid : topicids) { |
| | | i = svyLibTopicMapper.deleteSvyLibScriptByScriptid(topicid); |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·é¢ç®ä¿¡æ¯ |
| | | * |
| | | * @param topicid é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibScriptByScriptid(Long topicid) { |
| | | return svyLibTopicMapper.deleteSvyLibScriptByScriptid(topicid); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.domain.SvyLibTemplateCategory; |
| | | import com.smartor.domain.SvyLibTemplateCategoryVO; |
| | | import com.smartor.mapper.SvyLibTemplateCategoryMapper; |
| | | import com.smartor.service.ISvyLibTemplateCategoryService; |
| | | 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; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * é®å·æ¨¡æ¿åç±»Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-27 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SvyLibTemplateCategoryServiceImpl implements ISvyLibTemplateCategoryService { |
| | | @Autowired |
| | | private SvyLibTemplateCategoryMapper svyLibTemplateCategoryMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param id é®å·æ¨¡æ¿åç±»ä¸»é® |
| | | * @return é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @Override |
| | | public SvyLibTemplateCategory selectSvyLibTemplateCategoryById(Long id) { |
| | | return svyLibTemplateCategoryMapper.selectSvyLibTemplateCategoryById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±»å表 |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @Override |
| | | public List<SvyLibTemplateCategoryVO> selectSvyLibTemplateCategoryList(SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | List<SvyLibTemplateCategory> svyLibTemplateCategories = svyLibTemplateCategoryMapper.selectSvyLibTemplateCategoryList(svyLibTemplateCategory); |
| | | //å°pid为空çï¼è¿æ»¤æ |
| | | svyLibTemplateCategories = svyLibTemplateCategories.stream().filter(assort -> assort.getPid() == null).collect(Collectors.toList()); |
| | | |
| | | List<SvyLibTemplateCategoryVO> svyLibTemplateCategoryVOList = DtoConversionUtils.sourceToTarget(svyLibTemplateCategories, SvyLibTemplateCategoryVO.class); |
| | | //éåæ¥åºæ¥çæ°æ®ï¼éè¿ id=pid è·åä»ä»¬çåæ°æ® |
| | | for (SvyLibTemplateCategoryVO svyLibTemplateCategoryVO : svyLibTemplateCategoryVOList) { |
| | | if (svyLibTemplateCategoryVO.getPid() != null) { |
| | | continue; |
| | | } |
| | | SvyLibTemplateCategory svyLibTemplateCategory1 = new SvyLibTemplateCategory(); |
| | | svyLibTemplateCategory1.setPid(svyLibTemplateCategoryVO.getId()); |
| | | List<SvyLibTemplateCategory> svyLibTemplateCategoryList = svyLibTemplateCategoryMapper.selectSvyLibTemplateCategoryList(svyLibTemplateCategory1); |
| | | if (!Collections.isEmpty(svyLibTemplateCategoryList)) { |
| | | svyLibTemplateCategoryVO.setSvyLibTemplateCategoryList(svyLibTemplateCategoryList); |
| | | } |
| | | } |
| | | return svyLibTemplateCategoryVOList; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyLibTemplateCategory(SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | svyLibTemplateCategory.setCreateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateCategoryMapper.insertSvyLibTemplateCategory(svyLibTemplateCategory); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param svyLibTemplateCategory é®å·æ¨¡æ¿åç±» |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibTemplateCategory(SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | svyLibTemplateCategory.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateCategoryMapper.updateSvyLibTemplateCategory(svyLibTemplateCategory); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æ¨¡æ¿åç±» |
| | | * |
| | | * @param ids éè¦å é¤çé®å·æ¨¡æ¿åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateCategoryByIds(Long[] ids) { |
| | | Integer i = null; |
| | | for (Long id : ids) { |
| | | if (id < 0) { |
| | | log.info("é®å·æ¨¡æ¿åç±»çIDå°äº0ï¼ä¸ºé»è®¤åç±»ï¼ä¸è½å é¤,id:{}", id); |
| | | continue; |
| | | } |
| | | i = svyLibTemplateCategoryMapper.deleteSvyLibTemplateCategoryById(id); |
| | | SvyLibTemplateCategory svyLibTemplateCategory = new SvyLibTemplateCategory(); |
| | | svyLibTemplateCategory.setPid(id); |
| | | |
| | | //æ¾å°æªåé
ä¸é¢ |
| | | List<SvyLibTemplateCategory> svyLibTemplateCategoryList = svyLibTemplateCategoryMapper.selectSvyLibTemplateCategoryList(svyLibTemplateCategory); |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplateCategoryList)) { |
| | | for (SvyLibTemplateCategory svyLibTemplateCategory1 : svyLibTemplateCategoryList) { |
| | | svyLibTemplateCategory1.setPid(-1L); |
| | | svyLibTemplateCategoryMapper.updateSvyLibTemplateCategory(svyLibTemplateCategory1); |
| | | } |
| | | } |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | @Override |
| | | public int insertSvyLibTemplateCategoryTree(SvyLibTemplateCategoryVO svyLibTemplateCategoryVO) { |
| | | Integer i = null; |
| | | if (ObjectUtils.isEmpty(svyLibTemplateCategoryVO)) { |
| | | throw new BaseException("å
¥å为空,è¯·æ£æ¥å,åæ°å¢"); |
| | | } |
| | | |
| | | //è·ååºå·æå¤§å¼ |
| | | Integer seqMax = null; |
| | | try { |
| | | seqMax = svyLibTemplateCategoryMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax = 0; |
| | | } |
| | | SvyLibTemplateCategory svyLibTemplateCategory = DtoConversionUtils.sourceToTarget(svyLibTemplateCategoryVO, SvyLibTemplateCategory.class); |
| | | svyLibTemplateCategory.setSeqno(1); |
| | | if (seqMax != null) { |
| | | svyLibTemplateCategory.setSeqno(seqMax + 1); |
| | | } |
| | | |
| | | i = svyLibTemplateCategoryMapper.insertSvyLibTemplateCategory(svyLibTemplateCategory); |
| | | log.info("é®é¢è¯æ¯åç±»åºä¸çº§æ ç主é®:{}", svyLibTemplateCategory.getId()); |
| | | |
| | | //æ°å¢äºçº§æ |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplateCategoryVO.getSvyLibTemplateCategoryList())) { |
| | | for (SvyLibTemplateCategory svyLibTemplateCategory1 : svyLibTemplateCategoryVO.getSvyLibTemplateCategoryList()) { |
| | | Integer seqMax1 = null; |
| | | try { |
| | | seqMax1 = svyLibTemplateCategoryMapper.selectSeqMax(); |
| | | } catch (Exception e) { |
| | | seqMax1 = 0; |
| | | } |
| | | svyLibTemplateCategory1.setPid(svyLibTemplateCategory.getId()); |
| | | svyLibTemplateCategory1.setSeqno(1); |
| | | if (seqMax1 != null) { |
| | | svyLibTemplateCategory1.setSeqno(seqMax1 + 1); |
| | | } |
| | | svyLibTemplateCategoryMapper.insertSvyLibTemplateCategory(svyLibTemplateCategory1); |
| | | } |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.*; |
| | | 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; |
| | | |
| | | /** |
| | | * é®å·Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SvyLibTemplateServiceImpl implements ISvyLibTemplateService { |
| | | @Autowired |
| | | private SvyLibTemplateMapper svyLibTemplateMapper; |
| | | @Autowired |
| | | private Icd10AssociationMapper icd10AssociationMapper; |
| | | @Autowired |
| | | private SvyLibScriptMapper svyLibScriptMapper; |
| | | @Autowired |
| | | private SvyLibScriptOptionMapper svyLibTopicoptionMapper; |
| | | @Autowired |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å· |
| | | * |
| | | * @param svyid é®å·ä¸»é® |
| | | * @return é®å· |
| | | */ |
| | | @Override |
| | | public SvyLibTemplate selectSvyLibTemplateBySvyid(Long svyid) { |
| | | return svyLibTemplateMapper.selectSvyLibTemplateBySvyid(svyid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·å表 |
| | | * |
| | | * @param svyLibTemplateReq é®å· |
| | | * @return é®å· |
| | | */ |
| | | @Override |
| | | public List<SvyLibTemplate> selectSvyLibTemplateList(SvyLibTemplateReq svyLibTemplateReq) { |
| | | 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); |
| | | //è·åé¢ç®é项 |
| | | 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) { |
| | | //ä½çé¢ï¼ä¸éè¦é项 |
| | | continue a; |
| | | } else { |
| | | SvyLibScriptOption svyLibTopicoption = new SvyLibScriptOption(); |
| | | svyLibTopicoption.setTopicid(svyLibTopics.get(j).getSvyscriptId()); |
| | | List<SvyLibScriptOption> svyLibTopicoptions = svyLibTopicoptionMapper.selectSvyLibScriptOptionList(svyLibTopicoption); |
| | | //å°æ¥è¯¢åºçéé¡¹ç®æ¾å°é¢ç®ä¸ |
| | | svyLibTopics.get(j).setSvyLibScriptOptions(svyLibTopicoptions); |
| | | } |
| | | } |
| | | //å°é¢ç®æ¾å°é®å·åè¡¨ä¸ |
| | | svyLibTemplates.get(i).setSvyLibTopics(svyLibTopics); |
| | | |
| | | //è·åæ¯ä¸ªé®å·å¯¹åºçç§å®¤ |
| | | TempDetpRelevance tempDetpRelevance = new TempDetpRelevance(); |
| | | tempDetpRelevance.setTempid(svyLibTemplates.get(i).getSvyid()); |
| | | List<TempDetpRelevance> tempDetpRelevances = tempDetpRelevanceMapper.selectTempDetpRelevanceList(tempDetpRelevance); |
| | | svyLibTemplates.get(i).setTempDetpRelevances(CollectionUtils.isNotEmpty(tempDetpRelevances) ? tempDetpRelevances : new ArrayList<>()); |
| | | } |
| | | |
| | | //å
å°ç¸åçidçicdname,æ´çå°ä¸å |
| | | List<SvyLibTemplate> libTemplates = svyLibTemplates.stream().collect(Collectors.groupingBy(SvyLibTemplate::getSvyid, Collectors.mapping(SvyLibTemplate::getIcdname, Collectors.joining(", ")))).entrySet().stream().map(entry -> new SvyLibTemplate(entry.getKey(), entry.getValue())).collect(Collectors.toList()); |
| | | //临æ¶åéï¼ç¨æ¥ä¿åç¾ç
åç§° |
| | | String icdname = null; |
| | | for (int i = 0; i < libTemplates.size(); i++) { |
| | | for (int j = 0; j < svyLibTemplates.size(); j++) { |
| | | if (ObjectUtils.isNotEmpty(libTemplates.get(i).getSvyid()) && libTemplates.get(i).getSvyid() == svyLibTemplates.get(j).getSvyid()) { |
| | | icdname = libTemplates.get(i).getIcdname(); |
| | | // å°åæ°æ®æ·è´å°æ´çç好çå¯¹è±¡ä¸ |
| | | BeanUtils.copyProperties(svyLibTemplates.get(j), libTemplates.get(i)); |
| | | //åå°æ´ç好çâç¾ç
åç§°âæ¿æ¢ |
| | | libTemplates.get(i).setIcdname(icdname); |
| | | } |
| | | } |
| | | } |
| | | 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 |
| | | */ |
| | | @Override |
| | | public Integer saveOrUpdateTemplate(SvyLibTemplate svyLibTemplate) { |
| | | Integer i = null; |
| | | if (svyLibTemplate.getIsoperation() != null && svyLibTemplate.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTemplate.setCreateTime(DateUtils.getNowDate()); |
| | | i = svyLibTemplateMapper.insertSvyLibTemplate(svyLibTemplate); |
| | | } else if (svyLibTemplate.getIsoperation() != null && svyLibTemplate.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTemplate.setUpdateTime(DateUtils.getNowDate()); |
| | | i = svyLibTemplateMapper.updateSvyLibTemplate(svyLibTemplate); |
| | | } |
| | | |
| | | //å¤çé¢ç® |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplate.getSvyLibTopics())) { |
| | | for (SvyLibScript svyLibTopic : svyLibTemplate.getSvyLibTopics()) { |
| | | //对é¢ç®è¿è¡å¤ç |
| | | if (svyLibTopic.getIsoperation() != null && svyLibTopic.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTopic.setSvyid(svyLibTemplate.getSvyid()); |
| | | //é¢ç®çé项ç®ï¼ç´æ¥ç¨svy_topicoption表ï¼ç¨svyTopicidå»å
³è |
| | | svyLibScriptMapper.insertSvyLibScript(svyLibTopic); |
| | | } else if (svyLibTopic.getIsoperation() != null && svyLibTopic.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTopic.setSvyid(svyLibTemplate.getSvyid()); |
| | | svyLibScriptMapper.updateSvyLibScript(svyLibTopic); |
| | | } |
| | | |
| | | //对é¢ç®é项è¿è¡å¤ç |
| | | if (CollectionUtils.isNotEmpty(svyLibTopic.getSvyLibScriptOptions())) { |
| | | for (SvyLibScriptOption svyLibTopicoption : svyLibTopic.getSvyLibScriptOptions()) { |
| | | if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getId()); |
| | | svyLibTopicoptionMapper.insertSvyLibScriptOption(svyLibTopicoption); |
| | | } else if (svyLibTopicoption.getIsoperation() != null && svyLibTopicoption.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibTopicoption.setTopicid(svyLibTopic.getId()); |
| | | svyLibTopicoptionMapper.updateSvyLibScriptOption(svyLibTopicoption); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplate.getTempDetpRelevances())) { |
| | | for (TempDetpRelevance tempDetpRelevance : svyLibTemplate.getTempDetpRelevances()) { |
| | | if (tempDetpRelevance.getId() == null) { |
| | | //æ°å¢ |
| | | tempDetpRelevance.setTempid(svyLibTemplate.getSvyid()); |
| | | tempDetpRelevance.setType(1L); |
| | | tempDetpRelevanceMapper.insertTempDetpRelevance(tempDetpRelevance); |
| | | } else { |
| | | tempDetpRelevanceMapper.updateTempDetpRelevance(tempDetpRelevance); |
| | | } |
| | | } |
| | | |
| | | } |
| | | return i; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å· |
| | | * |
| | | * @param svyLibTemplate é®å· |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibTemplate(SvyLibTemplate svyLibTemplate) { |
| | | svyLibTemplate.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateMapper.updateSvyLibTemplate(svyLibTemplate); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å· |
| | | * |
| | | * @param svyids éè¦å é¤çé®å·ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateBySvyids(Long[] svyids) { |
| | | return svyLibTemplateMapper.deleteSvyLibTemplateBySvyids(svyids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·ä¿¡æ¯ |
| | | * |
| | | * @param svyid é®å·ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateBySvyid(Long svyid) { |
| | | return svyLibTemplateMapper.deleteSvyLibTemplateBySvyid(svyid); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTaskScript; |
| | | import com.smartor.mapper.SvyTaskScriptMapper; |
| | | import com.smartor.service.ISvyTaskScriptService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é¢ç®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Service |
| | | public class SvyTaskScriptServiceImpl implements ISvyTaskScriptService |
| | | { |
| | | @Autowired |
| | | private SvyTaskScriptMapper svyTaskScriptMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param id ä»»å¡é®å·é¢ç®ä¸»é® |
| | | * @return ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @Override |
| | | public SvyTaskScript selectSvyTaskScriptById(Long id) |
| | | { |
| | | return svyTaskScriptMapper.selectSvyTaskScriptById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç®å表 |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @Override |
| | | public List<SvyTaskScript> selectSvyTaskScriptList(SvyTaskScript svyTaskScript) |
| | | { |
| | | return svyTaskScriptMapper.selectSvyTaskScriptList(svyTaskScript); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTaskScript(SvyTaskScript svyTaskScript) |
| | | { |
| | | svyTaskScript.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskScriptMapper.insertSvyTaskScript(svyTaskScript); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param svyTaskScript ä»»å¡é®å·é¢ç® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTaskScript(SvyTaskScript svyTaskScript) |
| | | { |
| | | svyTaskScript.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskScriptMapper.updateSvyTaskScript(svyTaskScript); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é¢ç® |
| | | * |
| | | * @param ids éè¦å é¤çä»»å¡é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskScriptByIds(Long[] ids) |
| | | { |
| | | return svyTaskScriptMapper.deleteSvyTaskScriptByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é¢ç®ä¿¡æ¯ |
| | | * |
| | | * @param id ä»»å¡é®å·é¢ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskScriptById(Long id) |
| | | { |
| | | return svyTaskScriptMapper.deleteSvyTaskScriptById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTaskScriptoption; |
| | | import com.smartor.mapper.SvyTaskScriptoptionMapper; |
| | | import com.smartor.service.ISvyTaskScriptoptionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·é®é¢é项Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Service |
| | | public class SvyTaskScriptoptionServiceImpl implements ISvyTaskScriptoptionService |
| | | { |
| | | @Autowired |
| | | private SvyTaskScriptoptionMapper svyTaskScriptoptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @Override |
| | | public SvyTaskScriptoption selectSvyTaskScriptoptionById(Long id) |
| | | { |
| | | return svyTaskScriptoptionMapper.selectSvyTaskScriptoptionById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @Override |
| | | public List<SvyTaskScriptoption> selectSvyTaskScriptoptionList(SvyTaskScriptoption svyTaskScriptoption) |
| | | { |
| | | return svyTaskScriptoptionMapper.selectSvyTaskScriptoptionList(svyTaskScriptoption); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTaskScriptoption(SvyTaskScriptoption svyTaskScriptoption) |
| | | { |
| | | svyTaskScriptoption.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskScriptoptionMapper.insertSvyTaskScriptoption(svyTaskScriptoption); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param svyTaskScriptoption ä»»å¡é®å·é®é¢é项 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTaskScriptoption(SvyTaskScriptoption svyTaskScriptoption) |
| | | { |
| | | svyTaskScriptoption.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskScriptoptionMapper.updateSvyTaskScriptoption(svyTaskScriptoption); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·é®é¢é项 |
| | | * |
| | | * @param ids éè¦å é¤çä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskScriptoptionByIds(Long[] ids) |
| | | { |
| | | return svyTaskScriptoptionMapper.deleteSvyTaskScriptoptionByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢éé¡¹ä¿¡æ¯ |
| | | * |
| | | * @param id ä»»å¡é®å·é®é¢éé¡¹ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskScriptoptionById(Long id) |
| | | { |
| | | return svyTaskScriptoptionMapper.deleteSvyTaskScriptoptionById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTask; |
| | | import com.smartor.mapper.SvyTaskMapper; |
| | | import com.smartor.service.ISvyTaskService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 综åé®å·ä»»å¡ï¼ä»»å¡ï¼Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Service |
| | | public class SvyTaskServiceImpl implements ISvyTaskService |
| | | { |
| | | @Autowired |
| | | private SvyTaskMapper svyTaskMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param taskid 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¸»é® |
| | | * @return 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @Override |
| | | public SvyTask selectSvyTaskByTaskid(Long taskid) |
| | | { |
| | | return svyTaskMapper.selectSvyTaskByTaskid(taskid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @Override |
| | | public List<SvyTask> selectSvyTaskList(SvyTask svyTask) |
| | | { |
| | | return svyTaskMapper.selectSvyTaskList(svyTask); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTask(SvyTask svyTask) |
| | | { |
| | | svyTask.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskMapper.insertSvyTask(svyTask); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param svyTask 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTask(SvyTask svyTask) |
| | | { |
| | | svyTask.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskMapper.updateSvyTask(svyTask); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | * |
| | | * @param taskids éè¦å é¤ç综åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskByTaskids(Long[] taskids) |
| | | { |
| | | return svyTaskMapper.deleteSvyTaskByTaskids(taskids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¿¡æ¯ |
| | | * |
| | | * @param taskid 综åé®å·ä»»å¡ï¼ä»»å¡ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskByTaskid(Long taskid) |
| | | { |
| | | return svyTaskMapper.deleteSvyTaskByTaskid(taskid); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTaskSingle; |
| | | import com.smartor.mapper.SvyTaskSingleMapper; |
| | | import com.smartor.service.ISvyTaskSingleService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é®å·ï¼Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Service |
| | | public class SvyTaskSingleServiceImpl implements ISvyTaskSingleService |
| | | { |
| | | @Autowired |
| | | private SvyTaskSingleMapper svyTaskSingleMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param id åä¸ä»»å¡ï¼é®å·ï¼ä¸»é® |
| | | * @return åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @Override |
| | | public SvyTaskSingle selectSvyTaskSingleById(Long id) |
| | | { |
| | | return svyTaskSingleMapper.selectSvyTaskSingleById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢åä¸ä»»å¡ï¼é®å·ï¼å表 |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return åä¸ä»»å¡ï¼é®å·ï¼ |
| | | */ |
| | | @Override |
| | | public List<SvyTaskSingle> selectSvyTaskSingleList(SvyTaskSingle svyTaskSingle) |
| | | { |
| | | return svyTaskSingleMapper.selectSvyTaskSingleList(svyTaskSingle); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTaskSingle(SvyTaskSingle svyTaskSingle) |
| | | { |
| | | svyTaskSingle.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskSingleMapper.insertSvyTaskSingle(svyTaskSingle); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param svyTaskSingle åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTaskSingle(SvyTaskSingle svyTaskSingle) |
| | | { |
| | | svyTaskSingle.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskSingleMapper.updateSvyTaskSingle(svyTaskSingle); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤åä¸ä»»å¡ï¼é®å·ï¼ |
| | | * |
| | | * @param ids éè¦å é¤çåä¸ä»»å¡ï¼é®å·ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskSingleByIds(Long[] ids) |
| | | { |
| | | return svyTaskSingleMapper.deleteSvyTaskSingleByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤åä¸ä»»å¡ï¼é®å·ï¼ä¿¡æ¯ |
| | | * |
| | | * @param id åä¸ä»»å¡ï¼é®å·ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskSingleById(Long id) |
| | | { |
| | | return svyTaskSingleMapper.deleteSvyTaskSingleById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyTaskTemplate; |
| | | import com.smartor.mapper.SvyTaskTemplateMapper; |
| | | import com.smartor.service.ISvyTaskTemplateService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»»å¡é®å·æ¨¡æ¿Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-06-12 |
| | | */ |
| | | @Service |
| | | public class SvyTaskTemplateServiceImpl implements ISvyTaskTemplateService |
| | | { |
| | | @Autowired |
| | | private SvyTaskTemplateMapper svyTaskTemplateMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyid ä»»å¡é®å·æ¨¡æ¿ä¸»é® |
| | | * @return ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @Override |
| | | public SvyTaskTemplate selectSvyTaskTemplateBySvyid(Long svyid) |
| | | { |
| | | return svyTaskTemplateMapper.selectSvyTaskTemplateBySvyid(svyid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿å表 |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @Override |
| | | public List<SvyTaskTemplate> selectSvyTaskTemplateList(SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | return svyTaskTemplateMapper.selectSvyTaskTemplateList(svyTaskTemplate); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | svyTaskTemplate.setCreateTime(DateUtils.getNowDate()); |
| | | return svyTaskTemplateMapper.insertSvyTaskTemplate(svyTaskTemplate); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyTaskTemplate ä»»å¡é®å·æ¨¡æ¿ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyTaskTemplate(SvyTaskTemplate svyTaskTemplate) |
| | | { |
| | | svyTaskTemplate.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyTaskTemplateMapper.updateSvyTaskTemplate(svyTaskTemplate); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ä»»å¡é®å·æ¨¡æ¿ |
| | | * |
| | | * @param svyids éè¦å é¤çä»»å¡é®å·æ¨¡æ¿ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskTemplateBySvyids(Long[] svyids) |
| | | { |
| | | return svyTaskTemplateMapper.deleteSvyTaskTemplateBySvyids(svyids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»»å¡é®å·æ¨¡æ¿ä¿¡æ¯ |
| | | * |
| | | * @param svyid ä»»å¡é®å·æ¨¡æ¿ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyTaskTemplateBySvyid(Long svyid) |
| | | { |
| | | return svyTaskTemplateMapper.deleteSvyTaskTemplateBySvyid(svyid); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | public List<SvyLibTopicRes> importLitTopic(SysUser user, MultipartFile multipartFile) { |
| | | List<SvyLibTopicRes> svyLibTopicErrors = new ArrayList<>(); |
| | | public List<SvyLibScriptRes> importLitTopic(SysUser user, MultipartFile multipartFile) { |
| | | List<SvyLibScriptRes> svyLibTopicErrors = new ArrayList<>(); |
| | | |
| | | try { |
| | | Workbook workbook = new XSSFWorkbook(multipartFile.getInputStream()); |
| | |
| | | |
| | | |
| | | for (int i = sheet.getFirstRowNum() + 1; i < sheet.getLastRowNum(); i++) { |
| | | SvyLibTopicRes svyLibTopicRes = new SvyLibTopicRes(); |
| | | SvyLibScriptRes svyLibTopicRes = new SvyLibScriptRes(); |
| | | |
| | | Row row = sheet.getRow(i); |
| | | //妿è¡ä¸ºç©ºï¼è¿è¡ä¸ä¸æ¬¡å¾ªç¯ |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, List<SvyLibTopicAndOptionRes>> showTopic(SvyTopicReq svyTopicReq) { |
| | | public Map<String, List<SvyLibTopicAndOptionRes>> showTopic(SvyTopicReq svyTopicReq) { |
| | | List<SvyLibTopicAndOptionRes> svyLibTopicAndOptionRes = svyTopicMapper.showTopic(svyTopicReq); |
| | | Map<String, List<SvyLibTopicAndOptionRes>> groupByAge = svyLibTopicAndOptionRes.stream().collect(Collectors.groupingBy(SvyLibTopicAndOptionRes::getTopic)); |
| | | |
| | |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="optiondesc" column="optiondesc"/> |
| | | <result property="isabnormal" column="isabnormal"/> |
| | | <result property="warnup" column="warnup"/> |
| | | <result property="warndown" column="warndown"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptTargetVo"> |
| | | select id, |
| | | scriptid, |
| | | optiondesc, |
| | | isabnormal, |
| | | warnup, |
| | | warndown, |
| | | picture_path, |
| | | targetID, |
| | | targetType, |
| | | categoryName, |
| | |
| | | <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="isabnormal != null and optiondesc != ''">and optiondesc = #{optiondesc}</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="picturePath != null and picturePath != ''">and picture_path = #{picturePath}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="optiondesc != null">optiondesc,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="warnup != null">warnup,</if> |
| | | <if test="warndown != null">warndown,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptid != null ">#{scriptid},</if> |
| | |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="optiondesc != null">#{optiondesc},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="warnup != null">#{warnup},</if> |
| | | <if test="warndown != null">#{warndown},</if> |
| | | <if test="picturePath != null">#{picturePath},</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="optiondesc != null">optiondesc = #{optiondesc},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="warnup != null">warnup = #{warnup},</if> |
| | | <if test="warndown != null">warndown = #{warndown},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | </mapper> |
| | | </mapper> |
ÎļþÃû´Ó smartor/src/main/resources/mapper/smartor/SvyLibTopicMapper.xml ÐÞ¸Ä |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTopicMapper"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibScriptMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTopic" id="SvyLibTopicResult"> |
| | | <result property="topicid" column="topicid"/> |
| | | <resultMap type="com.smartor.domain.SvyLibScript" id="SvyLibScriptResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="oldid" column="oldid"/> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="topictype" column="topictype"/> |
| | | <result property="topiccode" column="topiccode"/> |
| | | <result property="topic" column="topic"/> |
| | | <result property="scripttype" column="script_type"/> |
| | | <result property="scriptcode" column="script_code"/> |
| | | <result property="script" column="script"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="ismandatory" column="ismandatory"/> |
| | | <result property="ishide" column="ishide"/> |
| | |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="topicContent" column="topic_content"/> |
| | | <result property="scriptContent" column="script_content"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="isavailable" column="isavailable"/> |
| | | <result property="language" column="language"/> |
| | |
| | | <result property="reply" column="reply"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTopicVo"> |
| | | select topicid, |
| | | <sql id="selectSvyLibScriptVo"> |
| | | select id, |
| | | oldid, |
| | | value_type, |
| | | reply, |
| | | svyid, |
| | | topictype, |
| | | topiccode, |
| | | topic, |
| | | script_type, |
| | | script_code, |
| | | script, |
| | | sort, |
| | | ismandatory, |
| | | ishide, |
| | |
| | | upload_time, |
| | | tag, |
| | | categoryid, |
| | | topic_content, |
| | | script_content, |
| | | suitway, |
| | | isavailable, |
| | | otherdata, |
| | | language, |
| | | svy_topicid as svyTopicId |
| | | from svy_lib_topic |
| | | svy_scriptid as svyscriptId |
| | | from svy_lib_script |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTopicList" parameterType="com.smartor.domain.SvyLibTopic" resultMap="SvyLibTopicResult"> |
| | | <include refid="selectSvyLibTopicVo"/> |
| | | <select id="selectSvyLibScriptList" parameterType="com.smartor.domain.SvyLibScript" resultMap="SvyLibScriptResult"> |
| | | <include refid="selectSvyLibScriptVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="oldid != null ">and oldid = #{oldid}</if> |
| | | <if test="topictype != null and topictype != ''">and topictype = #{topictype}</if> |
| | | <if test="scripttype != null and scripttype != ''">and script_type = #{scripttype}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="topic != null and topic != ''">and topic like concat('%', #{topic}, '%')</if> |
| | | <if test="script != null and script != ''">and script like concat('%', #{script}, '%')</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="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> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTopicByTopicid" parameterType="Long" resultMap="SvyLibTopicResult"> |
| | | <include refid="selectSvyLibTopicVo"/> |
| | | where topicid = #{topicid} |
| | | <select id="selectSvyLibScriptByScriptid" parameterType="Long" resultMap="SvyLibScriptResult"> |
| | | <include refid="selectSvyLibScriptVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTopic" parameterType="com.smartor.domain.SvyLibTopic" useGeneratedKeys="true" |
| | | keyProperty="topicid"> |
| | | insert into svy_lib_topic |
| | | <insert id="insertSvyLibScript" parameterType="com.smartor.domain.SvyLibScript" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into svy_lib_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">oldid,</if> |
| | | <if test="svyid != null">svyid,</if> |
| | | <if test="topictype != null">topictype,</if> |
| | | <if test="topiccode != null">topiccode,</if> |
| | | <if test="topic != null">topic,</if> |
| | | <if test="scripttype != null">script_type,</if> |
| | | <if test="scriptcode != null">script_code,</if> |
| | | <if test="script != null">script,</if> |
| | | <if test="sort != null">sort,</if> |
| | | <if test="ismandatory != null">ismandatory,</if> |
| | | <if test="ishide != null">ishide,</if> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="svyTopicId != null">svy_topicid,</if> |
| | | <if test="svyscriptId != null">svy_scriptid,</if> |
| | | <if test="categoryid != null">categoryid,</if> |
| | | <if test="topicContent != null and topicContent != ''">topic_content,</if> |
| | | <if test="scriptContent != null and scriptContent != ''">script_content,</if> |
| | | <if test="suitway != null and suitway != ''">suitway,</if> |
| | | <if test="isavailable != null and isavailable != ''">isavailable,</if> |
| | | <if test="language != null and language!=''">language,</if> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | | <if test="svyid != null">#{svyid},</if> |
| | | <if test="topictype != null">#{topictype},</if> |
| | | <if test="topiccode != null">#{topiccode},</if> |
| | | <if test="topic != null">#{topic},</if> |
| | | <if test="scripttype != null">#{scripttype},</if> |
| | | <if test="scriptcode != null">#{scriptcode},</if> |
| | | <if test="script != null">#{script},</if> |
| | | <if test="sort != null">#{sort},</if> |
| | | <if test="ismandatory != null">#{ismandatory},</if> |
| | | <if test="ishide != null">#{ishide},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="svyTopicId != null">#{svyTopicId},</if> |
| | | <if test="svyscriptId != null">#{svyscriptId},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | <if test="topicContent != null and topicContent != ''">#{topicContent},</if> |
| | | <if test="scriptContent != null and scriptContent != ''">#{scriptContent},</if> |
| | | <if test="suitway != null and suitway != ''">#{suitway},</if> |
| | | <if test="isavailable != null and isavailable != ''">#{isavailable},</if> |
| | | <if test="language != null and language!=''">#{language},</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTopic" parameterType="com.smartor.domain.SvyLibTopic"> |
| | | update svy_lib_topic |
| | | <update id="updateSvyLibScript" parameterType="com.smartor.domain.SvyLibScript"> |
| | | update svy_lib_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="oldid != null">oldid = #{oldid},</if> |
| | | <if test="svyid != null">svyid = #{svyid},</if> |
| | | <if test="topictype != null">topictype = #{topictype},</if> |
| | | <if test="topiccode != null">topiccode = #{topiccode},</if> |
| | | <if test="topic != null">topic = #{topic},</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="sort != null">sort = #{sort},</if> |
| | | <if test="ismandatory != null">ismandatory = #{ismandatory},</if> |
| | | <if test="ishide != null">ishide = #{ishide},</if> |
| | |
| | | <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="scriptContent != null">script_content = #{scriptContent},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="isavailable != null">isavailable = #{isavailable},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | |
| | | <if test="valueType != null and valueType!=''">value_type = #{valueType},</if> |
| | | <if test="reply != null and reply!=''">therdata =#{therdata},</if> |
| | | </trim> |
| | | where topicid = #{topicid} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteSvyLibTopicByTopicid" parameterType="Long"> |
| | | update svy_lib_topic |
| | | <update id="deleteSvyLibScriptByScriptid" parameterType="Long"> |
| | | update svy_lib_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag =1,</if> |
| | | </trim> |
| | | where topicid = #{topicid} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicByTopicids" parameterType="String"> |
| | | delete from svy_lib_topic where topicid in |
| | | <foreach item="topicid" collection="array" open="(" separator="," close=")"> |
| | | #{topicid} |
| | | <delete id="deleteSvyLibScriptByScriptids" parameterType="String"> |
| | | delete from svy_lib_script where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
ÎļþÃû´Ó smartor/src/main/resources/mapper/smartor/SvyLibTopicoptionMapper.xml ÐÞ¸Ä |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTopicoptionMapper"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibScriptOptionMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTopicoption" id="SvyLibTopicoptionResult"> |
| | | <resultMap type="com.smartor.domain.SvyLibScriptOption" id="SvyLibScriptOptionResult"> |
| | | <result property="optionid" column="optionid"/> |
| | | <result property="topicid" column="topicid"/> |
| | | <result property="svyid" column="svyid"/> |
| | |
| | | <result property="uploadTime" column="upload_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTopicoptionVo"> |
| | | <sql id="selectSvyLibScriptOptionVo"> |
| | | select optionid, |
| | | topicid, |
| | | svyid, |
| | |
| | | update_time, |
| | | isupload, |
| | | upload_time |
| | | from svy_lib_topicoption |
| | | from svy_lib_ScriptOption |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTopicoptionList" parameterType="com.smartor.domain.SvyLibTopicoption" |
| | | resultMap="SvyLibTopicoptionResult"> |
| | | <include refid="selectSvyLibTopicoptionVo"/> |
| | | <select id="selectSvyLibScriptOptionList" parameterType="com.smartor.domain.SvyLibScriptOption" |
| | | resultMap="SvyLibScriptOptionResult"> |
| | | <include refid="selectSvyLibScriptOptionVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTopicoptionByOptionid" parameterType="Long" resultMap="SvyLibTopicoptionResult"> |
| | | <include refid="selectSvyLibTopicoptionVo"/> |
| | | <select id="selectSvyLibScriptOptionByOptionid" parameterType="Long" resultMap="SvyLibScriptOptionResult"> |
| | | <include refid="selectSvyLibScriptOptionVo"/> |
| | | where optionid = #{optionid} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTopicoption" parameterType="com.smartor.domain.SvyLibTopicoption" useGeneratedKeys="true" |
| | | <insert id="insertSvyLibScriptOption" parameterType="com.smartor.domain.SvyLibScriptOption" useGeneratedKeys="true" |
| | | keyProperty="optionid"> |
| | | insert into svy_lib_topicoption |
| | | insert into svy_lib_ScriptOption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="topicid != null">topicid,</if> |
| | | <if test="svyid != null">svyid,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTopicoption" parameterType="com.smartor.domain.SvyLibTopicoption"> |
| | | update svy_lib_topicoption |
| | | <update id="updateSvyLibScriptOption" parameterType="com.smartor.domain.SvyLibScriptOption"> |
| | | update svy_lib_ScriptOption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="topicid != null">topicid = #{topicid},</if> |
| | | <if test="svyid != null">svyid = #{svyid},</if> |
| | |
| | | where optionid = #{optionid} |
| | | </update> |
| | | |
| | | <update id="deleteSvyLibTopicoptionByOptionid" parameterType="Long"> |
| | | update svy_lib_topicoption |
| | | <update id="deleteSvyLibScriptOptionByOptionid" parameterType="Long"> |
| | | update svy_lib_ScriptOption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | </trim> |
| | | where optionid = #{optionid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicoptionByOptionids" parameterType="String"> |
| | | delete from svy_lib_topicoption where optionid in |
| | | <delete id="deleteSvyLibScriptOptionByOptionids" parameterType="String"> |
| | | delete from svy_lib_ScriptOption where optionid in |
| | | <foreach item="optionid" collection="array" open="(" separator="," close=")"> |
| | | #{optionid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | </mapper> |
| | | </mapper> |
ÎļþÃû´Ó smartor/src/main/resources/mapper/smartor/SvyLibTitleCategoryMapper.xml ÐÞ¸Ä |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTitleCategoryMapper"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTemplateCategoryMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTitleCategory" id="SvyLibTitleCategoryResult"> |
| | | <resultMap type="com.smartor.domain.SvyLibTemplateCategory" id="SvyLibTemplateCategoryResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="name" column="name"/> |
| | | <result property="pid" column="pid"/> |
| | |
| | | <result property="seqno" column="seqno"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTitleCategoryVo"> |
| | | <sql id="selectSvyLibTemplateCategoryVo"> |
| | | select id, |
| | | name, |
| | | pid, |
| | |
| | | update_time, |
| | | orgid, |
| | | seqno |
| | | from svy_lib_title_category |
| | | from svy_lib_template_category |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTitleCategoryList" parameterType="com.smartor.domain.SvyLibTitleCategory" |
| | | resultMap="SvyLibTitleCategoryResult"> |
| | | <include refid="selectSvyLibTitleCategoryVo"/> |
| | | <select id="selectSvyLibTemplateCategoryList" parameterType="com.smartor.domain.SvyLibTemplateCategory" |
| | | resultMap="SvyLibTemplateCategoryResult"> |
| | | <include refid="selectSvyLibTemplateCategoryVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTitleCategoryById" parameterType="Long" resultMap="SvyLibTitleCategoryResult"> |
| | | <include refid="selectSvyLibTitleCategoryVo"/> |
| | | <select id="selectSvyLibTemplateCategoryById" parameterType="Long" resultMap="SvyLibTemplateCategoryResult"> |
| | | <include refid="selectSvyLibTemplateCategoryVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTitleCategory" parameterType="com.smartor.domain.SvyLibTitleCategory" |
| | | <insert id="insertSvyLibTemplateCategory" parameterType="com.smartor.domain.SvyLibTemplateCategory" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_lib_title_category |
| | | insert into svy_lib_template_category |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="name != null">name,</if> |
| | | <if test="pid != null">pid,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTitleCategory" parameterType="com.smartor.domain.SvyLibTitleCategory"> |
| | | update svy_lib_title_category |
| | | <update id="updateSvyLibTemplateCategory" parameterType="com.smartor.domain.SvyLibTemplateCategory"> |
| | | update svy_lib_template_category |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteSvyLibTitleCategoryById" parameterType="Long"> |
| | | update svy_lib_title_category |
| | | <update id="deleteSvyLibTemplateCategoryById" parameterType="Long"> |
| | | update svy_lib_template_category |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTitleCategoryByIds" parameterType="String"> |
| | | delete from svy_lib_title_category where id in |
| | | <delete id="deleteSvyLibTemplateCategoryByIds" parameterType="String"> |
| | | delete from svy_lib_template_category where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | |
| | | from ivr_liba_extemplate_category |
| | | |
| | | </select> |
| | | </mapper> |
| | | </mapper> |
ÎļþÃû´Ó smartor/src/main/resources/mapper/smartor/SvyLibTitleMapper.xml ÐÞ¸Ä |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTitleMapper"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTemplateMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTitle" id="SvyLibTitleResult"> |
| | | <resultMap type="com.smartor.domain.SvyLibTemplate" id="SvyLibTemplateResult"> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="svycode" column="svycode"/> |
| | |
| | | <result property="reply" column="reply"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTitleVo"> |
| | | <sql id="selectSvyLibTemplateVo"> |
| | | select svyid, |
| | | categoryid, |
| | | value_type, |
| | |
| | | campus, |
| | | suitway, |
| | | otherdata |
| | | from svy_lib_title |
| | | from svy_lib_template |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTitleList" parameterType="com.smartor.domain.SvyLibTitleReq" resultMap="SvyLibTitleResult"> |
| | | <select id="selectSvyLibTemplateList" parameterType="com.smartor.domain.SvyLibTemplateReq" resultMap="SvyLibTemplateResult"> |
| | | select a.svyid, a.categoryid, a.svycode, a.svyname, a.description, a.introduce,a.submitprompt, a.templateid, |
| | | a.version,a.centerlibrarycode, a.centerlibraryid, a.islocal, a.isenable, a.orgid, a.del_flag, a.create_by, |
| | | a.create_time, a.update_by, a.update_time, a.isupload, |
| | | a.upload_time,a.dept_names,a.value_type,a.label_info,a.reply, |
| | | a.campus,a.suitway,a.otherdata |
| | | ,c.icdname from svy_lib_title |
| | | ,c.icdname from svy_lib_template |
| | | a,icd10_association b,icd10 c |
| | | <where> |
| | | a.del_flag=0 and |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTitleBySvyid" parameterType="Long" resultMap="SvyLibTitleResult"> |
| | | <include refid="selectSvyLibTitleVo"/> |
| | | <select id="selectSvyLibTemplateBySvyid" parameterType="Long" resultMap="SvyLibTemplateResult"> |
| | | <include refid="selectSvyLibTemplateVo"/> |
| | | where svyid = #{svyid} and del_flag=0 |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTitle" parameterType="com.smartor.domain.SvyLibTitle" useGeneratedKeys="true" |
| | | <insert id="insertSvyLibTemplate" parameterType="com.smartor.domain.SvyLibTemplate" useGeneratedKeys="true" |
| | | keyProperty="svyid"> |
| | | insert into svy_lib_title |
| | | insert into svy_lib_template |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="categoryid != null">categoryid,</if> |
| | | <if test="svycode != null">svycode,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTitle" parameterType="com.smartor.domain.SvyLibTitle"> |
| | | update svy_lib_title |
| | | <update id="updateSvyLibTemplate" parameterType="com.smartor.domain.SvyLibTemplate"> |
| | | update svy_lib_template |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="categoryid != null">categoryid = #{categoryid},</if> |
| | | <if test="svycode != null">svycode = #{svycode},</if> |
| | |
| | | where svyid = #{svyid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTitleBySvyid" parameterType="Long"> |
| | | <delete id="deleteSvyLibTemplateBySvyid" parameterType="Long"> |
| | | delete |
| | | from svy_lib_title |
| | | from svy_lib_template |
| | | where svyid = #{svyid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyLibTitleBySvyids" parameterType="String"> |
| | | delete from svy_lib_title where svyid in |
| | | <delete id="deleteSvyLibTemplateBySvyids" parameterType="String"> |
| | | delete from svy_lib_template where svyid in |
| | | <foreach item="svyid" collection="array" open="(" separator="," close=")"> |
| | | #{svyid} |
| | | </foreach> |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTopicCategoryMapper"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibScriptCategoryMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTopicCategory" id="SvyLibTopicCategoryResult"> |
| | | <resultMap type="com.smartor.domain.SvyLibScriptCategory" id="SvyLibScriptCategoryResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="name" column="name"/> |
| | | <result property="topicid" column="topicid"/> |
| | |
| | | <result property="seqno" column="seqno"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTopicCategoryVo"> |
| | | <sql id="selectSvyLibScriptCategoryVo"> |
| | | select id, |
| | | name, |
| | | topicid, |
| | |
| | | update_time, |
| | | seqno, |
| | | orgid |
| | | from svy_lib_topic_category |
| | | from svy_lib_script_category |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTopicCategoryList" parameterType="com.smartor.domain.SvyLibTopicCategory" |
| | | resultMap="SvyLibTopicCategoryResult"> |
| | | <include refid="selectSvyLibTopicCategoryVo"/> |
| | | <select id="selectSvyLibScriptCategoryList" parameterType="com.smartor.domain.SvyLibScriptCategory" |
| | | resultMap="SvyLibScriptCategoryResult"> |
| | | <include refid="selectSvyLibScriptCategoryVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | |
| | | order by seqno asc |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTopicCategoryById" parameterType="Long" resultMap="SvyLibTopicCategoryResult"> |
| | | <include refid="selectSvyLibTopicCategoryVo"/> |
| | | <select id="selectSvyLibScriptCategoryById" parameterType="Long" resultMap="SvyLibScriptCategoryResult"> |
| | | <include refid="selectSvyLibScriptCategoryVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTopicCategory" parameterType="com.smartor.domain.SvyLibTopicCategory" |
| | | <insert id="insertSvyLibScriptCategory" parameterType="com.smartor.domain.SvyLibScriptCategory" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_lib_topic_category |
| | | insert into svy_lib_script_category |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="name != null">name,</if> |
| | | <if test="seqno != null">seqno,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTopicCategory" parameterType="com.smartor.domain.SvyLibTopicCategory"> |
| | | update svy_lib_topic_category |
| | | <update id="updateSvyLibScriptCategory" parameterType="com.smartor.domain.SvyLibScriptCategory"> |
| | | update svy_lib_script_category |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="seqno != null">seqno = #{seqno},</if> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicCategoryByIds" parameterType="String"> |
| | | <delete id="deleteSvyLibScriptCategoryByIds" parameterType="String"> |
| | | delete |
| | | from svy_lib_topic_category |
| | | from svy_lib_script_category |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <update id="deleteSvyLibTopicCategoryById" parameterType="Long"> |
| | | update svy_lib_topic_category |
| | | <update id="deleteSvyLibScriptCategoryById" parameterType="Long"> |
| | | update svy_lib_script_category |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = ,</if> |
| | | </trim> |
| | |
| | | from iivr_liba_template_assort |
| | | |
| | | </select> |
| | | </mapper> |
| | | </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.SvyTaskMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyTask" id="SvyTaskResult"> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="svrtaskid" column="svrtaskid" /> |
| | | <result property="taskname" column="taskname" /> |
| | | <result property="templateid" column="templateid" /> |
| | | <result property="templatename" column="templatename" /> |
| | | <result property="labelinfo" column="labelinfo" /> |
| | | <result property="state" column="state" /> |
| | | <result property="count" column="count" /> |
| | | <result property="executed" column="executed" /> |
| | | <result property="unexecuted" column="unexecuted" /> |
| | | <result property="fail" column="fail" /> |
| | | <result property="patientid" column="patientid" /> |
| | | <result property="patientname" column="patientname" /> |
| | | <result property="addtime" column="addtime" /> |
| | | <result property="checkuserid" column="checkuserid" /> |
| | | <result property="checkusername" column="checkusername" /> |
| | | <result property="checktime" column="checktime" /> |
| | | <result property="type" column="type" /> |
| | | <result property="typename" column="typename" /> |
| | | <result property="usebqsms" column="usebqsms" /> |
| | | <result property="usebhsms" column="usebhsms" /> |
| | | <result property="usesendsms" column="usesendsms" /> |
| | | <result property="deptcode" column="deptcode" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="preachform" column="preachform" /> |
| | | <result property="isSend" column="is_send" /> |
| | | <result property="sendState" column="send_state" /> |
| | | <result property="param" column="param" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskVo"> |
| | | select taskid, svrtaskid, taskname, templateid, templatename, labelinfo, state, count, executed, unexecuted, fail, patientid, patientname, addtime, checkuserid, checkusername, checktime, type, typename, usebqsms, usebhsms, usesendsms, deptcode, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, preachform, is_send, send_state, param from svy_task |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskList" parameterType="com.smartor.domain.SvyTask" resultMap="SvyTaskResult"> |
| | | <include refid="selectSvyTaskVo"/> |
| | | <where> |
| | | <if test="svrtaskid != null "> and svrtaskid = #{svrtaskid}</if> |
| | | <if test="taskname != null and taskname != ''"> and taskname like concat('%', #{taskname}, '%')</if> |
| | | <if test="templateid != null and templateid != ''"> and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''"> and templatename like concat('%', #{templatename}, '%')</if> |
| | | <if test="labelinfo != null and labelinfo != ''"> and labelinfo = #{labelinfo}</if> |
| | | <if test="state != null "> and state = #{state}</if> |
| | | <if test="count != null "> and count = #{count}</if> |
| | | <if test="executed != null "> and executed = #{executed}</if> |
| | | <if test="unexecuted != null "> and unexecuted = #{unexecuted}</if> |
| | | <if test="fail != null "> and fail = #{fail}</if> |
| | | <if test="patientid != null and patientid != ''"> and patientid = #{patientid}</if> |
| | | <if test="patientname != null and patientname != ''"> and patientname like concat('%', #{patientname}, '%')</if> |
| | | <if test="addtime != null "> and addtime = #{addtime}</if> |
| | | <if test="checkuserid != null and checkuserid != ''"> and checkuserid = #{checkuserid}</if> |
| | | <if test="checkusername != null and checkusername != ''"> and checkusername like concat('%', #{checkusername}, '%')</if> |
| | | <if test="checktime != null "> and checktime = #{checktime}</if> |
| | | <if test="type != null and type != ''"> and type = #{type}</if> |
| | | <if test="typename != null and typename != ''"> and typename like concat('%', #{typename}, '%')</if> |
| | | <if test="usebqsms != null "> and usebqsms = #{usebqsms}</if> |
| | | <if test="usebhsms != null "> and usebhsms = #{usebhsms}</if> |
| | | <if test="usesendsms != null "> and usesendsms = #{usesendsms}</if> |
| | | <if test="deptcode != null and deptcode != ''"> and deptcode = #{deptcode}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="preachform != null and preachform != ''"> and preachform = #{preachform}</if> |
| | | <if test="isSend != null "> and is_send = #{isSend}</if> |
| | | <if test="sendState != null and sendState != ''"> and send_state = #{sendState}</if> |
| | | <if test="param != null and param != ''"> and param = #{param}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskByTaskid" parameterType="Long" resultMap="SvyTaskResult"> |
| | | <include refid="selectSvyTaskVo"/> |
| | | where taskid = #{taskid} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTask" parameterType="com.smartor.domain.SvyTask" useGeneratedKeys="true" keyProperty="taskid"> |
| | | insert into svy_task |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="svrtaskid != null">svrtaskid,</if> |
| | | <if test="taskname != null">taskname,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="templatename != null">templatename,</if> |
| | | <if test="labelinfo != null">labelinfo,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="count != null">count,</if> |
| | | <if test="executed != null">executed,</if> |
| | | <if test="unexecuted != null">unexecuted,</if> |
| | | <if test="fail != null">fail,</if> |
| | | <if test="patientid != null">patientid,</if> |
| | | <if test="patientname != null">patientname,</if> |
| | | <if test="addtime != null">addtime,</if> |
| | | <if test="checkuserid != null">checkuserid,</if> |
| | | <if test="checkusername != null">checkusername,</if> |
| | | <if test="checktime != null">checktime,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="typename != null">typename,</if> |
| | | <if test="usebqsms != null">usebqsms,</if> |
| | | <if test="usebhsms != null">usebhsms,</if> |
| | | <if test="usesendsms != null">usesendsms,</if> |
| | | <if test="deptcode != null">deptcode,</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="preachform != null">preachform,</if> |
| | | <if test="isSend != null">is_send,</if> |
| | | <if test="sendState != null">send_state,</if> |
| | | <if test="param != null">param,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="svrtaskid != null">#{svrtaskid},</if> |
| | | <if test="taskname != null">#{taskname},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="templatename != null">#{templatename},</if> |
| | | <if test="labelinfo != null">#{labelinfo},</if> |
| | | <if test="state != null">#{state},</if> |
| | | <if test="count != null">#{count},</if> |
| | | <if test="executed != null">#{executed},</if> |
| | | <if test="unexecuted != null">#{unexecuted},</if> |
| | | <if test="fail != null">#{fail},</if> |
| | | <if test="patientid != null">#{patientid},</if> |
| | | <if test="patientname != null">#{patientname},</if> |
| | | <if test="addtime != null">#{addtime},</if> |
| | | <if test="checkuserid != null">#{checkuserid},</if> |
| | | <if test="checkusername != null">#{checkusername},</if> |
| | | <if test="checktime != null">#{checktime},</if> |
| | | <if test="type != null">#{type},</if> |
| | | <if test="typename != null">#{typename},</if> |
| | | <if test="usebqsms != null">#{usebqsms},</if> |
| | | <if test="usebhsms != null">#{usebhsms},</if> |
| | | <if test="usesendsms != null">#{usesendsms},</if> |
| | | <if test="deptcode != null">#{deptcode},</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="preachform != null">#{preachform},</if> |
| | | <if test="isSend != null">#{isSend},</if> |
| | | <if test="sendState != null">#{sendState},</if> |
| | | <if test="param != null">#{param},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyTask" parameterType="com.smartor.domain.SvyTask"> |
| | | update svy_task |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="svrtaskid != null">svrtaskid = #{svrtaskid},</if> |
| | | <if test="taskname != null">taskname = #{taskname},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="templatename != null">templatename = #{templatename},</if> |
| | | <if test="labelinfo != null">labelinfo = #{labelinfo},</if> |
| | | <if test="state != null">state = #{state},</if> |
| | | <if test="count != null">count = #{count},</if> |
| | | <if test="executed != null">executed = #{executed},</if> |
| | | <if test="unexecuted != null">unexecuted = #{unexecuted},</if> |
| | | <if test="fail != null">fail = #{fail},</if> |
| | | <if test="patientid != null">patientid = #{patientid},</if> |
| | | <if test="patientname != null">patientname = #{patientname},</if> |
| | | <if test="addtime != null">addtime = #{addtime},</if> |
| | | <if test="checkuserid != null">checkuserid = #{checkuserid},</if> |
| | | <if test="checkusername != null">checkusername = #{checkusername},</if> |
| | | <if test="checktime != null">checktime = #{checktime},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | <if test="typename != null">typename = #{typename},</if> |
| | | <if test="usebqsms != null">usebqsms = #{usebqsms},</if> |
| | | <if test="usebhsms != null">usebhsms = #{usebhsms},</if> |
| | | <if test="usesendsms != null">usesendsms = #{usesendsms},</if> |
| | | <if test="deptcode != null">deptcode = #{deptcode},</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="preachform != null">preachform = #{preachform},</if> |
| | | <if test="isSend != null">is_send = #{isSend},</if> |
| | | <if test="sendState != null">send_state = #{sendState},</if> |
| | | <if test="param != null">param = #{param},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskByTaskid" parameterType="Long"> |
| | | delete from svy_task where taskid = #{taskid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskByTaskids" parameterType="String"> |
| | | delete from svy_task where taskid in |
| | | <foreach item="taskid" collection="array" open="(" separator="," close=")"> |
| | | #{taskid} |
| | | </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.SvyTaskScriptMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyTaskScript" id="SvyTaskScriptResult"> |
| | | <result property="id" column="id" /> |
| | | <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="answer" column="answer" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="optiondesc" column="optiondesc" /> |
| | | <result property="nexttopicid" column="nexttopicid" /> |
| | | <result property="nexttopicsort" column="nexttopicsort" /> |
| | | <result property="scoretype" column="scoretype" /> |
| | | <result property="score" column="score" /> |
| | | <result property="showtype" column="showtype" /> |
| | | <result property="picturePath" column="picture_path" /> |
| | | </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 |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskScriptList" parameterType="com.smartor.domain.SvyTaskScript" resultMap="SvyTaskScriptResult"> |
| | | <include refid="selectSvyTaskScriptVo"/> |
| | | <where> |
| | | <if test="scriptType != null "> 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 = #{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="answer != null and answer != ''"> and answer = #{answer}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | | <if test="optiondesc != null and optiondesc != ''"> and optiondesc = #{optiondesc}</if> |
| | | <if test="nexttopicid != null "> and nexttopicid = #{nexttopicid}</if> |
| | | <if test="nexttopicsort != null "> and nexttopicsort = #{nexttopicsort}</if> |
| | | <if test="scoretype != null and scoretype != ''"> and scoretype = #{scoretype}</if> |
| | | <if test="score != null and score != ''"> and score = #{score}</if> |
| | | <if test="showtype != null and showtype != ''"> and showtype = #{showtype}</if> |
| | | <if test="picturePath != null and picturePath != ''"> and picture_path = #{picturePath}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskScriptById" parameterType="Long" resultMap="SvyTaskScriptResult"> |
| | | <include refid="selectSvyTaskScriptVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTaskScript" parameterType="com.smartor.domain.SvyTaskScript" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_task_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="scriptType != null">script_type,</if> |
| | | <if test="scriptCode != null and scriptCode != ''">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 and delFlag != ''">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="answer != null">answer,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="optiondesc != null">optiondesc,</if> |
| | | <if test="nexttopicid != null">nexttopicid,</if> |
| | | <if test="nexttopicsort != null">nexttopicsort,</if> |
| | | <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> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptType != null">#{scriptType},</if> |
| | | <if test="scriptCode != null and scriptCode != ''">#{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 and delFlag != ''">#{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="answer != null">#{answer},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="optiondesc != null">#{optiondesc},</if> |
| | | <if test="nexttopicid != null">#{nexttopicid},</if> |
| | | <if test="nexttopicsort != null">#{nexttopicsort},</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> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyTaskScript" parameterType="com.smartor.domain.SvyTaskScript"> |
| | | update svy_task_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="scriptType != null">script_type = #{scriptType},</if> |
| | | <if test="scriptCode != null and scriptCode != ''">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 and delFlag != ''">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="answer != null">answer = #{answer},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="optiondesc != null">optiondesc = #{optiondesc},</if> |
| | | <if test="nexttopicid != null">nexttopicid = #{nexttopicid},</if> |
| | | <if test="nexttopicsort != null">nexttopicsort = #{nexttopicsort},</if> |
| | | <if test="scoretype != null">scoretype = #{scoretype},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="showtype != null">showtype = #{showtype},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskScriptById" parameterType="Long"> |
| | | delete from svy_task_script where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskScriptByIds" parameterType="String"> |
| | | delete from svy_task_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.SvyTaskScriptoptionMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyTaskScriptoption" id="SvyTaskScriptoptionResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="taskScriptId" column="task_script_id" /> |
| | | <result property="svyid" column="svyid" /> |
| | | <result property="scriptType" column="script_type" /> |
| | | <result property="optioncode" column="optioncode" /> |
| | | <result property="optioncontent" column="optioncontent" /> |
| | | <result property="tag" column="tag" /> |
| | | <result property="isexistdetail" column="isexistdetail" /> |
| | | <result property="detailismandatory" column="detailismandatory" /> |
| | | <result property="isexceptionitem" column="isexceptionitem" /> |
| | | <result property="istrack" column="istrack" /> |
| | | <result property="withadditional" column="withadditional" /> |
| | | <result property="score" column="score" /> |
| | | <result property="prompt" column="prompt" /> |
| | | <result property="jump" column="jump" /> |
| | | <result property="parentoptionid" column="parentoptionid" /> |
| | | <result property="ismutex" column="ismutex" /> |
| | | <result property="verifyrule" column="verifyrule" /> |
| | | <result property="sort" column="sort" /> |
| | | <result property="verificationtype" column="verificationtype" /> |
| | | <result property="isrange" column="isrange" /> |
| | | <result property="minrange" column="minrange" /> |
| | | <result property="maxrange" column="maxrange" /> |
| | | <result property="rangelength" column="rangelength" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="oldid" column="oldid" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="nexttopicid" column="nexttopicid" /> |
| | | <result property="nexttopicsort" column="nexttopicsort" /> |
| | | <result property="scoretype" column="scoretype" /> |
| | | <result property="showtype" column="showtype" /> |
| | | <result property="picturePath" column="picture_path" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskScriptoptionVo"> |
| | | select id, task_script_id, svyid, script_type, optioncode, optioncontent, tag, isexistdetail, detailismandatory, isexceptionitem, istrack, withadditional, score, prompt, jump, parentoptionid, ismutex, verifyrule, sort, verificationtype, isrange, minrange, maxrange, rangelength, orgid, oldid, del_flag, create_by, create_time, update_by, update_time, isupload, upload_time, pid, guid, taskid, nexttopicid, nexttopicsort, scoretype, showtype, picture_path from svy_task_scriptoption |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskScriptoptionList" parameterType="com.smartor.domain.SvyTaskScriptoption" resultMap="SvyTaskScriptoptionResult"> |
| | | <include refid="selectSvyTaskScriptoptionVo"/> |
| | | <where> |
| | | <if test="taskScriptId != null "> and task_script_id = #{taskScriptId}</if> |
| | | <if test="svyid != null "> and svyid = #{svyid}</if> |
| | | <if test="scriptType != null "> and script_type = #{scriptType}</if> |
| | | <if test="optioncode != null and optioncode != ''"> and optioncode = #{optioncode}</if> |
| | | <if test="optioncontent != null and optioncontent != ''"> and optioncontent = #{optioncontent}</if> |
| | | <if test="tag != null and tag != ''"> and tag = #{tag}</if> |
| | | <if test="isexistdetail != null "> and isexistdetail = #{isexistdetail}</if> |
| | | <if test="detailismandatory != null "> and detailismandatory = #{detailismandatory}</if> |
| | | <if test="isexceptionitem != null "> and isexceptionitem = #{isexceptionitem}</if> |
| | | <if test="istrack != null "> and istrack = #{istrack}</if> |
| | | <if test="withadditional != null "> and withadditional = #{withadditional}</if> |
| | | <if test="score != null "> and score = #{score}</if> |
| | | <if test="prompt != null and prompt != ''"> and prompt = #{prompt}</if> |
| | | <if test="jump != null and jump != ''"> and jump = #{jump}</if> |
| | | <if test="parentoptionid != null "> and parentoptionid = #{parentoptionid}</if> |
| | | <if test="ismutex != null "> and ismutex = #{ismutex}</if> |
| | | <if test="verifyrule != null and verifyrule != ''"> and verifyrule = #{verifyrule}</if> |
| | | <if test="sort != null "> and sort = #{sort}</if> |
| | | <if test="verificationtype != null "> and verificationtype = #{verificationtype}</if> |
| | | <if test="isrange != null "> and isrange = #{isrange}</if> |
| | | <if test="minrange != null and minrange != ''"> and minrange = #{minrange}</if> |
| | | <if test="maxrange != null and maxrange != ''"> and maxrange = #{maxrange}</if> |
| | | <if test="rangelength != null "> and rangelength = #{rangelength}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="oldid != null "> and oldid = #{oldid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | | <if test="nexttopicid != null "> and nexttopicid = #{nexttopicid}</if> |
| | | <if test="nexttopicsort != null "> and nexttopicsort = #{nexttopicsort}</if> |
| | | <if test="scoretype != null and scoretype != ''"> and scoretype = #{scoretype}</if> |
| | | <if test="showtype != null and showtype != ''"> and showtype = #{showtype}</if> |
| | | <if test="picturePath != null and picturePath != ''"> and picture_path = #{picturePath}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskScriptoptionById" parameterType="Long" resultMap="SvyTaskScriptoptionResult"> |
| | | <include refid="selectSvyTaskScriptoptionVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTaskScriptoption" parameterType="com.smartor.domain.SvyTaskScriptoption" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_task_scriptoption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskScriptId != null">task_script_id,</if> |
| | | <if test="svyid != null">svyid,</if> |
| | | <if test="scriptType != null">script_type,</if> |
| | | <if test="optioncode != null">optioncode,</if> |
| | | <if test="optioncontent != null">optioncontent,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="isexistdetail != null">isexistdetail,</if> |
| | | <if test="detailismandatory != null">detailismandatory,</if> |
| | | <if test="isexceptionitem != null">isexceptionitem,</if> |
| | | <if test="istrack != null">istrack,</if> |
| | | <if test="withadditional != null">withadditional,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="prompt != null">prompt,</if> |
| | | <if test="jump != null">jump,</if> |
| | | <if test="parentoptionid != null">parentoptionid,</if> |
| | | <if test="ismutex != null">ismutex,</if> |
| | | <if test="verifyrule != null">verifyrule,</if> |
| | | <if test="sort != null">sort,</if> |
| | | <if test="verificationtype != null">verificationtype,</if> |
| | | <if test="isrange != null">isrange,</if> |
| | | <if test="minrange != null">minrange,</if> |
| | | <if test="maxrange != null">maxrange,</if> |
| | | <if test="rangelength != null">rangelength,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="oldid != null">oldid,</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="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="nexttopicid != null">nexttopicid,</if> |
| | | <if test="nexttopicsort != null">nexttopicsort,</if> |
| | | <if test="scoretype != null">scoretype,</if> |
| | | <if test="showtype != null">showtype,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskScriptId != null">#{taskScriptId},</if> |
| | | <if test="svyid != null">#{svyid},</if> |
| | | <if test="scriptType != null">#{scriptType},</if> |
| | | <if test="optioncode != null">#{optioncode},</if> |
| | | <if test="optioncontent != null">#{optioncontent},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="isexistdetail != null">#{isexistdetail},</if> |
| | | <if test="detailismandatory != null">#{detailismandatory},</if> |
| | | <if test="isexceptionitem != null">#{isexceptionitem},</if> |
| | | <if test="istrack != null">#{istrack},</if> |
| | | <if test="withadditional != null">#{withadditional},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="prompt != null">#{prompt},</if> |
| | | <if test="jump != null">#{jump},</if> |
| | | <if test="parentoptionid != null">#{parentoptionid},</if> |
| | | <if test="ismutex != null">#{ismutex},</if> |
| | | <if test="verifyrule != null">#{verifyrule},</if> |
| | | <if test="sort != null">#{sort},</if> |
| | | <if test="verificationtype != null">#{verificationtype},</if> |
| | | <if test="isrange != null">#{isrange},</if> |
| | | <if test="minrange != null">#{minrange},</if> |
| | | <if test="maxrange != null">#{maxrange},</if> |
| | | <if test="rangelength != null">#{rangelength},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="oldid != null">#{oldid},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="nexttopicid != null">#{nexttopicid},</if> |
| | | <if test="nexttopicsort != null">#{nexttopicsort},</if> |
| | | <if test="scoretype != null">#{scoretype},</if> |
| | | <if test="showtype != null">#{showtype},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyTaskScriptoption" parameterType="com.smartor.domain.SvyTaskScriptoption"> |
| | | update svy_task_scriptoption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskScriptId != null">task_script_id = #{taskScriptId},</if> |
| | | <if test="svyid != null">svyid = #{svyid},</if> |
| | | <if test="scriptType != null">script_type = #{scriptType},</if> |
| | | <if test="optioncode != null">optioncode = #{optioncode},</if> |
| | | <if test="optioncontent != null">optioncontent = #{optioncontent},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="isexistdetail != null">isexistdetail = #{isexistdetail},</if> |
| | | <if test="detailismandatory != null">detailismandatory = #{detailismandatory},</if> |
| | | <if test="isexceptionitem != null">isexceptionitem = #{isexceptionitem},</if> |
| | | <if test="istrack != null">istrack = #{istrack},</if> |
| | | <if test="withadditional != null">withadditional = #{withadditional},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="prompt != null">prompt = #{prompt},</if> |
| | | <if test="jump != null">jump = #{jump},</if> |
| | | <if test="parentoptionid != null">parentoptionid = #{parentoptionid},</if> |
| | | <if test="ismutex != null">ismutex = #{ismutex},</if> |
| | | <if test="verifyrule != null">verifyrule = #{verifyrule},</if> |
| | | <if test="sort != null">sort = #{sort},</if> |
| | | <if test="verificationtype != null">verificationtype = #{verificationtype},</if> |
| | | <if test="isrange != null">isrange = #{isrange},</if> |
| | | <if test="minrange != null">minrange = #{minrange},</if> |
| | | <if test="maxrange != null">maxrange = #{maxrange},</if> |
| | | <if test="rangelength != null">rangelength = #{rangelength},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="oldid != null">oldid = #{oldid},</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="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="nexttopicid != null">nexttopicid = #{nexttopicid},</if> |
| | | <if test="nexttopicsort != null">nexttopicsort = #{nexttopicsort},</if> |
| | | <if test="scoretype != null">scoretype = #{scoretype},</if> |
| | | <if test="showtype != null">showtype = #{showtype},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskScriptoptionById" parameterType="Long"> |
| | | delete from svy_task_scriptoption where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskScriptoptionByIds" parameterType="String"> |
| | | delete from svy_task_scriptoption 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.SvyTaskSingleMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyTaskSingle" id="SvyTaskSingleResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="sendname" column="sendname"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="age" column="age"/> |
| | | <result property="sfzh" column="sfzh"/> |
| | | <result property="addr" column="addr"/> |
| | | <result property="senderdetail" column="senderdetail"/> |
| | | <result property="type" column="type"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="templatename" column="templatename"/> |
| | | <result property="senddate" column="senddate"/> |
| | | <result property="sendlimitabegin" column="sendlimitabegin"/> |
| | | <result property="sendlimitaend" column="sendlimitaend"/> |
| | | <result property="sendlimitpbegin" column="sendlimitpbegin"/> |
| | | <result property="sendlimitpend" column="sendlimitpend"/> |
| | | <result property="sendlimitnbegin" column="sendlimitnbegin"/> |
| | | <result property="sendlimitnend" column="sendlimitnend"/> |
| | | <result property="sendstate" column="sendstate"/> |
| | | <result property="senduuid" column="senduuid"/> |
| | | <result property="result" column="result"/> |
| | | <result property="finishtime" column="finishtime"/> |
| | | <result property="userid" column="userid"/> |
| | | <result property="username" column="username"/> |
| | | <result property="outbounduuid" column="outbounduuid"/> |
| | | <result property="recordid" column="recordid"/> |
| | | <result property="recallcount" column="recallcount"/> |
| | | <result property="exrecallcount" column="exrecallcount"/> |
| | | <result property="pulltime" column="pulltime"/> |
| | | <result property="bqsms" column="bqsms"/> |
| | | <result property="bhsms" column="bhsms"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="labelstatus" column="labelstatus"/> |
| | | <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="textParam" column="text_param"/> |
| | | <result property="serviceform" column="serviceform"/> |
| | | <result property="badNo" column="bad_no"/> |
| | | <result property="icdName" column="icd_name"/> |
| | | <result property="medicalRecordNo" column="medical_record_no"/> |
| | | <result property="preachcontent" column="preachcontent"/> |
| | | <result property="sendType" column="send_type"/> |
| | | <result property="sendTimeSlot" column="send_time_slot"/> |
| | | <result property="taskName" column="task_name"/> |
| | | <result property="taskDesc" column="task_desc"/> |
| | | <result property="operator" column="operator"/> |
| | | <result property="operatorNo" column="operator_no"/> |
| | | <result property="hospno" column="hospno"/> |
| | | <result property="hospType" column="hosp_type"/> |
| | | <result property="wechat" column="wechat"/> |
| | | <result property="diagname" column="diagname"/> |
| | | <result property="deptname" column="deptname"/> |
| | | <result property="admindate" column="admindate"/> |
| | | <result property="roomno" column="roomno"/> |
| | | <result property="bedno" column="bedno"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskSingleVo"> |
| | | select id, |
| | | sendname, |
| | | phone, |
| | | sex, |
| | | age, |
| | | sfzh, |
| | | addr, |
| | | senderdetail, |
| | | type, |
| | | taskid, |
| | | templateid, |
| | | templatename, |
| | | senddate, |
| | | sendlimitabegin, |
| | | sendlimitaend, |
| | | sendlimitpbegin, |
| | | sendlimitpend, |
| | | sendlimitnbegin, |
| | | sendlimitnend, |
| | | sendstate, |
| | | senduuid, |
| | | result, |
| | | finishtime, |
| | | userid, |
| | | username, |
| | | outbounduuid, |
| | | recordid, |
| | | recallcount, |
| | | exrecallcount, |
| | | pulltime, |
| | | bqsms, |
| | | bhsms, |
| | | deptcode, |
| | | labelstatus, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | pid, |
| | | guid, |
| | | text_param, |
| | | serviceform, |
| | | bad_no, |
| | | icd_name, |
| | | medical_record_no, |
| | | preachcontent, |
| | | send_type, |
| | | send_time_slot, |
| | | task_name, |
| | | task_desc, |
| | | operator, |
| | | operator_no, |
| | | hospno, |
| | | hosp_type, |
| | | wechat, |
| | | diagname, |
| | | deptname, |
| | | admindate, |
| | | roomno, |
| | | bedno |
| | | from svy_task_single |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskSingleList" parameterType="com.smartor.domain.SvyTaskSingle" |
| | | resultMap="SvyTaskSingleResult"> |
| | | <include refid="selectSvyTaskSingleVo"/> |
| | | <where> |
| | | <if test="sendname != null and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="sex != null and sex != ''">and sex = #{sex}</if> |
| | | <if test="age != null ">and age = #{age}</if> |
| | | <if test="sfzh != null and sfzh != ''">and sfzh = #{sfzh}</if> |
| | | <if test="addr != null and addr != ''">and addr = #{addr}</if> |
| | | <if test="senderdetail != null and senderdetail != ''">and senderdetail = #{senderdetail}</if> |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | '%') |
| | | </if> |
| | | <if test="senddate != null ">and senddate = #{senddate}</if> |
| | | <if test="sendlimitabegin != null and sendlimitabegin != ''">and sendlimitabegin = #{sendlimitabegin}</if> |
| | | <if test="sendlimitaend != null and sendlimitaend != ''">and sendlimitaend = #{sendlimitaend}</if> |
| | | <if test="sendlimitpbegin != null and sendlimitpbegin != ''">and sendlimitpbegin = #{sendlimitpbegin}</if> |
| | | <if test="sendlimitpend != null and sendlimitpend != ''">and sendlimitpend = #{sendlimitpend}</if> |
| | | <if test="sendlimitnbegin != null and sendlimitnbegin != ''">and sendlimitnbegin = #{sendlimitnbegin}</if> |
| | | <if test="sendlimitnend != null and sendlimitnend != ''">and sendlimitnend = #{sendlimitnend}</if> |
| | | <if test="sendstate != null ">and sendstate = #{sendstate}</if> |
| | | <if test="senduuid != null and senduuid != ''">and senduuid = #{senduuid}</if> |
| | | <if test="result != null and result != ''">and result = #{result}</if> |
| | | <if test="finishtime != null ">and finishtime = #{finishtime}</if> |
| | | <if test="userid != null and userid != ''">and userid = #{userid}</if> |
| | | <if test="username != null and username != ''">and username like concat('%', #{username}, '%')</if> |
| | | <if test="outbounduuid != null and outbounduuid != ''">and outbounduuid = #{outbounduuid}</if> |
| | | <if test="recordid != null ">and recordid = #{recordid}</if> |
| | | <if test="recallcount != null ">and recallcount = #{recallcount}</if> |
| | | <if test="exrecallcount != null ">and exrecallcount = #{exrecallcount}</if> |
| | | <if test="pulltime != null ">and pulltime = #{pulltime}</if> |
| | | <if test="bqsms != null ">and bqsms = #{bqsms}</if> |
| | | <if test="bhsms != null ">and bhsms = #{bhsms}</if> |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <if test="labelstatus != null ">and labelstatus = #{labelstatus}</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="textParam != null and textParam != ''">and text_param = #{textParam}</if> |
| | | <if test="serviceform != null and serviceform != ''">and serviceform = #{serviceform}</if> |
| | | <if test="badNo != null and badNo != ''">and bad_no = #{badNo}</if> |
| | | <if test="icdName != null and icdName != ''">and icd_name like concat('%', #{icdName}, '%')</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">and medical_record_no = #{medicalRecordNo} |
| | | </if> |
| | | <if test="preachcontent != null and preachcontent != ''">and preachcontent = #{preachcontent}</if> |
| | | <if test="sendType != null and sendType != ''">and send_type = #{sendType}</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and send_time_slot = #{sendTimeSlot}</if> |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="taskDesc != null and taskDesc != ''">and task_desc = #{taskDesc}</if> |
| | | <if test="operator != null and operator != ''">and operator = #{operator}</if> |
| | | <if test="operatorNo != null and operatorNo != ''">and operator_no = #{operatorNo}</if> |
| | | <if test="hospno != null and hospno != ''">and hospno = #{hospno}</if> |
| | | <if test="hospType != null and hospType != ''">and hosp_type = #{hospType}</if> |
| | | <if test="wechat != null and wechat != ''">and wechat = #{wechat}</if> |
| | | <if test="diagname != null and diagname != ''">and diagname like concat('%', #{diagname}, '%')</if> |
| | | <if test="deptname != null and deptname != ''">and deptname like concat('%', #{deptname}, '%')</if> |
| | | <if test="admindate != null ">and admindate = #{admindate}</if> |
| | | <if test="roomno != null and roomno != ''">and roomno = #{roomno}</if> |
| | | <if test="bedno != null and bedno != ''">and bedno = #{bedno}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskSingleById" parameterType="Long" resultMap="SvyTaskSingleResult"> |
| | | <include refid="selectSvyTaskSingleVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTaskSingle" parameterType="com.smartor.domain.SvyTaskSingle" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into svy_task_single |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="sendname != null">sendname,</if> |
| | | <if test="phone != null">phone,</if> |
| | | <if test="sex != null">sex,</if> |
| | | <if test="age != null">age,</if> |
| | | <if test="sfzh != null">sfzh,</if> |
| | | <if test="addr != null">addr,</if> |
| | | <if test="senderdetail != null">senderdetail,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="templatename != null">templatename,</if> |
| | | <if test="senddate != null">senddate,</if> |
| | | <if test="sendlimitabegin != null">sendlimitabegin,</if> |
| | | <if test="sendlimitaend != null">sendlimitaend,</if> |
| | | <if test="sendlimitpbegin != null">sendlimitpbegin,</if> |
| | | <if test="sendlimitpend != null">sendlimitpend,</if> |
| | | <if test="sendlimitnbegin != null">sendlimitnbegin,</if> |
| | | <if test="sendlimitnend != null">sendlimitnend,</if> |
| | | <if test="sendstate != null">sendstate,</if> |
| | | <if test="senduuid != null">senduuid,</if> |
| | | <if test="result != null">result,</if> |
| | | <if test="finishtime != null">finishtime,</if> |
| | | <if test="userid != null">userid,</if> |
| | | <if test="username != null">username,</if> |
| | | <if test="outbounduuid != null">outbounduuid,</if> |
| | | <if test="recordid != null">recordid,</if> |
| | | <if test="recallcount != null">recallcount,</if> |
| | | <if test="exrecallcount != null">exrecallcount,</if> |
| | | <if test="pulltime != null">pulltime,</if> |
| | | <if test="bqsms != null">bqsms,</if> |
| | | <if test="bhsms != null">bhsms,</if> |
| | | <if test="deptcode != null">deptcode,</if> |
| | | <if test="labelstatus != null">labelstatus,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="textParam != null">text_param,</if> |
| | | <if test="serviceform != null">serviceform,</if> |
| | | <if test="badNo != null">bad_no,</if> |
| | | <if test="icdName != null">icd_name,</if> |
| | | <if test="medicalRecordNo != null">medical_record_no,</if> |
| | | <if test="preachcontent != null">preachcontent,</if> |
| | | <if test="sendType != null">send_type,</if> |
| | | <if test="sendTimeSlot != null">send_time_slot,</if> |
| | | <if test="taskName != null">task_name,</if> |
| | | <if test="taskDesc != null">task_desc,</if> |
| | | <if test="operator != null">operator,</if> |
| | | <if test="operatorNo != null">operator_no,</if> |
| | | <if test="hospno != null">hospno,</if> |
| | | <if test="hospType != null">hosp_type,</if> |
| | | <if test="wechat != null">wechat,</if> |
| | | <if test="diagname != null">diagname,</if> |
| | | <if test="deptname != null">deptname,</if> |
| | | <if test="admindate != null">admindate,</if> |
| | | <if test="roomno != null">roomno,</if> |
| | | <if test="bedno != null">bedno,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="sendname != null">#{sendname},</if> |
| | | <if test="phone != null">#{phone},</if> |
| | | <if test="sex != null">#{sex},</if> |
| | | <if test="age != null">#{age},</if> |
| | | <if test="sfzh != null">#{sfzh},</if> |
| | | <if test="addr != null">#{addr},</if> |
| | | <if test="senderdetail != null">#{senderdetail},</if> |
| | | <if test="type != null">#{type},</if> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="templatename != null">#{templatename},</if> |
| | | <if test="senddate != null">#{senddate},</if> |
| | | <if test="sendlimitabegin != null">#{sendlimitabegin},</if> |
| | | <if test="sendlimitaend != null">#{sendlimitaend},</if> |
| | | <if test="sendlimitpbegin != null">#{sendlimitpbegin},</if> |
| | | <if test="sendlimitpend != null">#{sendlimitpend},</if> |
| | | <if test="sendlimitnbegin != null">#{sendlimitnbegin},</if> |
| | | <if test="sendlimitnend != null">#{sendlimitnend},</if> |
| | | <if test="sendstate != null">#{sendstate},</if> |
| | | <if test="senduuid != null">#{senduuid},</if> |
| | | <if test="result != null">#{result},</if> |
| | | <if test="finishtime != null">#{finishtime},</if> |
| | | <if test="userid != null">#{userid},</if> |
| | | <if test="username != null">#{username},</if> |
| | | <if test="outbounduuid != null">#{outbounduuid},</if> |
| | | <if test="recordid != null">#{recordid},</if> |
| | | <if test="recallcount != null">#{recallcount},</if> |
| | | <if test="exrecallcount != null">#{exrecallcount},</if> |
| | | <if test="pulltime != null">#{pulltime},</if> |
| | | <if test="bqsms != null">#{bqsms},</if> |
| | | <if test="bhsms != null">#{bhsms},</if> |
| | | <if test="deptcode != null">#{deptcode},</if> |
| | | <if test="labelstatus != null">#{labelstatus},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="textParam != null">#{textParam},</if> |
| | | <if test="serviceform != null">#{serviceform},</if> |
| | | <if test="badNo != null">#{badNo},</if> |
| | | <if test="icdName != null">#{icdName},</if> |
| | | <if test="medicalRecordNo != null">#{medicalRecordNo},</if> |
| | | <if test="preachcontent != null">#{preachcontent},</if> |
| | | <if test="sendType != null">#{sendType},</if> |
| | | <if test="sendTimeSlot != null">#{sendTimeSlot},</if> |
| | | <if test="taskName != null">#{taskName},</if> |
| | | <if test="taskDesc != null">#{taskDesc},</if> |
| | | <if test="operator != null">#{operator},</if> |
| | | <if test="operatorNo != null">#{operatorNo},</if> |
| | | <if test="hospno != null">#{hospno},</if> |
| | | <if test="hospType != null">#{hospType},</if> |
| | | <if test="wechat != null">#{wechat},</if> |
| | | <if test="diagname != null">#{diagname},</if> |
| | | <if test="deptname != null">#{deptname},</if> |
| | | <if test="admindate != null">#{admindate},</if> |
| | | <if test="roomno != null">#{roomno},</if> |
| | | <if test="bedno != null">#{bedno},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyTaskSingle" parameterType="com.smartor.domain.SvyTaskSingle"> |
| | | update svy_task_single |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="sendname != null">sendname = #{sendname},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="sex != null">sex = #{sex},</if> |
| | | <if test="age != null">age = #{age},</if> |
| | | <if test="sfzh != null">sfzh = #{sfzh},</if> |
| | | <if test="addr != null">addr = #{addr},</if> |
| | | <if test="senderdetail != null">senderdetail = #{senderdetail},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="templatename != null">templatename = #{templatename},</if> |
| | | <if test="senddate != null">senddate = #{senddate},</if> |
| | | <if test="sendlimitabegin != null">sendlimitabegin = #{sendlimitabegin},</if> |
| | | <if test="sendlimitaend != null">sendlimitaend = #{sendlimitaend},</if> |
| | | <if test="sendlimitpbegin != null">sendlimitpbegin = #{sendlimitpbegin},</if> |
| | | <if test="sendlimitpend != null">sendlimitpend = #{sendlimitpend},</if> |
| | | <if test="sendlimitnbegin != null">sendlimitnbegin = #{sendlimitnbegin},</if> |
| | | <if test="sendlimitnend != null">sendlimitnend = #{sendlimitnend},</if> |
| | | <if test="sendstate != null">sendstate = #{sendstate},</if> |
| | | <if test="senduuid != null">senduuid = #{senduuid},</if> |
| | | <if test="result != null">result = #{result},</if> |
| | | <if test="finishtime != null">finishtime = #{finishtime},</if> |
| | | <if test="userid != null">userid = #{userid},</if> |
| | | <if test="username != null">username = #{username},</if> |
| | | <if test="outbounduuid != null">outbounduuid = #{outbounduuid},</if> |
| | | <if test="recordid != null">recordid = #{recordid},</if> |
| | | <if test="recallcount != null">recallcount = #{recallcount},</if> |
| | | <if test="exrecallcount != null">exrecallcount = #{exrecallcount},</if> |
| | | <if test="pulltime != null">pulltime = #{pulltime},</if> |
| | | <if test="bqsms != null">bqsms = #{bqsms},</if> |
| | | <if test="bhsms != null">bhsms = #{bhsms},</if> |
| | | <if test="deptcode != null">deptcode = #{deptcode},</if> |
| | | <if test="labelstatus != null">labelstatus = #{labelstatus},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="textParam != null">text_param = #{textParam},</if> |
| | | <if test="serviceform != null">serviceform = #{serviceform},</if> |
| | | <if test="badNo != null">bad_no = #{badNo},</if> |
| | | <if test="icdName != null">icd_name = #{icdName},</if> |
| | | <if test="medicalRecordNo != null">medical_record_no = #{medicalRecordNo},</if> |
| | | <if test="preachcontent != null">preachcontent = #{preachcontent},</if> |
| | | <if test="sendType != null">send_type = #{sendType},</if> |
| | | <if test="sendTimeSlot != null">send_time_slot = #{sendTimeSlot},</if> |
| | | <if test="taskName != null">task_name = #{taskName},</if> |
| | | <if test="taskDesc != null">task_desc = #{taskDesc},</if> |
| | | <if test="operator != null">operator = #{operator},</if> |
| | | <if test="operatorNo != null">operator_no = #{operatorNo},</if> |
| | | <if test="hospno != null">hospno = #{hospno},</if> |
| | | <if test="hospType != null">hosp_type = #{hospType},</if> |
| | | <if test="wechat != null">wechat = #{wechat},</if> |
| | | <if test="diagname != null">diagname = #{diagname},</if> |
| | | <if test="deptname != null">deptname = #{deptname},</if> |
| | | <if test="admindate != null">admindate = #{admindate},</if> |
| | | <if test="roomno != null">roomno = #{roomno},</if> |
| | | <if test="bedno != null">bedno = #{bedno},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskSingleById" parameterType="Long"> |
| | | delete |
| | | from svy_task_single |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskSingleByIds" parameterType="String"> |
| | | delete from svy_task_single where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
copy from smartor/src/main/resources/mapper/smartor/SvyLibTitleMapper.xml
copy to smartor/src/main/resources/mapper/smartor/SvyTaskTemplateMapper.xml
Îļþ´Ó smartor/src/main/resources/mapper/smartor/SvyLibTitleMapper.xml ¸´ÖÆ |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTitleMapper"> |
| | | <mapper namespace="com.smartor.mapper.SvyTaskTemplateMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTitle" id="SvyLibTitleResult"> |
| | | <resultMap type="com.smartor.domain.SvyTaskTemplate" id="SvyTaskTemplateResult"> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="svycode" column="svycode"/> |
| | | <result property="svyname" column="svyname"/> |
| | | <result property="description" column="description"/> |
| | | <result property="introduce" column="introduce"/> |
| | | <result property="submitprompt" column="submitprompt"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="version" column="version"/> |
| | | <result property="centerlibrarycode" column="centerlibrarycode"/> |
| | | <result property="centerlibraryid" column="centerlibraryid"/> |
| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="taskScriptId" column="task_script_id"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="labelInfo" column="label_info"/> |
| | | <result property="campus" column="campus"/> |
| | |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="taskid" column="taskid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTitleVo"> |
| | | <sql id="selectSvyTaskTemplateVo"> |
| | | select svyid, |
| | | templateid, |
| | | categoryid, |
| | | value_type, |
| | | reply, |
| | | svycode, |
| | | svyname, |
| | | description, |
| | | introduce, |
| | | submitprompt, |
| | | templateid, |
| | | tag, |
| | | version, |
| | | centerlibrarycode, |
| | | centerlibraryid, |
| | |
| | | update_time, |
| | | isupload, |
| | | upload_time, |
| | | task_script_id, |
| | | pid, |
| | | guid, |
| | | dept_names, |
| | | label_info, |
| | | campus, |
| | | suitway, |
| | | otherdata |
| | | from svy_lib_title |
| | | otherdata, |
| | | value_type, |
| | | reply, |
| | | taskid |
| | | from svy_task_template |
| | | </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,a.dept_names,a.value_type,a.label_info,a.reply, |
| | | a.campus,a.suitway,a.otherdata |
| | | ,c.icdname from svy_lib_title |
| | | a,icd10_association b,icd10 c |
| | | <select id="selectSvyTaskTemplateList" parameterType="com.smartor.domain.SvyTaskTemplate" |
| | | resultMap="SvyTaskTemplateResult"> |
| | | <include refid="selectSvyTaskTemplateVo"/> |
| | | <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 test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="svycode != null and svycode != ''">and svycode = #{svycode}</if> |
| | | <if test="svyname != null and svyname != ''">and svyname like concat('%', #{svyname}, '%')</if> |
| | | <if test="description != null and description != ''">and description = #{description}</if> |
| | | <if test="introduce != null and introduce != ''">and introduce = #{introduce}</if> |
| | | <if test="submitprompt != null and submitprompt != ''">and submitprompt = #{submitprompt}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="version != null ">and version = #{version}</if> |
| | | <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode = |
| | | #{centerlibrarycode} |
| | | </if> |
| | | <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if> |
| | | <if test="islocal != null ">and islocal = #{islocal}</if> |
| | | <if test="isenable != null and isenable != ''">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="taskScriptId != null and taskScriptId != ''">and task_script_id = #{taskScriptId}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</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> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</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="taskid != null ">and taskid = #{taskid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTitleBySvyid" parameterType="Long" resultMap="SvyLibTitleResult"> |
| | | <include refid="selectSvyLibTitleVo"/> |
| | | where svyid = #{svyid} and del_flag=0 |
| | | <select id="selectSvyTaskTemplateBySvyid" parameterType="Long" resultMap="SvyTaskTemplateResult"> |
| | | <include refid="selectSvyTaskTemplateVo"/> |
| | | where svyid = #{svyid} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTitle" parameterType="com.smartor.domain.SvyLibTitle" useGeneratedKeys="true" |
| | | <insert id="insertSvyTaskTemplate" parameterType="com.smartor.domain.SvyTaskTemplate" useGeneratedKeys="true" |
| | | keyProperty="svyid"> |
| | | insert into svy_lib_title |
| | | insert into svy_task_template |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="categoryid != null">categoryid,</if> |
| | | <if test="svycode != null">svycode,</if> |
| | | <if test="svyname != null">svyname,</if> |
| | | <if test="description != null">description,</if> |
| | | <if test="introduce != null">introduce,</if> |
| | | <if test="submitprompt != null">submitprompt,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="centerlibrarycode != null">centerlibrarycode,</if> |
| | | <if test="centerlibraryid != null">centerlibraryid,</if> |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="taskScriptId != null">task_script_id,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <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> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="reply != null">reply,</if> |
| | | value_type, |
| | | reply, |
| | | <if test="taskid != null">taskid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | <if test="svycode != null">#{svycode},</if> |
| | | <if test="svyname != null">#{svyname},</if> |
| | | <if test="description != null">#{description},</if> |
| | | <if test="introduce != null">#{introduce},</if> |
| | | <if test="submitprompt != null">#{submitprompt},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="centerlibrarycode != null">#{centerlibrarycode},</if> |
| | | <if test="centerlibraryid != null">#{centerlibraryid},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="taskScriptId != null">#{taskScriptId},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="deptNames != null">#{deptNames},</if> |
| | | <if test="labelInfo != null">#{labelInfo},</if> |
| | | <if test="campus != null">#{campus},</if> |
| | |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTitle" parameterType="com.smartor.domain.SvyLibTitle"> |
| | | update svy_lib_title |
| | | <update id="updateSvyTaskTemplate" parameterType="com.smartor.domain.SvyTaskTemplate"> |
| | | update svy_task_template |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="categoryid != null">categoryid = #{categoryid},</if> |
| | | <if test="svycode != null">svycode = #{svycode},</if> |
| | | <if test="svyname != null">svyname = #{svyname},</if> |
| | | <if test="description != null">description = #{description},</if> |
| | | <if test="introduce != null">introduce = #{introduce},</if> |
| | | <if test="submitprompt != null">submitprompt = #{submitprompt},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="centerlibrarycode != null">centerlibrarycode = #{centerlibrarycode},</if> |
| | | <if test="centerlibraryid != null">centerlibraryid = #{centerlibraryid},</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="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> |
| | | <if test="taskScriptId != null">task_script_id = #{taskScriptId},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</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> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | </trim> |
| | | where svyid = #{svyid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTitleBySvyid" parameterType="Long"> |
| | | <delete id="deleteSvyTaskTemplateBySvyid" parameterType="Long"> |
| | | delete |
| | | from svy_lib_title |
| | | from svy_task_template |
| | | where svyid = #{svyid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyLibTitleBySvyids" parameterType="String"> |
| | | delete from svy_lib_title where svyid in |
| | | <delete id="deleteSvyTaskTemplateBySvyids" parameterType="String"> |
| | | delete from svy_task_template where svyid in |
| | | <foreach item="svyid" collection="array" open="(" separator="," close=")"> |
| | | #{svyid} |
| | | </foreach> |
| | |
| | | GROUP BY a.topic, b.optioncode |
| | | </select> |
| | | |
| | | </mapper> |
| | | </mapper> |