| | |
| | | <dependency> |
| | | <groupId>org.apache.xmlbeans</groupId> |
| | | <artifactId>xmlbeans</artifactId> |
| | | <version>3.1.0</version> |
| | | <version>5.1.0</version> |
| | | </dependency> |
| | | </dependencies> |
| | | <build> |
| | |
| | | import org.springframework.data.redis.listener.RedisMessageListenerContainer; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLEncoder; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | import java.util.concurrent.ExecutorService; |
| | | import java.util.concurrent.Executors; |
| | |
| | | |
| | | @Autowired |
| | | private IIvrTaskTemplateService ivrTaskTemplateService; |
| | | @Autowired |
| | | private ISvyTaskTemplateService svyTaskTemplateService; |
| | | |
| | | @Autowired |
| | | private ServiceSubtaskMapper ivrTaskcallMapper; |
| | |
| | | } else { |
| | | commonTaskcallMQ = mapper.readValue(content, CommonTaskcallMQ.class); |
| | | } |
| | | if (commonTaskcallMQ.getTaskType() == 1) { |
| | | //é访 |
| | | sfHandle(commonTaskcallMQ, ip); |
| | | } else if (commonTaskcallMQ.getTaskType() == 2) { |
| | | //é®å· |
| | | wjHandle(commonTaskcallMQ, ip); |
| | | } else if (commonTaskcallMQ.getTaskType() == 3) { |
| | | //宣æ |
| | | xjHandle(commonTaskcallMQ, ip); |
| | | } |
| | | if (commonTaskcallMQ != null) tsakHandle(commonTaskcallMQ, ip, commonTaskcallMQ.getTaskType()); |
| | | |
| | | //å¤ç宿ï¼ç§»é¤redis |
| | | redisCache.deleteObject(message.toString()); |
| | | //å°ç¶ææ¹æå®æ |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(Long.valueOf(commonTaskcallMQ.getTaskid())); |
| | | serviceTask.setSendState(5); |
| | | serviceTask.setSendState(5L); |
| | | serviceTask.setFail(1L); |
| | | svyTaskMapper.updateServiceTask(serviceTask); |
| | | |
| | | } catch (Exception e) { |
| | | Integer integer = redisCache.getCacheObject(commonTaskcallMQ.getTaskid().toString()); |
| | | if (integer != null && integer == 2) { |
| | | if (integer != null && integer == 3) { |
| | | redisCache.deleteObject(message.toString()); |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(Long.valueOf(commonTaskcallMQ.getTaskid().toString())); |
| | | serviceTask.setFail(0L); |
| | | svyTaskMapper.updateServiceTask(serviceTask); |
| | | //å°æ¶æ¯ä»éåä¸å é¤ |
| | | } else if (integer == null) { |
| | | redisCache.setCacheObject(commonTaskcallMQ.getTaskid().toString(), 1, 120, TimeUnit.MINUTES); |
| | | } else { |
| | | redisCache.setCacheObject(commonTaskcallMQ.getTaskid().toString(), integer + 1, 120, TimeUnit.MINUTES); |
| | | } |
| | | |
| | | log.error("============æ¶è´¹å¤±è´¥,å°è¯æ¶æ¯è¡¥å忬¡æ¶è´¹!============== {}", e.getMessage()); |
| | | redisCache.setCacheObject(message.toString(), message.toString(), 60, TimeUnit.SECONDS); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * é访任å¡å¤ç |
| | | * ä»»å¡å¤ç |
| | | * |
| | | * @param commonTaskcallMQ |
| | | */ |
| | | public void sfHandle(CommonTaskcallMQ commonTaskcallMQ, String ip) { |
| | | log.error("è¿é访äºåï¼{}", commonTaskcallMQ); |
| | | public void tsakHandle(CommonTaskcallMQ commonTaskcallMQ, String ip, Integer type) { |
| | | log.error("è¿ä»»å¡äºåï¼{}", commonTaskcallMQ); |
| | | //夿ä¸ä¸commonTaskcallMQä¸çstopstateæ¯å¦ä¸ivr_taskä¸çä¸è´ï¼ä¸ä¸è´ï¼åè¯´ææ¯æåäº |
| | | ServiceTask ivrTask1 = ivrTaskMapper.selectServiceTaskByTaskid(commonTaskcallMQ.getTaskid()); |
| | | if (ivrTask1.getStopState() != commonTaskcallMQ.getStopState()) { |
| | |
| | | } |
| | | } else if (descByCode.equals("å¤åªä½")) { |
| | | //å¤åªä½ |
| | | return; |
| | | continue; |
| | | } else if (descByCode.equals("纸质")) { |
| | | //纸质 |
| | | return; |
| | | continue; |
| | | } else if (descByCode.equals("çä¿¡")) { |
| | | //çä¿¡ |
| | | // http://localhost:8099/followvisit/particty?param1=3¶m2=348 |
| | |
| | | String taskId = rsaPublicKeyExample.encryptedData(ivrTask1.getTaskid().toString(), pub_key); |
| | | |
| | | for (ServiceSubtask serviceSubtask : selectServiceSubtaskList) { |
| | | String patid = rsaPublicKeyExample.encryptedData(serviceSubtask.getPatid().toString(), pub_key); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType("4"); |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/followvisit/particty?param1=" + taskId + "¶m2=" + patid + "¶m5=false"); |
| | | Boolean aBoolean = sendService.sendMsg(sendMagParam); |
| | | try { |
| | | String patid = rsaPublicKeyExample.encryptedData(serviceSubtask.getPatid().toString(), pub_key); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType("4"); |
| | | if (type == 1) { |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/followvisit/particty?param1=" + taskId + "¶m2=" + patid + "¶m5=false"); |
| | | } else if (type == 1) { |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/outsideChainwt?param1=" + taskId + "¶m2=" + patid + "¶m3=" + URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString()) + "¶m5=false"); |
| | | } else if (type == 3) { |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/outsideChainxj?param1=" + taskId + "¶m2=" + patid + "¶m3=" + URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString()) + "¶m5=false"); |
| | | } |
| | | Boolean aBoolean = sendService.sendMsg(sendMagParam); |
| | | |
| | | |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(serviceSubtask.getType()); |
| | | serviceSubtaskRecord.setPreachform("4"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult(aBoolean == true ? "æå" : "失败"); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(serviceSubtask.getType()); |
| | | serviceSubtaskRecord.setPreachform("4"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult(aBoolean == true ? "success" : "error"); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | } catch (UnsupportedEncodingException e) { |
| | | String guid = UUID.randomUUID().toString(); |
| | | log.error("çä¿¡ä»»å¡ï¼åé失败åå ï¼{},{}", e.getMessage(), guid); |
| | | serviceSubtask.setResult("error"); |
| | | serviceSubtask.setRemark("ç³»ç»é误ï¼ä»»å¡ï¼"); |
| | | serviceSubtask.setGuid(guid); |
| | | serviceSubtask.setSendstate(4L); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | | } |
| | | } |
| | | } else if (descByCode.equals("å
¬ä¼å·")) { |
| | | //å
¬ä¼å· |
| | |
| | | String taskId = rsaPublicKeyExample.encryptedData(ivrTask1.getTaskid().toString(), pub_key); |
| | | for (ServiceSubtask serviceSubtask : selectServiceSubtaskList) { |
| | | String patid = rsaPublicKeyExample.encryptedData(serviceSubtask.getPatid().toString(), pub_key); |
| | | |
| | | // SendMagParam sendMagParam = new SendMagParam(); |
| | | // sendMagParam.setType("5"); |
| | | // sendMagParam.setUrl(ip + ":" + req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | |
| | | // sendMagParam.setContent(JSON.toJSONString(map)); |
| | | // sendMagParam.setOpenid(serviceSubtask.getOpenid()); |
| | | // Boolean aBoolean = sendService.sendMsg(sendMagParam); |
| | | String url = null; |
| | | try { |
| | | if (type == 1) { |
| | | url = ip + ":" + req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString()) + "¶m5=false"; |
| | | } else if (type == 2) { |
| | | url = ip + ":" + req_path + "/outsideChainwt?param1=" + taskId + "¶m2=" + patid + "¶m3=" + URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString()) + "¶m5=false"; |
| | | } else if (type == 3) { |
| | | url = ip + ":" + req_path + "/outsideChainxj?param1=" + taskId + "¶m2=" + patid + "¶m3=" + URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString()) + "¶m5=false"; |
| | | } |
| | | |
| | | String url = ip + ":" + req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"; |
| | | String wxCode = getWXCode(serviceSubtask.getIdcardno(), url); |
| | | |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(serviceSubtask.getType()); |
| | | serviceSubtaskRecord.setPreachform("4"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult("æå"); |
| | | if (wxCode.equals("0")) serviceSubtaskRecord.setResult("失败"); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | String wxCode = getWXCode(serviceSubtask.getSfzh(), url, serviceSubtask.getTaskName(), serviceSubtask.getTaskDesc(), "æ "); |
| | | Map<String, Object> map = JSONObject.parseObject(wxCode, Map.class); |
| | | if (!map.isEmpty()) { |
| | | serviceSubtask.setResult("success"); |
| | | serviceSubtask.setSendstate(3L); |
| | | if ((Boolean) map.get("succ") == false) { |
| | | serviceSubtask.setResult("error"); |
| | | serviceSubtask.setRemark(map.get("msg").toString()); |
| | | serviceSubtask.setSendstate(5L); |
| | | } |
| | | } |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(serviceSubtask.getType()); |
| | | serviceSubtaskRecord.setPreachform("5"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult("success"); |
| | | if ((Boolean) map.get("succ") == false) { |
| | | serviceSubtaskRecord.setResult("error"); |
| | | } |
| | | serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | } catch (Exception e) { |
| | | String guid = UUID.randomUUID().toString(); |
| | | log.error("å
¬ä¼å·ä»»å¡ï¼åé失败åå ï¼{},{}", e.getMessage(), guid); |
| | | serviceSubtask.setResult("error"); |
| | | serviceSubtask.setRemark("ç³»ç»é误ï¼ä»»å¡ï¼"); |
| | | serviceSubtask.setGuid(guid); |
| | | serviceSubtask.setSendstate(5L); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | | } |
| | | } |
| | | } |
| | | //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 宣æä»»å¡å¤ç |
| | | * |
| | | * @param commonTaskcallMQ |
| | | */ |
| | | private void xjHandle(CommonTaskcallMQ commonTaskcallMQ, String ip) { |
| | | log.error("è¿å®£æäºåï¼{}", commonTaskcallMQ); |
| | | //夿ä¸ä¸commonTaskcallMQä¸çstopstateæ¯å¦ä¸ivr_taskä¸çä¸è´ï¼ä¸ä¸è´ï¼åè¯´ææ¯æåäº |
| | | ServiceTask ivrTask1 = ivrTaskMapper.selectServiceTaskByTaskid(commonTaskcallMQ.getTaskid()); |
| | | if (ivrTask1.getStopState() != commonTaskcallMQ.getStopState()) { |
| | | //å°æ¶æ¯ä»éåä¸åé¤ |
| | | return; |
| | | } |
| | | |
| | | if (StringUtils.isNotEmpty(commonTaskcallMQ.getPreachform())) { |
| | | //å¦ä½ä»»å¡åéæ¹å¼ä¸ä¸ºç©º |
| | | String[] split = commonTaskcallMQ.getPreachform().split(","); |
| | | System.out.println("splitçå¼ä¸ºï¼" + split); |
| | | for (String serviceFrom : split) { |
| | | String descByCode = ServiceFromEnum.getDescByCode(Integer.valueOf(serviceFrom)); |
| | | //è¿éå¯ä»¥èèç¨çç¥æ¨¡å¼ä¼åä¸ä¸ï¼ä¸ç¶å¤ªé¾çäº |
| | | |
| | | //éè¿æ¨¡æ¿IDè·å模æ¿é®é¢ |
| | | IvrTaskTemplateVO ivrTaskTemplateVO1 = null; |
| | | if (commonTaskcallMQ.getTaskType().equals("1")) { |
| | | IvrTaskTemplateVO ivrTaskTemplateVO = new IvrTaskTemplateVO(); |
| | | ivrTaskTemplateVO.setId(Long.valueOf(commonTaskcallMQ.getTemplateid())); |
| | | ivrTaskTemplateVO1 = ivrTaskTemplateService.selectInfoByCondition(ivrTaskTemplateVO); |
| | | } |
| | | //éè¿ä»»å¡IDæ¿å°æ£è
ä¿¡æ¯ |
| | | ServiceSubtaskVO ivrTaskcall = new ServiceSubtaskVO(); |
| | | ivrTaskcall.setTaskid(commonTaskcallMQ.getTaskid()); |
| | | List<ServiceSubtask> ivrTaskcalls = ivrTaskcallMapper.selectServiceSubtaskList(ivrTaskcall); |
| | | if (descByCode.equals("çµè¯")) { |
| | | for (ServiceSubtask ivrTaskcall1 : ivrTaskcalls) { |
| | | ServiceTask ivrTask = ivrTaskMapper.selectServiceTaskByTaskid(ivrTaskcall1.getTaskid()); |
| | | if (ivrTask.getSendState() != null && ivrTask.getSendState() == 3 || ivrTask.getSendState() != null && ivrTask.getSendState() == 4) { |
| | | //å¦ä½ä»»å¡è¢«âæåâæâç»æ¢â |
| | | break; |
| | | } |
| | | |
| | | //ä»»å¡åéè®°å½ï¼è¿ä¸ªä»£ç åºè¯¥åå¨phoneTaskä¸ï¼å
åå¨è¿ï¼åé¢åæ¹ï¼ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(ivrTaskcall1.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(ivrTaskcall1.getType()); |
| | | serviceSubtaskRecord.setPreachform("3"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | |
| | | //éè¿å¤çº¿ç¨çæ¹å¼å»æçµè¯ |
| | | executorService.submit(new PhoneTask(ivrTaskcall1, ivrTaskTemplateVO1, redisCache, sendService, phonePath, robotPhoneUtils)); |
| | | } |
| | | } else if (descByCode.equals("å¤åªä½")) { |
| | | //å¤åªä½ |
| | | } else if (descByCode.equals("纸质")) { |
| | | //纸质 |
| | | } else if (descByCode.equals("çä¿¡")) { |
| | | //çä¿¡ |
| | | // http://localhost:8099/followvisit/particty?param1=3¶m2=348 |
| | | //对urlä¸ä¸¤ä¸ªåæ°å å¯ |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | | String taskId = rsaPublicKeyExample.encryptedData(ivrTask1.getTaskid().toString(), pub_key); |
| | | |
| | | |
| | | for (ServiceSubtask ivrTaskSingle : ivrTaskcalls) { |
| | | String patid = rsaPublicKeyExample.encryptedData(ivrTaskSingle.getPatid().toString(), pub_key); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType("4"); |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/followvisit/particty?param1=" + taskId + "¶m2=" + patid + "¶m5=false"); |
| | | Boolean aBoolean = sendService.sendMsg(sendMagParam); |
| | | |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(ivrTaskSingle.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(ivrTaskSingle.getType()); |
| | | serviceSubtaskRecord.setPreachform("4"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult(aBoolean == true ? "æå" : "失败"); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | } |
| | | } else if (descByCode.equals("å
¬ä¼å·")) { |
| | | //å
¬ä¼å· |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | | String taskId = rsaPublicKeyExample.encryptedData(ivrTask1.getTaskid().toString(), pub_key); |
| | | for (ServiceSubtask ivrTaskSingle : ivrTaskcalls) { |
| | | String patid = rsaPublicKeyExample.encryptedData(ivrTaskSingle.getPatid().toString(), pub_key); |
| | | // SendMagParam sendMagParam = new SendMagParam(); |
| | | // sendMagParam.setType("5"); |
| | | // sendMagParam.setUrl(ip + ":" + req_path + "/outsideChainxj?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | | // log.info("龿¥å®æ´è·¯å¾ï¼{}", req_path + "/outsideChainxj?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | | // //è¿ä¸ªæ¨¡æ¿IDå
åæ»ï¼åé¢åæå¯é |
| | | // sendMagParam.setTmpCode("oG3pJHPVWpE81DmZsua_2tKwgJ97r0qz37z56ns7NB4"); |
| | | // Map map = new HashMap(); |
| | | // map.put("first", ivrTask1.getTaskName()); |
| | | // sendMagParam.setContent(JSON.toJSONString(map)); |
| | | // sendMagParam.setOpenid(ivrTaskSingle.getOpenid()); |
| | | //æ°åå»é¢æèªå·±çå
¬ä¼å·å鿥å£ï¼æä»¬çå
ä¸ç¨ï¼å
ä¿çï¼å
¶å®é¡¹ç®å¯ä»¥ç¨ï¼ |
| | | // Boolean aBoolean = sendService.sendMsg(sendMagParam); |
| | | // log.error("æ¯å¦åéæåï¼{}", aBoolean); |
| | | |
| | | String url = ip + ":" + req_path + "/outsideChainxj?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"; |
| | | String wxCode = getWXCode(ivrTaskSingle.getIdcardno(), url); |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(ivrTaskSingle.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(ivrTaskSingle.getType()); |
| | | serviceSubtaskRecord.setPreachform("4"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult("æå"); |
| | | if (!wxCode.equals("0")) { |
| | | serviceSubtaskRecord.setResult("失败"); |
| | | } |
| | | |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | } |
| | | } |
| | | //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * é®å·ä»»å¡å¤ç |
| | | * |
| | | * @param commonTaskcallMQ |
| | | */ |
| | | private void wjHandle(CommonTaskcallMQ commonTaskcallMQ, String ip) { |
| | | log.error("è¿é®å·äºåï¼{}", commonTaskcallMQ); |
| | | //夿ä¸ä¸commonTaskcallMQä¸çstopstateæ¯å¦ä¸ivr_taskä¸çä¸è´ï¼ä¸ä¸è´ï¼åè¯´ææ¯æåäº |
| | | ServiceTask svyTask = svyTaskMapper.selectServiceTaskByTaskid(commonTaskcallMQ.getTaskid()); |
| | | log.error("svyTask.getStopState()çå¼ä¸ºï¼{} ï¼ commonTaskcallMQ.getStopState()çå¼ä¸ºï¼{}", svyTask.getStopState(), commonTaskcallMQ.getStopState()); |
| | | |
| | | if (svyTask.getStopState() != commonTaskcallMQ.getStopState()) { |
| | | //å°æ¶æ¯ä»éåä¸åé¤ |
| | | return; |
| | | } |
| | | |
| | | if (StringUtils.isNotEmpty(commonTaskcallMQ.getPreachform())) { |
| | | //å¦ä½ä»»å¡åéæ¹å¼ä¸ä¸ºç©º |
| | | String[] split = commonTaskcallMQ.getPreachform().split(","); |
| | | System.out.println("splitçå¼ä¸ºï¼" + split); |
| | | for (String serviceFrom : split) { |
| | | String descByCode = ServiceFromEnum.getDescByCode(Integer.valueOf(serviceFrom)); |
| | | //è¿éå¯ä»¥èèç¨çç¥æ¨¡å¼ä¼åä¸ä¸ï¼ä¸ç¶å¤ªé¾çäº |
| | | |
| | | //éè¿æ¨¡æ¿IDè·å模æ¿é®é¢ |
| | | SvyTaskTemplateVO svyTaskTemplateVO = new SvyTaskTemplateVO(); |
| | | svyTaskTemplateVO.setId(Long.valueOf(commonTaskcallMQ.getTemplateid())); |
| | | SvyTaskTemplateVO svyTaskTemplateVO1 = iSvyTaskTemplateService.selectInfoByCondition(svyTaskTemplateVO); |
| | | |
| | | //éè¿ä»»å¡IDæ¿å°æ£è
ä¿¡æ¯ |
| | | ServiceSubtaskVO serviceSubtaskVO = new ServiceSubtaskVO(); |
| | | serviceSubtaskVO.setTaskid(commonTaskcallMQ.getTaskid()); |
| | | List<ServiceSubtask> selectServiceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | log.error("selectServiceSubtaskListæ°æ®æ¯å¤å°ï¼{}", selectServiceSubtaskList.size()); |
| | | if (descByCode.equals("çµè¯")) { |
| | | for (ServiceSubtask svyTaskSingle1 : selectServiceSubtaskList) { |
| | | ServiceTask svyTask1 = svyTaskMapper.selectServiceTaskByTaskid(svyTaskSingle1.getTaskid()); |
| | | if (svyTask1.getSendState() != null && svyTask1.getSendState().equals("3") || svyTask1.getSendState() != null && svyTask1.getSendState().equals("4")) { |
| | | //å¦ä½ä»»å¡è¢«âæåâæâç»æ¢â |
| | | break; |
| | | } |
| | | |
| | | //ä»»å¡åéè®°å½ï¼è¿ä¸ªä»£ç åºè¯¥åå¨phoneTaskä¸ï¼å
åå¨è¿ï¼åé¢åæ¹ï¼ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(svyTaskSingle1.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(svyTaskSingle1.getType()); |
| | | serviceSubtaskRecord.setPreachform("3"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | //éè¿å¤çº¿ç¨çæ¹å¼å»æçµè¯ |
| | | // executorService.submit(new PhoneTask(ivrTaskcall1, ivrTaskTemplateVO1, redisCache, sendService, phonePath, robotPhoneUtils)); |
| | | } |
| | | } else if (descByCode.equals("å¤åªä½")) { |
| | | //å¤åªä½ |
| | | } else if (descByCode.equals("纸质")) { |
| | | //纸质 |
| | | } else if (descByCode.equals("çä¿¡")) { |
| | | //çä¿¡ |
| | | } else if (descByCode.equals("å
¬ä¼å·")) { |
| | | log.error("è¿é®å·å
¬ä¼å·äºåï¼{}", descByCode); |
| | | //å
¬ä¼å· |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | | String taskId = rsaPublicKeyExample.encryptedData(svyTask.getTaskid().toString(), pub_key); |
| | | for (ServiceSubtask svyTaskSingle1 : selectServiceSubtaskList) { |
| | | String patid = rsaPublicKeyExample.encryptedData(svyTaskSingle1.getPatid().toString(), pub_key); |
| | | String url = ip + ":" + req_path + "/outsideChainwt?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskName() + "¶m5=false"; |
| | | //è¿ä¸ªæ¯æä»¬èªå·±ç微信å
¬ä¼å·åéæ¹å¼ï¼ |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType("5"); |
| | | sendMagParam.setUrl(url); |
| | | log.info("龿¥å®æ´è·¯å¾ï¼{}", req_path + "/outsideChainwt?param1=" + taskId + "¶m2=" + patid + "¶m3=" + svyTask.getTaskName() + "¶m5=false"); |
| | | //è¿ä¸ªæ¨¡æ¿IDå
åæ»ï¼åé¢åæå¯é |
| | | sendMagParam.setTmpCode("oG3pJHPVWpE81DmZsua_2tKwgJ97r0qz37z56ns7NB4"); |
| | | Map map = new HashMap(); |
| | | map.put("first", svyTask.getTaskName()); |
| | | sendMagParam.setContent(JSON.toJSONString(map)); |
| | | sendMagParam.setOpenid(svyTaskSingle1.getOpenid()); |
| | | Boolean aBoolean = sendService.sendMsg(sendMagParam); |
| | | log.error("åéæåäºåï¼{}", aBoolean); |
| | | // String wxCode = getWXCode(svyTaskSingle1.getIdcardno(), url); |
| | | |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(svyTaskSingle1.getTaskid().toString()); |
| | | serviceSubtaskRecord.setUuid(UUID.randomUUID().toString()); |
| | | serviceSubtaskRecord.setTasktype(svyTaskSingle1.getType()); |
| | | serviceSubtaskRecord.setPreachform("4"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult("æå"); |
| | | // if (!wxCode.equals("0")) { |
| | | // serviceSubtaskRecord.setResult("失败"); |
| | | // } |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | } |
| | | } |
| | | //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | // /** |
| | | // * æºå¨äººç¬¬ä¸å¥è¯è¯é³ |
| | |
| | | return key; |
| | | } |
| | | |
| | | private String getWXCode(String idcard, String url) { |
| | | private String getWXCode(String idcard, String url, String taskName, String taskDesc, String submitprompt) { |
| | | XinHuaWXReq xinHuaWXReq = new XinHuaWXReq(); |
| | | xinHuaWXReq.setIdcard(idcard); |
| | | xinHuaWXReq.setUrl(url); |
| | | xinHuaWXReq.setKeyword1(null); |
| | | xinHuaWXReq.setKeyword2(null); |
| | | xinHuaWXReq.setKeyword3(null); |
| | | xinHuaWXReq.setKeyword4(null); |
| | | xinHuaWXReq.setKeyword1("æµä¸å»å¤§äºé¢åºé¢é访"); |
| | | xinHuaWXReq.setKeyword2(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); |
| | | xinHuaWXReq.setKeyword3(taskName); |
| | | xinHuaWXReq.setKeyword4("ç¾ç
åº·å¤æ³¨æäºé¡¹"); |
| | | |
| | | String result = HttpUtils.sendPost(thirdWXUrl, new Gson().toJson(xinHuaWXReq)); |
| | | JSONObject jsonObject = JSONObject.parseObject(result); |
| | | String code = (String) jsonObject.get("code"); |
| | | String code = (String) jsonObject.toString(); |
| | | return code; |
| | | } |
| | | |
| | |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import com.ruoyi.framework.config.ServerConfig; |
| | | import com.smartor.domain.HtmlContentVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.poi.hwpf.HWPFDocument; |
| | | import org.apache.poi.hwpf.converter.PicturesManager; |
| | | import org.apache.poi.hwpf.converter.WordToHtmlConverter; |
| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | * @author ruoyi |
| | | */ |
| | | @RestController |
| | | @Api(description = "éè¿è¯·æ±å¤ç") |
| | | @RequestMapping("/common") |
| | | public class CommonController { |
| | | private static final Logger log = LoggerFactory.getLogger(CommonController.class); |
| | |
| | | private ServerConfig serverConfig; |
| | | |
| | | private static final String FILE_DELIMETER = ","; |
| | | |
| | | @Value("${uploadSwitch}") |
| | | private Integer uploadSwitch; |
| | | |
| | | /** |
| | | * éç¨ä¸è½½è¯·æ± |
| | |
| | | /** |
| | | * åç±»ä¸ä¼ è¯·æ± |
| | | */ |
| | | @ApiOperation("åç±»ä¸ä¼ 请æ±") |
| | | @PostMapping("/uploadSort") |
| | | public AjaxResult uploadFileSort(MultipartFile file) { |
| | | try { |
| | |
| | | } |
| | | // ä¸ä¼ å¹¶è¿åæ°æä»¶åç§° |
| | | String fileName = FileUploadUtils.uploadSort(filePath, file); |
| | | String url = serverConfig.getUrl() + fileName; |
| | | String url = null; |
| | | //æ°åå»é¢ç¹æ®ï¼è¿ä¸ªè§é¢ç访é®å¾è½¬ |
| | | String xhPath = "http://218.108.11.22:8093/profile-api"; |
| | | if (uploadSwitch == 1) { |
| | | String fn = fileName.replaceAll("/profile", ""); |
| | | url = xhPath + fn; |
| | | } else { |
| | | url = serverConfig.getUrl() + fileName; |
| | | } |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | ajax.put("url", url); |
| | | ajax.put("fileName", fileName); |
| | |
| | | /** |
| | | * ä¸ä¼ 并转æhtmlè¯·æ± |
| | | */ |
| | | @ApiOperation("wordæä»¶ä¸ä¼ 并转æhtml") |
| | | @PostMapping("/uploadShow") |
| | | public AjaxResult uploadFileShow(MultipartFile file) { |
| | | try { |
| | |
| | | //å°word转æhtml |
| | | convertDocToHtml(filePath + "\\" + file.getOriginalFilename(), filePath + "\\" + file.getOriginalFilename().split("\\.", 2)[0] + ".html"); |
| | | |
| | | String url = serverConfig.getUrl() + fileName.replaceAll("\\.[^.]*$", ".html"); |
| | | String url = null; |
| | | String xhPath = "http://218.108.11.22:8093/profile-api"; |
| | | if (uploadSwitch == 1) { |
| | | String fn = fileName.replaceAll("\\.[^.]*$", ".html").replaceAll("/profile", ""); |
| | | url = xhPath + fn; |
| | | |
| | | } else { |
| | | url = serverConfig.getUrl() + fileName.replaceAll("\\.[^.]*$", ".html"); |
| | | } |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | ajax.put("url", url); |
| | | ajax.put("fileName", fileName); |
| | |
| | | /** |
| | | * éç¨ä¸ä¼ 请æ±ï¼åä¸ªï¼ |
| | | */ |
| | | @ApiOperation("éç¨ä¸ä¼ 请æ±") |
| | | @PostMapping("/upload") |
| | | public AjaxResult uploadFile(MultipartFile file) { |
| | | try { |
| | |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation("坿æ¬è½¬html") |
| | | @PostMapping("/htmlContent") |
| | | public AjaxResult htmlContent(@RequestBody HtmlContentVO htmlContentVO) { |
| | | log.error("htmlContentVOå
¥å为ï¼{}", htmlContentVO); |
| | | // è·åæä»¶çåå§åç§° |
| | | String fileName = htmlContentVO.getFileName(); |
| | | if (!fileName.endsWith(".html")) { |
| | | // 廿ä¹åçæ©å±å |
| | | int lastIndex = fileName.lastIndexOf('.'); |
| | | if (lastIndex != -1) { |
| | | fileName = fileName.substring(0, lastIndex); // 廿æ©å±å |
| | | } |
| | | // æ·»å .htmlåç¼ |
| | | fileName += ".html"; |
| | | } |
| | | FileUtils.createFile(RuoYiConfig.getUploadPath() + "/show/" + fileName.split("\\.", 2)[0]); |
| | | // å°æä»¶ä¿åå°æå®ç®å½ |
| | | File outputFile = new File(RuoYiConfig.getUploadPath() + "/show/" + fileName.split("\\.", 2)[0] + "/" + fileName); |
| | | try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile), "UTF-8"))) { |
| | | writer.write(htmlContentVO.getContent()); |
| | | if (StringUtils.isNotEmpty(htmlContentVO.getContent())) |
| | | writer.write(htmlContentVO.getContent()); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | String url = serverConfig.getUrl() + "/profile/upload/show/" + fileName.split("\\.", 2)[0] + "/" + fileName; |
| | | String url = null; |
| | | String xhPath = "http://218.108.11.22:8093/profile-api"; |
| | | if (uploadSwitch == 1) { |
| | | url = xhPath + "/upload/show/" + fileName.split("\\.", 2)[0] + "/" + fileName; |
| | | } else { |
| | | url = serverConfig.getUrl() + "/profile/upload/show/" + fileName.split("\\.", 2)[0] + "/" + fileName; |
| | | } |
| | | return AjaxResult.success(url); |
| | | } |
| | | |
| | |
| | | |
| | | /** |
| | | * ç¼åçæ§ |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @RestController |
| | |
| | | caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "å¯ç é误次æ°")); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @GetMapping() |
| | | public AjaxResult getInfo() throws Exception |
| | | { |
| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @GetMapping("/getNames") |
| | | public AjaxResult cache() |
| | | { |
| | | return AjaxResult.success(caches); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @GetMapping("/getKeys/{cacheName}") |
| | | public AjaxResult getCacheKeys(@PathVariable String cacheName) |
| | | { |
| | |
| | | return AjaxResult.success(cacheKeys); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @GetMapping("/getValue/{cacheName}/{cacheKey}") |
| | | public AjaxResult getCacheValue(@PathVariable String cacheName, @PathVariable String cacheKey) |
| | | { |
| | |
| | | return AjaxResult.success(sysCache); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @DeleteMapping("/clearCacheName/{cacheName}") |
| | | public AjaxResult clearCacheName(@PathVariable String cacheName) |
| | | { |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @DeleteMapping("/clearCacheKey/{cacheKey}") |
| | | public AjaxResult clearCacheKey(@PathVariable String cacheKey) |
| | | { |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @DeleteMapping("/clearCacheAll") |
| | | public AjaxResult clearCacheAll() |
| | | { |
| | |
| | | @RequestMapping("/monitor/server") |
| | | public class ServerController |
| | | { |
| | | @PreAuthorize("@ss.hasPermi('monitor:server:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:server:list')") |
| | | @GetMapping() |
| | | public AjaxResult getInfo() throws Exception |
| | | { |
| | |
| | | |
| | | /** |
| | | * ç³»ç»è®¿é®è®°å½ |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @RestController |
| | |
| | | @Autowired |
| | | private SysPasswordService passwordService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:logininfor:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysLogininfor logininfor) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "ç»å½æ¥å¿", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:logininfor:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysLogininfor logininfor) |
| | | { |
| | |
| | | util.exportExcel(response, list, "ç»å½æ¥å¿"); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |
| | | @Log(title = "ç»å½æ¥å¿", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{infoIds}") |
| | | public AjaxResult remove(@PathVariable Long[] infoIds) |
| | |
| | | return toAjax(logininforService.deleteLogininforByIds(infoIds)); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |
| | | @Log(title = "ç»å½æ¥å¿", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/clean") |
| | | public AjaxResult clean() |
| | |
| | | return success(); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')") |
| | | @Log(title = "è´¦æ·è§£é", businessType = BusinessType.OTHER) |
| | | @GetMapping("/unlock/{userName}") |
| | | public AjaxResult unlock(@PathVariable("userName") String userName) |
| | |
| | | @Autowired |
| | | private ISysOperLogService operLogService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:operlog:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:operlog:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysOperLog operLog) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "æä½æ¥å¿", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('monitor:operlog:export')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:operlog:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysOperLog operLog) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "æä½æ¥å¿", businessType = BusinessType.DELETE) |
| | | @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |
| | | @DeleteMapping("/{operIds}") |
| | | public AjaxResult remove(@PathVariable Long[] operIds) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "æä½æ¥å¿", businessType = BusinessType.CLEAN) |
| | | @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |
| | | @DeleteMapping("/clean") |
| | | public AjaxResult clean() |
| | | { |
| | |
| | | |
| | | /** |
| | | * å¨çº¿ç¨æ·çæ§ |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @RestController |
| | |
| | | @Autowired |
| | | private RedisCache redisCache; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:online:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:online:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(String ipaddr, String userName) |
| | | { |
| | |
| | | /** |
| | | * 强éç¨æ· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')") |
| | | @Log(title = "å¨çº¿ç¨æ·", businessType = BusinessType.FORCE) |
| | | @DeleteMapping("/{tokenId}") |
| | | public AjaxResult forceLogout(@PathVariable String tokenId) |
| | |
| | | * æ¥è¯¢æ ç¾å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ ç¾å表") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody BaseTag baseTag) { |
| | | PageUtils.startPageByPost(baseTag.getPageNum(), baseTag.getPageSize()); |
| | |
| | | * å¯¼åºæ ç¾å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ ç¾å表") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BaseTag baseTag) { |
| | |
| | | */ |
| | | @ApiOperation("è·åæ ç¾è¯¦ç»ä¿¡æ¯") |
| | | @ApiImplicitParam(name = "remove", value = "主é®ID", dataType = "long", dataTypeClass = Long.class) |
| | | @PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | @GetMapping(value = "/{tagid}") |
| | | public AjaxResult getInfo(@PathVariable("tagid") Long tagid) { |
| | | return success(baseTagService.selectBaseTagByTagid(tagid)); |
| | |
| | | * æ°å¢æ ç¾ |
| | | */ |
| | | @ApiOperation("æ°å¢æ ç¾") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseTag baseTag) { |
| | |
| | | * ä¿®æ¹æ ç¾ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ ç¾") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseTag baseTag) { |
| | |
| | | */ |
| | | @ApiOperation("å 餿 ç¾") |
| | | @ApiImplicitParam(name = "remove", value = "主é®ID", dataType = "long", dataTypeClass = Array.class) |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{tagids}") |
| | | public AjaxResult remove(@PathVariable Long[] tagids) { |
| | |
| | | /** |
| | | * æ¥è¯¢æ ç¾åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody BaseTagcategory baseTagcategory) { |
| | | startPage(); |
| | |
| | | /** |
| | | * å¯¼åºæ ç¾åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:export')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BaseTagcategory baseTagcategory) { |
| | |
| | | /** |
| | | * è·åæ ç¾å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:query')") |
| | | @GetMapping(value = "/{tagcategoryid}") |
| | | public AjaxResult getInfo(@PathVariable("tagcategoryid") Long tagcategoryid) { |
| | | return success(baseTagcategoryService.selectBaseTagcategoryByTagcategoryid(tagcategoryid)); |
| | |
| | | /** |
| | | * æ°å¢æ ç¾åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:add')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢æ ç¾åç±»") |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * ä¿®æ¹æ ç¾åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:edit')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹æ ç¾åç±»") |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * æ ¹æ®åç±»IDå 餿 ç¾åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:remove')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.DELETE) |
| | | @ApiOperation("æ ¹æ®åç±»IDå 餿 ç¾åç±»") |
| | | @GetMapping("/remove/{tagcategoryids}") |
| | |
| | | * æ¥è¯¢ç¨æ·å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ç¨æ·å表") |
| | | @PreAuthorize("@ss.hasPermi('system:info:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody BaseUserInfo baseUserInfo) { |
| | | startPage(); |
| | |
| | | * 导åºç¨æ·å表 |
| | | */ |
| | | @ApiOperation("导åºç¨æ·å表") |
| | | @PreAuthorize("@ss.hasPermi('system:info:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:export')") |
| | | @Log(title = "ç¨æ·" , businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BaseUserInfo baseUserInfo) { |
| | |
| | | * è·åç¨æ·è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åç¨æ·è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:info:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:query')") |
| | | @GetMapping(value = "/{userid}") |
| | | public AjaxResult getInfo(@PathVariable("userid") Long userid) { |
| | | return success(baseUserInfoService.selectBaseUserInfoByUserid(userid)); |
| | |
| | | * æ°å¢ç¨æ· |
| | | */ |
| | | @ApiOperation("æ°å¢ç¨æ·") |
| | | @PreAuthorize("@ss.hasPermi('system:info:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:add')") |
| | | @Log(title = "ç¨æ·" , businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseUserInfo baseUserInfo) { |
| | |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ç¨æ·") |
| | | @PreAuthorize("@ss.hasPermi('system:info:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:edit')") |
| | | @Log(title = "ç¨æ·" , businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseUserInfo baseUserInfo) { |
| | |
| | | * å é¤ç¨æ· |
| | | */ |
| | | @ApiOperation("å é¤ç¨æ·") |
| | | @PreAuthorize("@ss.hasPermi('system:info:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:remove')") |
| | | @Log(title = "ç¨æ·" , businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{userids}") |
| | | public AjaxResult remove(@PathVariable Long[] userids) { |
| | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody Equipmentinfo equipmentinfo) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºã请填ååè½åç§°ãå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:export')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, Equipmentinfo equipmentinfo) { |
| | |
| | | /** |
| | | * è·åã请填ååè½åç§°ã详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(equipmentinfoService.selectEquipmentinfoById(id)); |
| | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:add')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody Equipmentinfo equipmentinfo) { |
| | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody Equipmentinfo equipmentinfo) { |
| | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:remove')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢å®£æåç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢å®£æåç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:hecategory:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:list')") |
| | | @PostMapping("/selectHeCategoryList") |
| | | public TableDataInfo selectHeCategorylist(@RequestBody HeCategory heCategory) { |
| | | // startPage(); |
| | |
| | | * 导åºå®£æåç±»å表 |
| | | */ |
| | | @ApiOperation("导åºå®£æåç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:hecategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:export')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, HeCategory heCategory) { |
| | |
| | | * è·å宣æå类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·å宣æå类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:hecategory:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(heCategoryService.selectHeCategoryById(id)); |
| | |
| | | * æ°å¢å®£æåç±» |
| | | */ |
| | | @ApiOperation("æ°å¢å®£æåç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:hecategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:add')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeCategory heCategory) { |
| | |
| | | * ä¿®æ¹å®£æåç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹å®£æåç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:hecategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:edit')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeCategory heCategory) { |
| | |
| | | * å é¤å®£æåç±» |
| | | */ |
| | | @ApiOperation("å é¤å®£æåç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:hecategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:remove')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢å®£æåç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢å®£æåç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:list')") |
| | | @PostMapping("/selectHeLibraryAssortList") |
| | | public TableDataInfo list(@RequestBody HeLibraryAssort heLibraryAssort) { |
| | | startPage(); |
| | |
| | | * 导åºå®£æåç±»å表 |
| | | */ |
| | | @ApiOperation("导åºå®£æåç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:export')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, HeLibraryAssort heLibraryAssort) { |
| | |
| | | * è·å宣æå类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·å宣æå类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(heLibraryAssortService.selectHeLibraryAssortById(id)); |
| | |
| | | * æ°å¢å®£æåç±» |
| | | */ |
| | | @ApiOperation("æ°å¢å®£æåç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeLibraryAssort heLibraryAssort) { |
| | |
| | | /** |
| | | * æ°å¢å®£æå类详æ
æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢å®£æå类详æ
æ ") |
| | | @PostMapping("/addtree") |
| | |
| | | * ä¿®æ¹å®£æåç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹å®£æåç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:edit')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLibraryAssort heLibraryAssort) { |
| | |
| | | * å é¤å®£æåç±» |
| | | */ |
| | | @ApiOperation("å é¤å®£æåç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:remove')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢å®£æèµæåºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢å®£æèµæåºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:library:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody HeLibrary heLibrary) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºå®£æèµæåºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:export')") |
| | | @Log(title = "宣æèµæåº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, HeLibrary heLibrary) { |
| | |
| | | /** |
| | | * è·å宣æèµæåºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(heLibraryService.selectHeLibraryById(id)); |
| | |
| | | /** |
| | | * æ°å¢å®£æèµæåº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:add')") |
| | | @Log(title = "宣æèµæåº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeLibrary heLibrary) { |
| | |
| | | /** |
| | | * ä¿®æ¹å®£æèµæåº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:edit')") |
| | | @Log(title = "宣æèµæåº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLibrary heLibrary) { |
| | |
| | | * å é¤å®£æèµæåº |
| | | */ |
| | | @ApiOperation("å é¤å®£æèµæåº") |
| | | @PreAuthorize("@ss.hasPermi('system:library:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:remove')") |
| | | @Log(title = "宣æèµæåº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ°å¢æä¿®æ¹å®£æè¯¦æ
|
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹å®£æè¯¦æ
") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateHeLibrary") |
| | | public AjaxResult saveOrUpdateHeLibrary(@RequestBody HeLibraryVO heLibraryVO) { |
| | | if (ObjectUtils.isEmpty(heLibraryVO)) { |
| | |
| | | /** |
| | | * æ¥è¯¢ææ æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(HeLibraryTag heLibraryTag) { |
| | | startPage(); |
| | |
| | | /** |
| | | * å¯¼åºææ æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, HeLibraryTag heLibraryTag) { |
| | |
| | | /** |
| | | * è·åææ æ ç¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(heLibraryTagService.selectHeLibraryTagById(id)); |
| | |
| | | /** |
| | | * æ°å¢ææ æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody HeLibraryTag heLibraryTag) { |
| | |
| | | /** |
| | | * ä¿®æ¹ææ æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody HeLibraryTag heLibraryTag) { |
| | |
| | | /** |
| | | * å é¤ææ æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | |
| | | /** |
| | | * 宣æåºController |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢å®£æåºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:helibrary:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody HeLocallibrary heLocallibrary) |
| | | { |
| | |
| | | /** |
| | | * 导åºå®£æåºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:helibrary:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:export')") |
| | | @Log(title = "宣æåº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, HeLocallibrary heLocallibrary) |
| | |
| | | /** |
| | | * è·å宣æåºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:helibrary:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢å®£æåº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:helibrary:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:add')") |
| | | @Log(title = "宣æåº", businessType = BusinessType.INSERT) |
| | | @PostMapping("add") |
| | | public AjaxResult add(@RequestBody HeLocallibrary heLocallibrary) |
| | |
| | | /** |
| | | * ä¿®æ¹å®£æåº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:helibrary:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:edit')") |
| | | @Log(title = "宣æåº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLocallibrary heLocallibrary) |
| | |
| | | /** |
| | | * å é¤å®£æåº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:helibrary:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:remove')") |
| | | @Log(title = "宣æåº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | * æ¥è¯¢ææ ç¾ç
å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ ç¾ç
å表") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody Icd10Association icd10Association) { |
| | | if (icd10Association.getIsPage()) { |
| | |
| | | * å¯¼åºææ ç¾ç
å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºææ ç¾ç
å表") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:export')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, Icd10Association Icd10Association) { |
| | |
| | | * è·åææ ç¾ç
详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åææ ç¾ç
详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(iIcd10AssociationService.selectIcd10AssociationById(id)); |
| | |
| | | * æ°å¢ææ ç¾ç
|
| | | */ |
| | | @ApiOperation("æ°å¢ææ ç¾ç
") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:add')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody Icd10Association Icd10Association) { |
| | |
| | | * ä¿®æ¹ææ ç¾ç
|
| | | */ |
| | | @ApiOperation("ä¿®æ¹ææ ç¾ç
") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:edit')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody Icd10Association Icd10Association) { |
| | |
| | | * å 餿æ ç¾ç
|
| | | */ |
| | | @ApiOperation("å 餿æ ç¾ç
") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:remove')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢ç¾ç
å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ç¾ç
å表") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody Icd10 icd10) { |
| | | PageUtils.startPageByPost(icd10.getPageNum(),icd10.getPageSize()); |
| | |
| | | * 导åºç¾ç
å表 |
| | | */ |
| | | @ApiOperation("导åºç¾ç
å表") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:export')") |
| | | @Log(title = "ç¾ç
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, Icd10 icd10) { |
| | |
| | | * è·åç¾ç
详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åç¾ç
详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:query')") |
| | | @GetMapping(value = "/getInfo/{icdid}") |
| | | public AjaxResult getInfo(@PathVariable("icdid") Long icdid) { |
| | | return success(icd10Service.selectIcd10ByIcdid(icdid)); |
| | |
| | | * æ°å¢ç¾ç
|
| | | */ |
| | | @ApiOperation("æ°å¢ç¾ç
") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:add')") |
| | | @Log(title = "ç¾ç
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody Icd10 icd10) { |
| | |
| | | * ä¿®æ¹ç¾ç
|
| | | */ |
| | | @ApiOperation("ä¿®æ¹ç¾ç
") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:edit')") |
| | | @Log(title = "ç¾ç
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody Icd10 icd10) { |
| | |
| | | * å é¤ç¾ç
|
| | | */ |
| | | @ApiOperation("å é¤ç¾ç
") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:remove')") |
| | | @Log(title = "ç¾ç
", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{icdids}") |
| | | public AjaxResult remove(@PathVariable Long[] icdids) { |
| | |
| | | /** |
| | | * æ¥è¯¢AIæå¾åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibIntent ivrLibIntent) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIæå¾åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:export')") |
| | | @Log(title = "AIæå¾åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibIntent ivrLibIntent) |
| | |
| | | /** |
| | | * è·åAIæå¾åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:query')") |
| | | @GetMapping(value = "/{intentid}") |
| | | public AjaxResult getInfo(@PathVariable("intentid") Long intentid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIæå¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:add')") |
| | | @Log(title = "AIæå¾åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibIntent ivrLibIntent) |
| | |
| | | /** |
| | | * ä¿®æ¹AIæå¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:edit')") |
| | | @Log(title = "AIæå¾åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibIntent ivrLibIntent) |
| | |
| | | /** |
| | | * å é¤AIæå¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:remove')") |
| | | @Log(title = "AIæå¾åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{intentids}") |
| | | public AjaxResult remove(@PathVariable Long[] intentids) |
| | |
| | | |
| | | /** |
| | | * AIæå¾åºåç±»Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢AIæå¾åºåç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIæå¾åºåç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:export')") |
| | | @Log(title = "AIæå¾åºåç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibIntentcategory ivrLibIntentcategory) |
| | |
| | | /** |
| | | * è·åAIæå¾åºå类详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:query')") |
| | | @GetMapping(value = "/{intertcatid}") |
| | | public AjaxResult getInfo(@PathVariable("intertcatid") Long intertcatid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIæå¾åºåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:add')") |
| | | @Log(title = "AIæå¾åºåç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) |
| | |
| | | /** |
| | | * ä¿®æ¹AIæå¾åºåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:edit')") |
| | | @Log(title = "AIæå¾åºåç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) |
| | |
| | | /** |
| | | * å é¤AIæå¾åºåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:remove')") |
| | | @Log(title = "AIæå¾åºåç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{intertcatids}") |
| | | public AjaxResult remove(@PathVariable Long[] intertcatids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIè¯æ¯åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScript ivrLibScript) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIè¯æ¯åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:export')") |
| | | @Log(title = "AIè¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibScript ivrLibScript) |
| | |
| | | /** |
| | | * è·åAIè¯æ¯åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:query')") |
| | | @GetMapping(value = "/{scriptid}") |
| | | public AjaxResult getInfo(@PathVariable("scriptid") Long scriptid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIè¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:add')") |
| | | @Log(title = "AIè¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScript ivrLibScript) |
| | |
| | | /** |
| | | * ä¿®æ¹AIè¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:edit')") |
| | | @Log(title = "AIè¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScript ivrLibScript) |
| | |
| | | /** |
| | | * å é¤AIè¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:remove')") |
| | | @Log(title = "AIè¯æ¯åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scriptids}") |
| | | public AjaxResult remove(@PathVariable Long[] scriptids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIè¯æ¯åºåç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIè¯æ¯åºåç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:export')") |
| | | @Log(title = "AIè¯æ¯åºåç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibScriptcategory ivrLibScriptcategory) |
| | |
| | | /** |
| | | * è·åAIè¯æ¯åºå类详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:query')") |
| | | @GetMapping(value = "/{categoryid}") |
| | | public AjaxResult getInfo(@PathVariable("categoryid") Long categoryid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIè¯æ¯åºåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:add')") |
| | | @Log(title = "AIè¯æ¯åºåç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | |
| | | /** |
| | | * ä¿®æ¹AIè¯æ¯åºåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:edit')") |
| | | @Log(title = "AIè¯æ¯åºåç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | |
| | | /** |
| | | * å é¤AIè¯æ¯åºåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:remove')") |
| | | @Log(title = "AIè¯æ¯åºåç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{categoryids}") |
| | | public AjaxResult remove(@PathVariable Long[] categoryids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIè¯æ¯æ¨¡åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIè¯æ¯æ¨¡åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:export')") |
| | | @Log(title = "AIè¯æ¯æ¨¡å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibScriptmodel ivrLibScriptmodel) |
| | |
| | | /** |
| | | * è·åAIè¯æ¯æ¨¡å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:query')") |
| | | @GetMapping(value = "/{modelid}") |
| | | public AjaxResult getInfo(@PathVariable("modelid") Long modelid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIè¯æ¯æ¨¡å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:add')") |
| | | @Log(title = "AIè¯æ¯æ¨¡å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | |
| | | /** |
| | | * ä¿®æ¹AIè¯æ¯æ¨¡å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:edit')") |
| | | @Log(title = "AIè¯æ¯æ¨¡å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | |
| | | /** |
| | | * å é¤AIè¯æ¯æ¨¡å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:remove')") |
| | | @Log(title = "AIè¯æ¯æ¨¡å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{modelids}") |
| | | public AjaxResult remove(@PathVariable Long[] modelids) |
| | |
| | | * æ¥è¯¢éç¨æ¨¡æ¿åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éç¨æ¨¡æ¿åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaExtemplateCategory ivrLibaExtemplateCategory) { |
| | | startPage(); |
| | |
| | | * 导åºéç¨æ¨¡æ¿åç±»å表 |
| | | */ |
| | | @ApiOperation("导åºéç¨æ¨¡æ¿åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:export')") |
| | | @Log(title = "éç¨æ¨¡æ¿åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaExtemplateCategory ivrLibaExtemplateCategory) { |
| | |
| | | * è·åéç¨æ¨¡æ¿å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åéç¨æ¨¡æ¿å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | @GetMapping(value = "/getInfo/{intertcatid}") |
| | | public AjaxResult getInfo(@PathVariable("intertcatid") Long intertcatid) { |
| | | return success(ivrLibaExtemplateCategoryService.selectIvrLibaExtemplateCategoryByIntertcatid(intertcatid)); |
| | |
| | | * æ°å¢éç¨æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("æ°å¢éç¨æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | @Log(title = "éç¨æ¨¡æ¿åç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaExtemplateCategory ivrLibaExtemplateCategory) { |
| | |
| | | * ä¿®æ¹éç¨æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹éç¨æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "éç¨æ¨¡æ¿åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaExtemplateCategory ivrLibaExtemplateCategory) { |
| | |
| | | * å é¤éç¨æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("å é¤éç¨æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | @Log(title = "éç¨æ¨¡æ¿åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{intertcatids}") |
| | | public AjaxResult remove(@PathVariable Long[] intertcatids) { |
| | |
| | | * æ¥è¯¢éè¿æ¨¡æ¿å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éè¿æ¨¡æ¿å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplate:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { |
| | | startPage(); |
| | |
| | | * 导åºéè¿æ¨¡æ¿å表 |
| | | */ |
| | | @ApiOperation("导åºéè¿æ¨¡æ¿å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplate:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:export')") |
| | | @Log(title = "éè¿æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaExtemplate ivrLibaExtemplate) { |
| | |
| | | * è·åéè¿æ¨¡æ¿è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åéè¿æ¨¡æ¿è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplate:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:query')") |
| | | @GetMapping(value = "/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") String ID) { |
| | | return success(ivrLibaExtemplateService.selectIvrLibaExtemplateByID(ID)); |
| | |
| | | * æ°å¢éè¿æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("æ°å¢éè¿æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplate:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:add')") |
| | | @Log(title = "éè¿æ¨¡æ¿", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { |
| | |
| | | * ä¿®æ¹éè¿æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹éè¿æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplate:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:edit')") |
| | | @Log(title = "éè¿æ¨¡æ¿", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { |
| | |
| | | * å é¤éè¿æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("å é¤éè¿æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplate:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:remove')") |
| | | @Log(title = "éè¿æ¨¡æ¿", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) { |
| | |
| | | * æ¥è¯¢éç¨æ¨¡æ¿è¯æ¯å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éç¨æ¨¡æ¿è¯æ¯å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplatescript:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) { |
| | | startPage(); |
| | |
| | | * 导åºéç¨æ¨¡æ¿è¯æ¯å表 |
| | | */ |
| | | @ApiOperation("导åºéç¨æ¨¡æ¿è¯æ¯å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplatescript:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:export')") |
| | | @Log(title = "éç¨æ¨¡æ¿è¯æ¯", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaExtemplatescript ivrLibaExtemplatescript) { |
| | |
| | | * è·åéç¨æ¨¡æ¿è¯æ¯è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åéç¨æ¨¡æ¿è¯æ¯è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplatescript:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:query')") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") String ID) { |
| | | return success(ivrLibaExtemplatescriptService.selectIvrLibaExtemplatescriptByID(ID)); |
| | |
| | | * æ°å¢éç¨æ¨¡æ¿è¯æ¯ |
| | | */ |
| | | @ApiOperation("æ°å¢éç¨æ¨¡æ¿è¯æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplatescript:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:add')") |
| | | @Log(title = "éç¨æ¨¡æ¿è¯æ¯", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) { |
| | |
| | | * ä¿®æ¹éç¨æ¨¡æ¿è¯æ¯ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹éç¨æ¨¡æ¿è¯æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplatescript:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:edit')") |
| | | @Log(title = "éç¨æ¨¡æ¿è¯æ¯", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) { |
| | |
| | | * å é¤éç¨æ¨¡æ¿è¯æ¯ |
| | | */ |
| | | @ApiOperation("å é¤éç¨æ¨¡æ¿è¯æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:extemplatescript:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:remove')") |
| | | @Log(title = "éç¨æ¨¡æ¿è¯æ¯", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) { |
| | |
| | | * å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®é¢è¯æ¯åç±»åº(æ ç¶)") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:list')") |
| | | @PostMapping("/selectIvrLibaScriptAssortList") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | | List<IvrLibaScriptAssortVO> list = ivrLibaScriptAssortService.selectIvrLibaScriptAssortList(ivrLibaScriptAssort); |
| | |
| | | * å表 |
| | | */ |
| | | @ApiOperation("导åºé®é¢è¯æ¯åç±»åº") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:export')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | |
| | | * 详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®é¢è¯æ¯åç±»åº") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaScriptAssortService.selectIvrLibaScriptAssortById(id)); |
| | |
| | | * æ°å¢é®é¢è¯æ¯åç±»åº |
| | | */ |
| | | @ApiOperation("æ°å¢é®é¢è¯æ¯åç±»åº") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯åç±»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢é®é¢è¯æ¯åç±»æ ") |
| | | @PostMapping("/addtree") |
| | |
| | | * ä¿®æ¹é®é¢è¯æ¯åç±»åº |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®é¢è¯æ¯åç±»åº") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:edit')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | |
| | | * å é¤é®é¢è¯æ¯åç±»åº |
| | | */ |
| | | @ApiOperation("å é¤é®é¢è¯æ¯åç±»åº") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:remove')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢é®é¢è¯æ¯åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®é¢è¯æ¯åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaScript ivrLibaScript) { |
| | | PageUtils.startPageByPost(ivrLibaScript.getPageNum(),ivrLibaScript.getPageSize()); |
| | |
| | | * 导åºé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @ApiOperation("导åºé®é¢è¯æ¯åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "é®é¢è¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaScript ivrLibaScript) { |
| | |
| | | * è·åé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/getInfo/{questionid}") |
| | | public AjaxResult getInfo(@PathVariable("questionid") String questionid) { |
| | | return success(ivrLibaScriptService.selectIvrLibaScriptByQuestionid(questionid)); |
| | |
| | | * æ°å¢é®é¢è¯æ¯åº |
| | | */ |
| | | @ApiOperation("æ°å¢é®é¢è¯æ¯åº") |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "é®é¢è¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScript ivrLibaScript) { |
| | |
| | | * ä¿®æ¹é®é¢è¯æ¯åº |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®é¢è¯æ¯åº") |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "é®é¢è¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScript ivrLibaScript) { |
| | |
| | | * å é¤é®é¢è¯æ¯åº |
| | | */ |
| | | @ApiOperation("å é¤é®é¢è¯æ¯åº") |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "é®é¢è¯æ¯åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{questionids}") |
| | | public AjaxResult remove(@PathVariable String[] questionids) { |
| | |
| | | * æ¥è¯¢é®é¢è¯æ¯è¯¦æ
æ ¹æ®æ¡ä»¶ |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®é¢è¯æ¯è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody IvrLibaScriptVO ivrLibaScriptVO) { |
| | | if (ObjectUtils.isEmpty(ivrLibaScriptVO)) { |
| | |
| | | * æ°å¢æä¿®æ¹é®é¢è¯¦æ
|
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹é®é¢è¯¦æ
") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateScript") |
| | | public AjaxResult saveOrUpdateScript(@RequestBody IvrLibaScriptVO ivrLibaScriptVO) { |
| | | if (ObjectUtils.isEmpty(ivrLibaScriptVO)) { |
| | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptTag ivrLibaScriptTag) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºé®é¢è¯æ¯æ ç¾åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaScriptTag ivrLibaScriptTag) { |
| | |
| | | /** |
| | | * è·åé®é¢è¯æ¯æ ç¾åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaScriptTagService.selectIvrLibaScriptTagById(id)); |
| | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptTag ivrLibaScriptTag) { |
| | |
| | | /** |
| | | * ä¿®æ¹é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptTag ivrLibaScriptTag) { |
| | |
| | | /** |
| | | * å é¤é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯ææ åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptTarget ivrLibaScriptTarget) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºé®é¢è¯æ¯ææ åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:export')") |
| | | @Log(title = "é®é¢è¯æ¯ææ åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaScriptTarget ivrLibaScriptTarget) { |
| | |
| | | /** |
| | | * è·åé®é¢è¯æ¯ææ åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:query')") |
| | | @GetMapping(value = "/getInfo/{questionTargetID}") |
| | | public AjaxResult getInfo(@PathVariable("questionTargetID") String questionTargetID) { |
| | | return success(ivrLibaScriptTargetService.selectIvrLibaScriptTargetByQuestionTargetID(questionTargetID)); |
| | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯ææ åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:add')") |
| | | @Log(title = "é®é¢è¯æ¯ææ åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptTarget ivrLibaScriptTarget) { |
| | |
| | | /** |
| | | * ä¿®æ¹é®é¢è¯æ¯ææ åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:edit')") |
| | | @Log(title = "é®é¢è¯æ¯ææ åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptTarget ivrLibaScriptTarget) { |
| | |
| | | /** |
| | | * å é¤é®é¢è¯æ¯ææ åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:remove')") |
| | | @Log(title = "é®é¢è¯æ¯ææ åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{questionTargetIDs}") |
| | | public AjaxResult remove(@PathVariable Integer[] ids) { |
| | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptTargetoption ivrLibaScriptTargetoption) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºé®é¢è¯æ¯ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "é®é¢è¯æ¯ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaScriptTargetoption ivrLibaScriptTargetoption) { |
| | |
| | | /** |
| | | * è·åé®é¢è¯æ¯ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/getInfo/{targetoptionid}") |
| | | public AjaxResult getInfo(@PathVariable("targetoptionid") String targetoptionid) { |
| | | return success(ivrLibaScriptTargetoptionService.selectIvrLibaScriptTargetoptionByTargetoptionid(targetoptionid)); |
| | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "é®é¢è¯æ¯ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptTargetoption ivrLibaScriptTargetoption) { |
| | |
| | | /** |
| | | * ä¿®æ¹é®é¢è¯æ¯ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "é®é¢è¯æ¯ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptTargetoption ivrLibaScriptTargetoption) { |
| | |
| | | /** |
| | | * å é¤é®é¢è¯æ¯ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "é®é¢è¯æ¯ææ é项åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{targetoptionids}") |
| | | public AjaxResult remove(@PathVariable String[] targetoptionids) { |
| | |
| | | * æ¥è¯¢ææ åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:list')") |
| | | @PostMapping("/selectIvrLibaTargetAssortList") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetAssort ivrLibaTargetAssort) { |
| | | // PageUtils.startPageByPost(ivrLibaTargetAssort.getPageNum(), ivrLibaTargetAssort.getPageSize()); |
| | |
| | | * å¯¼åºææ åç±»å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºææ åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:export')") |
| | | @Log(title = "ææ åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTargetAssort ivrLibaTargetAssort) { |
| | |
| | | * è·åææ å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åææ å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaTargetAssortService.selectIvrLibaTargetAssortById(id)); |
| | |
| | | * æ°å¢ææ åç±» |
| | | */ |
| | | @ApiOperation("æ°å¢ææ åç±»") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "ææ åç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetAssort ivrLibaTargetAssort) { |
| | |
| | | /** |
| | | * æ°å¢ææ åç±»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "ææ åç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ææ åç±»æ ") |
| | | @PostMapping("/addtree") |
| | |
| | | * ä¿®æ¹ææ åç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ææ åç±»") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:edit')") |
| | | @Log(title = "ææ åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetAssort ivrLibaTargetAssort) { |
| | |
| | | * å 餿æ åç±» |
| | | */ |
| | | @ApiOperation("å 餿æ åç±»") |
| | | @PreAuthorize("@ss.hasPermi('system:assort:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:remove')") |
| | | @Log(title = "ææ åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢ææ é项åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ å表") |
| | | @PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTarget ivrLibaTarget) { |
| | | PageUtils.startPageByPost(ivrLibaTarget.getPageNum(), ivrLibaTarget.getPageSize()); |
| | |
| | | /** |
| | | * å¯¼åºææ å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:export')") |
| | | @Log(title = "ææ åº", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("å¯¼åºææ å表") |
| | | @PostMapping("/export") |
| | |
| | | * è·åææ ä¿¡æ¯éè¿id |
| | | */ |
| | | @ApiOperation("è·åææ ä¿¡æ¯éè¿id") |
| | | @PreAuthorize("@ss.hasPermi('system:target:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaTargetService.selectIvrLibaTargetByTargetID(id)); |
| | |
| | | /** |
| | | * æ°å¢ææ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:add')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ææ ï¼è¿ä¸ªæ¥å£æ²¡å¥ç¨äºï¼ç¨âæ°å¢æä¿®æ¹ææ ä¿¡æ¯âè¿ä¸ªæ¥å£å¥½ä¸äºï¼") |
| | | @PostMapping("/add") |
| | |
| | | * å 餿æ |
| | | */ |
| | | @ApiOperation("å 餿æ ") |
| | | @PreAuthorize("@ss.hasPermi('system:target:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:remove')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢ææ é项åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ åå
³èçææ é项") |
| | | @PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | @PostMapping("/targetInfo") |
| | | public TableDataInfo targetInfo(@RequestBody IvrLibaTarget ivrLibaTarget) { |
| | | PageUtils.startPageByPost(ivrLibaTarget.getPageNum(), ivrLibaTarget.getPageSize()); |
| | |
| | | /** |
| | | * æ¥è¯¢ææ æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetTag ivrLibaTargetTag) { |
| | | startPage(); |
| | |
| | | /** |
| | | * å¯¼åºææ æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTargetTag ivrLibaTargetTag) { |
| | |
| | | /** |
| | | * è·åææ æ ç¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaTargetTagService.selectIvrLibaTargetTagById(id)); |
| | |
| | | /** |
| | | * æ°å¢ææ æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetTag ivrLibaTargetTag) { |
| | |
| | | /** |
| | | * ä¿®æ¹ææ æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetTag ivrLibaTargetTag) { |
| | |
| | | /** |
| | | * å é¤ææ æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢ææ é项åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ é项åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | |
| | | * å¯¼åºææ é项åºå表 |
| | | */ |
| | | @ApiOperation("å¯¼åºææ é项åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTargetoption ivrLibaTargetoption) |
| | |
| | | * è·åææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åææ é项åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/getInfo/{targetoptionid}") |
| | | public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid) |
| | | { |
| | |
| | | * æ°å¢ææ éé¡¹åº |
| | | */ |
| | | @ApiOperation("æ°å¢ææ é项åº") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | |
| | | * ä¿®æ¹ææ éé¡¹åº |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ææ é项åº") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | |
| | | * å 餿æ éé¡¹åº |
| | | */ |
| | | @ApiOperation("å 餿æ é项åº") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{targetoptionids}") |
| | | public AjaxResult remove(@PathVariable Long[] targetoptionids) |
| | |
| | | * æ¥è¯¢æ¨¡æ¿åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:list')") |
| | | @PostMapping("/selectIvrLibaTemplateAssortList") |
| | | public TableDataInfo selectIvrLibaTemplateAssortList(@RequestBody IvrLibaTemplateAssort ivrLibaTemplateAssort) { |
| | | // startPage(); |
| | |
| | | * å¯¼åºæ¨¡æ¿åç±»å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ¨¡æ¿åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:export')") |
| | | @Log(title = "模æ¿åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTemplateAssort ivrLibaTemplateAssort) { |
| | |
| | | * è·å模æ¿å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·å模æ¿å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaTemplateAssortService.selectIvrLibaTemplateAssortById(id)); |
| | |
| | | * æ°å¢æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("æ°å¢æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "模æ¿åç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateAssort ivrLibaTemplateAssort) { |
| | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿åç±»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "模æ¿åç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢æ¨¡æ¿åç±»æ ") |
| | | @PostMapping("/addtree") |
| | |
| | | * ä¿®æ¹æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:edit')") |
| | | @Log(title = "模æ¿åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateAssort ivrLibaTemplateAssort) { |
| | |
| | | * å 餿¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("å 餿¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:remove')") |
| | | @Log(title = "模æ¿åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢æ¨¡æ¿åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é访模æ¿åºå表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:template:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplate ivrLibaTemplate) { |
| | | //å页 |
| | |
| | | * å¯¼åºæ¨¡æ¿åºå表 |
| | | */ |
| | | @ApiOperation("导åºé访模æ¿åºå表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:template:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:export')") |
| | | @Log(title = "模æ¿åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTemplate ivrLibaTemplate) { |
| | |
| | | * è·å模æ¿åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé访模æ¿åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:template:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:query')") |
| | | @GetMapping(value = "/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) { |
| | | return success(ivrLibaTemplateService.selectIvrLibaTemplateByID(ID)); |
| | |
| | | * æ°å¢æ¨¡æ¿åº |
| | | */ |
| | | @ApiOperation("æ°å¢é访模æ¿åº") |
| | | @PreAuthorize("@ss.hasPermi('smartor:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:add')") |
| | | @Log(title = "模æ¿åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplate ivrLibaTemplate) { |
| | |
| | | * ä¿®æ¹æ¨¡æ¿åº |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é访模æ¿åº") |
| | | @PreAuthorize("@ss.hasPermi('smartor:template:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:edit')") |
| | | @Log(title = "模æ¿åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplate ivrLibaTemplate) { |
| | |
| | | * å 餿¨¡æ¿åº |
| | | */ |
| | | @ApiOperation("å é¤é访模æ¿åº") |
| | | @PreAuthorize("@ss.hasPermi('smartor:template:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:remove')") |
| | | @Log(title = "模æ¿åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) { |
| | |
| | | * æ¥è¯¢æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡çé®é¢è¯æ¯åºå表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) |
| | | { |
| | |
| | | * å¯¼åºæ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ¨¡çé®é¢è¯æ¯åºå表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:script:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:export')") |
| | | @Log(title = "模çé®é¢è¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTemplateScript ivrLibaTemplateScript) |
| | |
| | | * è·å模çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·å模çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:script:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:query')") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) |
| | | { |
| | |
| | | * æ°å¢æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @ApiOperation("æ°å¢æ¨¡çé®é¢è¯æ¯åº") |
| | | @PreAuthorize("@ss.hasPermi('smartor:script:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:add')") |
| | | @Log(title = "模çé®é¢è¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) |
| | |
| | | * ä¿®æ¹æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ¨¡çé®é¢è¯æ¯åº") |
| | | @PreAuthorize("@ss.hasPermi('smartor:script:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:edit')") |
| | | @Log(title = "模çé®é¢è¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) |
| | |
| | | * å 餿¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @ApiOperation("å 餿¨¡çé®é¢è¯æ¯åº") |
| | | @PreAuthorize("@ss.hasPermi('smartor:script:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:remove')") |
| | | @Log(title = "模çé®é¢è¯æ¯åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) |
| | |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾å表 |
| | | */ |
| | | // @ApiOperation("æ¥è¯¢æ¨¡æ¿æ ç¾å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:tag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplateTag ivrLibaTemplateTag) { |
| | | startPage(); |
| | |
| | | * å¯¼åºæ¨¡æ¿æ ç¾å表 |
| | | */ |
| | | // @ApiOperation("å¯¼åºæ¨¡æ¿æ ç¾å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:tag:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:export')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTemplateTag ivrLibaTemplateTag) { |
| | |
| | | * è·åæ¨¡æ¿æ ç¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ¨¡æ¿æ ç¾è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:tag:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaTemplateTagService.selectIvrLibaTemplateTagById(id)); |
| | |
| | | * æ°å¢æ¨¡æ¿æ ç¾ |
| | | */ |
| | | @ApiOperation("æ°å¢æ¨¡æ¿æ ç¾") |
| | | @PreAuthorize("@ss.hasPermi('smartor:tag:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:add')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateTag ivrLibaTemplateTag) { |
| | |
| | | * ä¿®æ¹æ¨¡æ¿æ ç¾ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿æ ç¾") |
| | | @PreAuthorize("@ss.hasPermi('smartor:tag:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:edit')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateTag ivrLibaTemplateTag) { |
| | |
| | | * å 餿¨¡æ¿æ ç¾ |
| | | */ |
| | | @ApiOperation("å 餿¨¡æ¿æ ç¾") |
| | | @PreAuthorize("@ss.hasPermi('smartor:tag:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:remove')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿ææ é项åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption) { |
| | | startPage(); |
| | |
| | | * å¯¼åºæ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ¨¡æ¿ææ é项åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "æ¨¡æ¿ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption) { |
| | |
| | | * è·åæ¨¡æ¿ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ¨¡æ¿ææ é项åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaTemplateTargetoptionService.selectIvrLibaTemplateTargetoptionById(id)); |
| | |
| | | * æ°å¢æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @ApiOperation("æ°å¢æ¨¡æ¿ææ é项åº") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "æ¨¡æ¿ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption) { |
| | |
| | | * ä¿®æ¹æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿ææ é项åº") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "æ¨¡æ¿ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption) { |
| | |
| | | * å 餿¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @ApiOperation("å 餿¨¡æ¿ææ é项åº") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "æ¨¡æ¿ææ é项åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼åºæ¯ç®¡çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscene:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrScene ivrScene) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼åºæ¯ç®¡çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscene:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:export')") |
| | | @Log(title = "AIå¤å¼åºæ¯ç®¡ç", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrScene ivrScene) |
| | |
| | | /** |
| | | * è·åAIå¤å¼åºæ¯ç®¡ç详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscene:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:query')") |
| | | @GetMapping(value = "/{sceneid}") |
| | | public AjaxResult getInfo(@PathVariable("sceneid") Long sceneid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼åºæ¯ç®¡ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscene:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:add')") |
| | | @Log(title = "AIå¤å¼åºæ¯ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrScene ivrScene) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼åºæ¯ç®¡ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscene:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:edit')") |
| | | @Log(title = "AIå¤å¼åºæ¯ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrScene ivrScene) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼åºæ¯ç®¡ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscene:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:remove')") |
| | | @Log(title = "AIå¤å¼åºæ¯ç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{sceneids}") |
| | | public AjaxResult remove(@PathVariable Long[] sceneids) |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼æ§è¡é
ç½®Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼æ§è¡é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼æ§è¡é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:export')") |
| | | @Log(title = "AIå¤å¼æ§è¡é
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | |
| | | /** |
| | | * è·åAIå¤å¼æ§è¡é
置详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:query')") |
| | | @GetMapping(value = "/{scenecfgid}") |
| | | public AjaxResult getInfo(@PathVariable("scenecfgid") Long scenecfgid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼æ§è¡é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:add')") |
| | | @Log(title = "AIå¤å¼æ§è¡é
ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼æ§è¡é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:edit')") |
| | | @Log(title = "AIå¤å¼æ§è¡é
ç½®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼æ§è¡é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:remove')") |
| | | @Log(title = "AIå¤å¼æ§è¡é
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scenecfgids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenecfgids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼æµç¨å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflow:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlow ivrSceneFlow) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼æµç¨å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflow:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:export')") |
| | | @Log(title = "AIå¤å¼æµç¨", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneFlow ivrSceneFlow) |
| | |
| | | /** |
| | | * è·åAIå¤å¼æµç¨è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflow:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:query')") |
| | | @GetMapping(value = "/{flowid}") |
| | | public AjaxResult getInfo(@PathVariable("flowid") Long flowid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼æµç¨ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflow:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:add')") |
| | | @Log(title = "AIå¤å¼æµç¨", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneFlow ivrSceneFlow) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼æµç¨ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflow:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:edit')") |
| | | @Log(title = "AIå¤å¼æµç¨", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneFlow ivrSceneFlow) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼æµç¨ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflow:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:remove')") |
| | | @Log(title = "AIå¤å¼æµç¨", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{flowids}") |
| | | public AjaxResult remove(@PathVariable Long[] flowids) |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼æµç¨èç¹Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼æµç¨èç¹å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownode:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlownode ivrSceneFlownode) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼æµç¨èç¹å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownode:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:export')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneFlownode ivrSceneFlownode) |
| | |
| | | /** |
| | | * è·åAIå¤å¼æµç¨èç¹è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownode:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:query')") |
| | | @GetMapping(value = "/{flownodeid}") |
| | | public AjaxResult getInfo(@PathVariable("flownodeid") Long flownodeid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼æµç¨èç¹ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownode:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:add')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneFlownode ivrSceneFlownode) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼æµç¨èç¹ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownode:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:edit')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneFlownode ivrSceneFlownode) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼æµç¨èç¹ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownode:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:remove')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{flownodeids}") |
| | | public AjaxResult remove(@PathVariable Long[] flownodeids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼æµç¨èç¹åæ¯å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼æµç¨èç¹åæ¯å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:export')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹åæ¯", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | |
| | | /** |
| | | * è·åAIå¤å¼æµç¨èç¹åæ¯è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:query')") |
| | | @GetMapping(value = "/{branchid}") |
| | | public AjaxResult getInfo(@PathVariable("branchid") Long branchid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼æµç¨èç¹åæ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:add')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹åæ¯", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼æµç¨èç¹åæ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:edit')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹åæ¯", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼æµç¨èç¹åæ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:remove')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹åæ¯", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{branchids}") |
| | | public AjaxResult remove(@PathVariable Long[] branchids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼å
¨å±é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼å
¨å±é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:export')") |
| | | @Log(title = "AIå¤å¼å
¨å±é
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | |
| | | /** |
| | | * è·åAIå¤å¼å
¨å±é
置详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:query')") |
| | | @GetMapping(value = "/{gblconfigid}") |
| | | public AjaxResult getInfo(@PathVariable("gblconfigid") Long gblconfigid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼å
¨å±é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:add')") |
| | | @Log(title = "AIå¤å¼å
¨å±é
ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼å
¨å±é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:edit')") |
| | | @Log(title = "AIå¤å¼å
¨å±é
ç½®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼å
¨å±é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:remove')") |
| | | @Log(title = "AIå¤å¼å
¨å±é
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{gblconfigids}") |
| | | public AjaxResult remove(@PathVariable Long[] gblconfigids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼æå¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼æå¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:export')") |
| | | @Log(title = "AIå¤å¼æå¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneIntent ivrSceneIntent) |
| | |
| | | /** |
| | | * è·åAIå¤å¼æå¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:query')") |
| | | @GetMapping(value = "/{sceneintentid}") |
| | | public AjaxResult getInfo(@PathVariable("sceneintentid") Long sceneintentid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼æå¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:add')") |
| | | @Log(title = "AIå¤å¼æå¾", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼æå¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:edit')") |
| | | @Log(title = "AIå¤å¼æå¾", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼æå¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrintent:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:remove')") |
| | | @Log(title = "AIå¤å¼æå¾", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{sceneintentids}") |
| | | public AjaxResult remove(@PathVariable Long[] sceneintentids) |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼éæ¨é
ç½®Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼éæ¨é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼éæ¨é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:export')") |
| | | @Log(title = "AIå¤å¼éæ¨é
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneRecall ivrSceneRecall) |
| | |
| | | /** |
| | | * è·åAIå¤å¼éæ¨é
置详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:query')") |
| | | @GetMapping(value = "/{recallid}") |
| | | public AjaxResult getInfo(@PathVariable("recallid") Long recallid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼éæ¨é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:add')") |
| | | @Log(title = "AIå¤å¼éæ¨é
ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼éæ¨é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:edit')") |
| | | @Log(title = "AIå¤å¼éæ¨é
ç½®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼éæ¨é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrrecall:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:remove')") |
| | | @Log(title = "AIå¤å¼éæ¨é
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{recallids}") |
| | | public AjaxResult remove(@PathVariable Long[] recallids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼è¯æ¯å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscript:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneScript ivrSceneScript) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼è¯æ¯å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscript:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:export')") |
| | | @Log(title = "AIå¤å¼è¯æ¯", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneScript ivrSceneScript) |
| | |
| | | /** |
| | | * è·åAIå¤å¼è¯æ¯è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscript:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:query')") |
| | | @GetMapping(value = "/{scenescrid}") |
| | | public AjaxResult getInfo(@PathVariable("scenescrid") Long scenescrid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼è¯æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscript:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:add')") |
| | | @Log(title = "AIå¤å¼è¯æ¯", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneScript ivrSceneScript) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼è¯æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscript:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:edit')") |
| | | @Log(title = "AIå¤å¼è¯æ¯", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneScript ivrSceneScript) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼è¯æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscript:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:remove')") |
| | | @Log(title = "AIå¤å¼è¯æ¯", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scenescrids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenescrids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIå¤å¼è¯æ¯æ¨¡åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) |
| | | { |
| | |
| | | /** |
| | | * 导åºAIå¤å¼è¯æ¯æ¨¡åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:export')") |
| | | @Log(title = "AIå¤å¼è¯æ¯æ¨¡å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneScriptmodel ivrSceneScriptmodel) |
| | |
| | | /** |
| | | * è·åAIå¤å¼è¯æ¯æ¨¡å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:query')") |
| | | @GetMapping(value = "/{scenemodid}") |
| | | public AjaxResult getInfo(@PathVariable("scenemodid") Long scenemodid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢AIå¤å¼è¯æ¯æ¨¡å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:add')") |
| | | @Log(title = "AIå¤å¼è¯æ¯æ¨¡å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) |
| | |
| | | /** |
| | | * ä¿®æ¹AIå¤å¼è¯æ¯æ¨¡å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:edit')") |
| | | @Log(title = "AIå¤å¼è¯æ¯æ¨¡å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) |
| | |
| | | /** |
| | | * å é¤AIå¤å¼è¯æ¯æ¨¡å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:remove')") |
| | | @Log(title = "AIå¤å¼è¯æ¯æ¨¡å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scenemodids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenemodids) |
| | |
| | | /** |
| | | * æ¥è¯¢AIæå¡åºæ¯ç®¡çåç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrScenecategory ivrScenecategory) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºAIæå¡åºæ¯ç®¡çåç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:export')") |
| | | @Log(title = "AIæå¡åºæ¯ç®¡çåç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrScenecategory ivrScenecategory) { |
| | |
| | | /** |
| | | * è·åAIæå¡åºæ¯ç®¡çå类详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:query')") |
| | | @GetMapping(value = "/{scenecatid}") |
| | | public AjaxResult getInfo(@PathVariable("scenecatid") Long scenecatid) { |
| | | return success(ivrScenecategoryService.selectIvrScenecategoryByScenecatid(scenecatid)); |
| | |
| | | /** |
| | | * æ°å¢AIæå¡åºæ¯ç®¡çåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:add')") |
| | | @Log(title = "AIæå¡åºæ¯ç®¡çåç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrScenecategory ivrScenecategory) { |
| | |
| | | /** |
| | | * ä¿®æ¹AIæå¡åºæ¯ç®¡çåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:edit')") |
| | | @Log(title = "AIæå¡åºæ¯ç®¡çåç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrScenecategory ivrScenecategory) { |
| | |
| | | /** |
| | | * å é¤AIæå¡åºæ¯ç®¡çåç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:remove')") |
| | | @Log(title = "AIæå¡åºæ¯ç®¡çåç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scenecatids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenecatids) { |
| | |
| | | * æ¥è¯¢é访任å¡é访模æ¿åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é访任å¡é访模æ¿åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºé访任å¡é访模æ¿åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | @ApiOperation("导åºé访任å¡é访模æ¿åºå表") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskTemplate ivrTaskTemplate) { |
| | |
| | | /** |
| | | * è·åé访任å¡é访模æ¿åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | @ApiOperation("è·åé访任å¡é访模æ¿åºè¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) { |
| | |
| | | /** |
| | | * æ°å¢é访任å¡é访模æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ°å¢é访任å¡é访模æ¿åº") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é访任å¡é访模æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ°å¢æä¿®æ¹é访任å¡é访模æ¿åº") |
| | | @PostMapping("/saveOrUpdateTempScript") |
| | | public AjaxResult saveOrUpdateTempScript(@RequestBody IvrTaskTemplateVO ivrTaskTemplateVO) { |
| | |
| | | /** |
| | | * ä¿®æ¹é访任å¡é访模æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @ApiOperation("ä¿®æ¹é访任å¡é访模æ¿åº") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | |
| | | /** |
| | | * å é¤é访任å¡é访模æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | @ApiOperation("å é¤é访任å¡é访模æ¿åº") |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) { |
| | |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | |
| | | * 导åºéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @ApiOperation("导åºéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskTemplateScript ivrTaskTemplateScript) |
| | |
| | | * è·åéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @ApiOperation("æ°å¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @ApiOperation("ä¿®æ¹éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @ApiOperation("å é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) |
| | |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºéè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @ApiOperation("导åºéè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | |
| | | * è·åéè®¿ä»»å¡æ¨¡æ¿ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åéè®¿ä»»å¡æ¨¡æ¿ææ é项åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrTaskTemplateTargetoptionService.selectIvrTaskTemplateTargetoptionById(id)); |
| | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @ApiOperation("æ°å¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åº") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @ApiOperation("ä¿®æ¹éè®¿ä»»å¡æ¨¡æ¿ææ é项åº") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @ApiOperation("å é¤éè®¿ä»»å¡æ¨¡æ¿ææ é项åº") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
é访信æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:result:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(IvrTaskVisitResult ivrTaskVisitResult) { |
| | | startPage(); |
| | |
| | | * 导åºä»»å¡éè®¿ç»æå表 |
| | | */ |
| | | @ApiOperation("导åºä»»å¡éè®¿ç»æå表") |
| | | @PreAuthorize("@ss.hasPermi('system:result:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:export')") |
| | | @Log(title = "ä»»å¡éè®¿ç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskVisitResult ivrTaskVisitResult) { |
| | |
| | | * è·åä»»å¡éè®¿ç»æè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åä»»å¡éè®¿ç»æè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrTaskVisitResultService.selectIvrTaskVisitResultById(id)); |
| | |
| | | * æ°å¢ä»»å¡éè®¿ç»æ |
| | | */ |
| | | @ApiOperation("æ°å¢ä»»å¡éè®¿ç»æ") |
| | | @PreAuthorize("@ss.hasPermi('system:result:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:add')") |
| | | @Log(title = "ä»»å¡éè®¿ç»æ", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskVisitResult ivrTaskVisitResult) { |
| | |
| | | * ä¿®æ¹ä»»å¡éè®¿ç»æ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ä»»å¡éè®¿ç»æ") |
| | | @PreAuthorize("@ss.hasPermi('system:result:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:edit')") |
| | | @Log(title = "ä»»å¡éè®¿ç»æ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskVisitResult ivrTaskVisitResult) { |
| | |
| | | * å é¤ä»»å¡éè®¿ç»æ |
| | | */ |
| | | @ApiOperation("å é¤ä»»å¡éè®¿ç»æ") |
| | | @PreAuthorize("@ss.hasPermi('system:result:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:remove')") |
| | | @Log(title = "ä»»å¡éè®¿ç»æ", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¼å«è®°å½Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) |
| | | { |
| | |
| | | /** |
| | | * 导åºè¯é³ä»»å¡å¼å«è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:export')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskcallrecord ivrTaskcallrecord) |
| | |
| | | /** |
| | | * è·åè¯é³ä»»å¡å¼å«è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:query')") |
| | | @GetMapping(value = "/{uuid}") |
| | | public AjaxResult getInfo(@PathVariable("uuid") String uuid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡å¼å«è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:add')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) |
| | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡å¼å«è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:edit')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) |
| | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡å¼å«è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:remove')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{uuids}") |
| | | public AjaxResult remove(@PathVariable String[] uuids) |
| | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡çä¿¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTasksms ivrTasksms) |
| | | { |
| | |
| | | /** |
| | | * 导åºè¯é³ä»»å¡çä¿¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:export')") |
| | | @Log(title = "è¯é³ä»»å¡çä¿¡", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTasksms ivrTasksms) |
| | |
| | | /** |
| | | * è·åè¯é³ä»»å¡ç信详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡çä¿¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:add')") |
| | | @Log(title = "è¯é³ä»»å¡çä¿¡", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTasksms ivrTasksms) |
| | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡çä¿¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:edit')") |
| | | @Log(title = "è¯é³ä»»å¡çä¿¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTasksms ivrTasksms) |
| | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡çä¿¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:remove')") |
| | | @Log(title = "è¯é³ä»»å¡çä¿¡", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢ç
å²å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:history:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:history:list')") |
| | | @PostMapping("/selectMedicalHistoryList") |
| | | @ApiOperation("æ¥è¯¢ç
å²å表") |
| | | public TableDataInfo selectMedicalHistorylist(@RequestBody MedicalHistory medicalHistory) { |
| | |
| | | /** |
| | | * 导åºç
å²å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:history:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:history:export')") |
| | | @Log(title = "ç
å²", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("导åºç
å²å表") |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * è·åç
å²è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:history:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:history:query')") |
| | | @ApiOperation("è·åç
å²è¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id,@PathVariable("pid") Long pid) { |
| | |
| | | /** |
| | | * æ°å¢ç
å² |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:history:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:history:add')") |
| | | @Log(title = "ç
å²", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ç
å²") |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * ä¿®æ¹ç
å² |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:history:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:history:edit')") |
| | | @Log(title = "ç
å²", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹ç
å²") |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * å é¤ç
å² |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:history:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:history:remove')") |
| | | @Log(title = "ç
å²", businessType = BusinessType.DELETE) |
| | | @ApiOperation("å é¤ç
å²") |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody MinioFile minioFile) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºã请填ååè½åç§°ãå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:export')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, MinioFile minioFile) { |
| | |
| | | /** |
| | | * è·åã请填ååè½åç§°ã详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(minioFileService.selectMinioFileById(id)); |
| | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:add')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody MinioFile minioFile) { |
| | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody MinioFile minioFile) { |
| | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:remove')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * è·åï¼å®£æï¼å¼ç¨æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | @ApiOperation(value = "è·åï¼å®£æï¼å¼ç¨æ¨¡æ¿") |
| | | @GetMapping("/getEduTemplage") |
| | | public AjaxResult getEduTemplage() { |
| | |
| | | * æ¥è¯¢æ£è
æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
æ¡£æ¡å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatArchive patArchive) { |
| | | startPage(); |
| | |
| | | * å¯¼åºæ£è
æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
æ¡£æ¡å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patarchive:export')") |
| | | @Log(title = "æ£è
æ¡£æ¡" , businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatArchive patArchive) { |
| | |
| | | * è·åæ£è
æ¡£æ¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
æ¡£æ¡è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patarchive:query')") |
| | | @GetMapping(value = "/getInfo/{patid}") |
| | | @ApiImplicitParam(name = "patid" , value = "æ£è
id") |
| | | public AjaxResult getInfo(@PathVariable(name = "patid") Long patid) { |
| | |
| | | // * æ°å¢æ£è
æ¡£æ¡ |
| | | // */ |
| | | // @ApiOperation("æ°å¢æ£è
æ¡£æ¡") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:patarchive:add')") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:patarchive:add')") |
| | | // @Log(title = "æ£è
æ¡£æ¡", businessType = BusinessType.INSERT) |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody PatArchive patArchive) { |
| | |
| | | * æ°å¢æ£è
æ¡£æ¡ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
æ¡£æ¡") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:update')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patarchive:update')") |
| | | @Log(title = "æ£è
æ¡£æ¡" , businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody PatArchive patArchive) { |
| | |
| | | * æ°å¢æä¿®æ¹æ£è
æ¡£ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹æ£è
档信æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patarchive:edit')") |
| | | @Log(title = "æ£è
æ¡£æ¡" , businessType = BusinessType.UPDATE) |
| | | @PostMapping("/saveOrUpdatePatInfo") |
| | | public AjaxResult saveOrUpdatePatInfo(@RequestBody PatArchiveVO patArchiveVO) { |
| | |
| | | * å 餿£è
æ¡£æ¡ |
| | | */ |
| | | @ApiOperation("å 餿£è
æ¡£æ¡") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patarchive:remove')") |
| | | @Log(title = "æ£è
æ¡£æ¡" , businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{patids}") |
| | | @ApiImplicitParam(name = "patids" , value = "æ£è
idéå" , dataType = "long" , dataTypeClass = Long.class) |
| | |
| | | @PostMapping("/getPatientInfo") |
| | | public TableDataInfo getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) { |
| | | PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize()); |
| | | List<ServiceSubtask> patientInfo = patArchiveService.getPatientInfo(patArchiveReq); |
| | | List<PatArchiveOthreInfo> patientInfo = patArchiveService.getPatientInfo(patArchiveReq); |
| | | long count = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import com.smartor.domain.SvyLibScriptRes; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.http.MediaType; |
| | | 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.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 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.domain.PatArchiveImport; |
| | | import com.smartor.service.IPatArchiveImportService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * Excel导å
¥æ£è
æ¡£æ¡Controller |
| | | * |
| | | * @author lihu |
| | | * @date 2024-09-05 |
| | | */ |
| | | @Api("Excel导å
¥æ£è
æ¡£æ¡") |
| | | @RestController |
| | | @RequestMapping("/smartor/import") |
| | | public class PatArchiveImportController extends BaseController { |
| | | @Autowired |
| | | private IPatArchiveImportService patArchiveImportService; |
| | | |
| | | /** |
| | | * æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:import:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatArchiveImport patArchiveImport) { |
| | | startPage(); |
| | | List<PatArchiveImport> list = patArchiveImportService.selectPatArchiveImportList(patArchiveImport); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * è·åExcel导å
¥æ£è
æ¡£æ¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åExcel导å
¥æ£è
æ¡£æ¡è¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:import:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patArchiveImportService.selectPatArchiveImportById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢Excel导å
¥æ£è
æ¡£æ¡ |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:import:add')") |
| | | @Log(title = "Excel导å
¥æ£è
æ¡£æ¡", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchiveImport patArchiveImport) { |
| | | return toAjax(patArchiveImportService.insertPatArchiveImport(patArchiveImport)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹Excel导å
¥æ£è
æ¡£æ¡ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹Excel导å
¥æ£è
æ¡£æ¡") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:import:edit')") |
| | | @Log(title = "Excel导å
¥æ£è
æ¡£æ¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatArchiveImport patArchiveImport) { |
| | | return toAjax(patArchiveImportService.updatePatArchiveImport(patArchiveImport)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤Excel导å
¥æ£è
æ¡£æ¡ |
| | | */ |
| | | @ApiOperation("å é¤Excel导å
¥æ£è
æ¡£æ¡") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:import:remove')") |
| | | @Log(title = "Excel导å
¥æ£è
æ¡£æ¡", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patArchiveImportService.deletePatArchiveImportByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * è·å导å
¥æ£è
æ¨¡æ¿ |
| | | * |
| | | * @param response |
| | | */ |
| | | @ApiOperation("è·å导å
¥æ£è
模æ¿") |
| | | @GetMapping("/getImportPatTemplate") |
| | | public void getImportPatTemplate(HttpServletResponse response) { |
| | | ExcelUtil<PatArchiveImport> util = new ExcelUtil<PatArchiveImport>(PatArchiveImport.class); |
| | | util.importTemplateExcel(response, "导å
¥æ£è
"); |
| | | } |
| | | |
| | | @GetMapping("/download") |
| | | public void fileDownload(HttpServletResponse response) { |
| | | try { |
| | | String filePath = "D:\\import\\æ£è
ä¿¡æ¯.xlsx"; |
| | | response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); |
| | | FileUtils.setAttachmentResponseHeader(response, "æ£è
ä¿¡æ¯.xlsx"); |
| | | FileUtils.writeBytes(filePath, response.getOutputStream()); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | |
| | | @ApiOperation("导å
¥Excelæ£è
ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:import:list')") |
| | | @PostMapping("/importPatInfo") |
| | | public TableDataInfo importPatInfo(MultipartFile multipartFile) { |
| | | return getDataTable(patArchiveImportService.importPatInfo(multipartFile)); |
| | | } |
| | | } |
| | |
| | | * æ¥è¯¢æ£è
èç³»æ¹å¼å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
èç³»æ¹å¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:archivecontact:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:list')") |
| | | @PostMapping("/selectPatArchivecontactList") |
| | | public TableDataInfo selectPatArchivecontactlist(@RequestBody PatArchivecontact patArchivecontact) { |
| | | PageUtils.startPageByPost(patArchivecontact.getPageNum(), patArchivecontact.getPageSize()); |
| | |
| | | * å¯¼åºæ£è
èç³»æ¹å¼å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
èç³»æ¹å¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:archivecontact:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:export')") |
| | | @Log(title = "æ£è
èç³»æ¹å¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatArchivecontact patArchivecontact) { |
| | |
| | | * è·åæ£è
èç³»æ¹å¼è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
èç³»æ¹å¼è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:archivecontact:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patArchivecontactService.selectPatArchivecontactById(id)); |
| | |
| | | * æ°å¢æ£è
èç³»æ¹å¼ |
| | | */ |
| | | @ApiOperation("æ°å¢æ£è
èç³»æ¹å¼") |
| | | @PreAuthorize("@ss.hasPermi('system:archivecontact:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:add')") |
| | | @Log(title = "æ£è
èç³»æ¹å¼", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchivecontact patArchivecontact) { |
| | |
| | | * ä¿®æ¹æ£è
èç³»æ¹å¼ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
èç³»æ¹å¼") |
| | | @PreAuthorize("@ss.hasPermi('system:archivecontact:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:edit')") |
| | | @Log(title = "æ£è
èç³»æ¹å¼", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatArchivecontact patArchivecontact) { |
| | |
| | | * å 餿£è
èç³»æ¹å¼ |
| | | */ |
| | | @ApiOperation("å 餿£è
èç³»æ¹å¼") |
| | | @PreAuthorize("@ss.hasPermi('system:archivecontact:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:remove')") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patArchivecontactService.deletePatArchivecontactByIds(ids)); |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
æ¡£æ¡æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:list')") |
| | | @PostMapping("/list") |
| | | @ApiOperation("æ¥è¯¢æ£è
æ¡£æ¡æ ç¾å表") |
| | | public TableDataInfo list(@RequestBody PatArchivetag patArchivetag) { |
| | |
| | | /** |
| | | * å¯¼åºæ£è
æ¡£æ¡æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:export')") |
| | | @PostMapping("/export") |
| | | @ApiOperation("å¯¼åºæ£è
æ¡£æ¡æ ç¾å表") |
| | | public void export(HttpServletResponse response, PatArchivetag patArchivetag) { |
| | |
| | | * è·åæ£è
æ¡£æ¡æ ç¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
æ¡£æ¡æ ç¾è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patArchivetagService.selectPatArchivetagById(id)); |
| | |
| | | /** |
| | | * æ°å¢æ£è
æ¡£æ¡æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:add')") |
| | | @ApiOperation("æ°å¢æ£è
æ¡£æ¡æ ç¾") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchivetag patArchivetag) { |
| | |
| | | /** |
| | | * ä¿®æ¹æ£è
æ¡£æ¡æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:edit')") |
| | | @ApiOperation("ä¿®æ¹æ£è
æ¡£æ¡æ ç¾") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatArchivetag patArchivetag) { |
| | |
| | | /** |
| | | * å 餿£è
æ¡£æ¡æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:remove')") |
| | | @ApiOperation("å 餿£è
æ¡£æ¡æ ç¾") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
è¿æ»¤ååå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:filterlist:list')") |
| | | @ApiOperation("æ¥è¯¢æ£è
è¿æ»¤ååå表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatFilterlist patFilterlist) { |
| | |
| | | /** |
| | | * å¯¼åºæ£è
è¿æ»¤ååå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:filterlist:export')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("å¯¼åºæ£è
è¿æ»¤ååå表") |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * è·åæ£è
è¿æ»¤åå详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:filterlist:query')") |
| | | @ApiOperation("è·åæ£è
è¿æ»¤åå详ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * æ°å¢æ£è
è¿æ»¤åå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:filterlist:add')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢æ£è
è¿æ»¤åå") |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * ä¿®æ¹æ£è
è¿æ»¤åå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:filterlist:edit')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹æ£è
è¿æ»¤åå") |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * å 餿£è
è¿æ»¤åå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:filterlist:remove')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.DELETE) |
| | | @ApiOperation("å 餿£è
è¿æ»¤åå") |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
è¡ç³è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:bloodsugar:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:list')") |
| | | @PostMapping("/list") |
| | | @ApiOperation("æ¥è¯¢æ£è
è¡ç³è®°å½å表") |
| | | public TableDataInfo list(@RequestBody PatMedBloodsugar patMedBloodsugar) { |
| | |
| | | * å¯¼åºæ£è
è¡ç³è®°å½å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
è¡ç³è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:bloodsugar:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:export')") |
| | | @Log(title = "å¯¼åºæ£è
è¡ç³è®°å½å表", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedBloodsugar patMedBloodsugar) { |
| | |
| | | /** |
| | | * è·åæ£è
è¡ç³è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:bloodsugar:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:query')") |
| | | @GetMapping(value = "/{bloodsugarid}") |
| | | @ApiOperation("è·åæ£è
è¡ç³è®°å½è¯¦ç»ä¿¡æ¯") |
| | | @ApiImplicitParam(name = "bloodsugarid", value = "主é®ID", dataType = "long", dataTypeClass = Long.class) |
| | |
| | | /** |
| | | * æ°å¢æ£è
è¡ç³è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:bloodsugar:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:add')") |
| | | @Log(title = "æ°å¢æ£è
è¡ç³è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @ApiOperation("æ°å¢æ£è
è¡ç³è®°å½") |
| | |
| | | /** |
| | | * ä¿®æ¹æ£è
è¡ç³è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:bloodsugar:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:edit')") |
| | | @Log(title = "æ£è
è¡ç³è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @ApiOperation("ä¿®æ¹æ£è
è¡ç³è®°å½") |
| | |
| | | * å 餿£è
è¡ç³è®°å½ |
| | | */ |
| | | @ApiOperation("å 餿£è
è¡ç³è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:bloodsugar:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:remove')") |
| | | @Log(title = "æ£è
è¡ç³è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{bloodsugarids}") |
| | | @ApiImplicitParam(name = "bloodsugarids", value = "主é®IDéå", dataType = "long", dataTypeClass = Array.class) |
| | |
| | | |
| | | /** |
| | | * æ£è
ç¨è¯è®°å½Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-16 |
| | | */ |
| | |
| | | * æ¥è¯¢æ£è
ç¨è¯è®°å½å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
ç¨è¯è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedDrug patMedDrug) |
| | | { |
| | |
| | | * å¯¼åºæ£è
ç¨è¯è®°å½å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
ç¨è¯è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:export')") |
| | | @Log(title = "æ£è
ç¨è¯è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedDrug patMedDrug) |
| | |
| | | * è·åæ£è
ç¨è¯è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
ç¨è¯è®°å½è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | * æ°å¢æ£è
ç¨è¯è®°å½ |
| | | */ |
| | | @ApiOperation("æ°å¢æ£è
ç¨è¯è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:add')") |
| | | @Log(title = "æ£è
ç¨è¯è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedDrug patMedDrug) |
| | |
| | | * ä¿®æ¹æ£è
ç¨è¯è®°å½ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
ç¨è¯è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:edit')") |
| | | @Log(title = "æ£è
ç¨è¯è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedDrug patMedDrug) |
| | |
| | | * å 餿£è
ç¨è¯è®°å½ |
| | | */ |
| | | @ApiOperation("å 餿£è
ç¨è¯è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:remove')") |
| | | @Log(title = "æ£è
ç¨è¯è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
é«è¡åè®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:list')") |
| | | @PostMapping("/list") |
| | | @ApiOperation("æ¥è¯¢æ£è
é«è¡åè®°å½å表") |
| | | public TableDataInfo list(@RequestBody PatMedHypertension patMedHypertension) { |
| | |
| | | * å¯¼åºæ£è
é«è¡åè®°å½å表 |
| | | */ |
| | | @ApiOperation("æ£è
é«è¡åè®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:export')") |
| | | @Log(title = "æ£è
é«è¡åè®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedHypertension patMedHypertension) { |
| | |
| | | */ |
| | | @ApiOperation("è·åæ£è
é«è¡åè®°å½è¯¦ç»ä¿¡æ¯") |
| | | @ApiImplicitParam(name = "getInfo", value = "主é®ID", dataType = "long", dataTypeClass = Long.class) |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedHypertensionService.selectPatMedHypertensionById(id)); |
| | |
| | | * æ°å¢æ£è
é«è¡åè®°å½ |
| | | */ |
| | | @ApiOperation("æ£è
é«è¡åè®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:add')") |
| | | @Log(title = "æ£è
é«è¡åè®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedHypertension patMedHypertension) { |
| | |
| | | * ä¿®æ¹æ£è
é«è¡åè®°å½ |
| | | */ |
| | | @ApiOperation("æ£è
é«è¡åè®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:edit')") |
| | | @Log(title = "æ£è
é«è¡åè®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedHypertension patMedHypertension) { |
| | |
| | | * å 餿£è
é«è¡åè®°å½ |
| | | */ |
| | | @ApiOperation("æ£è
é«è¡åè®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:remove')") |
| | | @Log(title = "æ£è
é«è¡åè®°å½", businessType = BusinessType.DELETE) |
| | | @ApiImplicitParam(name = "remove", value = "主é®ID", dataType = "long", dataTypeClass = Array.class) |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.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.PageUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.PatMedInhosp; |
| | | import com.smartor.domain.PatMedInhospVO; |
| | | import com.smartor.domain.PatMedReq; |
| | | import com.smartor.service.IPatMedInhospService; |
| | | 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.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * æ£è
ä½é¢è®°å½Controller |
| | |
| | | * æ¥è¯¢æ£è
ä½é¢è®°å½å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
ä½é¢è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:list')") |
| | | @PostMapping("/selectPatMedInhospList") |
| | | public TableDataInfo selectPatMedInhosplist(@RequestBody PatMedInhosp patMedInhosp) { |
| | | startPage(); |
| | | PageUtils.startPageByPost(patMedInhosp.getPageNum(), patMedInhosp.getPageSize()); |
| | | List<PatMedInhosp> list = patMedInhospService.selectPatMedInhospList(patMedInhosp); |
| | | return getDataTable(list); |
| | | long count = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
| | | patMedInhospService.selectPatMedInhospList(patMedInhosp); |
| | | } |
| | | }); |
| | | return getDataTable2(count, list); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å½åç»é人èªå·±ï¼ç
åºãé¨é¨ï¼çæ£è
ä½é¢è®°å½å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢å½åç»é人èªå·±ï¼ç
åºãé¨é¨ï¼çæ£è
ä½é¢è®°å½å表") |
| | | @PostMapping("/selectPatMedInhospListByCondition") |
| | | public TableDataInfo selectPatMedInhospListByCondition(@RequestBody PatMedInhospVO patMedInhospVO) { |
| | | PageUtils.startPageByPost(patMedInhospVO.getPageNum(), patMedInhospVO.getPageSize()); |
| | | List<PatMedInhosp> list = null; |
| | | if (!CollectionUtils.isEmpty(patMedInhospVO.getLeavehospitaldistrictcodes())) { |
| | | list = patMedInhospService.selectPatMedInhospListByCondition(patMedInhospVO); |
| | | } else if (!CollectionUtils.isEmpty(patMedInhospVO.getLeaveldeptcodes())) { |
| | | list = patMedInhospService.selectPatMedInhospListByCondition(patMedInhospVO); |
| | | } |
| | | long count = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
| | | patMedInhospService.selectPatMedInhospListByCondition(patMedInhospVO); |
| | | } |
| | | }); |
| | | return getDataTable2(count, list); |
| | | } |
| | | |
| | | @PostMapping("/getDeptCodeByPatId") |
| | |
| | | * å¯¼åºæ£è
ä½é¢è®°å½å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
ä½é¢è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:export')") |
| | | @Log(title = "æ£è
ä½é¢è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedInhosp patMedInhosp) { |
| | |
| | | * è·åæ£è
ä½é¢è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
ä½é¢è®°å½è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:query')") |
| | | @GetMapping(value = "/{inhospid}") |
| | | public AjaxResult getInfo(@PathVariable("inhospid") Long inhospid) { |
| | | return success(patMedInhospService.selectPatMedInhospByInhospid(inhospid)); |
| | |
| | | * æ°å¢æ£è
ä½é¢è®°å½ |
| | | */ |
| | | @ApiOperation("æ°å¢æ£è
ä½é¢è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:add')") |
| | | @Log(title = "æ£è
ä½é¢è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedInhosp patMedInhosp) { |
| | |
| | | * ä¿®æ¹æ£è
ä½é¢è®°å½ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
ä½é¢è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:edit')") |
| | | @Log(title = "æ£è
ä½é¢è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedInhosp patMedInhosp) { |
| | |
| | | * å 餿£è
ä½é¢è®°å½ |
| | | */ |
| | | @ApiOperation("å 餿£è
ä½é¢è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:remove')") |
| | | @Log(title = "æ£è
ä½é¢è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{inhospids}") |
| | | public AjaxResult remove(@PathVariable Long[] inhospids) { |
| | |
| | | * æ¥è¯¢æ£è
æ£æ¥æ£éªè®°å½å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
æ£æ¥æ£éªè®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedInspection patMedInspection) { |
| | | startPage(); |
| | |
| | | * å¯¼åºæ£è
æ£æ¥æ£éªè®°å½å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
æ£æ¥æ£éªè®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:export')") |
| | | @Log(title = "æ£è
æ£æ¥æ£éªè®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedInspection patMedInspection) { |
| | |
| | | * è·åæ£è
æ£æ¥æ£éªè®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
æ£æ¥æ£éªè®°å½è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedInspectionService.selectPatMedInspectionById(id)); |
| | |
| | | /** |
| | | * æ°å¢æ£è
æ£æ¥æ£éªè®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:add')") |
| | | @Log(title = "æ°å¢æ£è
æ£æ¥æ£éªè®°å½", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢æ£è
æ£æ¥æ£éªè®°å½") |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * ä¿®æ¹æ£è
æ£æ¥æ£éªè®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:edit')") |
| | | @Log(title = "ä¿®æ¹æ£è
æ£æ¥æ£éªè®°å½", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹æ£è
æ£æ¥æ£éªè®°å½") |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * å 餿£è
æ£æ¥æ£éªè®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:remove')") |
| | | @Log(title = "æ£è
æ£æ¥æ£éªè®°å½", businessType = BusinessType.DELETE) |
| | | @ApiOperation("æ£è
æ£æ¥æ£éªè®°å½") |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | * æ¥è¯¢æ£è
ææ¯è®°å½å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
ææ¯è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:operation:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedOperation patMedOperation) { |
| | | startPage(); |
| | |
| | | * å¯¼åºæ£è
ææ¯è®°å½å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
ææ¯è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:operation:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:export')") |
| | | @Log(title = "æ£è
ææ¯è®°å½" , businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedOperation patMedOperation) { |
| | |
| | | * è·åæ£è
ææ¯è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
ææ¯è®°å½è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:operation:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedOperationService.selectPatMedOperationById(id)); |
| | |
| | | /** |
| | | * æ°å¢æ£è
ææ¯è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:operation:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:add')") |
| | | @Log(title = "æ£è
ææ¯è®°å½" , businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOperation patMedOperation) { |
| | |
| | | * ä¿®æ¹æ£è
ææ¯è®°å½ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
ææ¯è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:operation:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:edit')") |
| | | @Log(title = "æ£è
ææ¯è®°å½" , businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOperation patMedOperation) { |
| | |
| | | * å 餿£è
ææ¯è®°å½ |
| | | */ |
| | | @ApiOperation("å 餿£è
ææ¯è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:operation:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:remove')") |
| | | @Log(title = "æ£è
ææ¯è®°å½" , businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')") |
| | | @PostMapping("/selectPatMedOuthospList") |
| | | @ApiOperation("æ¥è¯¢æ£è
é¨è¯è®°å½å表") |
| | | public TableDataInfo selectPatMedOuthosplist(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | |
| | | /** |
| | | * å¯¼åºæ£è
é¨è¯è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:export')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("æ£è
é¨è¯è®°å½") |
| | | @PostMapping("/export") |
| | |
| | | */ |
| | | @ApiOperation("è·åæ£è
é¨è¯è®°å½è¯¦ç»ä¿¡æ¯") |
| | | @ApiImplicitParam(name = "getInfo", value = "主é®ID", dataType = "long", dataTypeClass = Long.class) |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") |
| | | @GetMapping(value = "getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedOuthospService.selectPatMedOuthospById(id)); |
| | |
| | | * æ°å¢æ£è
é¨è¯è®°å½ |
| | | */ |
| | | @ApiOperation("æ°å¢æ£è
é¨è¯è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | |
| | | * ä¿®æ¹æ£è
é¨è¯è®°å½ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
é¨è¯è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | |
| | | * å 餿£è
é¨è¯è®°å½ |
| | | */ |
| | | @ApiOperation("å 餿£è
é¨è¯è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')") |
| | | @ApiImplicitParam(name = "remove", value = "主é®ID", dataType = "long", dataTypeClass = Array.class) |
| | | @Log(title = "æ£è
é¨è¯è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | * æ¥è¯¢æ£è
使£è®°å½å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
使£è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:list')") |
| | | @PostMapping("/selectPatMedPhysicalList") |
| | | public TableDataInfo selectPatMedPhysicallist(@RequestBody PatMedPhysical patMedPhysical) |
| | | { |
| | |
| | | * å¯¼åºæ£è
使£è®°å½å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
使£è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:export')") |
| | | @Log(title = "æ£è
使£è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedPhysical patMedPhysical) |
| | |
| | | * è·åæ£è
使£è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
使£è®°å½è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | * æ°å¢æ£è
使£è®°å½ |
| | | */ |
| | | @ApiOperation("æ°å¢æ£è
使£è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:add')") |
| | | @Log(title = "æ£è
使£è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedPhysical patMedPhysical) |
| | |
| | | * ä¿®æ¹æ£è
使£è®°å½ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
使£è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:edit')") |
| | | @Log(title = "æ£è
使£è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedPhysical patMedPhysical) |
| | |
| | | * å 餿£è
使£è®°å½ |
| | | */ |
| | | @ApiOperation("å 餿£è
使£è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:remove')") |
| | | @Log(title = "æ£è
使£è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | * æ¥è¯¢æ£è
æå·è®°å½å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
æå·è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:registration:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedRegistration patMedRegistration) { |
| | | startPage(); |
| | |
| | | * å¯¼åºæ£è
æå·è®°å½å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
æå·è®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:registration:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:export')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedRegistration patMedRegistration) { |
| | |
| | | * è·åæ£è
æå·è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
æå·è®°å½è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:registration:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:query')") |
| | | @GetMapping(value = "/getInfo/{registid}") |
| | | public AjaxResult getInfo(@PathVariable("registid") Long registid) { |
| | | return success(patMedRegistrationService.selectPatMedRegistrationByRegistid(registid)); |
| | |
| | | * æ°å¢æ£è
æå·è®°å½ |
| | | */ |
| | | @ApiOperation("æ°å¢æ£è
æå·è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:registration:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:add')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedRegistration patMedRegistration) { |
| | |
| | | * ä¿®æ¹æ£è
æå·è®°å½ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
æå·è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:registration:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:edit')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedRegistration patMedRegistration) { |
| | |
| | | * å 餿£è
æå·è®°å½ |
| | | */ |
| | | @ApiOperation("å 餿£è
æå·è®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:registration:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:remove')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{registids}") |
| | | public AjaxResult remove(@PathVariable Long[] registids) { |
| | |
| | | * æ¥è¯¢æ£è
ä½éè®°å½å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
ä½éè®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedWeight patMedWeight) |
| | | { |
| | |
| | | * å¯¼åºæ£è
ä½éè®°å½å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
ä½éè®°å½å表") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:export')") |
| | | @Log(title = "æ£è
ä½éè®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedWeight patMedWeight) |
| | |
| | | * è·åæ£è
ä½éè®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
ä½éè®°å½è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:query')") |
| | | @ApiImplicitParam(name = "getInfo", value = "主é®ID", dataType = "long", dataTypeClass = Long.class) |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | |
| | | * æ°å¢æ£è
ä½éè®°å½ |
| | | */ |
| | | @ApiOperation("æ°å¢æ£è
ä½éè®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:add')") |
| | | @Log(title = "æ£è
ä½éè®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedWeight patMedWeight) |
| | |
| | | * ä¿®æ¹æ£è
ä½éè®°å½ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
ä½éè®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:edit')") |
| | | @Log(title = "ä¿®æ¹æ£è
ä½éè®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedWeight patMedWeight) |
| | |
| | | * å 餿£è
ä½éè®°å½ |
| | | */ |
| | | @ApiOperation("å 餿£è
ä½éè®°å½") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:remove')") |
| | | @Log(title = "å 餿£è
ä½éè®°å½", businessType = BusinessType.DELETE) |
| | | @ApiImplicitParam(name = "remove", value = "主é®ID", dataType = "long", dataTypeClass = Array.class) |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | * æ¥è¯¢ä¸ç
æ£è
åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ä¸ç
æ£è
åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('system:category:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | |
| | | * 导åºä¸ç
æ£è
åç±»å表 |
| | | */ |
| | | @ApiOperation("导åºä¸ç
æ£è
åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('system:category:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:export')") |
| | | @Log(title = "ä¸ç
æ£è
åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatSpeciallistCategory patSpeciallistCategory) |
| | |
| | | * è·åä¸ç
æ£è
å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åä¸ç
æ£è
å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:category:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢ä¸ç
æ£è
åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:category:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:add')") |
| | | @Log(title = "ä¸ç
æ£è
åç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatSpeciallistCategory patSpeciallistCategory) |
| | |
| | | * ä¿®æ¹ä¸ç
æ£è
åç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ä¸ç
æ£è
åç±»") |
| | | @PreAuthorize("@ss.hasPermi('system:category:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:edit')") |
| | | @Log(title = "ä¸ç
æ£è
åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatSpeciallistCategory patSpeciallistCategory) |
| | |
| | | * å é¤ä¸ç
æ£è
åç±» |
| | | */ |
| | | @ApiOperation("å é¤ä¸ç
æ£è
åç±»") |
| | | @PreAuthorize("@ss.hasPermi('system:category:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:remove')") |
| | | @Log(title = "ä¸ç
æ£è
åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢ä¸ç
æ£è
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:list')") |
| | | @ApiOperation("æ¥è¯¢ä¸ç
æ£è
å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatSpeciallist patSpeciallist) |
| | |
| | | /** |
| | | * 导åºä¸ç
æ£è
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:export')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("导åºä¸ç
æ£è
å表") |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * è·åä¸ç
æ£è
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢ä¸ç
æ£è
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:add')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ä¸ç
æ£è
") |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * ä¿®æ¹ä¸ç
æ£è
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:edit')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹ä¸ç
æ£è
") |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * å é¤ä¸ç
æ£è
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:remove')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.DELETE) |
| | | @ApiOperation("å é¤ä¸ç
æ£è
") |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | |
| | | /** |
| | | * æ£è
ä¸å®£æä»»å¡å
³èController |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¸å®£æä»»å¡å
³èå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatTaskRelevance PatTaskRelevance) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ£è
ä¸å®£æä»»å¡å
³èå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:export')") |
| | | @Log(title = "æ£è
ä¸å®£æä»»å¡å
³è", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatTaskRelevance PatTaskRelevance) |
| | |
| | | /** |
| | | * è·åæ£è
ä¸å®£æä»»å¡å
³è详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:add')") |
| | | @Log(title = "æ£è
ä¸å®£æä»»å¡å
³è", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody PatTaskRelevance PatTaskRelevance) |
| | |
| | | /** |
| | | * ä¿®æ¹æ£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:edit')") |
| | | @Log(title = "æ£è
ä¸å®£æä»»å¡å
³è", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody PatTaskRelevance PatTaskRelevance) |
| | |
| | | /** |
| | | * å 餿£è
ä¸å®£æä»»å¡å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:remove')") |
| | | @Log(title = "æ£è
ä¸å®£æä»»å¡å
³è", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
ä¿¡æ¯éé
符å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wildcard:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wildcard:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatWildcard patWildcard) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ£è
ä¿¡æ¯éé
符å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wildcard:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wildcard:export')") |
| | | @Log(title = "æ£è
ä¿¡æ¯éé
符", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatWildcard patWildcard) |
| | |
| | | /** |
| | | * è·åæ£è
ä¿¡æ¯éé
符详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wildcard:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wildcard:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ£è
ä¿¡æ¯éé
符 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wildcard:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wildcard:add')") |
| | | @Log(title = "æ£è
ä¿¡æ¯éé
符", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody PatWildcard patWildcard) |
| | |
| | | /** |
| | | * ä¿®æ¹æ£è
ä¿¡æ¯éé
符 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wildcard:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wildcard:edit')") |
| | | @Log(title = "æ£è
ä¿¡æ¯éé
符", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody PatWildcard patWildcard) |
| | |
| | | /** |
| | | * å 餿£è
ä¿¡æ¯éé
符 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wildcard:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wildcard:remove')") |
| | | @Log(title = "æ£è
ä¿¡æ¯éé
符", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | * å½åç»å½ç¨æ·çé¨è¯ãå¨é¢ãåºé¢ç
人çç»è®¡æ
åµ |
| | | */ |
| | | @ApiOperation("å½åç»å½ç¨æ·çé¨è¯ãå¨é¢ãåºé¢ç
人çç»è®¡æ
åµ") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/getTaskInfo") |
| | | public TableDataInfo getTaskInfo(@RequestParam("deptIds") String detpIds, @RequestParam("dcCodes") String dcCodes) { |
| | | //è·åå½åç»é人 |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡ç»æ¡è§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeAutofinshrule schemeAutofinshrule) { |
| | | startPage(); |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡ç»æ¡è§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:export')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeAutofinshrule schemeAutofinshrule) { |
| | |
| | | /** |
| | | * è·åæ¹æ¡ç»æ¡è§å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(schemeAutofinshruleService.selectSchemeAutofinshruleById(id)); |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡ç»æ¡è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:add')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeAutofinshrule schemeAutofinshrule) { |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡ç»æ¡è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:edit')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeAutofinshrule schemeAutofinshrule) { |
| | |
| | | /** |
| | | * å 餿¹æ¡ç»æ¡è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:remove')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:export')") |
| | | @Log(title = "æ¹æ¡åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeCategory schemeCategory) |
| | |
| | | /** |
| | | * è·åæ¹æ¡å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:add')") |
| | | @Log(title = "æ¹æ¡åç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeCategory schemeCategory) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:edit')") |
| | | @Log(title = "æ¹æ¡åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeCategory schemeCategory) |
| | |
| | | /** |
| | | * å 餿¹æ¡åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:remove')") |
| | | @Log(title = "æ¹æ¡åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æå¡æ¹æ¡åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæå¡æ¹æ¡åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:export')") |
| | | @Log(title = "æå¡æ¹æ¡åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeLocallibrary schemeLocallibrary) |
| | |
| | | /** |
| | | * è·åæå¡æ¹æ¡åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æå¡æ¹æ¡åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:add')") |
| | | @Log(title = "æå¡æ¹æ¡åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | |
| | | /** |
| | | * ä¿®æ¹æå¡æ¹æ¡åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:edit')") |
| | | @Log(title = "æå¡æ¹æ¡åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | |
| | | /** |
| | | * å 餿塿¹æ¡åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:remove')") |
| | | @Log(title = "æå¡æ¹æ¡åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢ç®¡ç计åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemePlan schemePlan) |
| | | { |
| | |
| | | /** |
| | | * 导åºç®¡ç计åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:export')") |
| | | @Log(title = "管ç计å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemePlan schemePlan) |
| | |
| | | /** |
| | | * è·å管ç计å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢ç®¡ç计å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:add')") |
| | | @Log(title = "管ç计å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemePlan schemePlan) |
| | |
| | | /** |
| | | * ä¿®æ¹ç®¡ç计å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:edit')") |
| | | @Log(title = "管ç计å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemePlan schemePlan) |
| | |
| | | /** |
| | | * å é¤ç®¡ç计å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeplan:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:remove')") |
| | | @Log(title = "管ç计å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡ä»»å¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetask:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTask schemeTask) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡ä»»å¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetask:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:export')") |
| | | @Log(title = "æ¹æ¡ä»»å¡", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTask schemeTask) |
| | |
| | | /** |
| | | * è·åæ¹æ¡ä»»å¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetask:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetask:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:add')") |
| | | @Log(title = "æ¹æ¡ä»»å¡", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTask schemeTask) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetask:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:edit')") |
| | | @Log(title = "æ¹æ¡ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTask schemeTask) |
| | |
| | | /** |
| | | * å 餿¹æ¡ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetask:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:remove')") |
| | | @Log(title = "æ¹æ¡ä»»å¡", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡ä»»å¡é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTaskconfig schemeTaskconfig) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡ä»»å¡é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:export')") |
| | | @Log(title = "æ¹æ¡ä»»å¡é
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTaskconfig schemeTaskconfig) |
| | |
| | | /** |
| | | * è·åæ¹æ¡ä»»å¡é
置详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡ä»»å¡é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:add')") |
| | | @Log(title = "æ¹æ¡ä»»å¡é
ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTaskconfig schemeTaskconfig) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡ä»»å¡é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:edit')") |
| | | @Log(title = "æ¹æ¡ä»»å¡é
ç½®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTaskconfig schemeTaskconfig) |
| | |
| | | /** |
| | | * å 餿¹æ¡ä»»å¡é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:remove')") |
| | | @Log(title = "æ¹æ¡ä»»å¡é
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | |
| | | /** |
| | | * æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTaskrecordCalldetail schemeTaskrecordCalldetail) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:export')") |
| | | @Log(title = "æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTaskrecordCalldetail schemeTaskrecordCalldetail) |
| | |
| | | /** |
| | | * è·åæ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:add')") |
| | | @Log(title = "æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTaskrecordCalldetail schemeTaskrecordCalldetail) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:edit')") |
| | | @Log(title = "æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTaskrecordCalldetail schemeTaskrecordCalldetail) |
| | |
| | | /** |
| | | * å 餿¹æ¡AIå¤å¼ä»»å¡è¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:remove')") |
| | | @Log(title = "æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡ä»»å¡å¤çè®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTaskrecord schemeTaskrecord) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡ä»»å¡å¤çè®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:export')") |
| | | @Log(title = "æ¹æ¡ä»»å¡å¤çè®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTaskrecord schemeTaskrecord) |
| | |
| | | /** |
| | | * è·åæ¹æ¡ä»»å¡å¤çè®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡ä»»å¡å¤çè®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:add')") |
| | | @Log(title = "æ¹æ¡ä»»å¡å¤çè®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTaskrecord schemeTaskrecord) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡ä»»å¡å¤çè®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:edit')") |
| | | @Log(title = "æ¹æ¡ä»»å¡å¤çè®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTaskrecord schemeTaskrecord) |
| | |
| | | /** |
| | | * å 餿¹æ¡ä»»å¡å¤çè®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:remove')") |
| | | @Log(title = "æ¹æ¡ä»»å¡å¤çè®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡ä»»å¡éåé
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTaskrepeatconfig schemeTaskrepeatconfig) { |
| | | startPage(); |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡ä»»å¡éåé
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:export')") |
| | | @Log(title = "æ¹æ¡ä»»å¡éåé
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTaskrepeatconfig schemeTaskrepeatconfig) { |
| | |
| | | /** |
| | | * è·åæ¹æ¡ä»»å¡éåé
置详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(schemeTaskrepeatconfigService.selectSchemeTaskrepeatconfigById(id)); |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡ä»»å¡éåé
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:add')") |
| | | @Log(title = "æ¹æ¡ä»»å¡éåé
ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTaskrepeatconfig schemeTaskrepeatconfig) { |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡ä»»å¡éåé
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:edit')") |
| | | @Log(title = "æ¹æ¡ä»»å¡éåé
ç½®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTaskrepeatconfig schemeTaskrepeatconfig) { |
| | |
| | | /** |
| | | * å 餿¹æ¡ä»»å¡éåé
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:remove')") |
| | | @Log(title = "æ¹æ¡ä»»å¡éåé
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | |
| | | /** |
| | | * æ¹æ¡è§¦åæ¡ä»¶è§åController |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡è§¦åæ¡ä»¶è§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡è§¦åæ¡ä»¶è§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:export')") |
| | | @Log(title = "æ¹æ¡è§¦åæ¡ä»¶è§å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTriggerrule schemeTriggerrule) |
| | |
| | | /** |
| | | * è·åæ¹æ¡è§¦åæ¡ä»¶è§å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡è§¦åæ¡ä»¶è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:add')") |
| | | @Log(title = "æ¹æ¡è§¦åæ¡ä»¶è§å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡è§¦åæ¡ä»¶è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:edit')") |
| | | @Log(title = "æ¹æ¡è§¦åæ¡ä»¶è§å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | |
| | | /** |
| | | * å 餿¹æ¡è§¦åæ¡ä»¶è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:remove')") |
| | | @Log(title = "æ¹æ¡è§¦åæ¡ä»¶è§å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ¹æ¡è§¦ååºæ¯å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTriggerscene schemeTriggerscene) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¹æ¡è§¦ååºæ¯å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:export')") |
| | | @Log(title = "æ¹æ¡è§¦ååºæ¯", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTriggerscene schemeTriggerscene) |
| | |
| | | /** |
| | | * è·åæ¹æ¡è§¦ååºæ¯è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¹æ¡è§¦ååºæ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:add')") |
| | | @Log(title = "æ¹æ¡è§¦ååºæ¯", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTriggerscene schemeTriggerscene) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¹æ¡è§¦ååºæ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:edit')") |
| | | @Log(title = "æ¹æ¡è§¦ååºæ¯", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTriggerscene schemeTriggerscene) |
| | |
| | | /** |
| | | * å 餿¹æ¡è§¦ååºæ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:remove')") |
| | | @Log(title = "æ¹æ¡è§¦ååºæ¯", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:list')") |
| | | @ApiOperation("æ¥è¯¢ä»»å¡é®å·é®é¢é项å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceSubtaskAnswer serviceSubtaskAnswer) { |
| | |
| | | /** |
| | | * 导åºä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:export')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("ä»»å¡é®å·é®é¢é项") |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * è·åä»»å¡é®å·é®é¢é项详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | @ApiOperation("è·åä»»å¡é®å·é®é¢é项详ç»ä¿¡æ¯") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:add')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ä»»å¡é®å·é®é¢é项") |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:edit')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹ä»»å¡é®å·é®é¢é项") |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:remove')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.DELETE) |
| | | @ApiOperation("å é¤ä»»å¡é®å·é®é¢é项") |
| | | @DeleteMapping("/remove/{ids}") |
| | |
| | | * æ¥è¯¢æ£è
éè®¿ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
é访信æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:taskcall:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:list')") |
| | | @PostMapping("/patItem") |
| | | public TableDataInfo patItem(@RequestBody ServiceSubtask ivrTaskcall) { |
| | | PageUtils.startPageByPost(ivrTaskcall.getPageNum(), ivrTaskcall.getPageSize()); |
| | |
| | | /** |
| | | * 导åºåä¸ä»»å¡ï¼é访宣æï¼å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:taskcall:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:export')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é访宣æï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtask serviceSubtask) { |
| | |
| | | /** |
| | | * è·ååä¸ä»»å¡ï¼é访ï¼è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:taskcall:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceSubtaskService.selectServiceSubtaskById(id)); |
| | |
| | | * æ°å¢æä¿®æ¹å é¤åä¸ä»»å¡ |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹å é¤åä¸ä»»å¡") |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é访ï¼", businessType = BusinessType.INSERT) |
| | | @PostMapping("/insertOrUpdateTask") |
| | | public AjaxResult insertOrUpdateHeTask(@RequestBody ServiceTaskVO ivrTaskVO) { |
| | |
| | | return toAjax(serviceSubtaskService.insertOrUpdateTask(ivrTaskVO)); |
| | | } |
| | | |
| | | @ApiOperation("ä¿®æ¹åä»»å¡") |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody ServiceSubtask serviceSubtask) { |
| | | return toAjax(serviceSubtaskService.updateServiceSubtask(serviceSubtask)); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ¡ä»¶æ¥è¯¢ä»»å¡ä¿¡æ¯ |
| | | */ |
| | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceSubtaskDetail serviceSubtaskDetail) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºè¯é³ä»»å¡å¼å«æç»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:export')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«æç»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtaskDetail serviceSubtaskDetail) { |
| | |
| | | /** |
| | | * è·åè¯é³ä»»å¡å¼å«æç»è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:query')") |
| | | @GetMapping(value = "/{calldetailid}") |
| | | public AjaxResult getInfo(@PathVariable("calldetailid") String calldetailid) { |
| | | return success(ServiceSubtaskDetailService.selectServiceSubtaskDetailByCalldetailid(calldetailid)); |
| | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:add')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«æç»", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceSubtaskDetail serviceSubtaskDetail) { |
| | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:edit')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«æç»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskDetail serviceSubtaskDetail) { |
| | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceSubtaskDetail:remove')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«æç»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{calldetailids}") |
| | | public AjaxResult remove(@PathVariable String[] calldetailids) { |
| | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceSubtaskRecord serviceSubtaskRecord) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºã请填ååè½åç§°ãå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:export')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtaskRecord serviceSubtaskRecord) { |
| | |
| | | /** |
| | | * è·åã请填ååè½åç§°ã详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceSubtaskRecordService.selectServiceSubtaskRecordById(id)); |
| | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:add')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ServiceSubtaskRecord serviceSubtaskRecord) { |
| | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskRecord serviceSubtaskRecord) { |
| | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:remove')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢è¯é³ä»»å¡å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ä»»å¡å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceTask serviceTask) { |
| | | PageUtils.startPageByPost(serviceTask.getPageNum(), serviceTask.getPageSize()); |
| | |
| | | * 导åºä»»å¡å表 |
| | | */ |
| | | @ApiOperation("导åºä»»å¡å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:export')") |
| | | @Log(title = "è¯é³ä»»å¡", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceTask ServiceTask) { |
| | |
| | | * è·åä»»å¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åä»»å¡è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:query')") |
| | | @GetMapping(value = "/{taskid}") |
| | | public AjaxResult getInfo(@PathVariable("taskid") Long taskid) { |
| | | return success(serviceTaskService.selectServiceTaskByTaskid(taskid)); |
| | |
| | | * æ°å¢ä»»å¡ |
| | | */ |
| | | @ApiOperation("æ°å¢ä»»å¡") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:add')") |
| | | @Log(title = "è¯é³ä»»å¡", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceTask ServiceTask) { |
| | |
| | | * ä¿®æ¹è¯é³ä»»å¡ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ä»»å¡") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:edit')") |
| | | @Log(title = "ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceTask ServiceTask) { |
| | |
| | | // * å é¤è¯é³ä»»å¡ |
| | | // */ |
| | | // @ApiOperation("å é¤ä»»å¡") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')") |
| | | // @Log(title = "è¯é³ä»»å¡", businessType = BusinessType.DELETE) |
| | | // @GetMapping("/remove/{taskids}") |
| | | // public AjaxResult remove(@PathVariable Long[] taskids) { |
| | |
| | | * å é¤ä»»å¡(å
æ¬å®å¯¹åºçæ£è
ä¿¡æ¯) |
| | | */ |
| | | @ApiOperation("å é¤ä»»å¡(å
æ¬å®å¯¹åºçæ£è
ä¿¡æ¯)") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')") |
| | | @Log(title = "è¯é³ä»»å¡", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{taskId}") |
| | | public AjaxResult removeTask(@PathVariable("taskId") String taskId) { |
| | |
| | | Long pid = null; |
| | | log.info("getScriptInfoByConditionå
¥å为ï¼{}", serviceTaskScriptQues); |
| | | try { |
| | | // tid = Long.valueOf(rsaPublicKeyExample.decryptedData(URLDecoder.decode(serviceTaskScriptQues.getParam1(), "UTF-8"), pri_key)); |
| | | // pid = Long.valueOf(rsaPublicKeyExample.decryptedData(URLDecoder.decode(serviceTaskScriptQues.getParam2(), "UTF-8"), pri_key)); |
| | | tid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam1(), pri_key)); |
| | | pid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam2(), pri_key)); |
| | | } catch (Exception e) { |
| | |
| | | /** |
| | | * æ¥è¯¢çä¿¡åæ°å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsparam:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsparam:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SmsParam smsParam) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºçä¿¡åæ°å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsparam:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsparam:export')") |
| | | @Log(title = "çä¿¡åæ°", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SmsParam smsParam) { |
| | |
| | | /** |
| | | * è·åçä¿¡åæ°è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsparam:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsparam:query')") |
| | | @GetMapping(value = "/{paramid}") |
| | | public AjaxResult getInfo(@PathVariable("paramid") Long paramid) { |
| | | return success(smsParamService.selectSmsParamByParamid(paramid)); |
| | |
| | | /** |
| | | * æ°å¢çä¿¡åæ° |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsparam:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsparam:add')") |
| | | @Log(title = "çä¿¡åæ°", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SmsParam smsParam) { |
| | |
| | | /** |
| | | * ä¿®æ¹çä¿¡åæ° |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsparam:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsparam:edit')") |
| | | @Log(title = "çä¿¡åæ°", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SmsParam smsParam) { |
| | |
| | | /** |
| | | * å é¤çä¿¡åæ° |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsparam:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsparam:remove')") |
| | | @Log(title = "çä¿¡åæ°", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{paramids}") |
| | | public AjaxResult remove(@PathVariable Long[] paramids) { |
| | |
| | | /** |
| | | * æ¥è¯¢çä¿¡è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsrecords:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsrecords:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SmsRecords smsRecords) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºçä¿¡è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsrecords:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsrecords:export')") |
| | | @Log(title = "çä¿¡è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SmsRecords smsRecords) { |
| | |
| | | /** |
| | | * è·åçä¿¡è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsrecords:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsrecords:query')") |
| | | @GetMapping(value = "/{recordid}") |
| | | public AjaxResult getInfo(@PathVariable("recordid") Long recordid) { |
| | | return success(smsRecordsService.selectSmsRecordsByRecordid(recordid)); |
| | |
| | | /** |
| | | * æ°å¢çä¿¡è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsrecords:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsrecords:add')") |
| | | @Log(title = "çä¿¡è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SmsRecords smsRecords) { |
| | |
| | | /** |
| | | * ä¿®æ¹çä¿¡è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsrecords:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsrecords:edit')") |
| | | @Log(title = "çä¿¡è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SmsRecords smsRecords) { |
| | |
| | | /** |
| | | * å é¤çä¿¡è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsrecords:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsrecords:remove')") |
| | | @Log(title = "çä¿¡è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{recordids}") |
| | | public AjaxResult remove(@PathVariable Long[] recordids) { |
| | |
| | | /** |
| | | * æ¥è¯¢ç信模æ¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smstemplet:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SmsTemplet smsTemplet) |
| | | { |
| | |
| | | /** |
| | | * 导åºç信模æ¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smstemplet:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:export')") |
| | | @Log(title = "ç信模æ¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SmsTemplet smsTemplet) |
| | |
| | | /** |
| | | * è·åç信模æ¿è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smstemplet:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:query')") |
| | | @GetMapping(value = "/{templetid}") |
| | | public AjaxResult getInfo(@PathVariable("templetid") Long templetid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢çä¿¡æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smstemplet:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:add')") |
| | | @Log(title = "ç信模æ¿", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SmsTemplet smsTemplet) |
| | |
| | | /** |
| | | * ä¿®æ¹çä¿¡æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smstemplet:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:edit')") |
| | | @Log(title = "ç信模æ¿", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SmsTemplet smsTemplet) |
| | |
| | | /** |
| | | * å é¤çä¿¡æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smstemplet:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:remove')") |
| | | @Log(title = "ç信模æ¿", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{templetids}") |
| | | public AjaxResult remove(@PathVariable Long[] templetids) |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyCategory svyCategory) { |
| | | // startPage(); |
| | |
| | | /** |
| | | * 导åºé®å·åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:export')") |
| | | @Log(title = "é®å·åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyCategory svyCategory) { |
| | |
| | | /** |
| | | * è·åé®å·å类信æ¯éè¿åç±»åç§° |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svycategory:query')") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:svycategory:query')") |
| | | @ApiOperation("è·åé®å·å类详ç»ä¿¡æ¯ï¼é®å·ç±»å«ï¼") |
| | | @PostMapping(value = "/getInfo") |
| | | public TableDataInfo getInfo(@RequestParam(required = false) String categoryname) { |
| | |
| | | /** |
| | | * æ°å¢é®å·åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:add')") |
| | | @Log(title = "é®å·åç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢é®å·åç±»") |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * æ°å¢é®å·åç±»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢é®å·åç±»æ ") |
| | | @PostMapping("/addtree") |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')") |
| | | @Log(title = "é®å·åç±»", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹é®å·åç±»") |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * å é¤é®å·åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:remove')") |
| | | @Log(title = "é®å·åç±»", businessType = BusinessType.DELETE) |
| | | @ApiOperation("å é¤é®å·åç±»") |
| | | @GetMapping("/remove/{ids}") |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyFinish svyFinish) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·æç»ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:export')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinish svyFinish) |
| | |
| | | /** |
| | | * è·åé®å·æç»ç»æè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:add')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyFinish svyFinish) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:edit')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyFinish svyFinish) |
| | |
| | | /** |
| | | * å é¤é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:remove')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyFinishoption svyFinishoption) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·æç»ç»æé项详æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:export')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinishoption svyFinishoption) |
| | |
| | | /** |
| | | * è·åé®å·æç»ç»æé项详æ
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:add')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyFinishoption svyFinishoption) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:edit')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyFinishoption svyFinishoption) |
| | |
| | | /** |
| | | * å é¤é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:remove')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyFinishtopic svyFinishtopic) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·è°æ¥ç»æè¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:export')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinishtopic svyFinishtopic) |
| | |
| | | /** |
| | | * è·åé®å·è°æ¥ç»æè¯¦æ
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:add')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyFinishtopic svyFinishtopic) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:edit')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyFinishtopic svyFinishtopic) |
| | |
| | | /** |
| | | * å é¤é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:remove')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·å¼å¸¸å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibException svyLibException) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·å¼å¸¸å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:export')") |
| | | @Log(title = "é®å·å¼å¸¸", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibException svyLibException) |
| | |
| | | /** |
| | | * è·åé®å·å¼å¸¸è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:query')") |
| | | @GetMapping(value = "/{ecid}") |
| | | public AjaxResult getInfo(@PathVariable("ecid") Long ecid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·å¼å¸¸ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:add')") |
| | | @Log(title = "é®å·å¼å¸¸", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibException svyLibException) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·å¼å¸¸ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:edit')") |
| | | @Log(title = "é®å·å¼å¸¸", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibException svyLibException) |
| | |
| | | /** |
| | | * å é¤é®å·å¼å¸¸ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:remove')") |
| | | @Log(title = "é®å·å¼å¸¸", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ecids}") |
| | | public AjaxResult remove(@PathVariable Long[] ecids) |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibResult svyLibResult) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:export')") |
| | | @Log(title = "é®å·ç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibResult svyLibResult) |
| | |
| | | /** |
| | | * è·åé®å·ç»æè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:query')") |
| | | @GetMapping(value = "/{resultid}") |
| | | public AjaxResult getInfo(@PathVariable("resultid") Long resultid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:add')") |
| | | @Log(title = "é®å·ç»æ", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibResult svyLibResult) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:edit')") |
| | | @Log(title = "é®å·ç»æ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibResult svyLibResult) |
| | |
| | | /** |
| | | * å é¤é®å·ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:remove')") |
| | | @Log(title = "é®å·ç»æ", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{resultids}") |
| | | public AjaxResult remove(@PathVariable Long[] resultids) |
| | |
| | | * æ¥è¯¢é®å·é¢ç®åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·é¢ç®åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | // startPage(); |
| | |
| | | /** |
| | | * 导åºé®å·é¢ç®åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:export')") |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibScriptCategory svyLibScriptCategory) { |
| | |
| | | * è·åé®å·é¢ç®å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·é¢ç®å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyLibScriptCategoryService.selectSvyLibScriptCategoryById(id)); |
| | |
| | | // /** |
| | | // * æ°å¢é®å·é¢ç®åç±» |
| | | // */ |
| | | // @PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.INSERT) |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç®åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | |
| | | * å é¤é®å·é¢ç®åç±» |
| | | */ |
| | | @ApiOperation("å é¤é®å·é¢ç®åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable String ids) { |
| | |
| | | /** |
| | | * é®å·é¢ç®åç±»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "é®å·é¢ç®åç±»æ ", businessType = BusinessType.INSERT) |
| | | @ApiOperation("é®å·é¢ç®åç±»æ ") |
| | | @PostMapping("/addtree") |
| | |
| | | * æ¥è¯¢é®å·é¢ç®å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·é¢ç®å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyScript:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibScript svyLibScript) { |
| | | PageUtils.startPageByPost(svyLibScript.getPageNum(), svyLibScript.getPageSize()); |
| | |
| | | /** |
| | | * 导åºé®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyScript:export')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("导åºé®å·é¢ç®å表") |
| | | @PostMapping("/export") |
| | |
| | | // * è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | // */ |
| | | // @ApiOperation("è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svyScript:query')") |
| | | // //@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')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyScript:add')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibScript svyLibScript) { |
| | |
| | | * æ°å¢æä¿®æ¹é®å·è¯¦æ
ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹é®å·è¯¦æ
ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateScript") |
| | | public AjaxResult saveOrUpdateScript(@RequestBody SvyLibScript svyLibScript) { |
| | | if (ObjectUtils.isEmpty(svyLibScript)) { |
| | |
| | | * ä¿®æ¹é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyScript:edit')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibScript svyLibScript) { |
| | |
| | | * å é¤é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("å é¤é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyScript:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyScript:remove')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scriptids}") |
| | | public AjaxResult remove(@PathVariable Long[] scriptids) { |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibScriptOption svyLibTopicoption) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:export')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibScriptOption svyLibTopicoption) |
| | |
| | | /** |
| | | * è·åé®å·é®é¢é项详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:query')") |
| | | @GetMapping(value = "/{optionid}") |
| | | public AjaxResult getInfo(@PathVariable("optionid") Long optionid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:add')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibScriptOption svyLibTopicoption) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:edit')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibScriptOption svyLibTopicoption) |
| | |
| | | /** |
| | | * å é¤é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:remove')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{optionids}") |
| | | public AjaxResult remove(@PathVariable Long[] optionids) |
| | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibScriptTag svyLibScriptTag) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®é¢è¯æ¯æ ç¾åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibScriptTag svyLibScriptTag) |
| | |
| | | /** |
| | | * è·åé®é¢è¯æ¯æ ç¾åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibScriptTag svyLibScriptTag) |
| | |
| | | /** |
| | | * ä¿®æ¹é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibScriptTag svyLibScriptTag) |
| | |
| | | /** |
| | | * å é¤é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | * æ¥è¯¢é®å·æ¨¡æ¿åç±»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·æ¨¡æ¿åç±»å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | List<SvyLibTemplateCategoryVO> list = svyLibTemplateCategoryService.selectSvyLibTemplateCategoryList(svyLibTemplateCategory); |
| | |
| | | /** |
| | | * 导åºé®å·æ¨¡æ¿åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:export')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateCategory svyLibTemplateCategory) { |
| | |
| | | * è·åé®å·æ¨¡æ¿å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·æ¨¡æ¿å类详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:query')") |
| | | //@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')") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(Template = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.INSERT) |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | |
| | | * ä¿®æ¹é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | |
| | | * å é¤é®å·æ¨¡æ¿åç±» |
| | | */ |
| | | @ApiOperation("å é¤é®å·æ¨¡æ¿åç±»") |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:remove')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * é®å·æ¨¡æ¿åç±»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»æ ", businessType = BusinessType.INSERT) |
| | | @ApiOperation("é®å·æ¨¡æ¿åç±»æ ") |
| | | @PostMapping("/addtree") |
| | |
| | | // * è·åé®å·è¯¦ç»ä¿¡æ¯(å表) |
| | | // */ |
| | | // @ApiOperation("è·åé®å·è¯¦ç»ä¿¡æ¯") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:query')") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:query')") |
| | | // @GetMapping(value = "/{svyid}") |
| | | // public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { |
| | | // return success(svyLibTemplateService.selectSvyLibTemplateBySvyid(svyid)); |
| | |
| | | * æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateTemplate") |
| | | public AjaxResult saveOrUpdateTemplate(@RequestBody SvyLibTemplateVO svyLibTemplateVO) { |
| | | if (ObjectUtils.isEmpty(svyLibTemplateVO)) { |
| | |
| | | * ä¿®æ¹é®å· |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:edit')") |
| | | @Log(title = "é®å·", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplate svyLibTemplate) { |
| | |
| | | * å é¤é®å· |
| | | */ |
| | | @ApiOperation("å é¤é®å·") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") |
| | | @Log(title = "é®å·", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) { |
| | |
| | | * åéçä¿¡ |
| | | */ |
| | | @ApiOperation("åéçä¿¡") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") |
| | | @Log(title = "é®å·", businessType = BusinessType.DELETE) |
| | | @PostMapping("/sendMessage") |
| | | public AjaxResult sendMessage(@PathVariable Long[] svyids) { |
| | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¨¡æ¿é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateScript svyLibTemplateScript) |
| | |
| | | /** |
| | | * è·å模æ¿é®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{topicid}") |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateScript svyLibTemplateScript) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateScript svyLibTemplateScript) |
| | |
| | | /** |
| | | * å 餿¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{topicids}") |
| | | public AjaxResult remove(@PathVariable Long[] topicids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateScriptWjx svyLibTemplateScriptWjx) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¨¡æ¿é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:export')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateScriptWjx svyLibTemplateScriptWjx) |
| | |
| | | /** |
| | | * è·å模æ¿é®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateScriptWjx svyLibTemplateScriptWjx) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateScriptWjx svyLibTemplateScriptWjx) |
| | |
| | | /** |
| | | * å 餿¨¡æ¿é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:remove')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateTag svyLibTemplateTag) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¨¡æ¿æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateTag svyLibTemplateTag) |
| | |
| | | /** |
| | | * è·åæ¨¡æ¿æ ç¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateTag svyLibTemplateTag) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateTag svyLibTemplateTag) |
| | |
| | | /** |
| | | * å 餿¨¡æ¿æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·é®é¢ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | |
| | | /** |
| | | * è·åé®å·é®é¢ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | |
| | | /** |
| | | * å é¤é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·é®é¢ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateTargetoptionWjx svyLibTemplateTargetoptionWjx) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·é®é¢ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:export')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateTargetoptionWjx svyLibTemplateTargetoptionWjx) |
| | |
| | | /** |
| | | * è·åé®å·é®é¢ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateTargetoptionWjx svyLibTemplateTargetoptionWjx) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateTargetoptionWjx svyLibTemplateTargetoptionWjx) |
| | |
| | | /** |
| | | * å é¤é®å·é®é¢ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:remove')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿é®å·å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateWjx svyLibTemplateWjx) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¨¡æ¿é®å·å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:export')") |
| | | @Log(title = "模æ¿é®å·", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateWjx svyLibTemplateWjx) |
| | |
| | | /** |
| | | * è·å模æ¿é®å·è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:query')") |
| | | @GetMapping(value = "/{svyid}") |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿é®å· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | @Log(title = "模æ¿é®å·", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateWjx svyLibTemplateWjx) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿é®å· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | @Log(title = "模æ¿é®å·", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateWjx svyLibTemplateWjx) |
| | |
| | | /** |
| | | * å 餿¨¡æ¿é®å· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:remove')") |
| | | @Log(title = "模æ¿é®å·", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) |
| | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskAnswer svyTaskAnswer) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:export')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskAnswer svyTaskAnswer) { |
| | |
| | | /** |
| | | * è·åä»»å¡é®å·é®é¢é项详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyTaskAnswerService.selectSvyTaskAnswerById(id)); |
| | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:add')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskAnswer svyTaskAnswer) { |
| | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:edit')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskAnswer svyTaskAnswer) { |
| | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:answer:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:remove')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * æ¥è¯¢é®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·ä»»å¡ï¼ä»»å¡ï¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:task:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyTask svyTask) { |
| | | PageUtils.startPageByPost(svyTask.getPageNum(), svyTask.getPageSize()); |
| | |
| | | * 导åºé®å·ä»»å¡ï¼ä»»å¡ï¼å表 |
| | | */ |
| | | @ApiOperation("导åºé®å·ä»»å¡ï¼ä»»å¡ï¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:task:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:export')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTask svyTask) { |
| | |
| | | * è·åé®å·ä»»å¡ï¼ä»»å¡ï¼è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åé®å·ä»»å¡ï¼ä»»å¡ï¼è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:task:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:query')") |
| | | @GetMapping(value = "/{taskid}") |
| | | public AjaxResult getInfo(@PathVariable("taskid") Long taskid) { |
| | | return success(svyTaskService.selectSvyTaskByTaskid(taskid)); |
| | |
| | | * æ°å¢é®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @ApiOperation("æ°å¢é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTask svyTask) { |
| | |
| | | * ä¿®æ¹é®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:task:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:edit')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTask svyTask) { |
| | |
| | | * å é¤é®å·ä»»å¡ï¼ä»»å¡ï¼ |
| | | */ |
| | | @ApiOperation("å é¤é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:task:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:remove')") |
| | | @Log(title = "é®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.DELETE) |
| | | @GetMapping("/{taskids}") |
| | | public AjaxResult remove(@PathVariable Long[] taskids) { |
| | |
| | | * æ¥è¯¢ä»»å¡é®å·é¢ç®å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ä»»å¡é®å·é¢ç®å表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskScript svyTaskScript) { |
| | | startPage(); |
| | |
| | | * 导åºä»»å¡é®å·é¢ç®å表 |
| | | */ |
| | | @ApiOperation("导åºä»»å¡é®å·é¢ç®å表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskScript svyTaskScript) { |
| | |
| | | * è·åä»»å¡é®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åä»»å¡é®å·é¢ç®è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyTaskScriptService.selectSvyTaskScriptById(id)); |
| | |
| | | * æ°å¢ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("æ°å¢ä»»å¡é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTaskScript svyTaskScript) { |
| | |
| | | * ä¿®æ¹ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ä»»å¡é®å·é¢ç®") |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskScript svyTaskScript) { |
| | |
| | | * å é¤ä»»å¡é®å·é¢ç® |
| | | */ |
| | | @ApiOperation("导åºç»¼åé®å·ä»»å¡ï¼ä»»å¡ï¼å表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:scriptoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskScriptoption svyTaskScriptoption) |
| | | { |
| | |
| | | /** |
| | | * 导åºä»»å¡é®å·é®é¢é项å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:scriptoption:export')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskScriptoption svyTaskScriptoption) |
| | |
| | | /** |
| | | * è·åä»»å¡é®å·é®é¢é项详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:scriptoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:scriptoption:add')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskScriptoption svyTaskScriptoption) |
| | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:scriptoption:edit')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskScriptoption svyTaskScriptoption) |
| | |
| | | /** |
| | | * å é¤ä»»å¡é®å·é®é¢é项 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:scriptoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:scriptoption:remove')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | * æ°å¢æä¿®æ¹å é¤é®å·ä»»å¡ |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹å é¤é®å·ä»»å¡") |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @PostMapping("/insertOrUpdateSvyTask") |
| | | public AjaxResult insertOrUpdateSvyTask(@RequestBody SvyTaskVO svyTaskVO) { |
| | | LoginUser loginUser = getLoginUser(); |
| | |
| | | /** |
| | | * æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @ApiOperation("æ¥è¯¢ä»»å¡é®å·æ¨¡æ¿å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplate svyTaskTemplate) { |
| | |
| | | * 导åºä»»å¡é®å·æ¨¡æ¿å表 |
| | | */ |
| | | @ApiOperation("导åºä»»å¡é®å·æ¨¡æ¿å表") |
| | | @PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskTemplate svyTaskTemplate) { |
| | |
| | | * è·åä»»å¡é®å·æ¨¡æ¿è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åä»»å¡é®å·æ¨¡æ¿è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | @GetMapping(value = "/{svyid}") |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { |
| | | return success(svyTaskTemplateService.selectSvyTaskTemplateBySvyid(svyid)); |
| | |
| | | * æ°å¢ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("æ°å¢ä»»å¡é®å·æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskTemplate svyTaskTemplate) { |
| | |
| | | * ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplate svyTaskTemplate) { |
| | |
| | | * å é¤ä»»å¡é®å·æ¨¡æ¿ |
| | | */ |
| | | @ApiOperation("å é¤ä»»å¡é®å·æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) { |
| | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é访任å¡é®å·æ¨¡æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ°å¢æä¿®æ¹é访任å¡é®å·æ¨¡æ¿åº") |
| | | @PostMapping("/saveOrUpdateTaskTemp") |
| | | public AjaxResult saveOrUpdateTaskTemp(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) { |
| | |
| | | * @param svyTaskTemplateVO |
| | | * @return |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) { |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplateScript svyTaskTemplateScript) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskTemplateScript svyTaskTemplateScript) |
| | |
| | | /** |
| | | * è·åé®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskTemplateScript svyTaskTemplateScript) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplateScript svyTaskTemplateScript) |
| | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºé®å·ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | |
| | | /** |
| | | * è·åé®å·ä»»å¡æ¨¡æ¿ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyTaskTemplateTargetoptionService.selectSvyTaskTemplateTargetoptionById(id)); |
| | |
| | | /** |
| | | * æ°å¢é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | |
| | | /** |
| | | * å é¤é®å·ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * æ¥è¯¢é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:topic:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyTopic svyTopic) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºé¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:topic:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:export')") |
| | | @Log(title = "é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTopic svyTopic) { |
| | |
| | | /** |
| | | * è·åé¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:topic:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:query')") |
| | | @GetMapping(value = "/{topicid}") |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) { |
| | | return success(svyTopicService.selectSvyTopicByTopicid(topicid)); |
| | |
| | | /** |
| | | * æ°å¢é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:topic:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:add')") |
| | | @Log(title = "é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTopic svyTopic) { |
| | |
| | | /** |
| | | * ä¿®æ¹é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:topic:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:edit')") |
| | | @Log(title = "é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTopic svyTopic) { |
| | |
| | | /** |
| | | * å é¤é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:topic:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:remove')") |
| | | @Log(title = "é¢ç®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{topicids}") |
| | | public AjaxResult remove(@PathVariable Long[] topicids) { |
| | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿ç§å®¤å
³èå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TempDetpRelevance tempDetpRelevance) |
| | | { |
| | |
| | | /** |
| | | * å¯¼åºæ¨¡æ¿ç§å®¤å
³èå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:export')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TempDetpRelevance tempDetpRelevance) |
| | |
| | | /** |
| | | * è·å模æ¿ç§å®¤å
³è详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿ç§å®¤å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:add')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TempDetpRelevance tempDetpRelevance) |
| | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿ç§å®¤å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:edit')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TempDetpRelevance tempDetpRelevance) |
| | |
| | | /** |
| | | * å 餿¨¡æ¿ç§å®¤å
³è |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:relevance:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:relevance:remove')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | /** |
| | | * æ¥è¯¢çä¿¡è´¦å·å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody BaseSmsaccount baseSmsaccount) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºçä¿¡è´¦å·å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:export')") |
| | | @Log(title = "çä¿¡è´¦å·", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BaseSmsaccount baseSmsaccount) { |
| | |
| | | /** |
| | | * è·åçä¿¡è´¦å·è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:query')") |
| | | @GetMapping(value = "/{smsacountid}") |
| | | public AjaxResult getInfo(@PathVariable("smsacountid") Long smsacountid) { |
| | | return success(baseSmsaccountService.selectBaseSmsaccountBySmsacountid(smsacountid)); |
| | |
| | | /** |
| | | * æ°å¢çä¿¡è´¦å· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:add')") |
| | | @Log(title = "çä¿¡è´¦å·", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody BaseSmsaccount baseSmsaccount) { |
| | |
| | | /** |
| | | * ä¿®æ¹çä¿¡è´¦å· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:edit')") |
| | | @Log(title = "çä¿¡è´¦å·", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseSmsaccount baseSmsaccount) { |
| | |
| | | /** |
| | | * å é¤çä¿¡è´¦å· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:remove')") |
| | | @Log(title = "çä¿¡è´¦å·", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{smsacountids}") |
| | | public AjaxResult remove(@PathVariable Long[] smsacountids) { |
| | |
| | | /** |
| | | * è·ååæ°é
ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:config:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysConfig config) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "åæ°ç®¡ç", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:config:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:config:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysConfig config) |
| | | { |
| | |
| | | /** |
| | | * æ ¹æ®åæ°ç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:config:query')") |
| | | @GetMapping(value = "/{configId}") |
| | | public AjaxResult getInfo(@PathVariable Long configId) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢åæ°é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:config:add')") |
| | | @Log(title = "åæ°ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysConfig config) |
| | |
| | | /** |
| | | * ä¿®æ¹åæ°é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:config:edit')") |
| | | @Log(title = "åæ°ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysConfig config) |
| | |
| | | /** |
| | | * å é¤åæ°é
ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:config:remove')") |
| | | @Log(title = "åæ°ç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{configIds}") |
| | | public AjaxResult remove(@PathVariable Long[] configIds) |
| | |
| | | /** |
| | | * å·æ°åæ°ç¼å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:config:remove')") |
| | | @Log(title = "åæ°ç®¡ç", businessType = BusinessType.CLEAN) |
| | | @GetMapping("/refreshCache") |
| | | public AjaxResult refreshCache() |
| | |
| | | * è·åé¨é¨å表 |
| | | */ |
| | | @ApiOperation("è·åé¨é¨å表") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dept:list')") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(SysDept dept) |
| | | { |
| | |
| | | * æ¥è¯¢é¨é¨åè¡¨ï¼æé¤èç¹ï¼ |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é¨é¨åè¡¨ï¼æé¤èç¹ï¼") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dept:list')") |
| | | @GetMapping("/list/exclude/{deptId}") |
| | | public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) |
| | | { |
| | |
| | | * æ ¹æ®é¨é¨ç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ ¹æ®é¨é¨ç¼å·è·å详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dept:query')") |
| | | @GetMapping("/getInfo/{deptId}") |
| | | public AjaxResult getInfo(@PathVariable Long deptId) |
| | | { |
| | |
| | | * æ°å¢é¨é¨ |
| | | */ |
| | | @ApiOperation("æ°å¢é¨é¨") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dept:add')") |
| | | @Log(title = "é¨é¨ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysDept dept) |
| | |
| | | * ä¿®æ¹é¨é¨ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹é¨é¨") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dept:edit')") |
| | | @Log(title = "é¨é¨ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysDept dept) |
| | |
| | | * å é¤é¨é¨ |
| | | */ |
| | | @ApiOperation("å é¤é¨é¨") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dept:remove')") |
| | | @Log(title = "é¨é¨ç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{deptId}") |
| | | public AjaxResult remove(@PathVariable Long deptId) |
| | |
| | | @Autowired |
| | | private ISysDictTypeService dictTypeService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:dict:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysDictData dictData) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "åå
¸æ°æ®", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:dict:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysDictData dictData) |
| | | { |
| | |
| | | /** |
| | | * æ¥è¯¢åå
¸æ°æ®è¯¦ç» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:query')") |
| | | @GetMapping(value = "/{dictCode}") |
| | | public AjaxResult getInfo(@PathVariable Long dictCode) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢åå
¸ç±»å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:add')") |
| | | @Log(title = "åå
¸æ°æ®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysDictData dict) |
| | |
| | | /** |
| | | * ä¿®æ¹ä¿ååå
¸ç±»å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:edit')") |
| | | @Log(title = "åå
¸æ°æ®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysDictData dict) |
| | |
| | | /** |
| | | * å é¤åå
¸ç±»å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | @Log(title = "åå
¸ç±»å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{dictCodes}") |
| | | public AjaxResult remove(@PathVariable Long[] dictCodes) |
| | |
| | | @Autowired |
| | | private ISysDictTypeService dictTypeService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:dict:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysDictType dictType) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "åå
¸ç±»å", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:dict:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysDictType dictType) |
| | | { |
| | |
| | | /** |
| | | * æ¥è¯¢åå
¸ç±»åè¯¦ç» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:query')") |
| | | @GetMapping(value = "/{dictId}") |
| | | public AjaxResult getInfo(@PathVariable Long dictId) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢åå
¸ç±»å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:add')") |
| | | @Log(title = "åå
¸ç±»å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysDictType dict) |
| | |
| | | /** |
| | | * ä¿®æ¹åå
¸ç±»å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:edit')") |
| | | @Log(title = "åå
¸ç±»å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysDictType dict) |
| | |
| | | /** |
| | | * å é¤åå
¸ç±»å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | @Log(title = "åå
¸ç±»å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{dictIds}") |
| | | public AjaxResult remove(@PathVariable Long[] dictIds) |
| | |
| | | /** |
| | | * å·æ°åå
¸ç¼å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | @Log(title = "åå
¸ç±»å", businessType = BusinessType.CLEAN) |
| | | @GetMapping("/refreshCache") |
| | | public AjaxResult refreshCache() |
| | |
| | | /** |
| | | * è·åèåå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:list')") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(SysMenu menu) |
| | | { |
| | |
| | | /** |
| | | * æ ¹æ®èåç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:query')") |
| | | @GetMapping(value = "/{menuId}") |
| | | public AjaxResult getInfo(@PathVariable Long menuId) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢èå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:add')") |
| | | @Log(title = "èå管ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysMenu menu) |
| | |
| | | /** |
| | | * ä¿®æ¹èå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:edit')") |
| | | @Log(title = "èå管ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysMenu menu) |
| | |
| | | /** |
| | | * å é¤èå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:remove')") |
| | | @Log(title = "èå管ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{menuId}") |
| | | public AjaxResult remove(@PathVariable("menuId") Long menuId) |
| | |
| | | /** |
| | | * è·åéç¥å
¬åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:notice:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysNotice notice) |
| | | { |
| | |
| | | /** |
| | | * æ ¹æ®éç¥å
¬åç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:notice:query')") |
| | | @GetMapping(value = "/{noticeId}") |
| | | public AjaxResult getInfo(@PathVariable Long noticeId) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢éç¥å
Œ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:notice:add')") |
| | | @Log(title = "éç¥å
Œ", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysNotice notice) |
| | |
| | | /** |
| | | * ä¿®æ¹éç¥å
Œ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:notice:edit')") |
| | | @Log(title = "éç¥å
Œ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysNotice notice) |
| | |
| | | /** |
| | | * å é¤éç¥å
Œ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:notice:remove')") |
| | | @Log(title = "éç¥å
Œ", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{noticeIds}") |
| | | public AjaxResult remove(@PathVariable Long[] noticeIds) |
| | |
| | | /** |
| | | * è·åå²ä½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:post:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysPost post) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "å²ä½ç®¡ç", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:post:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:post:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysPost post) |
| | | { |
| | |
| | | /** |
| | | * æ ¹æ®å²ä½ç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:post:query')") |
| | | @GetMapping(value = "/{postId}") |
| | | public AjaxResult getInfo(@PathVariable Long postId) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢å²ä½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:post:add')") |
| | | @Log(title = "å²ä½ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysPost post) |
| | |
| | | /** |
| | | * ä¿®æ¹å²ä½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:post:edit')") |
| | | @Log(title = "å²ä½ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysPost post) |
| | |
| | | /** |
| | | * å é¤å²ä½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:post:remove')") |
| | | @Log(title = "å²ä½ç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{postIds}") |
| | | public AjaxResult remove(@PathVariable Long[] postIds) |
| | |
| | | @Autowired |
| | | private ISysDeptService deptService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysRole role) |
| | | { |
| | |
| | | } |
| | | |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:role:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysRole role) |
| | | { |
| | |
| | | /** |
| | | * æ ¹æ®è§è²ç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | @GetMapping(value = "/{roleId}") |
| | | public AjaxResult getInfo(@PathVariable Long roleId) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢è§è² |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:add')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysRole role) |
| | |
| | | /** |
| | | * ä¿®æ¹ä¿åè§è² |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysRole role) |
| | |
| | | /** |
| | | * ä¿®æ¹ä¿åæ°æ®æé |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/dataScope") |
| | | public AjaxResult dataScope(@RequestBody SysRole role) |
| | |
| | | /** |
| | | * ç¶æä¿®æ¹ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody SysRole role) |
| | |
| | | /** |
| | | * å é¤è§è² |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:remove')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{roleIds}") |
| | | public AjaxResult remove(@PathVariable Long[] roleIds) |
| | |
| | | /** |
| | | * è·åè§è²éæ©æ¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | @GetMapping("/optionselect") |
| | | public AjaxResult optionselect() |
| | | { |
| | |
| | | /** |
| | | * æ¥è¯¢å·²åé
ç¨æ·è§è²å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @GetMapping("/authUser/allocatedList") |
| | | public TableDataInfo allocatedList(SysUser user) |
| | | { |
| | |
| | | /** |
| | | * æ¥è¯¢æªåé
ç¨æ·è§è²å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @GetMapping("/authUser/unallocatedList") |
| | | public TableDataInfo unallocatedList(SysUser user) |
| | | { |
| | |
| | | /** |
| | | * åæ¶ææç¨æ· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.GRANT) |
| | | @PostMapping("/authUser/cancel") |
| | | public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole) |
| | |
| | | /** |
| | | * æ¹éåæ¶ææç¨æ· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.GRANT) |
| | | @PostMapping("/authUser/cancelAll") |
| | | public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds) |
| | |
| | | /** |
| | | * æ¹ééæ©ç¨æ·ææ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.GRANT) |
| | | @PostMapping("/authUser/selectAll") |
| | | public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds) |
| | |
| | | /** |
| | | * è·å对åºè§è²é¨é¨æ å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | @GetMapping(value = "/deptTree/{roleId}") |
| | | public AjaxResult deptTree(@PathVariable("roleId") Long roleId) |
| | | { |
| | |
| | | /** |
| | | * è·åç¨æ·å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysUser user) { |
| | | startPage(); |
| | |
| | | } |
| | | |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:user:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysUser user) { |
| | | List<SysUser> list = userService.selectUserList(user); |
| | |
| | | } |
| | | |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:user:import')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:import')") |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { |
| | | ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class); |
| | |
| | | /** |
| | | * æ ¹æ®ç¨æ·ç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:query')") |
| | | @GetMapping("/getInfo/{userId}") |
| | | public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) { |
| | | userService.checkUserDataScope(userId); |
| | |
| | | /** |
| | | * æ°å¢ç¨æ· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:add')") |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysUser user) { |
| | |
| | | /** |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysUser user) { |
| | |
| | | /** |
| | | * å é¤ç¨æ· |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:remove')") |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{userIds}") |
| | | public AjaxResult remove(@PathVariable Long[] userIds) { |
| | |
| | | /** |
| | | * éç½®å¯ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:resetPwd')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:resetPwd')") |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/resetPwd") |
| | | public AjaxResult resetPwd(@RequestBody SysUser user) { |
| | |
| | | /** |
| | | * ç¶æä¿®æ¹ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody SysUser user) { |
| | |
| | | /** |
| | | * æ ¹æ®ç¨æ·ç¼å·è·åææè§è² |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:query')") |
| | | @GetMapping("/authRole/{userId}") |
| | | public AjaxResult authRole(@PathVariable("userId") Long userId) { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | |
| | | /** |
| | | * ç¨æ·ææè§è² |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.GRANT) |
| | | @PostMapping("/authRole") |
| | | public AjaxResult insertAuthRole(Long userId, Long[] roleIds) { |
| | |
| | | /** |
| | | * è·åé¨é¨æ å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/deptTree") |
| | | public AjaxResult deptTree(SysDept dept) { |
| | | return success(deptService.selectDeptTreeList(dept)); |
| | |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ã请填ååè½åç§°ãå表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:dept:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysUserDept sysUserDept) |
| | | { |
| | |
| | | * 导åºã请填ååè½åç§°ãå表 |
| | | */ |
| | | @ApiOperation("导åºã请填ååè½åç§°ãå表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:dept:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:export')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysUserDept sysUserDept) |
| | |
| | | * è·åã请填ååè½åç§°ã详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åã请填ååè½åç§°ã详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:dept:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:dept:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:add')") |
| | | @ApiOperation("导åºã请填ååè½åç§°ãå表") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SysUserDept sysUserDept) |
| | |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ã请填ååè½åç§°ã") |
| | | @PreAuthorize("@ss.hasPermi('smartor:dept:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SysUserDept sysUserDept) |
| | |
| | | * å é¤ã请填ååè½åç§°ã |
| | | */ |
| | | @ApiOperation("å é¤ã请填ååè½åç§°ã") |
| | | @PreAuthorize("@ss.hasPermi('smartor:dept:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:remove')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | |
| | | package com.ruoyi.web.test; |
| | | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.JsonNode; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.google.common.reflect.TypeToken; |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.JsonArray; |
| | | import com.google.gson.JsonObject; |
| | | import com.smartor.domain.ThiedInhospInfo; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.utils.file.FileUploadUtils; |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import io.swagger.models.auth.In; |
| | | import org.junit.Test; |
| | | import org.springframework.mock.web.MockMultipartFile; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.lang.reflect.Type; |
| | | import java.time.LocalTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.io.*; |
| | | import java.nio.file.Files; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.concurrent.CompletableFuture; |
| | | |
| | | import static org.eclipse.jetty.http.HttpGenerator.CHUNK_SIZE; |
| | | |
| | | //@SpringBootTest |
| | | //@RunWith(SpringRunner.class) |
| | | public class MQTest { |
| | | |
| | | |
| | | String result="{\n" + |
| | | " \"code\": \"0\",\n" + |
| | | " \"message\": \"success\",\n" + |
| | | " \"data\": {\n" + |
| | | " \"result\": ["+ |
| | | " {\n" + |
| | | " \"admissDeptName\": \"æµè¯ç§å®¤\",\n" + |
| | | " \"patiTypeId\": \"22\",\n" + |
| | | " \"companyTelNum\": \"\",\n" + |
| | | " \"currDeptCode\": \"1024\",\n" + |
| | | " \"currWardCode\": \"1331\",\n" + |
| | | " \"patiIdCardNo\": \"\",\n" + |
| | | " \"PatiHomeAddr\": \"æµæ±çæå·å¸æ±å¢
åº\",\n" + |
| | | " \"patiMediaId\": \"69674\",\n" + |
| | | " \"admissBedNo\": \"\",\n" + |
| | | " \"patiBirthday\": \"2009-03-03 00:00:00\",\n" + |
| | | " \"Education\": null,\n" + |
| | | " \"nationalityAddr\": \"\",\n" + |
| | | " \"admissWardCode\": \"1331\",\n" + |
| | | " \"doctId\": \"6af3708533e645edb10a655cabead79f\",\n" + |
| | | " \"inpatientId\": \"2403000055\",\n" + |
| | | " \"ProfessionId\": \"\",\n" + |
| | | " \"admissWardId\": \"7f95c670151746bca580c866ae56cfeb\",\n" + |
| | | " \"doctName\": \"æµè¯å»ç\",\n" + |
| | | " \"currBedId\": \"7aeeb24077b1434d8f2b6ccb204f9159\",\n" + |
| | | " \"diagName\": \"åµ\",\n" + |
| | | " \"currWardName\": \"æµè¯ç
åº\",\n" + |
| | | " \"totalAmount\": 0.00,\n" + |
| | | " \"admissWardName\": \"æµè¯ç
åº\",\n" + |
| | | " \"contactPersonName\": null,\n" + |
| | | " \"patiMediaNo\": \"024000070\",\n" + |
| | | " \"patiIndex\": \"024000070\",\n" + |
| | | " \"diagIcd10\": \"M20.200\",\n" + |
| | | " \"admissDeptCode\": \"1024\",\n" + |
| | | " \"patiRecordGender\": \"女\",\n" + |
| | | " \"patiNatureId\": \"22\",\n" + |
| | | " \"treateAge\": 15,\n" + |
| | | " \"suggestAmount\": \"\",\n" + |
| | | " \"contactPersonAddr\": null,\n" + |
| | | " \"contactPersonPhone\": null,\n" + |
| | | " \"admissBedId\": \"\",\n" + |
| | | " \"treatAgeunit\": \"å²\",\n" + |
| | | " \"currBedNo\": \"T-003\",\n" + |
| | | " \"PatiNation\": \"æ±æ\",\n" + |
| | | " \"patiRecordName\": \"æ¢å¾3-5\",\n" + |
| | | " \"currDeptId\": \"416a047536b411e7bff40242ac103005\",\n" + |
| | | " \"outWayName\": null,\n" + |
| | | " \"RelationShip\": \"\",\n" + |
| | | " \"admitFormId\": null,\n" + |
| | | " \"patiNatureName\": \"éè®°è´¦å»ä¿\",\n" + |
| | | " \"PatiNationality\": \"ä¸å½\",\n" + |
| | | " \"outDate\": null,\n" + |
| | | " \"admissDeptId\": \"416a047536b411e7bff40242ac103005\",\n" + |
| | | " \"admissDate\": \"2024-03-05 14:33:00\",\n" + |
| | | " \"currStatus\": 2,\n" + |
| | | " \"DocName\": \"\",\n" + |
| | | " \"patiTypeName\": \"éè®°è´¦å»ä¿\",\n" + |
| | | " \"currDeptName\": \"æµè¯ç§å®¤\",\n" + |
| | | " \"currWardId\": \"7f95c670151746bca580c866ae56cfeb\",\n" + |
| | | " \"areaId\": \"\",\n" + |
| | | " \"PatiMaritalStatus\": null,\n" + |
| | | " \"PatiHomePhone\": \"\",\n" + |
| | | " \"preoutDate\": null,\n" + |
| | | " \"outWayId\": null,\n" + |
| | | " \"inhospitalTimes\": 3,\n" + |
| | | " \"patiRecordId\": \"69409\",\n" + |
| | | " \"age\": \"15å²\",\n" + |
| | | " \"diagId\": \"314216\"\n" + |
| | | " },\n" + |
| | | " {\n" + |
| | | " \"admissDeptName\": \"æµè¯ç§å®¤\",\n" + |
| | | " \"patiTypeId\": \"22\",\n" + |
| | | " \"companyTelNum\": \"\",\n" + |
| | | " \"currDeptCode\": \"1024\",\n" + |
| | | " \"currWardCode\": \"1331\",\n" + |
| | | " \"patiIdCardNo\": \"330106198001030057\",\n" + |
| | | " \"PatiHomeAddr\": \"æµæ±çæå·å¸è¥¿æ¹åº\",\n" + |
| | | " \"patiMediaId\": \"69675\",\n" + |
| | | " \"admissBedNo\": \"\",\n" + |
| | | " \"patiBirthday\": \"1980-01-03 00:00:00\",\n" + |
| | | " \"Education\": null,\n" + |
| | | " \"nationalityAddr\": \"\",\n" + |
| | | " \"admissWardCode\": \"1331\",\n" + |
| | | " \"doctId\": \"7d3f0eaaec304bbfad8a8471998e38e4\",\n" + |
| | | " \"inpatientId\": \"2403000056\",\n" + |
| | | " \"ProfessionId\": \"\",\n" + |
| | | " \"admissWardId\": \"7f95c670151746bca580c866ae56cfeb\",\n" + |
| | | " \"doctName\": \"ä½é¢ç
å\",\n" + |
| | | " \"currBedId\": \"377f94ca047e4786aef56a1ac22678b7\",\n" + |
| | | " \"diagName\": \"çç
\",\n" + |
| | | " \"currWardName\": \"æµè¯ç
åº\",\n" + |
| | | " \"totalAmount\": 0.00,\n" + |
| | | " \"admissWardName\": \"æµè¯ç
åº\",\n" + |
| | | " \"contactPersonName\": \"\",\n" + |
| | | " \"patiMediaNo\": \"024000071\",\n" + |
| | | " \"patiIndex\": \"024000071\",\n" + |
| | | " \"diagIcd10\": \"A01.03.01.\",\n" + |
| | | " \"admissDeptCode\": \"1024\",\n" + |
| | | " \"patiRecordGender\": \"ç·\",\n" + |
| | | " \"patiNatureId\": \"22\",\n" + |
| | | " \"treateAge\": 44,\n" + |
| | | " \"suggestAmount\": \"\",\n" + |
| | | " \"contactPersonAddr\": \"\",\n" + |
| | | " \"contactPersonPhone\": \"\",\n" + |
| | | " \"admissBedId\": \"\",\n" + |
| | | " \"treatAgeunit\": \"å²\",\n" + |
| | | " \"currBedNo\": \"T-006\",\n" + |
| | | " \"PatiNation\": \"æ±æ\",\n" + |
| | | " \"patiRecordName\": \"æ
ä¿éé¢01\",\n" + |
| | | " \"currDeptId\": \"416a047536b411e7bff40242ac103005\",\n" + |
| | | " \"outWayName\": null,\n" + |
| | | " \"RelationShip\": \"\",\n" + |
| | | " \"admitFormId\": null,\n" + |
| | | " \"patiNatureName\": \"éè®°è´¦å»ä¿\",\n" + |
| | | " \"PatiNationality\": \"ä¸å½\",\n" + |
| | | " \"outDate\": null,\n" + |
| | | " \"admissDeptId\": \"416a047536b411e7bff40242ac103005\",\n" + |
| | | " \"admissDate\": \"2024-03-07 14:04:00\",\n" + |
| | | " \"currStatus\": 2,\n" + |
| | | " \"DocName\": \"\",\n" + |
| | | " \"patiTypeName\": \"éè®°è´¦å»ä¿\",\n" + |
| | | " \"currDeptName\": \"æµè¯ç§å®¤\",\n" + |
| | | " \"currWardId\": \"7f95c670151746bca580c866ae56cfeb\",\n" + |
| | | " \"areaId\": \"\",\n" + |
| | | " \"PatiMaritalStatus\": null,\n" + |
| | | " \"PatiHomePhone\": \"\",\n" + |
| | | " \"preoutDate\": null,\n" + |
| | | " \"outWayId\": null,\n" + |
| | | " \"inhospitalTimes\": 1,\n" + |
| | | " \"patiRecordId\": \"69410\",\n" + |
| | | " \"age\": \"44å²\",\n" + |
| | | " \"diagId\": \"1000040\"\n" + |
| | | " }\n" + |
| | | " ],\n" + |
| | | " \"hasNext\": false\n" + |
| | | " }\n" + |
| | | "}"; |
| | | @Test |
| | | public void testSend22() { |
| | | Gson gson = new Gson(); |
| | | JsonObject jsonObject = gson.fromJson(result, JsonObject.class); |
| | | JsonArray resultArray = jsonObject.getAsJsonObject("data").getAsJsonArray("result"); |
| | | // uploadFileInChunks(new File("C:\\Users\\86176\\Desktop\\19-å¾è§£eså
é¨åºäº_versionä¹è§éæ§å¶.mp4")); |
| | | File file = new File("C:\\Users\\86176\\Desktop\\19-å¾è§£eså
é¨åºäº_versionä¹è§éæ§å¶.mp4"); |
| | | |
| | | // å®ä¹ ResultItem çç±»å |
| | | Type resultType = new TypeToken<List<ThiedInhospInfo>>() {}.getType(); |
| | | List<ThiedInhospInfo> resultList = gson.fromJson(resultArray, resultType); |
| | | System.out.println(resultList); |
| | | |
| | | FileInputStream input = null; |
| | | try { |
| | | input = new FileInputStream(new File("C:\\Users\\86176\\Desktop\\19-å¾è§£eså
é¨åºäº_versionä¹è§éæ§å¶.mp4")); |
| | | MultipartFile multipartFile = new MockMultipartFile(file.getName(), file.getName(), "application/octet-stream", input); |
| | | aa(multipartFile); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | } |
| | | |
| | | public void aa(MultipartFile file) throws IOException { |
| | | System.out.println("å¼å§Aaï¼" + System.currentTimeMillis()); |
| | | String filePath = "D:\\test\\Ab"; |
| | | // ä¸ä¼ å¹¶è¿åæ°æä»¶åç§° |
| | | String fileName = FileUploadUtils.upload(filePath, file); |
| | | System.out.println("ç»æAaï¼" + System.currentTimeMillis()); |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | # url: jdbc:mysql://127.0.0.1:3306/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # username: root |
| | | # password: 123456 |
| | | #192.168.1.16:3308/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # å
¬å¸ |
| | | # url: jdbc:mysql://450scrp46939.vicp.fun:59876/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # url: jdbc:mysql://192.168.1.16:3308/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://127.0.0.1:3308/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://192.168.191.181:3308/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: smartor |
| | | password: Smartor.2023 |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | |
| | | username: sa |
| | | password: Hxerp2000 |
| | | driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | |
| | | |
| | | # 仿°æ®æºå¼å
³/é»è®¤å
³é(ä¹ä¹äºé¢) |
| | | # enabled: true |
| | |
| | | #äºç»´ç è·¯å¾ |
| | | qrpath: D:\qrcode |
| | | |
| | | #å¤é¾è¯·æ±IPå端å£å· |
| | | req_path: 8096 |
| | | localIP: 192.168.1.10 |
| | | ##å
¬å¸å
å¤é¾è¯·æ±IPå端å£å· |
| | | #req_path: 8096 |
| | | #localIP: 192.168.1.10 |
| | | |
| | | #æ°åå»é¢å¤é¾è¯·æ±IPå端å£å· |
| | | req_path: 8093 |
| | | localIP: 218.108.11.22 |
| | | |
| | | #è·åæ£è
ä¿¡æ¯URL(ååæä¾) |
| | | hosp_info_url: http://esb-core-rest.wowjoy.cn/esb/exchange |
| | | |
| | | # 0代表走é»è®¤çä¸ä¼ 1 代ç èµ°æ°åå»é¢çä¸ä¼ |
| | | uploadSwitch: 1 |
| | |
| | | <version>1.2.41</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework</groupId> |
| | | <artifactId>spring-test</artifactId> |
| | | </dependency> |
| | | |
| | | </dependencies> |
| | | |
| | | </project> |
| | | </project> |
| | |
| | | |
| | | /** |
| | | * Treeselectæ ç»æå®ä½ç±» |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class TreeSelect implements Serializable |
| | |
| | | |
| | | /** èç¹åç§° */ |
| | | private String label; |
| | | |
| | | /** èç¹åç§° */ |
| | | private String deptCode; |
| | | |
| | | /** åèç¹ */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | |
| | | { |
| | | this.id = dept.getDeptId(); |
| | | this.label = dept.getDeptName(); |
| | | this.deptCode = dept.getDeptCode(); |
| | | this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | |
| | | this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public String getDeptCode() { |
| | | return deptCode; |
| | | } |
| | | |
| | | public void setDeptCode(String deptCode) { |
| | | this.deptCode = deptCode; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | |
| | | |
| | | /** |
| | | * é¨é¨è¡¨ sys_dept |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SysDept", description = "é¨é¨è¡¨") |
| | | public class SysDept extends BaseEntity |
| | | { |
| | | public class SysDept extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** é¨é¨ID */ |
| | | /** |
| | | * é¨é¨ID |
| | | */ |
| | | @ApiModelProperty("é¨é¨ID") |
| | | private Long deptId; |
| | | |
| | | /** ç¶é¨é¨ID */ |
| | | /** |
| | | * ç¶é¨é¨ID |
| | | */ |
| | | @ApiModelProperty("ç¶é¨é¨ID") |
| | | private Long parentId; |
| | | |
| | | /** ç¥çº§å表 */ |
| | | /** |
| | | * ç¥çº§å表 |
| | | */ |
| | | @ApiModelProperty("ç¥çº§å表") |
| | | private String ancestors; |
| | | |
| | | /** é¨é¨åç§° */ |
| | | /** |
| | | * é¨é¨åç§° |
| | | */ |
| | | @ApiModelProperty("é¨é¨åç§°") |
| | | private String deptName; |
| | | |
| | | /** æ¾ç¤ºé¡ºåº */ |
| | | /** |
| | | * æ¾ç¤ºé¡ºåº |
| | | */ |
| | | @ApiModelProperty("æ¾ç¤ºé¡ºåº") |
| | | private Integer orderNum; |
| | | |
| | | /** è´è´£äºº */ |
| | | /** |
| | | * è´è´£äºº |
| | | */ |
| | | @ApiModelProperty("è´è´£äºº") |
| | | private String leader; |
| | | |
| | | /** èç³»çµè¯ */ |
| | | /** |
| | | * èç³»çµè¯ |
| | | */ |
| | | @ApiModelProperty("èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | /** é®ç®± */ |
| | | /** |
| | | * é®ç®± |
| | | */ |
| | | @ApiModelProperty("é®ç®±") |
| | | private String email; |
| | | |
| | | /** é¨é¨ç¶æ:0æ£å¸¸,1åç¨ */ |
| | | /** |
| | | * é¨é¨ç¶æ:0æ£å¸¸,1åç¨ |
| | | */ |
| | | @ApiModelProperty("é¨é¨ç¶æ:0æ£å¸¸,1åç¨") |
| | | private String status; |
| | | |
| | | /** å 餿 å¿ï¼0代表åå¨ 2代表å é¤ï¼ */ |
| | | /** |
| | | * å 餿 å¿ï¼0代表åå¨ 2代表å é¤ï¼ |
| | | */ |
| | | @ApiModelProperty("å 餿 å¿ï¼0代表åå¨ 2代表å é¤ï¼") |
| | | private String delFlag; |
| | | |
| | | /** ç¶é¨é¨åç§° */ |
| | | /** |
| | | * ç¶é¨é¨åç§° |
| | | */ |
| | | @ApiModelProperty("ç¶é¨é¨åç§°") |
| | | private String parentName; |
| | | |
| | | /** åé¨é¨ */ |
| | | |
| | | /** |
| | | * åé¨é¨ |
| | | */ |
| | | @ApiModelProperty("åé¨é¨") |
| | | private List<SysDept> children = new ArrayList<SysDept>(); |
| | | |
| | | public Long getDeptId() |
| | | { |
| | | /** |
| | | * é¨é¨ç¼ç |
| | | */ |
| | | @ApiModelProperty("é¨é¨ç¼ç ") |
| | | private String deptCode; |
| | | |
| | | public String getDeptCode() { |
| | | return deptCode; |
| | | } |
| | | |
| | | public void setDeptCode(String deptCode) { |
| | | this.deptCode = deptCode; |
| | | } |
| | | |
| | | public Long getDeptId() { |
| | | return deptId; |
| | | } |
| | | |
| | | public void setDeptId(Long deptId) |
| | | { |
| | | public void setDeptId(Long deptId) { |
| | | this.deptId = deptId; |
| | | } |
| | | |
| | | public Long getParentId() |
| | | { |
| | | public Long getParentId() { |
| | | return parentId; |
| | | } |
| | | |
| | | public void setParentId(Long parentId) |
| | | { |
| | | public void setParentId(Long parentId) { |
| | | this.parentId = parentId; |
| | | } |
| | | |
| | | public String getAncestors() |
| | | { |
| | | public String getAncestors() { |
| | | return ancestors; |
| | | } |
| | | |
| | | public void setAncestors(String ancestors) |
| | | { |
| | | public void setAncestors(String ancestors) { |
| | | this.ancestors = ancestors; |
| | | } |
| | | |
| | | @NotBlank(message = "é¨é¨åç§°ä¸è½ä¸ºç©º") |
| | | @Size(min = 0, max = 30, message = "é¨é¨åç§°é¿åº¦ä¸è½è¶
è¿30个å符") |
| | | public String getDeptName() |
| | | { |
| | | public String getDeptName() { |
| | | return deptName; |
| | | } |
| | | |
| | | public void setDeptName(String deptName) |
| | | { |
| | | public void setDeptName(String deptName) { |
| | | this.deptName = deptName; |
| | | } |
| | | |
| | | @NotNull(message = "æ¾ç¤ºé¡ºåºä¸è½ä¸ºç©º") |
| | | public Integer getOrderNum() |
| | | { |
| | | public Integer getOrderNum() { |
| | | return orderNum; |
| | | } |
| | | |
| | | public void setOrderNum(Integer orderNum) |
| | | { |
| | | public void setOrderNum(Integer orderNum) { |
| | | this.orderNum = orderNum; |
| | | } |
| | | |
| | | public String getLeader() |
| | | { |
| | | public String getLeader() { |
| | | return leader; |
| | | } |
| | | |
| | | public void setLeader(String leader) |
| | | { |
| | | public void setLeader(String leader) { |
| | | this.leader = leader; |
| | | } |
| | | |
| | | @Size(min = 0, max = 11, message = "èç³»çµè¯é¿åº¦ä¸è½è¶
è¿11个å符") |
| | | public String getPhone() |
| | | { |
| | | public String getPhone() { |
| | | return phone; |
| | | } |
| | | |
| | | public void setPhone(String phone) |
| | | { |
| | | public void setPhone(String phone) { |
| | | this.phone = phone; |
| | | } |
| | | |
| | | @Email(message = "é®ç®±æ ¼å¼ä¸æ£ç¡®") |
| | | @Size(min = 0, max = 50, message = "é®ç®±é¿åº¦ä¸è½è¶
è¿50个å符") |
| | | public String getEmail() |
| | | { |
| | | public String getEmail() { |
| | | return email; |
| | | } |
| | | |
| | | public void setEmail(String email) |
| | | { |
| | | public void setEmail(String email) { |
| | | this.email = email; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | public String getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) |
| | | { |
| | | public void setStatus(String status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getDelFlag() |
| | | { |
| | | public String getDelFlag() { |
| | | return delFlag; |
| | | } |
| | | |
| | | public void setDelFlag(String delFlag) |
| | | { |
| | | public void setDelFlag(String delFlag) { |
| | | this.delFlag = delFlag; |
| | | } |
| | | |
| | | public String getParentName() |
| | | { |
| | | public String getParentName() { |
| | | return parentName; |
| | | } |
| | | |
| | | public void setParentName(String parentName) |
| | | { |
| | | public void setParentName(String parentName) { |
| | | this.parentName = parentName; |
| | | } |
| | | |
| | | public List<SysDept> getChildren() |
| | | { |
| | | public List<SysDept> getChildren() { |
| | | return children; |
| | | } |
| | | |
| | | public void setChildren(List<SysDept> children) |
| | | { |
| | | public void setChildren(List<SysDept> children) { |
| | | this.children = children; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("deptId", getDeptId()) |
| | | .append("parentId", getParentId()) |
| | | .append("ancestors", getAncestors()) |
| | | .append("deptName", getDeptName()) |
| | | .append("orderNum", getOrderNum()) |
| | | .append("leader", getLeader()) |
| | | .append("phone", getPhone()) |
| | | .append("email", getEmail()) |
| | | .append("status", getStatus()) |
| | | .append("delFlag", getDelFlag()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .toString(); |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("deptId", getDeptId()).append("parentId", getParentId()).append("ancestors", getAncestors()).append("deptName", getDeptName()).append("orderNum", getOrderNum()).append("leader", getLeader()).append("phone", getPhone()).append("email", getEmail()).append("status", getStatus()).append("delFlag", getDelFlag()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).toString(); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.common.core.domain.entity; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import javax.validation.constraints.*; |
| | |
| | | private String userName; |
| | | |
| | | /** |
| | | * æ£è
èå´ï¼0:å
¨é¨ï¼1ï¼ç§å®¤2ï¼ç
åºï¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ£è
èå´ï¼0:å
¨é¨ï¼1ï¼ç§å®¤2ï¼ç
åºï¼") |
| | | @Excel(name = "æ£è
èå´ï¼0:å
¨é¨ï¼1ï¼ç§å®¤2ï¼ç
åºï¼") |
| | | private String searchscope; |
| | | |
| | | /** |
| | | * ç¨æ·æµç§° |
| | | */ |
| | | @ApiModelProperty(value = "ç¨æ·æµç§°") |
| | |
| | | @ApiModelProperty(value = "ç¨æ·é®ç®±") |
| | | @Excel(name = "ç¨æ·é®ç®±") |
| | | private String email; |
| | | |
| | | /** |
| | | * ç¨æ·ç±»åï¼00ç³»ç»ç¨æ·ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "ç¨æ·ç±»åï¼00ç³»ç»ç¨æ·ï¼") |
| | | @Excel(name = "ç¨æ·ç±»åï¼00ç³»ç»ç¨æ·ï¼") |
| | | private String userType; |
| | | |
| | | /** |
| | | * ææºå·ç |
| | |
| | | private Date loginDate; |
| | | |
| | | /** |
| | | * é¢åºä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "é¢åºä¿¡æ¯") |
| | | private String hospInfo; |
| | | /** |
| | | * ç§å®¤ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "ç§å®¤ä¿¡æ¯") |
| | | private String deptInfo; |
| | | |
| | | /** |
| | | * é¨é¨å¯¹è±¡ |
| | | */ |
| | | @ApiModelProperty(value = "é¨é¨å¯¹è±¡") |
| | |
| | | @ApiModelProperty(value = "è§è²ID") |
| | | private Long roleId; |
| | | |
| | | |
| | | /** |
| | | * ç
åºç¼ç |
| | | */ |
| | | @ApiModelProperty("ç
åºç¼ç ") |
| | | private List<String> leavehospitaldistrictcodes = new ArrayList<String>(); |
| | | |
| | | /** |
| | | * ç§å®¤ç¼ç |
| | | */ |
| | | @ApiModelProperty("ç§å®¤ç¼ç ") |
| | | private List<String> leaveldeptcodes = new ArrayList<String>(); |
| | | |
| | | |
| | | public SysUser() { |
| | | |
| | | } |
| | | |
| | | public List<String> getLeavehospitaldistrictcodes() { |
| | | return leavehospitaldistrictcodes; |
| | | } |
| | | |
| | | public void setLeavehospitaldistrictcodes(List<String> leavehospitaldistrictcodes) { |
| | | this.leavehospitaldistrictcodes = leavehospitaldistrictcodes; |
| | | } |
| | | |
| | | public List<String> getLeaveldeptcodes() { |
| | | return leaveldeptcodes; |
| | | } |
| | | |
| | | public void setLeaveldeptcodes(List<String> leaveldeptcodes) { |
| | | this.leaveldeptcodes = leaveldeptcodes; |
| | | } |
| | | |
| | | public String getSearchscope() { |
| | | return searchscope; |
| | | } |
| | | |
| | | public void setSearchscope(String searchscope) { |
| | | this.searchscope = searchscope; |
| | | } |
| | | |
| | | public String getHospInfo() { |
| | | return hospInfo; |
| | | } |
| | | |
| | | public void setHospInfo(String hospInfo) { |
| | | this.hospInfo = hospInfo; |
| | | } |
| | | |
| | | public String getDeptInfo() { |
| | | return deptInfo; |
| | | } |
| | | |
| | | public void setDeptInfo(String deptInfo) { |
| | | this.deptInfo = deptInfo; |
| | | } |
| | | |
| | | public SysUser(Long userId) { |
| | |
| | | return email; |
| | | } |
| | | |
| | | public void setUserType(String userType) { |
| | | this.userType = userType; |
| | | } |
| | | |
| | | public String getUserType() { |
| | | return userType; |
| | | } |
| | | |
| | | public void setEmail(String email) { |
| | | this.email = email; |
| | | } |
| | |
| | | private Long userId; |
| | | |
| | | /** |
| | | * é¨é¨ç±»å |
| | | */ |
| | | @ApiModelProperty("é¨é¨ç±»å") |
| | | @Excel(name = "é¨é¨ç±»å") |
| | | private String deptType; |
| | | |
| | | /** |
| | | * é¨é¨ç¼ç |
| | | */ |
| | | @ApiModelProperty("é¨é¨ç¼ç ") |
| | | @Excel(name = "é¨é¨ç¼ç ") |
| | | private String deptCode; |
| | | |
| | | /** |
| | | * é¨é¨ID |
| | | */ |
| | | @ApiModelProperty("é¨é¨ID") |
| | | @Excel(name = "é¨é¨ID") |
| | | private Long deptId; |
| | | |
| | | /** å 餿 å¿ï¼0代表åå¨ 2代表å é¤ï¼ */ |
| | | /** |
| | | * å 餿 å¿ï¼0代表åå¨ 2代表å é¤ï¼ |
| | | */ |
| | | @ApiModelProperty("å 餿 å¿ï¼0代表åå¨ 1代表å é¤ï¼") |
| | | private Long delFlag; |
| | | |
| | |
| | | /** |
| | | * é»è®¤å¤§å° 50M |
| | | */ |
| | | public static final long DEFAULT_MAX_SIZE = 50 * 1024 * 1024; |
| | | public static final long DEFAULT_MAX_SIZE = 200 * 1024 * 1024; |
| | | |
| | | /** |
| | | * é»è®¤çæä»¶åæå¤§é¿åº¦ 100 |
| | |
| | | * |
| | | * @param baseDir ç¸å¯¹åºç¨çåºç®å½ |
| | | * @param file ä¸ä¼ çæä»¶ |
| | | * @param allowedExtension ä¸ä¼ æä»¶ç±»å |
| | | * @return è¿åä¸ä¼ æåçæä»¶å |
| | | * @throws FileSizeLimitExceededException 妿è¶
åºæå¤§å¤§å° |
| | | * @throws FileNameLengthLimitExceededException æä»¶åå¤ªé¿ |
| | |
| | | package com.ruoyi.common.utils.http; |
| | | |
| | | import java.io.BufferedReader; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.io.InputStreamReader; |
| | | import java.io.PrintWriter; |
| | | import java.io.*; |
| | | import java.net.ConnectException; |
| | | import java.net.SocketTimeoutException; |
| | | import java.net.URL; |
| | |
| | | conn.setRequestProperty("connection", "Keep-Alive"); |
| | | conn.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); |
| | | conn.setRequestProperty("Accept-Charset", "utf-8"); |
| | | conn.setRequestProperty("contentType", "utf-8"); |
| | | conn.setRequestProperty("Content-Type", "application/json; charset=UTF-8"); |
| | | conn.setDoOutput(true); |
| | | conn.setDoInput(true); |
| | | out = new PrintWriter(conn.getOutputStream()); |
| | | out = new PrintWriter(new OutputStreamWriter(conn.getOutputStream(), StandardCharsets.UTF_8)); |
| | | out.print(param); |
| | | out.flush(); |
| | | in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8)); |
| | |
| | | conn.setRequestProperty(entry.getKey(), entry.getValue()); |
| | | } |
| | | } |
| | | out = new PrintWriter(conn.getOutputStream()); |
| | | out = new PrintWriter(new OutputStreamWriter(conn.getOutputStream(), StandardCharsets.UTF_8)); |
| | | out.print(param); |
| | | out.flush(); |
| | | in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8)); |
| | |
| | | import java.util.UUID; |
| | | import java.util.stream.Collectors; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.apache.commons.lang3.RegExUtils; |
| | | import org.apache.commons.lang3.reflect.FieldUtils; |
| | |
| | | import org.apache.poi.hssf.usermodel.HSSFSheet; |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| | | import org.apache.poi.ooxml.POIXMLDocumentPart; |
| | | import org.apache.poi.ss.usermodel.BorderStyle; |
| | | import org.apache.poi.ss.usermodel.Cell; |
| | | import org.apache.poi.ss.usermodel.CellStyle; |
| | | import org.apache.poi.ss.usermodel.CellType; |
| | | import org.apache.poi.ss.usermodel.ClientAnchor; |
| | | import org.apache.poi.ss.usermodel.DataValidation; |
| | | import org.apache.poi.ss.usermodel.DataValidationConstraint; |
| | | import org.apache.poi.ss.usermodel.DataValidationHelper; |
| | | import org.apache.poi.ss.usermodel.DateUtil; |
| | | import org.apache.poi.ss.usermodel.Drawing; |
| | | import org.apache.poi.ss.usermodel.FillPatternType; |
| | | import org.apache.poi.ss.usermodel.Font; |
| | | import org.apache.poi.ss.usermodel.HorizontalAlignment; |
| | | import org.apache.poi.ss.usermodel.IndexedColors; |
| | | import org.apache.poi.ss.usermodel.Name; |
| | | import org.apache.poi.ss.usermodel.PictureData; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | | import org.apache.poi.ss.usermodel.Sheet; |
| | | import org.apache.poi.ss.usermodel.VerticalAlignment; |
| | | import org.apache.poi.ss.usermodel.Workbook; |
| | | import org.apache.poi.ss.usermodel.WorkbookFactory; |
| | | import org.apache.poi.ss.usermodel.*; |
| | | import org.apache.poi.ss.util.CellRangeAddress; |
| | | import org.apache.poi.ss.util.CellRangeAddressList; |
| | | import org.apache.poi.util.IOUtils; |
| | |
| | | |
| | | /** |
| | | * Excelç¸å
³å¤ç |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class ExcelUtil<T> |
| | | { |
| | | public class ExcelUtil<T> { |
| | | private static final Logger log = LoggerFactory.getLogger(ExcelUtil.class); |
| | | |
| | | public static final String FORMULA_REGEX_STR = "=|-|\\+|@"; |
| | | |
| | | public static final String[] FORMULA_STR = { "=", "-", "+", "@" }; |
| | | public static final String[] FORMULA_STR = {"=", "-", "+", "@"}; |
| | | |
| | | /** |
| | | * Excel sheetæå¤§è¡æ°ï¼é»è®¤65536 |
| | |
| | | */ |
| | | public String[] excludeFields; |
| | | |
| | | public ExcelUtil(Class<T> clazz) |
| | | { |
| | | public ExcelUtil(Class<T> clazz) { |
| | | this.clazz = clazz; |
| | | } |
| | | |
| | |
| | | * @param fields å屿§å 示ä¾[å个"name"/å¤ä¸ª"id","name"] |
| | | * @throws Exception |
| | | */ |
| | | public void hideColumn(String... fields) |
| | | { |
| | | public void hideColumn(String... fields) { |
| | | this.excludeFields = fields; |
| | | } |
| | | |
| | | public void init(List<T> list, String sheetName, String title, Type type) |
| | | { |
| | | if (list == null) |
| | | { |
| | | public void init(List<T> list, String sheetName, String title, Type type) { |
| | | if (list == null) { |
| | | list = new ArrayList<T>(); |
| | | } |
| | | this.list = list; |
| | |
| | | /** |
| | | * å建excel第ä¸è¡æ é¢ |
| | | */ |
| | | public void createTitle() |
| | | { |
| | | if (StringUtils.isNotEmpty(title)) |
| | | { |
| | | public void createTitle() { |
| | | if (StringUtils.isNotEmpty(title)) { |
| | | subMergedFirstRowNum++; |
| | | subMergedLastRowNum++; |
| | | int titleLastCol = this.fields.size() - 1; |
| | | if (isSubList()) |
| | | { |
| | | if (isSubList()) { |
| | | titleLastCol = titleLastCol + subFields.size() - 1; |
| | | } |
| | | Row titleRow = sheet.createRow(rownum == 0 ? rownum++ : 0); |
| | |
| | | /** |
| | | * å建对象çåå表åç§° |
| | | */ |
| | | public void createSubHead() |
| | | { |
| | | if (isSubList()) |
| | | { |
| | | public void createSubHead() { |
| | | if (isSubList()) { |
| | | subMergedFirstRowNum++; |
| | | subMergedLastRowNum++; |
| | | Row subRow = sheet.createRow(rownum); |
| | | int excelNum = 0; |
| | | for (Object[] objects : fields) |
| | | { |
| | | for (Object[] objects : fields) { |
| | | Excel attr = (Excel) objects[1]; |
| | | Cell headCell1 = subRow.createCell(excelNum); |
| | | headCell1.setCellValue(attr.name()); |
| | |
| | | } |
| | | int headFirstRow = excelNum - 1; |
| | | int headLastRow = headFirstRow + subFields.size() - 1; |
| | | if (headLastRow > headFirstRow) |
| | | { |
| | | if (headLastRow > headFirstRow) { |
| | | sheet.addMergedRegion(new CellRangeAddress(rownum, rownum, headFirstRow, headLastRow)); |
| | | } |
| | | rownum++; |
| | |
| | | |
| | | /** |
| | | * 对excel表åé»è®¤ç¬¬ä¸ä¸ªç´¢å¼åè½¬æ¢ælist |
| | | * |
| | | * |
| | | * @param is è¾å
¥æµ |
| | | * @return 转æ¢åéå |
| | | */ |
| | | public List<T> importExcel(InputStream is) throws Exception |
| | | { |
| | | public List<T> importExcel(InputStream is) throws Exception { |
| | | return importExcel(is, 0); |
| | | } |
| | | |
| | | /** |
| | | * 对excel表åé»è®¤ç¬¬ä¸ä¸ªç´¢å¼åè½¬æ¢ælist |
| | | * |
| | | * @param is è¾å
¥æµ |
| | | * |
| | | * @param is è¾å
¥æµ |
| | | * @param titleNum æ é¢å ç¨è¡æ° |
| | | * @return 转æ¢åéå |
| | | */ |
| | | public List<T> importExcel(InputStream is, int titleNum) throws Exception |
| | | { |
| | | public List<T> importExcel(InputStream is, int titleNum) throws Exception { |
| | | return importExcel(StringUtils.EMPTY, is, titleNum); |
| | | } |
| | | |
| | | /** |
| | | * 对excel表åæå®è¡¨æ ¼ç´¢å¼åè½¬æ¢ælist |
| | | * |
| | | * |
| | | * @param sheetName è¡¨æ ¼ç´¢å¼å |
| | | * @param titleNum æ é¢å ç¨è¡æ° |
| | | * @param is è¾å
¥æµ |
| | | * @param titleNum æ é¢å ç¨è¡æ° |
| | | * @param is è¾å
¥æµ |
| | | * @return 转æ¢åéå |
| | | */ |
| | | public List<T> importExcel(String sheetName, InputStream is, int titleNum) throws Exception |
| | | { |
| | | public List<T> importExcel(String sheetName, InputStream is, int titleNum) throws Exception { |
| | | this.type = Type.IMPORT; |
| | | this.wb = WorkbookFactory.create(is); |
| | | List<T> list = new ArrayList<T>(); |
| | | // 妿æå®sheetå,ååæå®sheetä¸çå
容 å¦åé»è®¤æå第1个sheet |
| | | Sheet sheet = StringUtils.isNotEmpty(sheetName) ? wb.getSheet(sheetName) : wb.getSheetAt(0); |
| | | if (sheet == null) |
| | | { |
| | | if (sheet == null) { |
| | | throw new IOException("æä»¶sheetä¸åå¨"); |
| | | } |
| | | boolean isXSSFWorkbook = !(wb instanceof HSSFWorkbook); |
| | | Map<String, PictureData> pictures; |
| | | if (isXSSFWorkbook) |
| | | { |
| | | if (isXSSFWorkbook) { |
| | | pictures = getSheetPictures07((XSSFSheet) sheet, (XSSFWorkbook) wb); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | pictures = getSheetPictures03((HSSFSheet) sheet, (HSSFWorkbook) wb); |
| | | } |
| | | // è·åæåä¸ä¸ªé空è¡çè¡ä¸æ ï¼æ¯å¦æ»è¡æ°ä¸ºnï¼åè¿åç为n-1 |
| | | int rows = sheet.getLastRowNum(); |
| | | |
| | | if (rows > 0) |
| | | { |
| | | if (rows > 0) { |
| | | // å®ä¹ä¸ä¸ªmapç¨äºåæ¾excelåçåºå·åfield. |
| | | Map<String, Integer> cellMap = new HashMap<String, Integer>(); |
| | | // è·å表头 |
| | | Row heard = sheet.getRow(titleNum); |
| | | for (int i = 0; i < heard.getPhysicalNumberOfCells(); i++) |
| | | { |
| | | for (int i = 0; i < heard.getPhysicalNumberOfCells(); i++) { |
| | | Cell cell = heard.getCell(i); |
| | | if (StringUtils.isNotNull(cell)) |
| | | { |
| | | if (StringUtils.isNotNull(cell)) { |
| | | String value = this.getCellValue(heard, i).toString(); |
| | | cellMap.put(value, i); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | cellMap.put(null, i); |
| | | } |
| | | } |
| | | // ææ°æ®æ¶æå¤ç å¾å°ç±»çææfield. |
| | | List<Object[]> fields = this.getFields(); |
| | | Map<Integer, Object[]> fieldsMap = new HashMap<Integer, Object[]>(); |
| | | for (Object[] objects : fields) |
| | | { |
| | | for (Object[] objects : fields) { |
| | | Excel attr = (Excel) objects[1]; |
| | | Integer column = cellMap.get(attr.name()); |
| | | if (column != null) |
| | | { |
| | | if (column != null) { |
| | | fieldsMap.put(column, objects); |
| | | } |
| | | } |
| | | for (int i = titleNum + 1; i <= rows; i++) |
| | | { |
| | | for (int i = titleNum + 1; i <= rows; i++) { |
| | | // ä»ç¬¬2è¡å¼å§åæ°æ®,é»è®¤ç¬¬ä¸è¡æ¯è¡¨å¤´. |
| | | Row row = sheet.getRow(i); |
| | | // 夿å½åè¡æ¯å¦æ¯ç©ºè¡ |
| | | if (isRowEmpty(row)) |
| | | { |
| | | if (isRowEmpty(row)) { |
| | | continue; |
| | | } |
| | | T entity = null; |
| | | for (Map.Entry<Integer, Object[]> entry : fieldsMap.entrySet()) |
| | | { |
| | | for (Map.Entry<Integer, Object[]> entry : fieldsMap.entrySet()) { |
| | | Object val = this.getCellValue(row, entry.getKey()); |
| | | |
| | | // 妿ä¸åå¨å®ä¾åæ°å»º. |
| | |
| | | Excel attr = (Excel) entry.getValue()[1]; |
| | | // åå¾ç±»å,å¹¶æ ¹æ®å¯¹è±¡ç±»å设置å¼. |
| | | Class<?> fieldType = field.getType(); |
| | | if (String.class == fieldType) |
| | | { |
| | | if (String.class == fieldType) { |
| | | String s = Convert.toStr(val); |
| | | if (StringUtils.endsWith(s, ".0")) |
| | | { |
| | | if (StringUtils.endsWith(s, ".0")) { |
| | | val = StringUtils.substringBefore(s, ".0"); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | String dateFormat = field.getAnnotation(Excel.class).dateFormat(); |
| | | if (StringUtils.isNotEmpty(dateFormat)) |
| | | { |
| | | if (StringUtils.isNotEmpty(dateFormat)) { |
| | | val = parseDateToStr(dateFormat, val); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | val = Convert.toStr(val); |
| | | } |
| | | } |
| | | } |
| | | else if ((Integer.TYPE == fieldType || Integer.class == fieldType) && StringUtils.isNumeric(Convert.toStr(val))) |
| | | { |
| | | } else if ((Integer.TYPE == fieldType || Integer.class == fieldType) && StringUtils.isNumeric(Convert.toStr(val))) { |
| | | val = Convert.toInt(val); |
| | | } |
| | | else if ((Long.TYPE == fieldType || Long.class == fieldType) && StringUtils.isNumeric(Convert.toStr(val))) |
| | | { |
| | | } else if ((Long.TYPE == fieldType || Long.class == fieldType) && StringUtils.isNumeric(Convert.toStr(val))) { |
| | | val = Convert.toLong(val); |
| | | } |
| | | else if (Double.TYPE == fieldType || Double.class == fieldType) |
| | | { |
| | | } else if (Double.TYPE == fieldType || Double.class == fieldType) { |
| | | val = Convert.toDouble(val); |
| | | } |
| | | else if (Float.TYPE == fieldType || Float.class == fieldType) |
| | | { |
| | | } else if (Float.TYPE == fieldType || Float.class == fieldType) { |
| | | val = Convert.toFloat(val); |
| | | } |
| | | else if (BigDecimal.class == fieldType) |
| | | { |
| | | } else if (BigDecimal.class == fieldType) { |
| | | val = Convert.toBigDecimal(val); |
| | | } |
| | | else if (Date.class == fieldType) |
| | | { |
| | | if (val instanceof String) |
| | | { |
| | | } else if (Date.class == fieldType) { |
| | | if (val instanceof String) { |
| | | val = DateUtils.parseDate(val); |
| | | } |
| | | else if (val instanceof Double) |
| | | { |
| | | } else if (val instanceof Double) { |
| | | val = DateUtil.getJavaDate((Double) val); |
| | | } |
| | | } |
| | | else if (Boolean.TYPE == fieldType || Boolean.class == fieldType) |
| | | { |
| | | } else if (Boolean.TYPE == fieldType || Boolean.class == fieldType) { |
| | | val = Convert.toBool(val, false); |
| | | } |
| | | if (StringUtils.isNotNull(fieldType)) |
| | | { |
| | | if (StringUtils.isNotNull(fieldType)) { |
| | | String propertyName = field.getName(); |
| | | if (StringUtils.isNotEmpty(attr.targetAttr())) |
| | | { |
| | | if (StringUtils.isNotEmpty(attr.targetAttr())) { |
| | | propertyName = field.getName() + "." + attr.targetAttr(); |
| | | } |
| | | else if (StringUtils.isNotEmpty(attr.readConverterExp())) |
| | | { |
| | | } else if (StringUtils.isNotEmpty(attr.readConverterExp())) { |
| | | val = reverseByExp(Convert.toStr(val), attr.readConverterExp(), attr.separator()); |
| | | } |
| | | else if (StringUtils.isNotEmpty(attr.dictType())) |
| | | { |
| | | } else if (StringUtils.isNotEmpty(attr.dictType())) { |
| | | val = reverseDictByExp(Convert.toStr(val), attr.dictType(), attr.separator()); |
| | | } |
| | | else if (!attr.handler().equals(ExcelHandlerAdapter.class)) |
| | | { |
| | | } else if (!attr.handler().equals(ExcelHandlerAdapter.class)) { |
| | | val = dataFormatHandlerAdapter(val, attr); |
| | | } |
| | | else if (ColumnType.IMAGE == attr.cellType() && StringUtils.isNotEmpty(pictures)) |
| | | { |
| | | } else if (ColumnType.IMAGE == attr.cellType() && StringUtils.isNotEmpty(pictures)) { |
| | | PictureData image = pictures.get(row.getRowNum() + "_" + entry.getKey()); |
| | | if (image == null) |
| | | { |
| | | if (image == null) { |
| | | val = ""; |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | byte[] data = image.getData(); |
| | | val = FileUtils.writeImportBytes(data); |
| | | } |
| | |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * @param list å¯¼åºæ°æ®éå |
| | | * |
| | | * @param list å¯¼åºæ°æ®éå |
| | | * @param sheetName å·¥ä½è¡¨çåç§° |
| | | * @return ç»æ |
| | | */ |
| | | public AjaxResult exportExcel(List<T> list, String sheetName) |
| | | { |
| | | public AjaxResult exportExcel(List<T> list, String sheetName) { |
| | | return exportExcel(list, sheetName, StringUtils.EMPTY); |
| | | } |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * @param list å¯¼åºæ°æ®éå |
| | | * |
| | | * @param list å¯¼åºæ°æ®éå |
| | | * @param sheetName å·¥ä½è¡¨çåç§° |
| | | * @param title æ é¢ |
| | | * @param title æ é¢ |
| | | * @return ç»æ |
| | | */ |
| | | public AjaxResult exportExcel(List<T> list, String sheetName, String title) |
| | | { |
| | | public AjaxResult exportExcel(List<T> list, String sheetName, String title) { |
| | | this.init(list, sheetName, title, Type.EXPORT); |
| | | return exportExcel(); |
| | | } |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * @param response è¿åæ°æ® |
| | | * @param list å¯¼åºæ°æ®éå |
| | | * |
| | | * @param response è¿åæ°æ® |
| | | * @param list å¯¼åºæ°æ®éå |
| | | * @param sheetName å·¥ä½è¡¨çåç§° |
| | | * @return ç»æ |
| | | */ |
| | | public void exportExcel(HttpServletResponse response, List<T> list, String sheetName) |
| | | { |
| | | public void exportExcel(HttpServletResponse response, List<T> list, String sheetName) { |
| | | exportExcel(response, list, sheetName, StringUtils.EMPTY); |
| | | } |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * @param response è¿åæ°æ® |
| | | * @param list å¯¼åºæ°æ®éå |
| | | * |
| | | * @param response è¿åæ°æ® |
| | | * @param list å¯¼åºæ°æ®éå |
| | | * @param sheetName å·¥ä½è¡¨çåç§° |
| | | * @param title æ é¢ |
| | | * @param title æ é¢ |
| | | * @return ç»æ |
| | | */ |
| | | public void exportExcel(HttpServletResponse response, List<T> list, String sheetName, String title) |
| | | { |
| | | public void exportExcel(HttpServletResponse response, List<T> list, String sheetName, String title) { |
| | | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
| | | response.setCharacterEncoding("utf-8"); |
| | | this.init(list, sheetName, title, Type.EXPORT); |
| | |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * |
| | | * @param sheetName å·¥ä½è¡¨çåç§° |
| | | * @return ç»æ |
| | | */ |
| | | public AjaxResult importTemplateExcel(String sheetName) |
| | | { |
| | | public AjaxResult importTemplateExcel(String sheetName) { |
| | | return importTemplateExcel(sheetName, StringUtils.EMPTY); |
| | | } |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * |
| | | * @param sheetName å·¥ä½è¡¨çåç§° |
| | | * @param title æ é¢ |
| | | * @param title æ é¢ |
| | | * @return ç»æ |
| | | */ |
| | | public AjaxResult importTemplateExcel(String sheetName, String title) |
| | | { |
| | | public AjaxResult importTemplateExcel(String sheetName, String title) { |
| | | this.init(null, sheetName, title, Type.IMPORT); |
| | | return exportExcel(); |
| | | } |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * |
| | | * @param sheetName å·¥ä½è¡¨çåç§° |
| | | * @return ç»æ |
| | | */ |
| | | public void importTemplateExcel(HttpServletResponse response, String sheetName) |
| | | { |
| | | public void importTemplateExcel(HttpServletResponse response, String sheetName) { |
| | | importTemplateExcel(response, sheetName, StringUtils.EMPTY); |
| | | } |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * |
| | | * @param sheetName å·¥ä½è¡¨çåç§° |
| | | * @param title æ é¢ |
| | | * @param title æ é¢ |
| | | * @return ç»æ |
| | | */ |
| | | public void importTemplateExcel(HttpServletResponse response, String sheetName, String title) |
| | | { |
| | | public void importTemplateExcel(HttpServletResponse response, String sheetName, String title) { |
| | | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
| | | response.setCharacterEncoding("utf-8"); |
| | | this.init(null, sheetName, title, Type.IMPORT); |
| | |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * |
| | | * @return ç»æ |
| | | */ |
| | | public void exportExcel(HttpServletResponse response) |
| | | { |
| | | try |
| | | { |
| | | public void exportExcel(HttpServletResponse response) { |
| | | try { |
| | | writeSheet(); |
| | | wb.write(response.getOutputStream()); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | } catch (Exception e) { |
| | | log.error("导åºExcelå¼å¸¸{}", e.getMessage()); |
| | | } |
| | | finally |
| | | { |
| | | } finally { |
| | | IOUtils.closeQuietly(wb); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 对listæ°æ®æºå°å
¶éé¢çæ°æ®å¯¼å
¥å°excel表å |
| | | * |
| | | * |
| | | * @return ç»æ |
| | | */ |
| | | public AjaxResult exportExcel() |
| | | { |
| | | public AjaxResult exportExcel() { |
| | | OutputStream out = null; |
| | | try |
| | | { |
| | | try { |
| | | writeSheet(); |
| | | String filename = encodingFilename(sheetName); |
| | | out = new FileOutputStream(getAbsoluteFile(filename)); |
| | | wb.write(out); |
| | | return AjaxResult.success(filename); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | } catch (Exception e) { |
| | | log.error("导åºExcelå¼å¸¸{}", e.getMessage()); |
| | | throw new UtilException("导åºExcel失败ï¼è¯·èç³»ç½ç«ç®¡çåï¼"); |
| | | } |
| | | finally |
| | | { |
| | | } finally { |
| | | IOUtils.closeQuietly(wb); |
| | | IOUtils.closeQuietly(out); |
| | | } |
| | |
| | | /** |
| | | * å建åå
¥æ°æ®å°Sheet |
| | | */ |
| | | public void writeSheet() |
| | | { |
| | | public void writeSheet() { |
| | | // ååºä¸å
±æå¤å°ä¸ªsheet. |
| | | int sheetNo = Math.max(1, (int) Math.ceil(list.size() * 1.0 / sheetSize)); |
| | | for (int index = 0; index < sheetNo; index++) |
| | | { |
| | | for (int index = 0; index < sheetNo; index++) { |
| | | createSheet(sheetNo, index); |
| | | |
| | | // 产çä¸è¡ |
| | | Row row = sheet.createRow(rownum); |
| | | int column = 0; |
| | | // åå
¥åä¸ªåæ®µçå头åç§° |
| | | for (Object[] os : fields) |
| | | { |
| | | for (Object[] os : fields) { |
| | | Field field = (Field) os[0]; |
| | | Excel excel = (Excel) os[1]; |
| | | if (Collection.class.isAssignableFrom(field.getType())) |
| | | { |
| | | for (Field subField : subFields) |
| | | { |
| | | if (Collection.class.isAssignableFrom(field.getType())) { |
| | | for (Field subField : subFields) { |
| | | Excel subExcel = subField.getAnnotation(Excel.class); |
| | | this.createHeadCell(subExcel, row, column++); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | this.createHeadCell(excel, row, column++); |
| | | } |
| | | } |
| | | if (Type.EXPORT.equals(type)) |
| | | { |
| | | if (Type.EXPORT.equals(type)) { |
| | | fillExcelData(index, row); |
| | | addStatisticsRow(); |
| | | } |
| | |
| | | |
| | | /** |
| | | * å¡«å
excelæ°æ® |
| | | * |
| | | * |
| | | * @param index åºå· |
| | | * @param row åå
æ ¼è¡ |
| | | * @param row åå
æ ¼è¡ |
| | | */ |
| | | @SuppressWarnings("unchecked") |
| | | public void fillExcelData(int index, Row row) |
| | | { |
| | | public void fillExcelData(int index, Row row) { |
| | | int startNo = index * sheetSize; |
| | | int endNo = Math.min(startNo + sheetSize, list.size()); |
| | | int rowNo = (1 + rownum) - startNo; |
| | | for (int i = startNo; i < endNo; i++) |
| | | { |
| | | for (int i = startNo; i < endNo; i++) { |
| | | rowNo = isSubList() ? (i > 1 ? rowNo + 1 : rowNo + i) : i + 1 + rownum - startNo; |
| | | row = sheet.createRow(rowNo); |
| | | // å¾å°å¯¼åºå¯¹è±¡. |
| | | T vo = (T) list.get(i); |
| | | Collection<?> subList = null; |
| | | if (isSubList()) |
| | | { |
| | | if (isSubListValue(vo)) |
| | | { |
| | | if (isSubList()) { |
| | | if (isSubListValue(vo)) { |
| | | subList = getListCellValue(vo); |
| | | subMergedLastRowNum = subMergedLastRowNum + subList.size(); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | subMergedFirstRowNum++; |
| | | subMergedLastRowNum++; |
| | | } |
| | | } |
| | | int column = 0; |
| | | for (Object[] os : fields) |
| | | { |
| | | for (Object[] os : fields) { |
| | | Field field = (Field) os[0]; |
| | | Excel excel = (Excel) os[1]; |
| | | if (Collection.class.isAssignableFrom(field.getType()) && StringUtils.isNotNull(subList)) |
| | | { |
| | | if (Collection.class.isAssignableFrom(field.getType()) && StringUtils.isNotNull(subList)) { |
| | | boolean subFirst = false; |
| | | for (Object obj : subList) |
| | | { |
| | | if (subFirst) |
| | | { |
| | | for (Object obj : subList) { |
| | | if (subFirst) { |
| | | rowNo++; |
| | | row = sheet.createRow(rowNo); |
| | | } |
| | | List<Field> subFields = FieldUtils.getFieldsListWithAnnotation(obj.getClass(), Excel.class); |
| | | int subIndex = 0; |
| | | for (Field subField : subFields) |
| | | { |
| | | if (subField.isAnnotationPresent(Excel.class)) |
| | | { |
| | | for (Field subField : subFields) { |
| | | if (subField.isAnnotationPresent(Excel.class)) { |
| | | subField.setAccessible(true); |
| | | Excel attr = subField.getAnnotation(Excel.class); |
| | | this.addCell(attr, row, (T) obj, subField, column + subIndex); |
| | |
| | | subFirst = true; |
| | | } |
| | | this.subMergedFirstRowNum = this.subMergedFirstRowNum + subList.size(); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | this.addCell(excel, row, vo, field, column++); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * åå»ºè¡¨æ ¼æ ·å¼ |
| | | * |
| | | * |
| | | * @param wb å·¥ä½è对象 |
| | | * @return æ ·å¼å表 |
| | | */ |
| | | private Map<String, CellStyle> createStyles(Workbook wb) |
| | | { |
| | | private Map<String, CellStyle> createStyles(Workbook wb) { |
| | | // åå
¥åæ¡è®°å½,æ¯æ¡è®°å½å¯¹åºexcel表ä¸çä¸è¡ |
| | | Map<String, CellStyle> styles = new HashMap<String, CellStyle>(); |
| | | CellStyle style = wb.createCellStyle(); |
| | |
| | | dataFont.setFontName("Arial"); |
| | | dataFont.setFontHeightInPoints((short) 10); |
| | | style.setFont(dataFont); |
| | | DataFormat format = wb.createDataFormat(); |
| | | style.setDataFormat(format.getFormat("@"));//è®¾ç½®ææ¬æ ¼å¼ |
| | | styles.put("data", style); |
| | | |
| | | style = wb.createCellStyle(); |
| | |
| | | |
| | | /** |
| | | * æ ¹æ®Excel注解åå»ºè¡¨æ ¼å¤´æ ·å¼ |
| | | * |
| | | * |
| | | * @param wb å·¥ä½è对象 |
| | | * @return èªå®ä¹æ ·å¼å表 |
| | | */ |
| | | private Map<String, CellStyle> annotationHeaderStyles(Workbook wb, Map<String, CellStyle> styles) |
| | | { |
| | | private Map<String, CellStyle> annotationHeaderStyles(Workbook wb, Map<String, CellStyle> styles) { |
| | | Map<String, CellStyle> headerStyles = new HashMap<String, CellStyle>(); |
| | | for (Object[] os : fields) |
| | | { |
| | | for (Object[] os : fields) { |
| | | Excel excel = (Excel) os[1]; |
| | | String key = StringUtils.format("header_{}_{}", excel.headerColor(), excel.headerBackgroundColor()); |
| | | if (!headerStyles.containsKey(key)) |
| | | { |
| | | if (!headerStyles.containsKey(key)) { |
| | | CellStyle style = wb.createCellStyle(); |
| | | style.cloneStyleFrom(styles.get("data")); |
| | | style.setAlignment(HorizontalAlignment.CENTER); |
| | |
| | | |
| | | /** |
| | | * æ ¹æ®Excel注解åå»ºè¡¨æ ¼åæ ·å¼ |
| | | * |
| | | * |
| | | * @param wb å·¥ä½è对象 |
| | | * @return èªå®ä¹æ ·å¼å表 |
| | | */ |
| | | private Map<String, CellStyle> annotationDataStyles(Workbook wb) |
| | | { |
| | | private Map<String, CellStyle> annotationDataStyles(Workbook wb) { |
| | | Map<String, CellStyle> styles = new HashMap<String, CellStyle>(); |
| | | for (Object[] os : fields) |
| | | { |
| | | for (Object[] os : fields) { |
| | | Excel excel = (Excel) os[1]; |
| | | String key = StringUtils.format("data_{}_{}_{}", excel.align(), excel.color(), excel.backgroundColor()); |
| | | if (!styles.containsKey(key)) |
| | | { |
| | | if (!styles.containsKey(key)) { |
| | | CellStyle style = wb.createCellStyle(); |
| | | style.setAlignment(excel.align()); |
| | | style.setVerticalAlignment(VerticalAlignment.CENTER); |
| | |
| | | /** |
| | | * å建åå
æ ¼ |
| | | */ |
| | | public Cell createHeadCell(Excel attr, Row row, int column) |
| | | { |
| | | public Cell createHeadCell(Excel attr, Row row, int column) { |
| | | // å建å |
| | | Cell cell = row.createCell(column); |
| | | // åå
¥åä¿¡æ¯ |
| | | cell.setCellValue(attr.name()); |
| | | setDataValidation(attr, row, column); |
| | | cell.setCellStyle(styles.get(StringUtils.format("header_{}_{}", attr.headerColor(), attr.headerBackgroundColor()))); |
| | | if (isSubList()) |
| | | { |
| | | if (isSubList()) { |
| | | // å¡«å
é»è®¤æ ·å¼ï¼é²æ¢åå¹¶åå
æ ¼æ ·å¼å¤±æ |
| | | sheet.setDefaultColumnStyle(column, styles.get(StringUtils.format("data_{}_{}_{}", attr.align(), attr.color(), attr.backgroundColor()))); |
| | | if (attr.needMerge()) |
| | | { |
| | | if (attr.needMerge()) { |
| | | sheet.addMergedRegion(new CellRangeAddress(rownum - 1, rownum, column, column)); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 设置åå
æ ¼ä¿¡æ¯ |
| | | * |
| | | * |
| | | * @param value åå
æ ¼å¼ |
| | | * @param attr 注解ç¸å
³ |
| | | * @param cell åå
æ ¼ä¿¡æ¯ |
| | | * @param attr 注解ç¸å
³ |
| | | * @param cell åå
æ ¼ä¿¡æ¯ |
| | | */ |
| | | public void setCellVo(Object value, Excel attr, Cell cell) |
| | | { |
| | | if (ColumnType.STRING == attr.cellType()) |
| | | { |
| | | public void setCellVo(Object value, Excel attr, Cell cell) { |
| | | if (ColumnType.STRING == attr.cellType()) { |
| | | String cellValue = Convert.toStr(value); |
| | | // 对äºä»»ä½ä»¥è¡¨è¾¾å¼è§¦åå符 =-+@å¼å¤´çåå
æ ¼ï¼ç´æ¥ä½¿ç¨tabå符ä½ä¸ºåç¼ï¼é²æ¢CSV注å
¥ã |
| | | if (StringUtils.startsWithAny(cellValue, FORMULA_STR)) |
| | | { |
| | | if (StringUtils.startsWithAny(cellValue, FORMULA_STR)) { |
| | | cellValue = RegExUtils.replaceFirst(cellValue, FORMULA_REGEX_STR, "\t$0"); |
| | | } |
| | | if (value instanceof Collection && StringUtils.equals("[]", cellValue)) |
| | | { |
| | | if (value instanceof Collection && StringUtils.equals("[]", cellValue)) { |
| | | cellValue = StringUtils.EMPTY; |
| | | } |
| | | cell.setCellValue(StringUtils.isNull(cellValue) ? attr.defaultValue() : cellValue + attr.suffix()); |
| | | } |
| | | else if (ColumnType.NUMERIC == attr.cellType()) |
| | | { |
| | | if (StringUtils.isNotNull(value)) |
| | | { |
| | | } else if (ColumnType.NUMERIC == attr.cellType()) { |
| | | if (StringUtils.isNotNull(value)) { |
| | | cell.setCellValue(StringUtils.contains(Convert.toStr(value), ".") ? Convert.toDouble(value) : Convert.toInt(value)); |
| | | } |
| | | } |
| | | else if (ColumnType.IMAGE == attr.cellType()) |
| | | { |
| | | } else if (ColumnType.IMAGE == attr.cellType()) { |
| | | ClientAnchor anchor = new XSSFClientAnchor(0, 0, 0, 0, (short) cell.getColumnIndex(), cell.getRow().getRowNum(), (short) (cell.getColumnIndex() + 1), cell.getRow().getRowNum() + 1); |
| | | String imagePath = Convert.toStr(value); |
| | | if (StringUtils.isNotEmpty(imagePath)) |
| | | { |
| | | if (StringUtils.isNotEmpty(imagePath)) { |
| | | byte[] data = ImageUtils.getImage(imagePath); |
| | | getDrawingPatriarch(cell.getSheet()).createPicture(anchor, |
| | | cell.getSheet().getWorkbook().addPicture(data, getImageType(data))); |
| | | getDrawingPatriarch(cell.getSheet()).createPicture(anchor, cell.getSheet().getWorkbook().addPicture(data, getImageType(data))); |
| | | } |
| | | } |
| | | } |
| | |
| | | /** |
| | | * è·åç»å¸ |
| | | */ |
| | | public static Drawing<?> getDrawingPatriarch(Sheet sheet) |
| | | { |
| | | if (sheet.getDrawingPatriarch() == null) |
| | | { |
| | | public static Drawing<?> getDrawingPatriarch(Sheet sheet) { |
| | | if (sheet.getDrawingPatriarch() == null) { |
| | | sheet.createDrawingPatriarch(); |
| | | } |
| | | return sheet.getDrawingPatriarch(); |
| | |
| | | /** |
| | | * è·åå¾çç±»å,设置å¾çæå
¥ç±»å |
| | | */ |
| | | public int getImageType(byte[] value) |
| | | { |
| | | public int getImageType(byte[] value) { |
| | | String type = FileTypeUtils.getFileExtendName(value); |
| | | if ("JPG".equalsIgnoreCase(type)) |
| | | { |
| | | if ("JPG".equalsIgnoreCase(type)) { |
| | | return Workbook.PICTURE_TYPE_JPEG; |
| | | } |
| | | else if ("PNG".equalsIgnoreCase(type)) |
| | | { |
| | | } else if ("PNG".equalsIgnoreCase(type)) { |
| | | return Workbook.PICTURE_TYPE_PNG; |
| | | } |
| | | return Workbook.PICTURE_TYPE_JPEG; |
| | |
| | | /** |
| | | * åå»ºè¡¨æ ¼æ ·å¼ |
| | | */ |
| | | public void setDataValidation(Excel attr, Row row, int column) |
| | | { |
| | | if (attr.name().indexOf("注ï¼") >= 0) |
| | | { |
| | | public void setDataValidation(Excel attr, Row row, int column) { |
| | | if (attr.name().indexOf("注ï¼") >= 0) { |
| | | sheet.setColumnWidth(column, 6000); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | // 设置å宽 |
| | | sheet.setColumnWidth(column, (int) ((attr.width() + 0.72) * 256)); |
| | | } |
| | | if (StringUtils.isNotEmpty(attr.prompt()) || attr.combo().length > 0) |
| | | { |
| | | if (attr.combo().length > 15 || StringUtils.join(attr.combo()).length() > 255) |
| | | { |
| | | if (StringUtils.isNotEmpty(attr.prompt()) || attr.combo().length > 0) { |
| | | if (attr.combo().length > 15 || StringUtils.join(attr.combo()).length() > 255) { |
| | | // 妿䏿æ°å¤§äº15æå符串é¿åº¦å¤§äº255ï¼å使ç¨ä¸ä¸ªæ°sheetåå¨ï¼é¿å
çæç模æ¿ä¸æå¼è·åä¸å° |
| | | setXSSFValidationWithHidden(sheet, attr.combo(), attr.prompt(), 1, 100, column, column); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | // æç¤ºä¿¡æ¯æåªè½éæ©ä¸è½è¾å
¥çåå
容. |
| | | setPromptOrValidation(sheet, attr.combo(), attr.prompt(), 1, 100, column, column); |
| | | } |
| | |
| | | /** |
| | | * æ·»å åå
æ ¼ |
| | | */ |
| | | public Cell addCell(Excel attr, Row row, T vo, Field field, int column) |
| | | { |
| | | public Cell addCell(Excel attr, Row row, T vo, Field field, int column) { |
| | | Cell cell = null; |
| | | try |
| | | { |
| | | try { |
| | | // 设置è¡é« |
| | | row.setHeight(maxHeight); |
| | | // æ ¹æ®Excelä¸è®¾ç½®æ
åµå³å®æ¯å¦å¯¼åº,æäºæ
åµéè¦ä¿æä¸ºç©º,å¸æç¨æ·å¡«åè¿ä¸å. |
| | | if (attr.isExport()) |
| | | { |
| | | if (attr.isExport()) { |
| | | // å建cell |
| | | cell = row.createCell(column); |
| | | if (isSubListValue(vo) && getListCellValue(vo).size() > 1 && attr.needMerge()) |
| | | { |
| | | if (isSubListValue(vo) && getListCellValue(vo).size() > 1 && attr.needMerge()) { |
| | | CellRangeAddress cellAddress = new CellRangeAddress(subMergedFirstRowNum, subMergedLastRowNum, column, column); |
| | | sheet.addMergedRegion(cellAddress); |
| | | } |
| | |
| | | String readConverterExp = attr.readConverterExp(); |
| | | String separator = attr.separator(); |
| | | String dictType = attr.dictType(); |
| | | if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value)) |
| | | { |
| | | if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value)) { |
| | | cell.setCellValue(parseDateToStr(dateFormat, value)); |
| | | } |
| | | else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value)) |
| | | { |
| | | } else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value)) { |
| | | cell.setCellValue(convertByExp(Convert.toStr(value), readConverterExp, separator)); |
| | | } |
| | | else if (StringUtils.isNotEmpty(dictType) && StringUtils.isNotNull(value)) |
| | | { |
| | | } else if (StringUtils.isNotEmpty(dictType) && StringUtils.isNotNull(value)) { |
| | | cell.setCellValue(convertDictByExp(Convert.toStr(value), dictType, separator)); |
| | | } |
| | | else if (value instanceof BigDecimal && -1 != attr.scale()) |
| | | { |
| | | } else if (value instanceof BigDecimal && -1 != attr.scale()) { |
| | | cell.setCellValue((((BigDecimal) value).setScale(attr.scale(), attr.roundingMode())).doubleValue()); |
| | | } |
| | | else if (!attr.handler().equals(ExcelHandlerAdapter.class)) |
| | | { |
| | | } else if (!attr.handler().equals(ExcelHandlerAdapter.class)) { |
| | | cell.setCellValue(dataFormatHandlerAdapter(value, attr)); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | // 设置åç±»å |
| | | setCellVo(value, attr, cell); |
| | | } |
| | | addStatisticsData(column, Convert.toStr(value), attr); |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | } catch (Exception e) { |
| | | log.error("导åºExcel失败{}", e); |
| | | } |
| | | return cell; |
| | |
| | | |
| | | /** |
| | | * 设置 POI XSSFSheet åå
æ ¼æç¤ºæéæ©æ¡ |
| | | * |
| | | * @param sheet 表å |
| | | * @param textlist ä¸ææ¡æ¾ç¤ºçå
容 |
| | | * |
| | | * @param sheet 表å |
| | | * @param textlist ä¸ææ¡æ¾ç¤ºçå
容 |
| | | * @param promptContent æç¤ºå
容 |
| | | * @param firstRow å¼å§è¡ |
| | | * @param endRow ç»æè¡ |
| | | * @param firstCol å¼å§å |
| | | * @param endCol ç»æå |
| | | * @param firstRow å¼å§è¡ |
| | | * @param endRow ç»æè¡ |
| | | * @param firstCol å¼å§å |
| | | * @param endCol ç»æå |
| | | */ |
| | | public void setPromptOrValidation(Sheet sheet, String[] textlist, String promptContent, int firstRow, int endRow, |
| | | int firstCol, int endCol) |
| | | { |
| | | public void setPromptOrValidation(Sheet sheet, String[] textlist, String promptContent, int firstRow, int endRow, int firstCol, int endCol) { |
| | | DataValidationHelper helper = sheet.getDataValidationHelper(); |
| | | DataValidationConstraint constraint = textlist.length > 0 ? helper.createExplicitListConstraint(textlist) : helper.createCustomConstraint("DD1"); |
| | | CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol); |
| | | DataValidation dataValidation = helper.createValidation(constraint, regions); |
| | | if (StringUtils.isNotEmpty(promptContent)) |
| | | { |
| | | if (StringUtils.isNotEmpty(promptContent)) { |
| | | // å¦æè®¾ç½®äºæç¤ºä¿¡æ¯åé¼ æ æ¾ä¸å»æç¤º |
| | | dataValidation.createPromptBox("", promptContent); |
| | | dataValidation.setShowPromptBox(true); |
| | | } |
| | | // å¤çExcelå
¼å®¹æ§é®é¢ |
| | | if (dataValidation instanceof XSSFDataValidation) |
| | | { |
| | | if (dataValidation instanceof XSSFDataValidation) { |
| | | dataValidation.setSuppressDropDownArrow(true); |
| | | dataValidation.setShowErrorBox(true); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | dataValidation.setSuppressDropDownArrow(false); |
| | | } |
| | | sheet.addValidationData(dataValidation); |
| | |
| | | |
| | | /** |
| | | * 设置æäºåçå¼åªè½è¾å
¥é¢å¶çæ°æ®,æ¾ç¤ºä¸ææ¡ï¼å
¼å®¹è¶
åºä¸å®æ°éç䏿æ¡ï¼. |
| | | * |
| | | * @param sheet è¦è®¾ç½®çsheet. |
| | | * @param textlist ä¸ææ¡æ¾ç¤ºçå
容 |
| | | * |
| | | * @param sheet è¦è®¾ç½®çsheet. |
| | | * @param textlist ä¸ææ¡æ¾ç¤ºçå
容 |
| | | * @param promptContent æç¤ºå
容 |
| | | * @param firstRow å¼å§è¡ |
| | | * @param endRow ç»æè¡ |
| | | * @param firstCol å¼å§å |
| | | * @param endCol ç»æå |
| | | * @param firstRow å¼å§è¡ |
| | | * @param endRow ç»æè¡ |
| | | * @param firstCol å¼å§å |
| | | * @param endCol ç»æå |
| | | */ |
| | | public void setXSSFValidationWithHidden(Sheet sheet, String[] textlist, String promptContent, int firstRow, int endRow, int firstCol, int endCol) |
| | | { |
| | | public void setXSSFValidationWithHidden(Sheet sheet, String[] textlist, String promptContent, int firstRow, int endRow, int firstCol, int endCol) { |
| | | String hideSheetName = "combo_" + firstCol + "_" + endCol; |
| | | Sheet hideSheet = wb.createSheet(hideSheetName); // ç¨äºåå¨ ä¸æèåæ°æ® |
| | | for (int i = 0; i < textlist.length; i++) |
| | | { |
| | | for (int i = 0; i < textlist.length; i++) { |
| | | hideSheet.createRow(i).createCell(0).setCellValue(textlist[i]); |
| | | } |
| | | // å建åç§°ï¼å¯è¢«å
¶ä»åå
æ ¼å¼ç¨ |
| | |
| | | CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol); |
| | | // æ°æ®æææ§å¯¹è±¡ |
| | | DataValidation dataValidation = helper.createValidation(constraint, regions); |
| | | if (StringUtils.isNotEmpty(promptContent)) |
| | | { |
| | | if (StringUtils.isNotEmpty(promptContent)) { |
| | | // å¦æè®¾ç½®äºæç¤ºä¿¡æ¯åé¼ æ æ¾ä¸å»æç¤º |
| | | dataValidation.createPromptBox("", promptContent); |
| | | dataValidation.setShowPromptBox(true); |
| | | } |
| | | // å¤çExcelå
¼å®¹æ§é®é¢ |
| | | if (dataValidation instanceof XSSFDataValidation) |
| | | { |
| | | if (dataValidation instanceof XSSFDataValidation) { |
| | | dataValidation.setSuppressDropDownArrow(true); |
| | | dataValidation.setShowErrorBox(true); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | dataValidation.setSuppressDropDownArrow(false); |
| | | } |
| | | |
| | |
| | | |
| | | /** |
| | | * è§£æå¯¼åºå¼ 0=ç·,1=女,2=æªç¥ |
| | | * |
| | | * |
| | | * @param propertyValue åæ°å¼ |
| | | * @param converterExp ç¿»è¯æ³¨è§£ |
| | | * @param separator åé符 |
| | | * @param converterExp ç¿»è¯æ³¨è§£ |
| | | * @param separator åé符 |
| | | * @return è§£æåå¼ |
| | | */ |
| | | public static String convertByExp(String propertyValue, String converterExp, String separator) |
| | | { |
| | | public static String convertByExp(String propertyValue, String converterExp, String separator) { |
| | | StringBuilder propertyString = new StringBuilder(); |
| | | String[] convertSource = converterExp.split(","); |
| | | for (String item : convertSource) |
| | | { |
| | | for (String item : convertSource) { |
| | | String[] itemArray = item.split("="); |
| | | if (StringUtils.containsAny(propertyValue, separator)) |
| | | { |
| | | for (String value : propertyValue.split(separator)) |
| | | { |
| | | if (itemArray[0].equals(value)) |
| | | { |
| | | if (StringUtils.containsAny(propertyValue, separator)) { |
| | | for (String value : propertyValue.split(separator)) { |
| | | if (itemArray[0].equals(value)) { |
| | | propertyString.append(itemArray[1] + separator); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (itemArray[0].equals(propertyValue)) |
| | | { |
| | | } else { |
| | | if (itemArray[0].equals(propertyValue)) { |
| | | return itemArray[1]; |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * ååè§£æå¼ ç·=0,女=1,æªç¥=2 |
| | | * |
| | | * |
| | | * @param propertyValue åæ°å¼ |
| | | * @param converterExp ç¿»è¯æ³¨è§£ |
| | | * @param separator åé符 |
| | | * @param converterExp ç¿»è¯æ³¨è§£ |
| | | * @param separator åé符 |
| | | * @return è§£æåå¼ |
| | | */ |
| | | public static String reverseByExp(String propertyValue, String converterExp, String separator) |
| | | { |
| | | public static String reverseByExp(String propertyValue, String converterExp, String separator) { |
| | | StringBuilder propertyString = new StringBuilder(); |
| | | String[] convertSource = converterExp.split(","); |
| | | for (String item : convertSource) |
| | | { |
| | | for (String item : convertSource) { |
| | | String[] itemArray = item.split("="); |
| | | if (StringUtils.containsAny(propertyValue, separator)) |
| | | { |
| | | for (String value : propertyValue.split(separator)) |
| | | { |
| | | if (itemArray[1].equals(value)) |
| | | { |
| | | if (StringUtils.containsAny(propertyValue, separator)) { |
| | | for (String value : propertyValue.split(separator)) { |
| | | if (itemArray[1].equals(value)) { |
| | | propertyString.append(itemArray[0] + separator); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (itemArray[1].equals(propertyValue)) |
| | | { |
| | | } else { |
| | | if (itemArray[1].equals(propertyValue)) { |
| | | return itemArray[0]; |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * è§£æåå
¸å¼ |
| | | * |
| | | * |
| | | * @param dictValue åå
¸å¼ |
| | | * @param dictType åå
¸ç±»å |
| | | * @param dictType åå
¸ç±»å |
| | | * @param separator åé符 |
| | | * @return åå
¸æ ç¾ |
| | | */ |
| | | public static String convertDictByExp(String dictValue, String dictType, String separator) |
| | | { |
| | | public static String convertDictByExp(String dictValue, String dictType, String separator) { |
| | | return DictUtils.getDictLabel(dictType, dictValue, separator); |
| | | } |
| | | |
| | | /** |
| | | * ååè§£æå¼åå
¸å¼ |
| | | * |
| | | * |
| | | * @param dictLabel åå
¸æ ç¾ |
| | | * @param dictType åå
¸ç±»å |
| | | * @param dictType åå
¸ç±»å |
| | | * @param separator åé符 |
| | | * @return åå
¸å¼ |
| | | */ |
| | | public static String reverseDictByExp(String dictLabel, String dictType, String separator) |
| | | { |
| | | public static String reverseDictByExp(String dictLabel, String dictType, String separator) { |
| | | return DictUtils.getDictValue(dictType, dictLabel, separator); |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®å¤çå¨ |
| | | * |
| | | * |
| | | * @param value æ°æ®å¼ |
| | | * @param excel æ°æ®æ³¨è§£ |
| | | * @return |
| | | */ |
| | | public String dataFormatHandlerAdapter(Object value, Excel excel) |
| | | { |
| | | try |
| | | { |
| | | public String dataFormatHandlerAdapter(Object value, Excel excel) { |
| | | try { |
| | | Object instance = excel.handler().newInstance(); |
| | | Method formatMethod = excel.handler().getMethod("format", new Class[] { Object.class, String[].class }); |
| | | Method formatMethod = excel.handler().getMethod("format", new Class[]{Object.class, String[].class}); |
| | | value = formatMethod.invoke(instance, value, excel.args()); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | } catch (Exception e) { |
| | | log.error("ä¸è½æ ¼å¼åæ°æ® " + excel.handler(), e.getMessage()); |
| | | } |
| | | return Convert.toStr(value); |
| | |
| | | /** |
| | | * å计ç»è®¡ä¿¡æ¯ |
| | | */ |
| | | private void addStatisticsData(Integer index, String text, Excel entity) |
| | | { |
| | | if (entity != null && entity.isStatistics()) |
| | | { |
| | | private void addStatisticsData(Integer index, String text, Excel entity) { |
| | | if (entity != null && entity.isStatistics()) { |
| | | Double temp = 0D; |
| | | if (!statistics.containsKey(index)) |
| | | { |
| | | if (!statistics.containsKey(index)) { |
| | | statistics.put(index, temp); |
| | | } |
| | | try |
| | | { |
| | | try { |
| | | temp = Double.valueOf(text); |
| | | } |
| | | catch (NumberFormatException e) |
| | | { |
| | | } catch (NumberFormatException e) { |
| | | } |
| | | statistics.put(index, statistics.get(index) + temp); |
| | | } |
| | |
| | | /** |
| | | * å建ç»è®¡è¡ |
| | | */ |
| | | public void addStatisticsRow() |
| | | { |
| | | if (statistics.size() > 0) |
| | | { |
| | | public void addStatisticsRow() { |
| | | if (statistics.size() > 0) { |
| | | Row row = sheet.createRow(sheet.getLastRowNum() + 1); |
| | | Set<Integer> keys = statistics.keySet(); |
| | | Cell cell = row.createCell(0); |
| | | cell.setCellStyle(styles.get("total")); |
| | | cell.setCellValue("å计"); |
| | | |
| | | for (Integer key : keys) |
| | | { |
| | | for (Integer key : keys) { |
| | | cell = row.createCell(key); |
| | | cell.setCellStyle(styles.get("total")); |
| | | cell.setCellValue(DOUBLE_FORMAT.format(statistics.get(key))); |
| | |
| | | /** |
| | | * ç¼ç æä»¶å |
| | | */ |
| | | public String encodingFilename(String filename) |
| | | { |
| | | public String encodingFilename(String filename) { |
| | | filename = UUID.randomUUID().toString() + "_" + filename + ".xlsx"; |
| | | return filename; |
| | | } |
| | | |
| | | /** |
| | | * è·åä¸è½½è·¯å¾ |
| | | * |
| | | * |
| | | * @param filename æä»¶åç§° |
| | | */ |
| | | public String getAbsoluteFile(String filename) |
| | | { |
| | | public String getAbsoluteFile(String filename) { |
| | | String downloadPath = RuoYiConfig.getDownloadPath() + filename; |
| | | File desc = new File(downloadPath); |
| | | if (!desc.getParentFile().exists()) |
| | | { |
| | | if (!desc.getParentFile().exists()) { |
| | | desc.getParentFile().mkdirs(); |
| | | } |
| | | return downloadPath; |
| | |
| | | |
| | | /** |
| | | * è·åbeanä¸ç屿§å¼ |
| | | * |
| | | * @param vo å®ä½å¯¹è±¡ |
| | | * |
| | | * @param vo å®ä½å¯¹è±¡ |
| | | * @param field åæ®µ |
| | | * @param excel 注解 |
| | | * @return æç»ç屿§å¼ |
| | | * @throws Exception |
| | | */ |
| | | private Object getTargetValue(T vo, Field field, Excel excel) throws Exception |
| | | { |
| | | private Object getTargetValue(T vo, Field field, Excel excel) throws Exception { |
| | | Object o = field.get(vo); |
| | | if (StringUtils.isNotEmpty(excel.targetAttr())) |
| | | { |
| | | if (StringUtils.isNotEmpty(excel.targetAttr())) { |
| | | String target = excel.targetAttr(); |
| | | if (target.contains(".")) |
| | | { |
| | | if (target.contains(".")) { |
| | | String[] targets = target.split("[.]"); |
| | | for (String name : targets) |
| | | { |
| | | for (String name : targets) { |
| | | o = getValue(o, name); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | o = getValue(o, target); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 以类ç屿§çgetæ¹æ³æ¹æ³å½¢å¼è·åå¼ |
| | | * |
| | | * |
| | | * @param o |
| | | * @param name |
| | | * @return value |
| | | * @throws Exception |
| | | */ |
| | | private Object getValue(Object o, String name) throws Exception |
| | | { |
| | | if (StringUtils.isNotNull(o) && StringUtils.isNotEmpty(name)) |
| | | { |
| | | private Object getValue(Object o, String name) throws Exception { |
| | | if (StringUtils.isNotNull(o) && StringUtils.isNotEmpty(name)) { |
| | | Class<?> clazz = o.getClass(); |
| | | Field field = clazz.getDeclaredField(name); |
| | | field.setAccessible(true); |
| | |
| | | /** |
| | | * å¾å°ææå®ä¹å段 |
| | | */ |
| | | private void createExcelField() |
| | | { |
| | | private void createExcelField() { |
| | | this.fields = getFields(); |
| | | this.fields = this.fields.stream().sorted(Comparator.comparing(objects -> ((Excel) objects[1]).sort())).collect(Collectors.toList()); |
| | | this.maxHeight = getRowHeight(); |
| | |
| | | /** |
| | | * è·ååæ®µæ³¨è§£ä¿¡æ¯ |
| | | */ |
| | | public List<Object[]> getFields() |
| | | { |
| | | public List<Object[]> getFields() { |
| | | List<Object[]> fields = new ArrayList<Object[]>(); |
| | | List<Field> tempFields = new ArrayList<>(); |
| | | tempFields.addAll(Arrays.asList(clazz.getSuperclass().getDeclaredFields())); |
| | | tempFields.addAll(Arrays.asList(clazz.getDeclaredFields())); |
| | | for (Field field : tempFields) |
| | | { |
| | | if (!ArrayUtils.contains(this.excludeFields, field.getName())) |
| | | { |
| | | for (Field field : tempFields) { |
| | | if (!ArrayUtils.contains(this.excludeFields, field.getName())) { |
| | | // åæ³¨è§£ |
| | | if (field.isAnnotationPresent(Excel.class)) |
| | | { |
| | | if (field.isAnnotationPresent(Excel.class)) { |
| | | Excel attr = field.getAnnotation(Excel.class); |
| | | if (attr != null && (attr.type() == Type.ALL || attr.type() == type)) |
| | | { |
| | | if (attr != null && (attr.type() == Type.ALL || attr.type() == type)) { |
| | | field.setAccessible(true); |
| | | fields.add(new Object[] { field, attr }); |
| | | fields.add(new Object[]{field, attr}); |
| | | } |
| | | if (Collection.class.isAssignableFrom(field.getType())) |
| | | { |
| | | if (Collection.class.isAssignableFrom(field.getType())) { |
| | | subMethod = getSubMethod(field.getName(), clazz); |
| | | ParameterizedType pt = (ParameterizedType) field.getGenericType(); |
| | | Class<?> subClass = (Class<?>) pt.getActualTypeArguments()[0]; |
| | |
| | | } |
| | | |
| | | // 夿³¨è§£ |
| | | if (field.isAnnotationPresent(Excels.class)) |
| | | { |
| | | if (field.isAnnotationPresent(Excels.class)) { |
| | | Excels attrs = field.getAnnotation(Excels.class); |
| | | Excel[] excels = attrs.value(); |
| | | for (Excel attr : excels) |
| | | { |
| | | if (attr != null && (attr.type() == Type.ALL || attr.type() == type)) |
| | | { |
| | | for (Excel attr : excels) { |
| | | if (attr != null && (attr.type() == Type.ALL || attr.type() == type)) { |
| | | field.setAccessible(true); |
| | | fields.add(new Object[] { field, attr }); |
| | | fields.add(new Object[]{field, attr}); |
| | | } |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æ ¹æ®æ³¨è§£è·åæå¤§è¡é« |
| | | */ |
| | | public short getRowHeight() |
| | | { |
| | | public short getRowHeight() { |
| | | double maxHeight = 0; |
| | | for (Object[] os : this.fields) |
| | | { |
| | | for (Object[] os : this.fields) { |
| | | Excel excel = (Excel) os[1]; |
| | | maxHeight = Math.max(maxHeight, excel.height()); |
| | | } |
| | |
| | | /** |
| | | * å建ä¸ä¸ªå·¥ä½ç°¿ |
| | | */ |
| | | public void createWorkbook() |
| | | { |
| | | public void createWorkbook() { |
| | | this.wb = new SXSSFWorkbook(500); |
| | | this.sheet = wb.createSheet(); |
| | | wb.setSheetName(0, sheetName); |
| | |
| | | |
| | | /** |
| | | * å建工ä½è¡¨ |
| | | * |
| | | * |
| | | * @param sheetNo sheetæ°é |
| | | * @param index åºå· |
| | | * @param index åºå· |
| | | */ |
| | | public void createSheet(int sheetNo, int index) |
| | | { |
| | | public void createSheet(int sheetNo, int index) { |
| | | // 设置工ä½è¡¨çåç§°. |
| | | if (sheetNo > 1 && index > 0) |
| | | { |
| | | if (sheetNo > 1 && index > 0) { |
| | | this.sheet = wb.createSheet(); |
| | | this.createTitle(); |
| | | wb.setSheetName(index, sheetName + index); |
| | |
| | | |
| | | /** |
| | | * è·ååå
æ ¼å¼ |
| | | * |
| | | * @param row è·åçè¡ |
| | | * |
| | | * @param row è·åçè¡ |
| | | * @param column è·ååå
æ ¼åå· |
| | | * @return åå
æ ¼å¼ |
| | | */ |
| | | public Object getCellValue(Row row, int column) |
| | | { |
| | | if (row == null) |
| | | { |
| | | public Object getCellValue(Row row, int column) { |
| | | if (row == null) { |
| | | return row; |
| | | } |
| | | Object val = ""; |
| | | try |
| | | { |
| | | try { |
| | | Cell cell = row.getCell(column); |
| | | if (StringUtils.isNotNull(cell)) |
| | | { |
| | | if (cell.getCellType() == CellType.NUMERIC || cell.getCellType() == CellType.FORMULA) |
| | | { |
| | | if (StringUtils.isNotNull(cell)) { |
| | | if (cell.getCellType() == CellType.NUMERIC || cell.getCellType() == CellType.FORMULA) { |
| | | val = cell.getNumericCellValue(); |
| | | if (DateUtil.isCellDateFormatted(cell)) |
| | | { |
| | | if (DateUtil.isCellDateFormatted(cell)) { |
| | | val = DateUtil.getJavaDate((Double) val); // POI Excel æ¥ææ ¼å¼è½¬æ¢ |
| | | } |
| | | else |
| | | { |
| | | if ((Double) val % 1 != 0) |
| | | { |
| | | } else { |
| | | if ((Double) val % 1 != 0) { |
| | | val = new BigDecimal(val.toString()); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | val = new DecimalFormat("0").format(val); |
| | | } |
| | | } |
| | | } |
| | | else if (cell.getCellType() == CellType.STRING) |
| | | { |
| | | } else if (cell.getCellType() == CellType.STRING) { |
| | | val = cell.getStringCellValue(); |
| | | } |
| | | else if (cell.getCellType() == CellType.BOOLEAN) |
| | | { |
| | | } else if (cell.getCellType() == CellType.BOOLEAN) { |
| | | val = cell.getBooleanCellValue(); |
| | | } |
| | | else if (cell.getCellType() == CellType.ERROR) |
| | | { |
| | | } else if (cell.getCellType() == CellType.ERROR) { |
| | | val = cell.getErrorCellValue(); |
| | | } |
| | | |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | } catch (Exception e) { |
| | | return val; |
| | | } |
| | | return val; |
| | |
| | | |
| | | /** |
| | | * 夿æ¯å¦æ¯ç©ºè¡ |
| | | * |
| | | * |
| | | * @param row 夿çè¡ |
| | | * @return |
| | | */ |
| | | private boolean isRowEmpty(Row row) |
| | | { |
| | | if (row == null) |
| | | { |
| | | private boolean isRowEmpty(Row row) { |
| | | if (row == null) { |
| | | return true; |
| | | } |
| | | for (int i = row.getFirstCellNum(); i < row.getLastCellNum(); i++) |
| | | { |
| | | for (int i = row.getFirstCellNum(); i < row.getLastCellNum(); i++) { |
| | | Cell cell = row.getCell(i); |
| | | if (cell != null && cell.getCellType() != CellType.BLANK) |
| | | { |
| | | if (cell != null && cell.getCellType() != CellType.BLANK) { |
| | | return false; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * è·åExcel2003å¾ç |
| | | * |
| | | * @param sheet å½åsheet对象 |
| | | * @param sheet å½åsheet对象 |
| | | * @param workbook å·¥ä½ç°¿å¯¹è±¡ |
| | | * @return Map key:å¾çåå
æ ¼ç´¢å¼ï¼1_1ï¼Stringï¼value:å¾çæµPictureData |
| | | */ |
| | | public static Map<String, PictureData> getSheetPictures03(HSSFSheet sheet, HSSFWorkbook workbook) |
| | | { |
| | | public static Map<String, PictureData> getSheetPictures03(HSSFSheet sheet, HSSFWorkbook workbook) { |
| | | Map<String, PictureData> sheetIndexPicMap = new HashMap<String, PictureData>(); |
| | | List<HSSFPictureData> pictures = workbook.getAllPictures(); |
| | | if (!pictures.isEmpty()) |
| | | { |
| | | for (HSSFShape shape : sheet.getDrawingPatriarch().getChildren()) |
| | | { |
| | | if (!pictures.isEmpty()) { |
| | | for (HSSFShape shape : sheet.getDrawingPatriarch().getChildren()) { |
| | | HSSFClientAnchor anchor = (HSSFClientAnchor) shape.getAnchor(); |
| | | if (shape instanceof HSSFPicture) |
| | | { |
| | | if (shape instanceof HSSFPicture) { |
| | | HSSFPicture pic = (HSSFPicture) shape; |
| | | int pictureIndex = pic.getPictureIndex() - 1; |
| | | HSSFPictureData picData = pictures.get(pictureIndex); |
| | |
| | | } |
| | | } |
| | | return sheetIndexPicMap; |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | return sheetIndexPicMap; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * è·åExcel2007å¾ç |
| | | * |
| | | * @param sheet å½åsheet对象 |
| | | * @param sheet å½åsheet对象 |
| | | * @param workbook å·¥ä½ç°¿å¯¹è±¡ |
| | | * @return Map key:å¾çåå
æ ¼ç´¢å¼ï¼1_1ï¼Stringï¼value:å¾çæµPictureData |
| | | */ |
| | | public static Map<String, PictureData> getSheetPictures07(XSSFSheet sheet, XSSFWorkbook workbook) |
| | | { |
| | | public static Map<String, PictureData> getSheetPictures07(XSSFSheet sheet, XSSFWorkbook workbook) { |
| | | Map<String, PictureData> sheetIndexPicMap = new HashMap<String, PictureData>(); |
| | | for (POIXMLDocumentPart dr : sheet.getRelations()) |
| | | { |
| | | if (dr instanceof XSSFDrawing) |
| | | { |
| | | for (POIXMLDocumentPart dr : sheet.getRelations()) { |
| | | if (dr instanceof XSSFDrawing) { |
| | | XSSFDrawing drawing = (XSSFDrawing) dr; |
| | | List<XSSFShape> shapes = drawing.getShapes(); |
| | | for (XSSFShape shape : shapes) |
| | | { |
| | | if (shape instanceof XSSFPicture) |
| | | { |
| | | for (XSSFShape shape : shapes) { |
| | | if (shape instanceof XSSFPicture) { |
| | | XSSFPicture pic = (XSSFPicture) shape; |
| | | XSSFClientAnchor anchor = pic.getPreferredSize(); |
| | | CTMarker ctMarker = anchor.getFrom(); |
| | |
| | | |
| | | /** |
| | | * æ ¼å¼åä¸åç±»åçæ¥æå¯¹è±¡ |
| | | * |
| | | * |
| | | * @param dateFormat æ¥ææ ¼å¼ |
| | | * @param val è¢«æ ¼å¼åçæ¥æå¯¹è±¡ |
| | | * @param val è¢«æ ¼å¼åçæ¥æå¯¹è±¡ |
| | | * @return æ ¼å¼ååçæ¥æå符 |
| | | */ |
| | | public String parseDateToStr(String dateFormat, Object val) |
| | | { |
| | | if (val == null) |
| | | { |
| | | public String parseDateToStr(String dateFormat, Object val) { |
| | | if (val == null) { |
| | | return ""; |
| | | } |
| | | String str; |
| | | if (val instanceof Date) |
| | | { |
| | | if (val instanceof Date) { |
| | | str = DateUtils.parseDateToStr(dateFormat, (Date) val); |
| | | } |
| | | else if (val instanceof LocalDateTime) |
| | | { |
| | | } else if (val instanceof LocalDateTime) { |
| | | str = DateUtils.parseDateToStr(dateFormat, DateUtils.toDate((LocalDateTime) val)); |
| | | } |
| | | else if (val instanceof LocalDate) |
| | | { |
| | | } else if (val instanceof LocalDate) { |
| | | str = DateUtils.parseDateToStr(dateFormat, DateUtils.toDate((LocalDate) val)); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | str = val.toString(); |
| | | } |
| | | return str; |
| | |
| | | /** |
| | | * æ¯å¦æå¯¹è±¡çåå表 |
| | | */ |
| | | public boolean isSubList() |
| | | { |
| | | public boolean isSubList() { |
| | | return StringUtils.isNotNull(subFields) && subFields.size() > 0; |
| | | } |
| | | |
| | | /** |
| | | * æ¯å¦æå¯¹è±¡çåå表ï¼éåä¸ä¸ºç©º |
| | | */ |
| | | public boolean isSubListValue(T vo) |
| | | { |
| | | public boolean isSubListValue(T vo) { |
| | | return StringUtils.isNotNull(subFields) && subFields.size() > 0 && StringUtils.isNotNull(getListCellValue(vo)) && getListCellValue(vo).size() > 0; |
| | | } |
| | | |
| | | /** |
| | | * è·åéåçå¼ |
| | | */ |
| | | public Collection<?> getListCellValue(Object obj) |
| | | { |
| | | public Collection<?> getListCellValue(Object obj) { |
| | | Object value; |
| | | try |
| | | { |
| | | value = subMethod.invoke(obj, new Object[] {}); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | try { |
| | | value = subMethod.invoke(obj, new Object[]{}); |
| | | } catch (Exception e) { |
| | | return new ArrayList<Object>(); |
| | | } |
| | | return (Collection<?>) value; |
| | |
| | | |
| | | /** |
| | | * è·å对象çååè¡¨æ¹æ³ |
| | | * |
| | | * @param name åç§° |
| | | * |
| | | * @param name åç§° |
| | | * @param pojoClass 类对象 |
| | | * @return ååè¡¨æ¹æ³ |
| | | */ |
| | | public Method getSubMethod(String name, Class<?> pojoClass) |
| | | { |
| | | public Method getSubMethod(String name, Class<?> pojoClass) { |
| | | StringBuffer getMethodName = new StringBuffer("get"); |
| | | getMethodName.append(name.substring(0, 1).toUpperCase()); |
| | | getMethodName.append(name.substring(1)); |
| | | Method method = null; |
| | | try |
| | | { |
| | | method = pojoClass.getMethod(getMethodName.toString(), new Class[] {}); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | try { |
| | | method = pojoClass.getMethod(getMethodName.toString(), new Class[]{}); |
| | | } catch (Exception e) { |
| | | log.error("è·å对象å¼å¸¸{}", e.getMessage()); |
| | | } |
| | | return method; |
| | |
| | | // è¿æ»¤è¯·æ± |
| | | .authorizeRequests() |
| | | // 对äºç»å½login 注åregister éªè¯ç captchaImage å
许å¿åè®¿é® |
| | | .antMatchers("/login", "/register", "/captchaImage", "/qrcode/generateStaticHtml", "/qrcode/getQRcode", "/qrcode/getFormDate", "/chat", "/system/file/admin/uploadFile", "/smartor/dingtalk/sendNotification", "/patient/read/patientInfo", "/socket", "/API_ESB_Service", "/API_ESB_Service/Run", "/magic/web/**", "/smartor/serviceSubtask/phoneCallBack", "/smartor/serviceSubtask/taskPull", "/smartor/serviceSubtask//phoneCallBackYQ", "/smartor/robot/callstatus", "/smartor/robot/aidialog", "/smartor/robot/cdrinfo", "/getToken", "/smartor/subtaskAnswer/getQuestionCache", "/smartor/subtaskAnswer/saveQuestionCache", "/smartor/servicetask/getScriptInfoByCondition", "/smartor/serviceSubtask/saveQuestionAnswer").permitAll() |
| | | .antMatchers("/login", "/register", "/captchaImage", "/qrcode/generateStaticHtml", "/qrcode/getQRcode", "/qrcode/getFormDate", "/chat", "/system/file/admin/uploadFile", "/smartor/dingtalk/sendNotification", "/patient/read/patientInfo", "/socket", "/API_ESB_Service", "/API_ESB_Service/Run", "/magic/web/**", "/smartor/serviceSubtask/phoneCallBack", "/smartor/serviceSubtask/taskPull", "/smartor/serviceSubtask/phoneCallBackYQ", "/smartor/robot/callstatus", "/smartor/robot/aidialog", "/smartor/robot/cdrinfo", "/getToken", "/smartor/subtaskAnswer/getQuestionCache", "/smartor/subtaskAnswer/saveQuestionCache", "/smartor/servicetask/getScriptInfoByCondition", "/smartor/subtaskAnswer/saveQuestionAnswer","/smartor/import/download").permitAll() |
| | | // éæèµæºï¼å¯å¿åè®¿é® |
| | | .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll().antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |
| | | // é¤ä¸é¢å¤çææè¯·æ±å
¨é¨éè¦é´æè®¤è¯ |
| | |
| | | |
| | | /** |
| | | * 代ç çæ æä½å¤ç |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @RestController |
| | |
| | | /** |
| | | * æ¥è¯¢ä»£ç çæå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:list')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo genList(GenTable genTable) |
| | | { |
| | |
| | | /** |
| | | * ä¿®æ¹ä»£ç çæä¸å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:query')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:query')") |
| | | @GetMapping(value = "/{tableId}") |
| | | public AjaxResult getInfo(@PathVariable Long tableId) |
| | | { |
| | |
| | | /** |
| | | * æ¥è¯¢æ°æ®åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:list')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:list')") |
| | | @GetMapping("/db/list") |
| | | public TableDataInfo dataList(GenTable genTable) |
| | | { |
| | |
| | | /** |
| | | * æ¥è¯¢æ°æ®è¡¨å段å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:list')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:list')") |
| | | @GetMapping(value = "/column/{tableId}") |
| | | public TableDataInfo columnList(Long tableId) |
| | | { |
| | |
| | | /** |
| | | * 导å
¥è¡¨ç»æï¼ä¿åï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:import')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:import')") |
| | | @Log(title = "代ç çæ", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/importTable") |
| | | public AjaxResult importTableSave(String tables) |
| | |
| | | /** |
| | | * ä¿®æ¹ä¿å代ç çæä¸å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:edit')") |
| | | @Log(title = "代ç çæ", businessType = BusinessType.UPDATE) |
| | | @PostMapping |
| | | public AjaxResult editSave(@Validated @RequestBody GenTable genTable) |
| | |
| | | /** |
| | | * å é¤ä»£ç çæ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:remove')") |
| | | @Log(title = "代ç çæ", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{tableIds}") |
| | | public AjaxResult remove(@PathVariable Long[] tableIds) |
| | |
| | | /** |
| | | * é¢è§ä»£ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:preview')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:preview')") |
| | | @GetMapping("/preview/{tableId}") |
| | | public AjaxResult preview(@PathVariable("tableId") Long tableId) throws IOException |
| | | { |
| | |
| | | /** |
| | | * çæä»£ç ï¼ä¸è½½æ¹å¼ï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:code')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:code')") |
| | | @Log(title = "代ç çæ", businessType = BusinessType.GENCODE) |
| | | @GetMapping("/download/{tableName}") |
| | | public void download(HttpServletResponse response, @PathVariable("tableName") String tableName) throws IOException |
| | |
| | | /** |
| | | * çæä»£ç ï¼èªå®ä¹è·¯å¾ï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:code')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:code')") |
| | | @Log(title = "代ç çæ", businessType = BusinessType.GENCODE) |
| | | @GetMapping("/genCode/{tableName}") |
| | | public AjaxResult genCode(@PathVariable("tableName") String tableName) |
| | |
| | | /** |
| | | * åæ¥æ°æ®åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:edit')") |
| | | @Log(title = "代ç çæ", businessType = BusinessType.UPDATE) |
| | | @GetMapping("/synchDb/{tableName}") |
| | | public AjaxResult synchDb(@PathVariable("tableName") String tableName) |
| | |
| | | /** |
| | | * æ¹éçæä»£ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tool:gen:code')") |
| | | //@PreAuthorize("@ss.hasPermi('tool:gen:code')") |
| | | @Log(title = "代ç çæ", businessType = BusinessType.GENCODE) |
| | | @GetMapping("/batchGenCode") |
| | | public void batchGenCode(HttpServletResponse response, String tables) throws IOException |
| | |
| | | response.setContentType("application/octet-stream; charset=UTF-8"); |
| | | IOUtils.write(data, response.getOutputStream()); |
| | | } |
| | | } |
| | | } |
| | |
| | | * æ¥è¯¢${functionName}å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢${functionName}å表") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") |
| | | @GetMapping("/list") |
| | | #if($table.crud || $table.sub) |
| | | public TableDataInfo list(${ClassName} ${className}) |
| | |
| | | * 导åº${functionName}å表 |
| | | */ |
| | | @ApiOperation("导åº${functionName}å表") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ${ClassName} ${className}) |
| | |
| | | * è·å${functionName}详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·å${functionName}详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") |
| | | @GetMapping(value = "/getInfo/{${pkColumn.javaField}}") |
| | | public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢${functionName} |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ${ClassName} ${className}) |
| | |
| | | * ä¿®æ¹${functionName} |
| | | */ |
| | | @ApiOperation("ä¿®æ¹${functionName}") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ${ClassName} ${className}) |
| | |
| | | * å é¤${functionName} |
| | | */ |
| | | @ApiOperation("å é¤${functionName}") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{${pkColumn.javaField}s}") |
| | | public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) |
| | |
| | | /** |
| | | * æ¥è¯¢å®æ¶ä»»å¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysJob sysJob) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导åºå®æ¶ä»»å¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:export')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:export')") |
| | | @Log(title = "宿¶ä»»å¡", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysJob sysJob) { |
| | |
| | | /** |
| | | * è·å宿¶ä»»å¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:query')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:query')") |
| | | @GetMapping(value = "/{jobId}") |
| | | public AjaxResult getInfo(@PathVariable("jobId") Long jobId) { |
| | | return success(jobService.selectJobById(jobId)); |
| | |
| | | /** |
| | | * æ°å¢å®æ¶ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:add')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:add')") |
| | | @Log(title = "宿¶ä»»å¡", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysJob job) throws SchedulerException, TaskException { |
| | |
| | | /** |
| | | * ä¿®æ¹å®æ¶ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:edit')") |
| | | @Log(title = "宿¶ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException { |
| | |
| | | /** |
| | | * 宿¶ä»»å¡ç¶æä¿®æ¹ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") |
| | | @Log(title = "宿¶ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException { |
| | |
| | | /** |
| | | * 宿¶ä»»å¡ç«å³æ§è¡ä¸æ¬¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") |
| | | @Log(title = "宿¶ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/run") |
| | | public AjaxResult run(@RequestBody SysJob job) throws SchedulerException { |
| | |
| | | /** |
| | | * å é¤å®æ¶ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:remove')") |
| | | @Log(title = "宿¶ä»»å¡", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{jobIds}") |
| | | public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException { |
| | |
| | | /** |
| | | * æ¥è¯¢å®æ¶ä»»å¡è°åº¦æ¥å¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysJobLog sysJobLog) |
| | | { |
| | |
| | | /** |
| | | * 导åºå®æ¶ä»»å¡è°åº¦æ¥å¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:export')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:export')") |
| | | @Log(title = "ä»»å¡è°åº¦æ¥å¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysJobLog sysJobLog) |
| | |
| | | /** |
| | | * æ ¹æ®è°åº¦ç¼å·è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:query')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:query')") |
| | | @GetMapping(value = "/{jobLogId}") |
| | | public AjaxResult getInfo(@PathVariable Long jobLogId) |
| | | { |
| | |
| | | /** |
| | | * å é¤å®æ¶ä»»å¡è°åº¦æ¥å¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:remove')") |
| | | @Log(title = "宿¶ä»»å¡è°åº¦æ¥å¿", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{jobLogIds}") |
| | | public AjaxResult remove(@PathVariable Long[] jobLogIds) |
| | |
| | | /** |
| | | * æ¸
ç©ºå®æ¶ä»»å¡è°åº¦æ¥å¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:job:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:remove')") |
| | | @Log(title = "è°åº¦æ¥å¿", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/clean") |
| | | public AjaxResult clean() |
| | |
| | | package com.ruoyi.quartz.task; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.JsonNode; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.google.common.reflect.TypeToken; |
| | | import com.google.gson.JsonObject; |
| | | import com.google.gson.JsonArray; |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.JsonArray; |
| | | import com.google.gson.JsonObject; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.enums.ServiceFromEnum; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.RSAPublicKeyExample; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.http.HttpUtils; |
| | |
| | | import com.smartor.service.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.math.NumberUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.PlatformTransactionManager; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.lang.reflect.Type; |
| | | import java.net.URLEncoder; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | |
| | | @Autowired |
| | | private IServiceSubtaskService iServiceSubtaskService; |
| | | |
| | | @Autowired |
| | | private PlatformTransactionManager transactionManager; |
| | | |
| | | @Value("${localIP}") |
| | | private String localIP; |
| | |
| | | @Value("${pub_key}") |
| | | private String pub_key; |
| | | |
| | | @Value("${thirdWXUrl}") |
| | | private String thirdWXUrl; |
| | | |
| | | @Value("${req_path}") |
| | | private String req_path; |
| | |
| | | |
| | | @Autowired |
| | | IPatMedOuthospService patMedOuthospService; |
| | | |
| | | @Autowired |
| | | ISvyTaskTemplateService svyTaskTemplateService; |
| | | |
| | | @Value("${hosp_info_url}") |
| | | private String hospInfoUrl; |
| | |
| | | */ |
| | | public void dealHisData() { |
| | | //å°æ£è
ä¿¡æ¯ãåºé¢ãé¨è¯æ°æ®å
¨é¨éé |
| | | getInHospInfo("0"); |
| | | getInHospInfo("1"); |
| | | // è·åå½åæ¥æåæ¶é´ |
| | | LocalDateTime endTime = LocalDateTime.now(); |
| | | // è·ååä¸å¤©çæ¥æåæ¶é´ |
| | | LocalDateTime startTime = endTime.minusDays(1); |
| | | getInHospInfo("0", startTime, endTime); |
| | | getInHospInfo("1", startTime, endTime); |
| | | |
| | | //è°ç¨dealOupHospInfoæ°æ®å¤çæ¹æ³ï¼å¤çå®åï¼å°âåºé¢è¡¨çcheck_flag=1â |
| | | //è·åå½åæ¥æ ï¼ç²¾ç¡®å°å¤©ï¼å¾åæ¨ç¸åºå¤©æ°ï¼å¨æå®çåºç¡æ¨¡æ¿ä¸æ¾å¯¹åºç天æ°ï¼ï¼ |
| | | //å¾ªç¯æ£è
ä¿¡æ¯ï¼æ ¹æ®æ£è
"åºé¢è¯æICDå¼âè·åå°ç¸å½ç模æ¿ï¼è·ååç¸åºç天æ°ï¼; |
| | | //æ ¹æ®æ¥è¯¢åºæ¥ç模æ¿ï¼å»åºå®ä»»å¡ï¼åºå®ä»»å¡ï¼å·²ç»å°æ¨¡æ¿ä¹åºå®äºï¼å»å¹é
æ¨¡æ¿ |
| | | //æ ¹æ®å¹é
åºæ¥ç模æ¿åä»»å¡ä¸æ£è
ä¿¡æ¯ï¼å°æ°æ®æå
¥å°åä»»å¡è¡¨ä¸ |
| | | iPatMedInhospService.dealOupHospInfo(); |
| | | } |
| | | |
| | | public void dealHisData2() { |
| | | //å°æ£è
ä¿¡æ¯ãåºé¢ãé¨è¯æ°æ®å
¨é¨éé |
| | | // æå®çå¼å§æ¥æ |
| | | LocalDate endDate = LocalDate.of(2024, 9, 1); |
| | | // å½åæ¥æ |
| | | LocalDate currentDate = LocalDate.now(); |
| | | // å®ä¹æ¥ææ ¼å¼ |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd "); |
| | | |
| | | // ä»å¼å§æ¥æå°å½åæ¥æé天æå° |
| | | for (LocalDate date = endDate; !date.isAfter(currentDate); date = date.plusDays(1)) { |
| | | System.out.println(date.format(formatter)); |
| | | getInHospInfo("0", date.minusDays(1).atStartOfDay(), date.atStartOfDay()); |
| | | getInHospInfo("1", date.minusDays(1).atStartOfDay(), date.atStartOfDay()); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * å¤çæ£è
ä¿¡æ¯ï¼è¿å
¥åä»»å¡è¡¨ |
| | | */ |
| | | public void dealOutHospInfo() { |
| | | iPatMedInhospService.dealOutHospInfo(); |
| | | } |
| | | |
| | | /** |
| | |
| | | st.setDelFlag("0"); |
| | | st.setLongTask(1); |
| | | List<ServiceTask> serviceTasks = serviceTaskMapper.selectServiceTaskList(st); |
| | | log.error("serviceTasksè¿æ¥äºåï¼{}", serviceTasks); |
| | | for (ServiceTask serviceTask : serviceTasks) { |
| | | |
| | | //éè¿taskId,è·åæªæ§è¡çåä»»å¡ä¿¡æ¯ |
| | | ServiceSubtaskVO serviceSubtask = new ServiceSubtaskVO(); |
| | | serviceSubtask.setTaskid(serviceTask.getTaskid()); |
| | | serviceSubtask.setSendstate(2L); |
| | | List<ServiceSubtask> selectServiceSubtaskList = iServiceSubtaskService.selectServiceSubtaskList(serviceSubtask); |
| | | log.error("selectServiceSubtaskListè¿æ¥äºåï¼{}", selectServiceSubtaskList); |
| | | if (CollectionUtils.isNotEmpty(selectServiceSubtaskList)) { |
| | | for (ServiceSubtask serviceSubtask1 : selectServiceSubtaskList) { |
| | | //妿æ£è
çåéæ¥ææ¯ä»å¤©ï¼åè¿è¡åé |
| | | boolean dateToday = isDateToday(serviceSubtask1.getLongSendTime()); |
| | | if (dateToday) { |
| | | CommonTaskcallMQ commonTaskcallMQ = new CommonTaskcallMQ(); |
| | | commonTaskcallMQ.setTaskid(serviceTask.getTaskid()); |
| | | commonTaskcallMQ.setPreachform(serviceSubtask1.getServiceform()); |
| | | sfHandle(commonTaskcallMQ, localIP); |
| | | //åé宿åï¼ä¿®æ¹ç¶æ |
| | | serviceSubtask1.setSendstate(3L); |
| | | iServiceSubtaskService.updateServiceSubtask(serviceSubtask1); |
| | | try { |
| | | boolean dateToday = isDateToday(serviceSubtask1.getLongSendTime()); |
| | | if (dateToday) { |
| | | //å
夿æ£è
æ¯ä¸æ¯è¿è¦åé |
| | | PatArchive patArchive = patArchiveService.selectPatArchiveByPatid(serviceSubtask1.getPatid()); |
| | | if (!Objects.isNull(patArchive) && patArchive.getNotrequiredFlag() == "1") { |
| | | //ä¸éè¦åé |
| | | serviceSubtask1.setResult("error"); |
| | | serviceSubtask1.setRemark(patArchive.getNotrequiredreason()); |
| | | serviceSubtask1.setSendstate(4L); |
| | | serviceSubtask1.setFinishtime(new Date()); |
| | | iServiceSubtaskService.insertServiceSubtask(serviceSubtask1); |
| | | continue; |
| | | } |
| | | |
| | | log.error("dateTodayè¿æ¥äºåï¼{}", dateToday); |
| | | CommonTaskcallMQ commonTaskcallMQ = new CommonTaskcallMQ(); |
| | | commonTaskcallMQ.setTaskid(serviceTask.getTaskid()); |
| | | commonTaskcallMQ.setPreachform(serviceSubtask1.getServiceform()); |
| | | commonTaskcallMQ.setSendType("2"); |
| | | Map<String, Object> map = sfHandlle(commonTaskcallMQ, localIP); |
| | | //åé宿åï¼ä¿®æ¹ç¶æ |
| | | serviceSubtask1.setSendstate(3L); |
| | | if ((Boolean) map.get("succ") == false) { |
| | | serviceSubtask1.setResult("success"); |
| | | } else { |
| | | serviceSubtask1.setResult("error"); |
| | | serviceSubtask1.setRemark(map.get("msg").toString()); |
| | | } |
| | | iServiceSubtaskService.updateServiceSubtask(serviceSubtask1); |
| | | } |
| | | } catch (Exception e) { |
| | | String guid = UUID.randomUUID().toString(); |
| | | log.error("é¿æä»»å¡ï¼åé失败åå ï¼{},{}", e.getMessage(), guid); |
| | | serviceSubtask1.setResult("error"); |
| | | serviceSubtask1.setRemark("ç³»ç»é误"); |
| | | serviceSubtask1.setSendstate(5L); |
| | | serviceSubtask1.setFinishtime(new Date()); |
| | | serviceSubtask1.setGuid(guid); |
| | | iServiceSubtaskService.insertServiceSubtask(serviceSubtask1); |
| | | } |
| | | } |
| | | } |
| | |
| | | return (calendarToCheck.get(Calendar.YEAR) == todayYear && calendarToCheck.get(Calendar.MONTH) == todayMonth && calendarToCheck.get(Calendar.DAY_OF_MONTH) == todayDay); |
| | | } |
| | | |
| | | public void sfHandle(CommonTaskcallMQ commonTaskcallMQ, String ip) { |
| | | public Map<String, Object> sfHandlle(CommonTaskcallMQ commonTaskcallMQ, String ip) { |
| | | log.error("sfHandlleè¿æ¥äºåï¼{}", commonTaskcallMQ); |
| | | //夿ä¸ä¸commonTaskcallMQä¸çstopstateæ¯å¦ä¸ivr_taskä¸çä¸è´ï¼ä¸ä¸è´ï¼åè¯´ææ¯æåäº |
| | | ServiceTask ivrTask1 = serviceTaskMapper.selectServiceTaskByTaskid(commonTaskcallMQ.getTaskid()); |
| | | |
| | | if (StringUtils.isNotEmpty(commonTaskcallMQ.getPreachform())) { |
| | | //å¦ä½ä»»å¡åéæ¹å¼ä¸ä¸ºç©º |
| | | String[] split = commonTaskcallMQ.getPreachform().split(","); |
| | | System.out.println("splitçå¼ä¸ºï¼" + split); |
| | | log.error("splitè¿æ¥äºåï¼{}", split); |
| | | for (String serviceFrom : split) { |
| | | String descByCode = ServiceFromEnum.getDescByCode(Integer.valueOf(serviceFrom)); |
| | | //è¿éå¯ä»¥èèç¨çç¥æ¨¡å¼ä¼åä¸ä¸ï¼ä¸ç¶å¤ªé¾çäº |
| | |
| | | } |
| | | } else if (descByCode.equals("å¤åªä½")) { |
| | | //å¤åªä½ |
| | | return; |
| | | return null; |
| | | } else if (descByCode.equals("纸质")) { |
| | | //纸质 |
| | | return; |
| | | return null; |
| | | } else if (descByCode.equals("çä¿¡")) { |
| | | //çä¿¡ |
| | | // http://localhost:8099/followvisit/particty?param1=3¶m2=348 |
| | |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/followvisit/particty?param1=" + taskId + "¶m2=" + patid + "¶m5=false"); |
| | | Boolean aBoolean = sendService.sendMsg(sendMagParam); |
| | | |
| | | |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |
| | |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult(aBoolean == true ? "æå" : "失败"); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | return null; |
| | | } |
| | | } else if (descByCode.equals("å
¬ä¼å·")) { |
| | | log.error("å
¬ä¼å·è¿æ¥äºåï¼{}", descByCode); |
| | | //å
¬ä¼å· |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | | String taskId = rsaPublicKeyExample.encryptedData(ivrTask1.getTaskid().toString(), pub_key); |
| | | for (ServiceSubtask serviceSubtask : selectServiceSubtaskList) { |
| | | log.error("serviceSubtask---------è¿æ¥äºåï¼{}", serviceSubtask); |
| | | String patid = rsaPublicKeyExample.encryptedData(serviceSubtask.getPatid().toString(), pub_key); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType("5"); |
| | | sendMagParam.setUrl(ip + ":" + req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | | log.info("龿¥å®æ´è·¯å¾ï¼{}", ip + ":" + req_path + "/outsideChain?param1=" + taskId + "¶m2=" + patid + "¶m3=" + ivrTask1.getTaskName() + "¶m5=false"); |
| | | //è¿ä¸ªæ¨¡æ¿IDå
åæ»ï¼åé¢åæå¯é |
| | | sendMagParam.setTmpCode("oG3pJHPVWpE81DmZsua_2tKwgJ97r0qz37z56ns7NB4"); |
| | | Map map = new HashMap(); |
| | | map.put("first", ivrTask1.getTaskName()); |
| | | sendMagParam.setContent(JSON.toJSONString(map)); |
| | | sendMagParam.setOpenid(serviceSubtask.getOpenid()); |
| | | Boolean aBoolean = sendService.sendMsg(sendMagParam); |
| | | String url = null; |
| | | try { |
| | | url = ip + ":" + req_path + "/outsideChainwt?param1=" + taskId + "¶m2=" + patid + "¶m3=" + URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString()) + "¶m5=false"; |
| | | } catch (UnsupportedEncodingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | String wxCode = getWXCode(serviceSubtask.getSfzh(), url, serviceSubtask.getTaskName(), serviceSubtask.getTaskDesc(), "æ "); |
| | | Map<String, Object> map = JSONObject.parseObject(wxCode, Map.class); |
| | | |
| | | //ä»»å¡åéè®°å½ |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | |
| | | serviceSubtaskRecord.setTasktype(serviceSubtask.getType()); |
| | | serviceSubtaskRecord.setPreachform("4"); |
| | | serviceSubtaskRecord.setStartTime(System.currentTimeMillis()); |
| | | serviceSubtaskRecord.setResult(aBoolean == true ? "æå" : "失败"); |
| | | serviceSubtaskRecord.setResult("success"); |
| | | if (!map.isEmpty() && (Boolean) map.get("succ") == false) |
| | | serviceSubtaskRecord.setResult("error"); |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | return map; |
| | | } |
| | | } |
| | | //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·åºé¢æ£è
ä¿¡æ¯ |
| | | * cry åºå
¥é¢ï¼ 0 å
¥é¢ 1 åºé¢ |
| | | */ |
| | | private void getInHospInfo(String cry) { |
| | | @Transactional |
| | | public void getInHospInfo(String cry, LocalDateTime startTime, LocalDateTime endTime) { |
| | | // è·åå½åæ¥æåæ¶é´ |
| | | LocalDateTime currentDateTime = LocalDateTime.now(); |
| | | // è·ååä¸å¤©çæ¥æåæ¶é´ |
| | |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.S"); |
| | | Map<String, String> req = new HashMap<>(); |
| | | if (cry.equals("1")) { |
| | | req.put("startTime", previousDateTime.format(formatter)); |
| | | req.put("endTime", currentDateTime.format(formatter)); |
| | | req.put("startTime", startTime.format(formatter)); |
| | | req.put("endTime", endTime.format(formatter)); |
| | | req.put("currStatus", "4"); |
| | | } else if (cry.equals("0")) { |
| | | req.put("admissStartDate", previousDateTime.format(formatter)); |
| | | req.put("admissEndDate", currentDateTime.format(formatter)); |
| | | req.put("admissStartDate", startTime.format(formatter)); |
| | | req.put("admissEndDate", endTime.format(formatter)); |
| | | req.put("currStatus", "2"); |
| | | } |
| | | Map<String, String> header = new HashMap<>(); |
| | |
| | | for (ThiedInhospInfo thiedInhospInfo : thiedInhospInfoList) { |
| | | //éè¿èº«ä»½è¯å·æ¥è¯¢è¯¥æ£è
卿£è
表æ¯å¦åå¨ |
| | | PatArchive patArchive = new PatArchive(); |
| | | patArchive.setIdcardno(thiedInhospInfo.getPatiIdCardNo()); |
| | | List<PatArchive> patArchives = patArchiveService.selectPatArchiveList(patArchive); |
| | | if (CollectionUtils.isEmpty(patArchives)) { |
| | | List<PatArchive> patArchives = null; |
| | | patArchive.setIdcardno(thiedInhospInfo.getPatiIdCardNo().trim()); |
| | | if (StringUtils.isNotEmpty(thiedInhospInfo.getPatiIdCardNo().trim())) { |
| | | patArchives = patArchiveService.selectPatArchiveList(patArchive); |
| | | } else { |
| | | //æ£è
ä¿¡æ¯ä¸ºç©ºï¼ç´æ¥ ä¸ä¸ä¸ª |
| | | continue; |
| | | } |
| | | if (CollectionUtils.isEmpty(patArchives) || patArchives.size() == 0) { |
| | | patArchive.setPatientno(thiedInhospInfo.getPatiMediaNo()); |
| | | patArchive.setSourcefrom(2); |
| | | patArchive.setPattype("2"); |
| | | if (thiedInhospInfo.getOutWayId().equals("4")) { |
| | | //å¦æä¸º4å°±æ¯æ»äº¡ |
| | | patArchive.setNotrequiredFlag("1"); |
| | | patArchive.setNotrequiredreason(thiedInhospInfo.getOutWayName()); |
| | | } |
| | | patArchive.setSex(thiedInhospInfo.getPatiRecordGender().equals("ç·") ? 1L : 2L); |
| | | patArchive.setNation(thiedInhospInfo.getPatiNation()); |
| | | patArchive.setNativePlace(thiedInhospInfo.getPatiNationality()); |
| | |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | String age = thiedInhospInfo.getAge().replaceAll("å²", ""); |
| | | boolean creatable = NumberUtils.isCreatable(age); |
| | | if (creatable) patArchive.setAge(StringUtils.isNotEmpty(age) ? Long.valueOf(age) : null); |
| | | patArchive.setAge(Long.valueOf(thiedInhospInfo.getTreateAge())); |
| | | patArchive.setAgeUnit(thiedInhospInfo.getTreatAgeunit()); |
| | | patArchive.setTelcode(thiedInhospInfo.getCompanyTelNum()); |
| | | patArchive.setRelativetelcode(thiedInhospInfo.getContactPersonPhone()); |
| | | patArchive.setDelFlag("0"); |
| | |
| | | patArchive.setUpdateTime(new Date()); |
| | | patArchive.setName(thiedInhospInfo.getPatiRecordName()); |
| | | patArchiveService.insertPatArchive(patArchive); |
| | | } else { |
| | | patArchive = patArchives.get(0); |
| | | } |
| | | log.error("å
¥åçpatArchiveï¼{}", patArchive); |
| | | PatMedInhosp patMedInhosp = new PatMedInhosp(); |
| | | patMedInhosp.setPatid(patArchive.getId()); |
| | | patMedInhosp.setPatno(patArchive.getPatientno()); |
| | | patMedInhosp.setPatname(patArchive.getName()); |
| | | patMedInhosp.setNurseId(thiedInhospInfo.getNurseId()); |
| | | patMedInhosp.setNurseName(thiedInhospInfo.getNurseName()); |
| | | patMedInhosp.setSerialnum(thiedInhospInfo.getInpatientId()); |
| | | if (cry.equals("0")) { |
| | | patMedInhosp.setInhospstate("0"); |
| | |
| | | patMedInhosp.setDeptname(thiedInhospInfo.getAdmissDeptName()); |
| | | patMedInhosp.setBedNo(thiedInhospInfo.getAdmissBedNo()); |
| | | patMedInhosp.setDelFlag("0"); |
| | | patMedInhosp.setLeaveldeptcode(thiedInhospInfo.getCurrWardId()); |
| | | patMedInhosp.setLeaveldeptname(thiedInhospInfo.getCurrWardName()); |
| | | // patMedInhosp.setLeaveldeptcode(thiedInhospInfo.getCurrDeptCode()); |
| | | patMedInhosp.setLeaveldeptcode(thiedInhospInfo.getCurrDeptId()); |
| | | patMedInhosp.setLeaveldeptname(thiedInhospInfo.getCurrDeptName()); |
| | | patMedInhosp.setLeavediagname(thiedInhospInfo.getDiagName()); |
| | | patMedInhosp.setLeaveicd10code(thiedInhospInfo.getDiagIcd10()); |
| | | patMedInhosp.setDrname(thiedInhospInfo.getDoctName()); |
| | | patMedInhosp.setDrcode(thiedInhospInfo.getDoctId()); |
| | | patMedInhosp.setOutWayId(thiedInhospInfo.getOutWayId()); |
| | | patMedInhosp.setOutWayName(thiedInhospInfo.getOutWayName()); |
| | | if (cry.equals("0")) { |
| | | patMedInhosp.setSchemestatus(1L); |
| | | } else if (cry.equals("1")) { |
| | | patMedInhosp.setSchemestatus(2L); |
| | | } |
| | | patMedInhosp.setLeavehospitaldistrictid(thiedInhospInfo.getCurrWardCode()); |
| | | patMedInhosp.setLeavehospitaldistrictcode(thiedInhospInfo.getCurrWardId()); |
| | | patMedInhosp.setLeavehospitaldistrictid(thiedInhospInfo.getCurrWardId()); |
| | | patMedInhosp.setLeavehospitaldistrictname(thiedInhospInfo.getCurrWardName()); |
| | | patMedInhosp.setLeaveldeptid(thiedInhospInfo.getCurrDeptId()); |
| | | patMedInhosp.setLeaveldeptid(thiedInhospInfo.getCurrDeptCode()); |
| | | patMedInhospService.insertPatMedInhosp(patMedInhosp); |
| | | |
| | | } |
| | |
| | | } |
| | | return key; |
| | | } |
| | | |
| | | private String getWXCode(String idcard, String url, String taskName, String taskDesc, String submitprompt) { |
| | | XinHuaWXReq xinHuaWXReq = new XinHuaWXReq(); |
| | | xinHuaWXReq.setIdcard(idcard); |
| | | xinHuaWXReq.setUrl(url); |
| | | xinHuaWXReq.setKeyword1("æµä¸å»å¤§äºé¢åºé¢é访"); |
| | | xinHuaWXReq.setKeyword2(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); |
| | | xinHuaWXReq.setKeyword3(taskName); |
| | | xinHuaWXReq.setKeyword4("ç¾ç
åº·å¤æ³¨æäºé¡¹"); |
| | | |
| | | String result = HttpUtils.sendPost(thirdWXUrl, new Gson().toJson(xinHuaWXReq)); |
| | | JSONObject jsonObject = JSONObject.parseObject(result); |
| | | String code = (String) jsonObject.get("code"); |
| | | return code; |
| | | } |
| | | } |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @date 2024-08-29 |
| | | */ |
| | | @Service |
| | | public class SysUserDeptServiceImpl implements ISysUserDeptService |
| | | { |
| | | public class SysUserDeptServiceImpl implements ISysUserDeptService { |
| | | @Autowired |
| | | private SysUserDeptMapper sysUserDeptMapper; |
| | | |
| | |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | @Override |
| | | public SysUserDept selectSysUserDeptById(Long id) |
| | | { |
| | | public SysUserDept selectSysUserDeptById(Long id) { |
| | | return sysUserDeptMapper.selectSysUserDeptById(id); |
| | | } |
| | | |
| | |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | @Override |
| | | public List<SysUserDept> selectSysUserDeptList(SysUserDept sysUserDept) |
| | | { |
| | | public List<SysUserDept> selectSysUserDeptList(SysUserDept sysUserDept) { |
| | | return sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSysUserDept(SysUserDept sysUserDept) |
| | | { |
| | | public int insertSysUserDept(SysUserDept sysUserDept) { |
| | | sysUserDept.setCreateTime(new Date()); |
| | | sysUserDept.setUpdateTime(new Date()); |
| | | return sysUserDeptMapper.insertSysUserDept(sysUserDept); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSysUserDept(SysUserDept sysUserDept) |
| | | { |
| | | public int updateSysUserDept(SysUserDept sysUserDept) { |
| | | sysUserDept.setUpdateTime(new Date()); |
| | | return sysUserDeptMapper.updateSysUserDept(sysUserDept); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysUserDeptByIds(Long[] ids) |
| | | { |
| | | public int deleteSysUserDeptByIds(Long[] ids) { |
| | | return sysUserDeptMapper.deleteSysUserDeptByIds(ids); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysUserDeptById(Long id) |
| | | { |
| | | public int deleteSysUserDeptById(Long id) { |
| | | return sysUserDeptMapper.deleteSysUserDeptById(id); |
| | | } |
| | | } |
| | |
| | | for (SysDept sysDept : sysDepts) { |
| | | deptIds.add(sysDept.getDeptId()); |
| | | } |
| | | SysUserDept sysUserDept = new SysUserDept(); |
| | | sysUserDept.setUserId(sysUser.getUserId()); |
| | | sysUserDept.setDeptType(sysUser.getSearchscope()); |
| | | List<SysUserDept> sysUserDeptKSs = null; |
| | | List<SysUserDept> sysUserDeptBQs = null; |
| | | if (StringUtils.isNotEmpty(sysUser.getSearchscope()) && sysUser.getSearchscope().equals("0")) { |
| | | sysUserDept.setDeptType("1"); |
| | | sysUserDeptKSs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | sysUserDept.setDeptType("2"); |
| | | sysUserDeptBQs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | } else if (StringUtils.isNotEmpty(sysUser.getSearchscope()) && sysUser.getSearchscope().equals("1")) { |
| | | sysUserDept.setDeptType("1"); |
| | | sysUserDeptKSs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | } else if (StringUtils.isNotEmpty(sysUser.getSearchscope()) && sysUser.getSearchscope().equals("2")) { |
| | | sysUserDept.setDeptType("2"); |
| | | sysUserDeptBQs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | } |
| | | |
| | | sysUser.setDepts(deptIds); |
| | | return userMapper.selectUserByUserName(userName); |
| | | if (!CollectionUtils.isEmpty(sysUserDeptBQs)) |
| | | sysUser.setLeavehospitaldistrictcodes(sysUserDeptBQs.stream().map(SysUserDept::getDeptCode).collect(Collectors.toList())); |
| | | if (!CollectionUtils.isEmpty(sysUserDeptKSs)) |
| | | sysUser.setLeaveldeptcodes(sysUserDeptKSs.stream().map(SysUserDept::getDeptCode).collect(Collectors.toList())); |
| | | |
| | | return sysUser; |
| | | } |
| | | |
| | | /** |
| | |
| | | //æ°å¢ç¨æ·ä¸é¨é¨å
³è |
| | | sysUserDeptMapper.deleteSysUserDeptByIds(ids); |
| | | if (!CollectionUtils.isEmpty(user.getDepts())) { |
| | | for ( Long deptId: user.getDepts()) { |
| | | for (Long deptId : user.getDepts()) { |
| | | SysUserDept sysUserDep = new SysUserDept(); |
| | | sysUserDep.setUserId(user.getUserId()); |
| | | sysUserDep.setDeptId(deptId); |
| | |
| | | sysUserDep.setUpdateTime(new Date()); |
| | | sysUserDeptMapper.insertSysUserDept(sysUserDep); |
| | | } |
| | | }else { |
| | | } else { |
| | | |
| | | } |
| | | return userMapper.updateUser(user); |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.SysDeptMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.SysDept" id="SysDeptResult"> |
| | | <id property="deptId" column="dept_id" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="ancestors" column="ancestors" /> |
| | | <result property="deptName" column="dept_name" /> |
| | | <result property="orderNum" column="order_num" /> |
| | | <result property="leader" column="leader" /> |
| | | <result property="phone" column="phone" /> |
| | | <result property="email" column="email" /> |
| | | <result property="status" column="status" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="parentName" column="parent_name" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDeptVo"> |
| | | select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.SysDept" id="SysDeptResult"> |
| | | <id property="deptId" column="dept_id"/> |
| | | <result property="parentId" column="parent_id"/> |
| | | <result property="ancestors" column="ancestors"/> |
| | | <result property="deptName" column="dept_name"/> |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="email" column="email"/> |
| | | <result property="status" column="status"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="parentName" column="parent_name"/> |
| | | <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="deptCode" column="dept_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDeptVo"> |
| | | select d.dept_id, |
| | | d.dept_code, |
| | | d.parent_id, |
| | | d.ancestors, |
| | | d.dept_name, |
| | | d.order_num, |
| | | d.leader, |
| | | d.phone, |
| | | d.email, |
| | | d.status, |
| | | d.del_flag, |
| | | d.create_by, |
| | | d.create_time |
| | | from sys_dept d |
| | | </sql> |
| | | |
| | | <select id="selectDeptList" parameterType="com.ruoyi.common.core.domain.entity.SysDept" resultMap="SysDeptResult"> |
| | | |
| | | <select id="selectDeptList" parameterType="com.ruoyi.common.core.domain.entity.SysDept" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where d.del_flag = '0' |
| | | <if test="deptId != null and deptId != 0"> |
| | | AND dept_id = #{deptId} |
| | | </if> |
| | | <if test="deptId != null and deptId != 0"> |
| | | AND dept_id = #{deptId} |
| | | </if> |
| | | <if test="parentId != null and parentId != 0"> |
| | | AND parent_id = #{parentId} |
| | | </if> |
| | | <if test="deptName != null and deptName != ''"> |
| | | AND dept_name like concat('%', #{deptName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | order by d.parent_id, d.order_num |
| | | AND parent_id = #{parentId} |
| | | </if> |
| | | <if test="deptName != null and deptName != ''"> |
| | | AND dept_name like concat('%', #{deptName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="deptCode != null and deptCode != ''"> |
| | | AND dept_code = #{deptCode} |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | order by d.parent_id, d.order_num |
| | | </select> |
| | | |
| | | <select id="selectDeptListByRoleId" resultType="Long"> |
| | | select d.dept_id |
| | | from sys_dept d |
| | | left join sys_role_dept rd on d.dept_id = rd.dept_id |
| | | where rd.role_id = #{roleId} |
| | | <if test="deptCheckStrictly"> |
| | | and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId}) |
| | | </if> |
| | | order by d.parent_id, d.order_num |
| | | </select> |
| | | |
| | | <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, |
| | | (select dept_name from sys_dept where dept_id = d.parent_id) parent_name |
| | | from sys_dept d |
| | | where d.dept_id = #{deptId} |
| | | </select> |
| | | |
| | | <select id="checkDeptExistUser" parameterType="Long" resultType="int"> |
| | | select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0' |
| | | </select> |
| | | |
| | | <select id="hasChildByDeptId" parameterType="Long" resultType="int"> |
| | | select count(1) from sys_dept |
| | | where del_flag = '0' and parent_id = #{deptId} limit 1 |
| | | </select> |
| | | |
| | | <select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | select * from sys_dept where find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int"> |
| | | select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="checkDeptNameUnique" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept"> |
| | | insert into sys_dept( |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |
| | | <if test="parentId != null and parentId != 0">parent_id,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | <if test="ancestors != null and ancestors != ''">ancestors,</if> |
| | | <if test="orderNum != null">order_num,</if> |
| | | <if test="leader != null and leader != ''">leader,</if> |
| | | <if test="phone != null and phone != ''">phone,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="deptId != null and deptId != 0">#{deptId},</if> |
| | | <if test="parentId != null and parentId != 0">#{parentId},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | <if test="ancestors != null and ancestors != ''">#{ancestors},</if> |
| | | <if test="orderNum != null">#{orderNum},</if> |
| | | <if test="leader != null and leader != ''">#{leader},</if> |
| | | <if test="phone != null and phone != ''">#{phone},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept"> |
| | | update sys_dept |
| | | <set> |
| | | <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if> |
| | | <if test="deptName != null and deptName != ''">dept_name = #{deptName},</if> |
| | | <if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if> |
| | | <if test="orderNum != null">order_num = #{orderNum},</if> |
| | | <if test="leader != null">leader = #{leader},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="email != null">email = #{email},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dept_id = #{deptId} |
| | | </update> |
| | | |
| | | <update id="updateDeptChildren" parameterType="java.util.List"> |
| | | update sys_dept set ancestors = |
| | | <foreach collection="depts" item="item" index="index" |
| | | separator=" " open="case dept_id" close="end"> |
| | | when #{item.deptId} then #{item.ancestors} |
| | | </foreach> |
| | | where dept_id in |
| | | <foreach collection="depts" item="item" index="index" |
| | | separator="," open="(" close=")"> |
| | | #{item.deptId} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="updateDeptStatusNormal" parameterType="Long"> |
| | | update sys_dept set status = '0' where dept_id in |
| | | <foreach collection="array" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <delete id="deleteDeptById" parameterType="Long"> |
| | | update sys_dept set del_flag = '2' where dept_id = #{deptId} |
| | | </delete> |
| | | |
| | | </mapper> |
| | | <select id="selectDeptListByRoleId" resultType="Long"> |
| | | select d.dept_id |
| | | from sys_dept d |
| | | left join sys_role_dept rd on d.dept_id = rd.dept_id |
| | | where rd.role_id = #{roleId} |
| | | <if test="deptCheckStrictly"> |
| | | and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = |
| | | rd.dept_id and rd.role_id = #{roleId}) |
| | | </if> |
| | | order by d.parent_id, d.order_num |
| | | </select> |
| | | |
| | | <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | select d.dept_id, |
| | | d.parent_id, |
| | | d.dept_code, |
| | | d.ancestors, |
| | | d.dept_name, |
| | | d.order_num, |
| | | d.leader, |
| | | d.phone, |
| | | d.email, |
| | | d.status, |
| | | (select dept_name from sys_dept where dept_id = d.parent_id) parent_name |
| | | from sys_dept d |
| | | where d.dept_id = #{deptId} |
| | | </select> |
| | | |
| | | <select id="checkDeptExistUser" parameterType="Long" resultType="int"> |
| | | select count(1) |
| | | from sys_user |
| | | where dept_id = #{deptId} |
| | | and del_flag = '0' |
| | | </select> |
| | | |
| | | <select id="hasChildByDeptId" parameterType="Long" resultType="int"> |
| | | select count(1) |
| | | from sys_dept |
| | | where del_flag = '0' |
| | | and parent_id = #{deptId} limit 1 |
| | | </select> |
| | | |
| | | <select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | select * |
| | | from sys_dept |
| | | where find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int"> |
| | | select count(*) |
| | | from sys_dept |
| | | where status = 0 |
| | | and del_flag = '0' |
| | | and find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="checkDeptNameUnique" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept"> |
| | | insert into sys_dept( |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |
| | | <if test="parentId != null and parentId != 0">parent_id,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | <if test="ancestors != null and ancestors != ''">ancestors,</if> |
| | | <if test="orderNum != null">order_num,</if> |
| | | <if test="leader != null and leader != ''">leader,</if> |
| | | <if test="phone != null and phone != ''">phone,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="deptCode != null">dept_code,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="deptId != null and deptId != 0">#{deptId},</if> |
| | | <if test="parentId != null and parentId != 0">#{parentId},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | <if test="ancestors != null and ancestors != ''">#{ancestors},</if> |
| | | <if test="orderNum != null">#{orderNum},</if> |
| | | <if test="leader != null and leader != ''">#{leader},</if> |
| | | <if test="phone != null and phone != ''">#{phone},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="deptCode != null">#{deptCode},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept"> |
| | | update sys_dept |
| | | <set> |
| | | <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if> |
| | | <if test="deptName != null and deptName != ''">dept_name = #{deptName},</if> |
| | | <if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if> |
| | | <if test="orderNum != null">order_num = #{orderNum},</if> |
| | | <if test="leader != null">leader = #{leader},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="email != null">email = #{email},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="deptCode != null">dept_code=#{deptCode},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dept_id = #{deptId} |
| | | </update> |
| | | |
| | | <update id="updateDeptChildren" parameterType="java.util.List"> |
| | | update sys_dept set ancestors = |
| | | <foreach collection="depts" item="item" index="index" |
| | | separator=" " open="case dept_id" close="end"> |
| | | when #{item.deptId} then #{item.ancestors} |
| | | </foreach> |
| | | where dept_id in |
| | | <foreach collection="depts" item="item" index="index" |
| | | separator="," open="(" close=")"> |
| | | #{item.deptId} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="updateDeptStatusNormal" parameterType="Long"> |
| | | update sys_dept set status = '0' where dept_id in |
| | | <foreach collection="array" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <delete id="deleteDeptById" parameterType="Long"> |
| | | update sys_dept |
| | | set del_flag = '2' |
| | | where dept_id = #{deptId} |
| | | </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"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.SysUserMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.SysUser" id="SysUserResult"> |
| | | <id property="userId" column="user_id" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | <result property="userName" column="user_name" /> |
| | | <result property="nickName" column="nick_name" /> |
| | | <result property="email" column="email" /> |
| | | <result property="phonenumber" column="phonenumber" /> |
| | | <result property="sex" column="sex" /> |
| | | <result property="avatar" column="avatar" /> |
| | | <result property="password" column="password" /> |
| | | <result property="status" column="status" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="loginIp" column="login_ip" /> |
| | | <result property="loginDate" column="login_date" /> |
| | | <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="remark" column="remark" /> |
| | | <association property="dept" column="dept_id" javaType="SysDept" resultMap="deptResult" /> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult" /> |
| | | <id property="userId" column="user_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | <result property="hospInfo" column="hosp_info"/> |
| | | <result property="deptInfo" column="dept_info"/> |
| | | <result property="userName" column="user_name"/> |
| | | <result property="nickName" column="nick_name"/> |
| | | <result property="email" column="email"/> |
| | | <result property="phonenumber" column="phonenumber"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="avatar" column="avatar"/> |
| | | <result property="password" column="password"/> |
| | | <result property="status" column="status"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="loginIp" column="login_ip"/> |
| | | <result property="loginDate" column="login_date"/> |
| | | <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="remark" column="remark"/> |
| | | <result property="userType" column="user_type"/> |
| | | <result property="searchscope" column="searchscope"/> |
| | | <association property="dept" column="dept_id" javaType="com.ruoyi.common.core.domain.entity.SysDept" |
| | | resultMap="deptResult"/> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="deptResult" type="com.ruoyi.common.core.domain.entity.SysDept"> |
| | | <id property="deptId" column="dept_id" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="deptName" column="dept_name" /> |
| | | <result property="ancestors" column="ancestors" /> |
| | | <result property="orderNum" column="order_num" /> |
| | | <result property="leader" column="leader" /> |
| | | <result property="status" column="dept_status" /> |
| | | <id property="deptId" column="dept_id"/> |
| | | <result property="parentId" column="parent_id"/> |
| | | <result property="deptName" column="dept_name"/> |
| | | <result property="ancestors" column="ancestors"/> |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="status" column="dept_status"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole"> |
| | | <id property="roleId" column="role_id" /> |
| | | <result property="roleName" column="role_name" /> |
| | | <result property="roleKey" column="role_key" /> |
| | | <result property="roleSort" column="role_sort" /> |
| | | <result property="dataScope" column="data_scope" /> |
| | | <result property="status" column="role_status" /> |
| | | <id property="roleId" column="role_id"/> |
| | | <result property="roleName" column="role_name"/> |
| | | <result property="roleKey" column="role_key"/> |
| | | <result property="roleSort" column="role_sort"/> |
| | | <result property="dataScope" column="data_scope"/> |
| | | <result property="status" column="role_status"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectUserVo"> |
| | | select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, |
| | | d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status, |
| | | r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status |
| | | <sql id="selectUserVo"> |
| | | select u.user_id, |
| | | u.dept_id, |
| | | u.hosp_info, |
| | | u.dept_info, |
| | | u.searchscope, |
| | | u.user_name, |
| | | u.user_type, |
| | | u.nick_name, |
| | | u.email, |
| | | u.avatar, |
| | | u.phonenumber, |
| | | u.password, |
| | | u.sex, |
| | | u.status, |
| | | u.del_flag, |
| | | u.login_ip, |
| | | u.login_date, |
| | | u.create_by, |
| | | u.create_time, |
| | | u.remark, |
| | | d.dept_id, |
| | | d.parent_id, |
| | | d.ancestors, |
| | | d.dept_name, |
| | | d.order_num, |
| | | d.leader, |
| | | d.status as dept_status, |
| | | r.role_id, |
| | | r.role_name, |
| | | r.role_key, |
| | | r.role_sort, |
| | | r.data_scope, |
| | | r.status as role_status |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | </sql> |
| | | |
| | | <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult"> |
| | | select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | where u.del_flag = '0' |
| | | <if test="userId != null and userId != 0"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- å¼å§æ¶é´æ£ç´¢ --> |
| | | AND date_format(u.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- ç»ææ¶é´æ£ç´¢ --> |
| | | AND date_format(u.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | <if test="deptId != null and deptId != 0"> |
| | | AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | <select id="selectUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select u.user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_type, u.nick_name, u.user_name, u.email, |
| | | u.avatar, |
| | | u.phonenumber, u.sex, u.status, |
| | | u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user |
| | | u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | where u.del_flag = '0' |
| | | <if test="userId != null and userId != 0"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="nickName != null and nickName != ''"> |
| | | AND u.nick_name like concat('%', #{nickName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- å¼å§æ¶é´æ£ç´¢ --> |
| | | AND date_format(u.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- ç»ææ¶é´æ£ç´¢ --> |
| | | AND date_format(u.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | <if test="deptId != null and deptId != 0"> |
| | | AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, |
| | | ancestors) )) |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectAllocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and r.role_id = #{roleId} |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | <select id="selectAllocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" |
| | | resultMap="SysUserResult"> |
| | | select distinct u.user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_name, u.user_type, u.nick_name, |
| | | u.email, |
| | | u.phonenumber, u.status, |
| | | u.create_time |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and r.role_id = #{roleId} |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectUnallocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL) |
| | | and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and ur.role_id = #{roleId}) |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | <select id="selectUnallocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" |
| | | resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.dept_id, u.hosp_info, u.dept_info,u.searchscope, u.user_name, u.user_type, u.nick_name, |
| | | u.email, |
| | | u.phonenumber, u.status, |
| | | u.create_time |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL) |
| | | and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and |
| | | ur.role_id = #{roleId}) |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_name = #{userName} and u.del_flag = '0' |
| | | </select> |
| | | <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_name = #{userName} and u.del_flag = '0' |
| | | </select> |
| | | |
| | | <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_id = #{userId} |
| | | </select> |
| | | <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, user_name from sys_user where user_name = #{userName} and del_flag = '0' limit 1 |
| | | </select> |
| | | <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, user_name |
| | | from sys_user |
| | | where user_name = #{userName} |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} and del_flag = '0' limit 1 |
| | | </select> |
| | | <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, phonenumber |
| | | from sys_user |
| | | where phonenumber = #{phonenumber} |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1 |
| | | </select> |
| | | <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, email |
| | | from sys_user |
| | | where email = #{email} |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser" useGeneratedKeys="true" keyProperty="userId"> |
| | | insert into sys_user( |
| | | <if test="userId != null and userId != 0">user_id,</if> |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |
| | | <if test="userName != null and userName != ''">user_name,</if> |
| | | <if test="nickName != null and nickName != ''">nick_name,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="avatar != null and avatar != ''">avatar,</if> |
| | | <if test="phonenumber != null and phonenumber != ''">phonenumber,</if> |
| | | <if test="sex != null and sex != ''">sex,</if> |
| | | <if test="password != null and password != ''">password,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | | <if test="deptId != null and deptId != ''">#{deptId},</if> |
| | | <if test="userName != null and userName != ''">#{userName},</if> |
| | | <if test="nickName != null and nickName != ''">#{nickName},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="avatar != null and avatar != ''">#{avatar},</if> |
| | | <if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">#{sex},</if> |
| | | <if test="password != null and password != ''">#{password},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | <insert id="insertUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser" useGeneratedKeys="true" |
| | | keyProperty="userId"> |
| | | insert into sys_user( |
| | | <if test="userId != null and userId != 0">user_id,</if> |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |
| | | <if test="userName != null and userName != ''">user_name,</if> |
| | | <if test="nickName != null and nickName != ''">nick_name,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="avatar != null and avatar != ''">avatar,</if> |
| | | <if test="phonenumber != null and phonenumber != ''">phonenumber,</if> |
| | | <if test="sex != null and sex != ''">sex,</if> |
| | | <if test="password != null and password != ''">password,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="userType != null and userType != ''">user_type,</if> |
| | | <if test="deptInfo != null and deptInfo != ''">dept_info,</if> |
| | | <if test="hospInfo != null and hospInfo != ''">hosp_info,</if> |
| | | <if test="searchscope != null and searchscope != ''">searchscope,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | | <if test="deptId != null and deptId != ''">#{deptId},</if> |
| | | <if test="userName != null and userName != ''">#{userName},</if> |
| | | <if test="nickName != null and nickName != ''">#{nickName},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="avatar != null and avatar != ''">#{avatar},</if> |
| | | <if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">#{sex},</if> |
| | | <if test="password != null and password != ''">#{password},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="userType != null and userType != ''">#{userType},</if> |
| | | <if test="deptInfo != null and deptInfo != ''">#{deptInfo},</if> |
| | | <if test="hospInfo != null and hospInfo != ''">#{hospInfo},</if> |
| | | <if test="searchscope != null and searchscope != ''">#{searchscope},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | update sys_user |
| | | <set> |
| | | <if test="deptId != null and deptId != 0">dept_id = #{deptId},</if> |
| | | <if test="userName != null and userName != ''">user_name = #{userName},</if> |
| | | <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if> |
| | | <if test="email != null ">email = #{email},</if> |
| | | <if test="phonenumber != null ">phonenumber = #{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">sex = #{sex},</if> |
| | | <if test="avatar != null and avatar != ''">avatar = #{avatar},</if> |
| | | <if test="password != null and password != ''">password = #{password},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if> |
| | | <if test="loginDate != null">login_date = #{loginDate},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |
| | | </update> |
| | | <update id="updateUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | update sys_user |
| | | <set> |
| | | <if test="deptId != null and deptId != 0">dept_id = #{deptId},</if> |
| | | <if test="userName != null and userName != ''">user_name = #{userName},</if> |
| | | <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if> |
| | | <if test="email != null ">email = #{email},</if> |
| | | <if test="phonenumber != null ">phonenumber = #{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">sex = #{sex},</if> |
| | | <if test="avatar != null and avatar != ''">avatar = #{avatar},</if> |
| | | <if test="password != null and password != ''">password = #{password},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if> |
| | | <if test="loginDate != null">login_date = #{loginDate},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="userType != null">user_type = #{userType},</if> |
| | | <if test="searchscope != null">searchscope = #{searchscope},</if> |
| | | <if test="deptInfo != null and deptInfo != ''">dept_info=#{deptInfo},</if> |
| | | <if test="hospInfo != null and hospInfo != ''">hosp_info=#{hospInfo},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |
| | | </update> |
| | | |
| | | <update id="updateUserStatus" parameterType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | update sys_user set status = #{status} where user_id = #{userId} |
| | | </update> |
| | | <update id="updateUserStatus" parameterType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | update sys_user |
| | | set status = #{status} |
| | | where user_id = #{userId} |
| | | </update> |
| | | |
| | | <update id="updateUserAvatar" parameterType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | update sys_user set avatar = #{avatar} where user_name = #{userName} |
| | | </update> |
| | | <update id="updateUserAvatar" parameterType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | update sys_user |
| | | set avatar = #{avatar} |
| | | where user_name = #{userName} |
| | | </update> |
| | | |
| | | <update id="resetUserPwd" parameterType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | update sys_user set password = #{password} where user_name = #{userName} |
| | | </update> |
| | | <update id="resetUserPwd" parameterType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | update sys_user |
| | | set password = #{password} |
| | | where user_name = #{userName} |
| | | </update> |
| | | |
| | | <delete id="deleteUserById" parameterType="Long"> |
| | | update sys_user set del_flag = '2' where user_id = #{userId} |
| | | </delete> |
| | | <delete id="deleteUserById" parameterType="Long"> |
| | | update sys_user |
| | | set del_flag = '2' |
| | | where user_id = #{userId} |
| | | </delete> |
| | | |
| | | <delete id="deleteUserByIds" parameterType="Long"> |
| | | update sys_user set del_flag = '2' where user_id in |
| | | <foreach collection="array" item="userId" open="(" separator="," close=")"> |
| | | #{userId} |
| | | <delete id="deleteUserByIds" parameterType="Long"> |
| | | update sys_user set del_flag = '2' where user_id in |
| | | <foreach collection="array" item="userId" open="(" separator="," close=")"> |
| | | #{userId} |
| | | </foreach> |
| | | </delete> |
| | | </delete> |
| | | |
| | | </mapper> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="æä½" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | |
| | | <el-form-item prop="perms"> |
| | | <el-input v-model="form.perms" placeholder="请è¾å
¥æéæ è¯" maxlength="100" /> |
| | | <span slot="label"> |
| | | <el-tooltip content="æ§å¶å¨ä¸å®ä¹çæéå符ï¼å¦ï¼@PreAuthorize(`@ss.hasPermi('system:user:list')`)" placement="top"> |
| | | <el-tooltip content="æ§å¶å¨ä¸å®ä¹çæéå符ï¼å¦ï¼//@PreAuthorize(`@ss.hasPermi('system:user:list')`)" placement="top"> |
| | | <i class="el-icon-question"></i> |
| | | </el-tooltip> |
| | | æéå符 |
| | |
| | | </el-form-item> |
| | | <el-form-item prop="roleKey"> |
| | | <span slot="label"> |
| | | <el-tooltip content="æ§å¶å¨ä¸å®ä¹çæéå符ï¼å¦ï¼@PreAuthorize(`@ss.hasRole('admin')`)" placement="top"> |
| | | <el-tooltip content="æ§å¶å¨ä¸å®ä¹çæéå符ï¼å¦ï¼//@PreAuthorize(`@ss.hasRole('admin')`)" placement="top"> |
| | | <i class="el-icon-question"></i> |
| | | </el-tooltip> |
| | | æéå符 |
| | |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | </script> |
| | |
| | | @ApiModelProperty("坿æ¬") |
| | | private String richText = ""; |
| | | |
| | | /** |
| | | * htmlå¯ææ¬ |
| | | */ |
| | | @ApiModelProperty("html坿æ¬") |
| | | private String htmlRichText; |
| | | } |
| | |
| | | */ |
| | | @ApiModelProperty("ç±»åï¼1宣æ 2éç¥") |
| | | private String hetype; |
| | | |
| | | /** |
| | | * htmlå¯ææ¬ |
| | | */ |
| | | @ApiModelProperty("html坿æ¬") |
| | | private String htmlRichText; |
| | | } |
| | |
| | | private Integer longTemp; |
| | | |
| | | /** |
| | | * é¨é¨ç¼ç |
| | | */ |
| | | @ApiModelProperty(value = "é¨é¨ç¼ç ") |
| | | private String deptCode; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | | @ApiModelProperty(value = "pageNum") |
| | |
| | | @ApiModelProperty(value = "æå¯¼è¯") |
| | | private String instruction; |
| | | |
| | | /** |
| | | * é¨é¨ç¼ç |
| | | */ |
| | | @ApiModelProperty(value = "é¨é¨ç¼ç ") |
| | | private String deptCode; |
| | | |
| | | |
| | | |
| | | /** |
| | | * åºé¢å¤©æ°ï¼é¿æä»»å¡ï¼åºå®é¢åï¼ç¬¬å 天åéä¿¡æ¯ï¼ |
| | |
| | | private String instruction; |
| | | |
| | | /** |
| | | * åºé¢å¤©æ°ï¼é¿æä»»å¡ï¼åºå®é¢åï¼ç¬¬å 天åéä¿¡æ¯ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢å¤©æ°ï¼é¿æä»»å¡ï¼åºå®é¢åï¼ç¬¬å 天åéä¿¡æ¯ï¼") |
| | | private Integer sendDay; |
| | | |
| | | /** |
| | | * é¨é¨ç¼ç |
| | | */ |
| | | @ApiModelProperty(value = "é¨é¨ç¼ç ") |
| | | private String deptCode; |
| | | |
| | | |
| | | /** |
| | | * å
è®¸éæ¨æ¬¡æ° |
| | | */ |
| | | @Excel(name = "å
è®¸éæ¨æ¬¡æ°") |
| | |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty("GUID") |
| | | private Long guid; |
| | | private String guid; |
| | | |
| | | /** |
| | | * å§å |
| | |
| | | private String patientno; |
| | | |
| | | /** |
| | | * æå¡æ è¯ï¼0ï¼éè¦ï¼1ï¼ä¸éè¦ |
| | | */ |
| | | @ApiModelProperty("æå¡æ è¯ï¼0ï¼éè¦ï¼1ï¼ä¸éè¦") |
| | | @Excel(name = " æå¡æ è¯ï¼0ï¼éè¦ï¼1ï¼ä¸éè¦ ") |
| | | private String notrequiredFlag; |
| | | |
| | | /** |
| | | * ä¸è¦æå¡çåå |
| | | */ |
| | | @ApiModelProperty("ä¸è¦æå¡çåå ") |
| | | @Excel(name = " ä¸è¦æå¡çåå ") |
| | | private String notrequiredreason; |
| | | |
| | | /** |
| | | * æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼ |
| | | */ |
| | | @ApiModelProperty("æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼") |
| | | @Excel(name = " æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼ ") |
| | | private int sourcefrom; |
| | | private Integer sourcefrom; |
| | | |
| | | /** |
| | | * hisç³»ç»çæ£è
id |
| | | */ |
| | | @ApiModelProperty("hisç³»ç»çæ£è
id") |
| | | @Excel(name = "hisç³»ç»çæ£è
id") |
| | | private int patidHis; |
| | | private Integer patidHis; |
| | | |
| | | /** |
| | | * hisç³»ç»çæ£è
id |
| | |
| | | @ApiModelProperty("ç±è´¯") |
| | | @Excel(name = " ç±è´¯ ") |
| | | private String nativePlace; |
| | | |
| | | /** |
| | | * ä½é¢å· |
| | | */ |
| | | @ApiModelProperty(value = "ä½é¢å·") |
| | | private String inhospno; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | |
| | | @ApiModelProperty("å¹´é¾") |
| | | @Excel(name = " å¹´é¾ ") |
| | | private Long age; |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @ApiModelProperty("å¹´é¾åä½") |
| | | @Excel(name = " å¹´é¾åä½ ") |
| | | private String ageUnit; |
| | | |
| | | /** |
| | | * 建档æ¶é´ |
| | |
| | | @Excel(name = " ç§å®¤ ") |
| | | private String dept; |
| | | |
| | | /** |
| | | * ééå· |
| | | */ |
| | | @ApiModelProperty("ç§å®¤") |
| | | @Excel(name = " ç§å®¤ ") |
| | | private String deptcode; |
| | | /** |
| | | * å»çå§å |
| | | */ |
| | | @ApiModelProperty("å»çå§å") |
| | | @Excel(name = " å»çå§å ") |
| | | private String drname; |
| | | |
| | | /** |
| | | * å»çç¼ç |
| | | */ |
| | | @ApiModelProperty("å»çç¼ç ") |
| | | @Excel(name = " å»çç¼ç ") |
| | | private String drcode; |
| | | |
| | | /** |
| | | * ééå· |
| | |
| | | @Excel(name = " ä¼å屿§:0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å ") |
| | | private String viptype; |
| | | |
| | | @ApiModelProperty("åºé¢ç
åºåç§°") |
| | | private String leavehospitaldistrictname; |
| | | |
| | | @ApiModelProperty("åºé¢ç
åºç¼å·") |
| | | private String leavehospitaldistrictcode; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Excel导å
¥æ£è
æ¡£æ¡å¯¹è±¡ pat_archive_import |
| | | * |
| | | * @author lihu |
| | | * @date 2024-09-05 |
| | | */ |
| | | @Data |
| | | @ApiModel("Excel导å
¥æ£è
æ¡£æ¡") |
| | | public class PatArchiveImport extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty("èªå¢ID") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @ApiModelProperty("å§å") |
| | | @Excel(name = "å§åï¼å¿
å¡«ï¼") |
| | | private String name; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @ApiModelProperty("è¯ä»¶å·ç ") |
| | | @Excel(name = "è¯ä»¶å·ç (å¿
å¡«)",cellType = Excel.ColumnType.NUMERIC) |
| | | private String idcardno; |
| | | |
| | | /** |
| | | * ææºå·ç |
| | | */ |
| | | @ApiModelProperty("ææºå·ç ") |
| | | @Excel(name = "ææºå·ç (å¿
å¡«)",cellType = Excel.ColumnType.STRING) |
| | | private String telcode; |
| | | |
| | | /** |
| | | * æ¹æ¬¡åç§° |
| | | */ |
| | | @ApiModelProperty("æ¹æ¬¡åç§°") |
| | | @Excel(name = "æ¹æ¬¡åç§°ï¼å¿
å¡«ï¼",cellType = Excel.ColumnType.STRING) |
| | | private String batchName; |
| | | |
| | | |
| | | /** |
| | | * æ£è
ç¼å· |
| | | */ |
| | | @ApiModelProperty("æ£è
ç¼å·") |
| | | @Excel(name = "æ£è
ç¼å·",cellType = Excel.ColumnType.STRING) |
| | | private String patientno; |
| | | |
| | | /** |
| | | * æ£è
ç±»åï¼1ãé¨è¯ã2ãä½é¢ã3ã使£ |
| | | */ |
| | | @ApiModelProperty("æ£è
ç±»åï¼1ãé¨è¯ã2ãä½é¢ã3ã使£") |
| | | @Excel(name = "æ£è
ç±»åï¼1ãé¨è¯ã2ãä½é¢ã3ã使£", width = 25.00) |
| | | private String pattype; |
| | | |
| | | |
| | | /** |
| | | * æ§å« 1:ç· 2:女 |
| | | */ |
| | | @ApiModelProperty("æ§å« 1:ç· 2:女") |
| | | @Excel(name = "æ§å« 1:ç· 2:女") |
| | | private Long sex; |
| | | |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @ApiModelProperty("å¹´é¾") |
| | | @Excel(name = "å¹´é¾") |
| | | private Long age; |
| | | |
| | | |
| | | /** |
| | | * 微信openid |
| | | */ |
| | | @ApiModelProperty("微信openid ") |
| | | private String openid; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | @ApiModelProperty("å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼") |
| | | private String delFlag; |
| | | |
| | | |
| | | /** |
| | | * æ¹æ¬¡å· |
| | | */ |
| | | @ApiModelProperty("æ¹æ¬¡å·") |
| | | private String batchNo; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
åºå
¥é¢ãé¨è¯ä¿¡æ¯ PatArchiveOthreInfo |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @ApiModel(value = "PatArchiveOthreInfo", description = "æ£è
åºå
¥é¢ãé¨è¯ä¿¡æ¯") |
| | | @Data |
| | | public class PatArchiveOthreInfo extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty("èªå¢ID") |
| | | private Long id; |
| | | |
| | | |
| | | /** |
| | | * æå¡æ è¯ï¼1ï¼éè¦ï¼0ï¼ä¸éè¦ |
| | | */ |
| | | @ApiModelProperty("æå¡æ è¯ï¼1ï¼éè¦ï¼0ï¼ä¸éè¦") |
| | | @Excel(name = " æå¡æ è¯ï¼1ï¼éè¦ï¼0ï¼ä¸éè¦ ") |
| | | private String notrequiredFlag; |
| | | |
| | | /** |
| | | * ä¸è¦æå¡çåå |
| | | */ |
| | | @ApiModelProperty("ä¸è¦æå¡çåå ") |
| | | @Excel(name = " ä¸è¦æå¡çåå ") |
| | | private String notrequiredreason; |
| | | |
| | | |
| | | /** |
| | | * ä½é¢å· |
| | | */ |
| | | @ApiModelProperty(value = "ä½é¢å·") |
| | | private String inhospno; |
| | | |
| | | /** |
| | | * åºé¢æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åºé¢æ¶é´") |
| | | private Date endtime; |
| | | |
| | | /** |
| | | * 责任æ¤å£«ç¼ç |
| | | */ |
| | | @ApiModelProperty(value = "责任æ¤å£«ç¼ç ") |
| | | private String nurseId; |
| | | |
| | | /** |
| | | * 责任æ¤å£« |
| | | */ |
| | | @ApiModelProperty(value = "责任æ¤å£«") |
| | | private String nurseName; |
| | | |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty("ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty("GUID") |
| | | private Long guid; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @ApiModelProperty("æ£è
ç¼å·") |
| | | @Excel(name = " æ£è
ç¼å· ") |
| | | private String patientno; |
| | | |
| | | /** |
| | | * æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼ |
| | | */ |
| | | @ApiModelProperty("æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼") |
| | | @Excel(name = " æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼ ") |
| | | private Integer sourcefrom; |
| | | |
| | | /** |
| | | * hisç³»ç»çæ£è
id |
| | | */ |
| | | @ApiModelProperty("hisç³»ç»çæ£è
id") |
| | | @Excel(name = "hisç³»ç»çæ£è
id") |
| | | private Integer patidHis; |
| | | |
| | | /** |
| | | * hisç³»ç»çæ£è
id |
| | | */ |
| | | @ApiModelProperty("hisç³»ç»çæ£è
id") |
| | | @Excel(name = "hisç³»ç»çæ£è
id") |
| | | private String sdFlag; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @ApiModelProperty("å§å") |
| | | @Excel(name = " å§å ") |
| | | private String name; |
| | | |
| | | /** |
| | | * æ§å« 1:ç· 2:女 |
| | | */ |
| | | @ApiModelProperty("æ§å«") |
| | | @Excel(name = " æ§å« ") |
| | | private Long sex; |
| | | |
| | | /** |
| | | * è¯ä»¶ç±»å |
| | | */ |
| | | @ApiModelProperty("è¯ä»¶ç±»å") |
| | | @Excel(name = " è¯ä»¶ç±»å ") |
| | | private String idcardtype; |
| | | |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @ApiModelProperty("ç±è´¯") |
| | | @Excel(name = " ç±è´¯ ") |
| | | private String nativePlace; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @ApiModelProperty("å±
ä½å°") |
| | | @Excel(name = " å±
ä½å° ") |
| | | private String placeOfResidence; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @ApiModelProperty("åºçå°") |
| | | @Excel(name = " åºçå° ") |
| | | private String birthplace; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @ApiModelProperty("è¯ä»¶å·ç ") |
| | | @Excel(name = " è¯ä»¶å·ç ") |
| | | private String idcardno; |
| | | |
| | | /** |
| | | * çæ¥ |
| | | */ |
| | | @ApiModelProperty("çæ¥") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " çæ¥ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date birthdate; |
| | | |
| | | /** |
| | | * å
¥é¢æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty("å
¥é¢æ¶é´") |
| | | private Date starttime; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @ApiModelProperty("å¹´é¾") |
| | | @Excel(name = " å¹´é¾ ") |
| | | private Long age; |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @ApiModelProperty("å¹´é¾åä½") |
| | | @Excel(name = " å¹´é¾åä½ ") |
| | | private String ageUnit; |
| | | |
| | | /** |
| | | * 建档æ¶é´ |
| | | */ |
| | | @ApiModelProperty("建档æ¶é´") |
| | | @Excel(name = " 建档æ¶é´ ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date archivetime; |
| | | |
| | | /** |
| | | * 建档人 |
| | | */ |
| | | @ApiModelProperty("建档人") |
| | | @Excel(name = " 建档人 ") |
| | | private String archiveby; |
| | | |
| | | /** |
| | | * ææºå·ç |
| | | */ |
| | | @ApiModelProperty("ææºå·ç ") |
| | | @Excel(name = " ææºå·ç ") |
| | | private String telcode; |
| | | |
| | | |
| | | /** |
| | | * 亲å±å·ç |
| | | */ |
| | | @ApiModelProperty("亲å±å·ç ") |
| | | @Excel(name = " 亲å±å·ç ") |
| | | private String relativetelcode; |
| | | |
| | | /** |
| | | * æ°æ |
| | | */ |
| | | @ApiModelProperty("æ°æ") |
| | | @Excel(name = " æ°æ ") |
| | | private String nation; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("æºæID") |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * 微信openid |
| | | */ |
| | | @ApiModelProperty("微信openid") |
| | | @Excel(name = " 微信openid ") |
| | | private String openid; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty("å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @ApiModelProperty("æ ç¾") |
| | | @Excel(name = " æ ç¾ ", cellType = Excel.ColumnType.STRING) |
| | | private String tag; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @ApiModelProperty("æ ç¾id") |
| | | @Excel(name = " æ ç¾id ", cellType = Excel.ColumnType.STRING) |
| | | private Long tagid; |
| | | |
| | | @ApiModelProperty("æ ç¾éå") |
| | | private List<PatArchivetag> tagList; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @ApiModelProperty("æ£è
ç±»å") |
| | | @Excel(name = " æ£è
ç±»å ", cellType = Excel.ColumnType.STRING) |
| | | private String pattype; |
| | | |
| | | /** |
| | | * ééå· |
| | | */ |
| | | @ApiModelProperty("ééå·") |
| | | @Excel(name = " ééå· ") |
| | | private String dduserid; |
| | | |
| | | /** |
| | | * ééå· |
| | | */ |
| | | @ApiModelProperty("ç§å®¤") |
| | | @Excel(name = " ç§å®¤ ") |
| | | private String dept; |
| | | |
| | | /** |
| | | * ééå· |
| | | */ |
| | | @ApiModelProperty("ç§å®¤") |
| | | @Excel(name = " ç§å®¤ ") |
| | | private String deptcode; |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @ApiModelProperty("ç§å®¤åç§°") |
| | | @Excel(name = " ç§å®¤åç§° ") |
| | | private String deptname; |
| | | |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @ApiModelProperty("ææºå·") |
| | | @Excel(name = " ææºå· ") |
| | | private String phone; |
| | | /** |
| | | * å»çå§å |
| | | */ |
| | | @ApiModelProperty("å»çå§å") |
| | | @Excel(name = " å»çå§å ") |
| | | private String drname; |
| | | |
| | | /** |
| | | * å»çç¼ç |
| | | */ |
| | | @ApiModelProperty("å»çç¼ç ") |
| | | @Excel(name = " å»çç¼ç ") |
| | | private String drcode; |
| | | |
| | | /** |
| | | * ééå· |
| | | */ |
| | | @ApiModelProperty("ç§å®¤") |
| | | @Excel(name = " ç§å®¤ ") |
| | | private String bedNo; |
| | | |
| | | /** |
| | | * ä¼å屿§:0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å |
| | | */ |
| | | @ApiModelProperty("ä¼å屿§:0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å") |
| | | @Excel(name = " ä¼å屿§:0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å ") |
| | | private String viptype; |
| | | |
| | | @ApiModelProperty("åºé¢ç
åºåç§°") |
| | | private String leavehospitaldistrictname; |
| | | |
| | | @ApiModelProperty("åºé¢ç
åºç¼å·") |
| | | private String leavehospitaldistrictcode; |
| | | |
| | | |
| | | } |
| | |
| | | private boolean isFilter = false; |
| | | |
| | | |
| | | /** |
| | | * åºé¢ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºç¼å·") |
| | | private String leavehospitaldistrictcode; |
| | | |
| | | /** |
| | | * åºé¢ç
åºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºåç§°") |
| | | @Excel(name = " åºé¢ç
åºåç§° ") |
| | | private String leavehospitaldistrictname; |
| | | |
| | | /** |
| | | * ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "ç
åºç¼å·") |
| | | private List<String> leavehospitaldistrictcodes; |
| | | |
| | | /** |
| | | * ç§å®¤ç¼ç |
| | | */ |
| | | @ApiModelProperty(value = "ç§å®¤ç¼ç ") |
| | | @Excel(name = " ç§å®¤ç¼ç ") |
| | | private List<String> leaveldeptcodes; |
| | | } |
| | |
| | | private Long inhospid; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | * ä½é¢å· |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | @ApiModelProperty(value = "ä½é¢å·") |
| | | private String inhospno; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value = "æµæ°´å·") |
| | | private String serialnum; |
| | | |
| | | /** |
| | | * æ¤å£«ID |
| | | */ |
| | | @ApiModelProperty(value = "æ¤å£«ID") |
| | | private String nurseId; |
| | | |
| | | /** |
| | | * æ¤å£«å§å |
| | | */ |
| | | @ApiModelProperty(value = "æ¤å£«å§å") |
| | | private String nurseName; |
| | | |
| | | /** |
| | | * å»é¢åç§° |
| | |
| | | /** |
| | | * é¿æä»»å¡ï¼æ¯å¦å¤çï¼0æªå¤ç 1å¤ç |
| | | */ |
| | | @ApiModelProperty(value = "é¿æä»»å¡ï¼æ¯å¦å¤çï¼0æªå¤ç 1å¤ç") |
| | | @ApiModelProperty(value = "é¿æä»»å¡ï¼æ¯å¦å¤çï¼0æªå¤ç 1å¤çæå 2å¤ç失败") |
| | | private String checkFlag; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @ApiModelProperty(value = "å¹´é¾") |
| | | private String age; |
| | | |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @ApiModelProperty(value = "ææºå·") |
| | | private String telcode; |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @ApiModelProperty(value = "ææºå·") |
| | | private String longTaskReason; |
| | | |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | | @ApiModelProperty("pageNum") |
| | | private Integer pageNum; |
| | | |
| | | /** |
| | | * pageSize |
| | | */ |
| | | @ApiModelProperty("pageSize") |
| | | private Integer pageSize; |
| | | /** |
| | | * åºé¢æ¹å¼åºå· |
| | | */ |
| | | @ApiModelProperty("åºé¢æ¹å¼åºå·") |
| | | @Excel(name = "åºé¢æ¹å¼åºå·") |
| | | private String outWayId; |
| | | |
| | | /** |
| | | * åºé¢æ¹å¼åç§° |
| | | */ |
| | | @ApiModelProperty("åºé¢æ¹å¼åç§°") |
| | | @Excel(name = "åºé¢æ¹å¼åç§°") |
| | | private String outWayName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
ä½é¢è®°å½å¯¹è±¡ pat_med_inhosp |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @ApiModel(value = "PatMedInhosp", description = "æ£è
ä½é¢è®°å½å¯¹è±¡") |
| | | @Data |
| | | public class PatMedInhospVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | private Long inhospid; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | private String inhospno; |
| | | |
| | | /** |
| | | * æ¤å£«ID |
| | | */ |
| | | @ApiModelProperty(value = "æ¤å£«ID") |
| | | private String nurseId; |
| | | |
| | | /** |
| | | * æ¤å£«å§å |
| | | */ |
| | | @ApiModelProperty(value = "æ¤å£«å§å") |
| | | private String nurseName; |
| | | |
| | | /** |
| | | * æµæ°´å· |
| | | */ |
| | | @ApiModelProperty(value = "æµæ°´å·") |
| | | private String serialnum; |
| | | |
| | | /** |
| | | * å»é¢åç§° |
| | | */ |
| | | @ApiModelProperty(value = "å»é¢åç§°") |
| | | @Excel(name = " å»é¢åç§° ") |
| | | private String hospitalname; |
| | | |
| | | /** |
| | | * å»é¢ç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "å»é¢ç¼å·") |
| | | private String hospitalcode; |
| | | |
| | | /** |
| | | * é¢åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "é¢åºç¼å·") |
| | | private String hospitaldistrictcode; |
| | | |
| | | /** |
| | | * é¢åºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "é¢åºåç§°") |
| | | @Excel(name = " é¢åºåç§° ") |
| | | private String hospitaldistrictname; |
| | | |
| | | /** |
| | | * å
¥é¢è¯æICDå¼ |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢è¯æICDå¼") |
| | | private String icd10code; |
| | | |
| | | /** |
| | | * å
¥é¢è¯æåç§° |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢è¯æåç§°") |
| | | private String diagname; |
| | | |
| | | /** |
| | | * å
¥é¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " å
¥é¢æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date starttime; |
| | | |
| | | /** |
| | | * åºé¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " åºé¢æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date endtime; |
| | | |
| | | /** |
| | | * å
¥é¢ç§å®¤ä»£ç |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢ç§å®¤ä»£ç ") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * å
¥é¢ç§å®¤åç§° |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢ç§å®¤åç§°") |
| | | private String deptname; |
| | | |
| | | /** |
| | | * æ¿é´å· |
| | | */ |
| | | @ApiModelProperty(value = "æ¿é´å·") |
| | | private String roomno; |
| | | |
| | | /** |
| | | * åºä½å· |
| | | */ |
| | | @ApiModelProperty(value = "åºä½å·") |
| | | @Excel(name = " åºä½å· ") |
| | | private String bedNo; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æ¡£æ¡ID |
| | | */ |
| | | @ApiModelProperty(value = "æ¡£æ¡ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * åºé¢è¯æ |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢è¯æ") |
| | | @Excel(name = " åºé¢è¯æ ") |
| | | private String leavediagname; |
| | | |
| | | /** |
| | | * åºé¢è¯æICDå¼ |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢è¯æICDå¼") |
| | | private String leaveicd10code; |
| | | |
| | | /** |
| | | * å»çå·¥å· |
| | | */ |
| | | @ApiModelProperty(value = "å»çå·¥å·") |
| | | private String drcode; |
| | | |
| | | /** |
| | | * å»çåç§° |
| | | */ |
| | | @ApiModelProperty(value = "å»çåç§°") |
| | | @Excel(name = " å»çåç§° ") |
| | | private String drname; |
| | | |
| | | /** |
| | | * æ¯å¦çææ¹æ¡ç¶æ;0æªçæ 1çæå
¥é¢ 2çæåºé¢ 9æ å¹é
æ¹æ¡ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦çææ¹æ¡ç¶æ;0æªçæ 1çæå
¥é¢ 2çæåºé¢ 9æ å¹é
æ¹æ¡") |
| | | private Long schemestatus; |
| | | |
| | | /** |
| | | * æ¯å¦çæéç¨æ¹æ¡ç¶æ;0æªçæ 1çæ 9æ å¹é
æ¹æ¡ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦çæéç¨æ¹æ¡ç¶æ;0æªçæ 1çæ 9æ å¹é
æ¹æ¡") |
| | | private Long generalschemestatus; |
| | | |
| | | /** |
| | | * åºé¢ç§å®¤ä»£ç éå |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç§å®¤ä»£ç éå") |
| | | private List<String> leaveldeptcodes; |
| | | |
| | | /** |
| | | * åºé¢ç§å®¤åç§° |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç§å®¤åç§°") |
| | | @Excel(name = " åºé¢ç§å®¤åç§° ") |
| | | private String leaveldeptname; |
| | | |
| | | /** |
| | | * ç
åºID |
| | | */ |
| | | @ApiModelProperty(value = "ç
åºID") |
| | | private String hospitaldistrictid; |
| | | |
| | | |
| | | /** |
| | | * åºé¢ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºç¼å·éå") |
| | | private List<String> leavehospitaldistrictcodes; |
| | | |
| | | /** |
| | | * åºé¢ç
åºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºåç§°") |
| | | @Excel(name = " åºé¢ç
åºåç§° ") |
| | | private String leavehospitaldistrictname; |
| | | |
| | | /** |
| | | * åºé¢ç
åºID |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºID") |
| | | private String leavehospitaldistrictid; |
| | | |
| | | /** |
| | | * å
¥é¢ç§å®¤ID |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢ç§å®¤ID") |
| | | private String deptid; |
| | | |
| | | /** |
| | | * åºé¢ç§å®¤ID |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç§å®¤ID") |
| | | private String leaveldeptid; |
| | | |
| | | /** |
| | | * æ¹æ¡ç¶ææä½æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "æ¹æ¡ç¶ææä½æ¶é´") |
| | | private Date schemetime; |
| | | |
| | | /** |
| | | * æ£è
å§å |
| | | */ |
| | | @ApiModelProperty(value = "æ£è
å§å") |
| | | private String patname; |
| | | |
| | | /** |
| | | * æ£è
ç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "æ£è
ç¼å·") |
| | | private String patno; |
| | | |
| | | /** |
| | | * ä½é¢æ è¯ï¼ 0ï¼å¨é¢ 1ï¼åºé¢ 2ï¼è½¬ç§ |
| | | */ |
| | | @ApiModelProperty(value = "ä½é¢æ è¯ï¼ 0ï¼å¨é¢ 1ï¼åºé¢ 2ï¼è½¬ç§") |
| | | private String inhospstate; |
| | | |
| | | /** |
| | | * é¿æä»»å¡ï¼æ¯å¦å¤çï¼0æªå¤ç 1å¤ç |
| | | */ |
| | | @ApiModelProperty(value = "é¿æä»»å¡ï¼æ¯å¦å¤çï¼0æªå¤ç 1å¤ç") |
| | | private String checkFlag; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @ApiModelProperty(value = "å¹´é¾") |
| | | private String age; |
| | | |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @ApiModelProperty(value = "ææºå·") |
| | | private String telcode; |
| | | |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | | @ApiModelProperty("pageNum") |
| | | private Integer pageNum; |
| | | |
| | | /** |
| | | * pageSize |
| | | */ |
| | | @ApiModelProperty("pageSize") |
| | | private Integer pageSize; |
| | | |
| | | } |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | private String name; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @Excel(name = "å»çç¼ç ") |
| | | @ApiModelProperty("å»çç¼ç ") |
| | | private String drcode; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @Excel(name = "å»çå§å") |
| | | @ApiModelProperty("å»çå§å") |
| | | private String drname; |
| | | |
| | | /** |
| | | * 责任æ¤å£«ç¼ç |
| | | */ |
| | | @Excel(name = "责任æ¤å£«ç¼ç ") |
| | | @ApiModelProperty("责任æ¤å£«ç¼ç ") |
| | | private String nurseId; |
| | | |
| | | /** |
| | | * 责任æ¤å£«å§å |
| | | */ |
| | | @Excel(name = "责任æ¤å£«å§å") |
| | | @ApiModelProperty("责任æ¤å£«å§å") |
| | | private String nurseName; |
| | | |
| | | |
| | | /** |
| | | * 身份è¯å· |
| | | */ |
| | | @Excel(name = "身份è¯å·") |
| | | @ApiModelProperty("身份è¯å·") |
| | | private String sfzh; |
| | | |
| | | /** |
| | | * 身份è¯å· |
| | | */ |
| | | @Excel(name = "身份è¯å·") |
| | | @ApiModelProperty("身份è¯å·") |
| | | private String idcardno; |
| | | /** |
| | | * 身份è¯å· |
| | | */ |
| | | @Excel(name = "身份è¯å·") |
| | | @ApiModelProperty("身份è¯å·") |
| | | private String idcardtype; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | |
| | | * åéæ¶é´ |
| | | */ |
| | | @Excel(name = "åéæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty("åéæ¶é´") |
| | | private Date sendTime; |
| | | |
| | |
| | | * å
¥é¢æ¶é´ |
| | | */ |
| | | @Excel(name = "å
¥é¢æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty("å
¥é¢æ¶é´") |
| | | private Date inhosptime; |
| | | |
| | |
| | | * åéæ¶é´ |
| | | */ |
| | | @Excel(name = "å°±è¯æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty("å°±è¯æ¶é´") |
| | | private Date visitTime; |
| | | |
| | |
| | | @ApiModelProperty(value = "ææ¬åéåæ°") |
| | | private String textParam; |
| | | |
| | | /** |
| | | * åºé¢ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºç¼å·") |
| | | private String leavehospitaldistrictcode; |
| | | |
| | | /** |
| | | * åºé¢ç
åºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºåç§°") |
| | | @Excel(name = " åºé¢ç
åºåç§° ") |
| | | private String leavehospitaldistrictname; |
| | | |
| | | |
| | | /** |
| | | * åºé¢æ¶é´ |
| | | */ |
| | | // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åºé¢æ¶é´") |
| | | private Date endtime; |
| | | |
| | | /** |
| | | * å
¥é¢æ¶é´ |
| | | */ |
| | | // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "å
¥é¢æ¶é´") |
| | | private Date starttime; |
| | | |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | private Date finishtime; |
| | | |
| | | } |
| | |
| | | */ |
| | | @Excel(name = " åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | @ApiModelProperty(value = "åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | private Integer sendState; |
| | | private Long sendState; |
| | | |
| | | /** |
| | | * ä»»å¡ç±»åï¼ 1 é访 2 é®å· 3 宣æ |
| | |
| | | @ApiModelProperty(value = "æ£è
ID") |
| | | private String param2; |
| | | |
| | | @ApiModelProperty(value = "å¼å¸¸æ è¯") |
| | | private String excep; |
| | | |
| | | // @ApiModelProperty(value = "è¯å·ç±»å:1 é访 2 é®å·") |
| | | // private Integer type; |
| | | |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * |
| | | * ä»»å¡ID |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String guid; |
| | | |
| | | /** |
| | | * å¼å¸¸æ è¯ |
| | | */ |
| | | @ApiModelProperty(value = "å¼å¸¸æ è¯") |
| | | @Excel(name = " å¼å¸¸æ è¯ ") |
| | | private String excep; |
| | | |
| | | /** |
| | | * åºé¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢æ¶é´") |
| | | private Date endtime; |
| | | |
| | | /** |
| | | * å
¥é¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢æ¶é´") |
| | | private Date starttime; |
| | | |
| | | /** |
| | | * æ¯å¦æäº¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦æäº¤ï¼0æªæäº¤ 1å·²æäº¤") |
| | | private Long submit; |
| | | |
| | | /** |
| | | * åé人 |
| | |
| | | private String templatename; |
| | | |
| | | /** |
| | | * åå¤çæè§ï¼1æä¸å¤çã2éç¥å°±è¯ã3ç
æ
稳å®ã4人工é访ã5失访éUUID |
| | | */ |
| | | @Excel(name = " å¤çæè§ï¼1æä¸å¤çã2éç¥å°±è¯ã3ç
æ
稳å®ã4人工é访ã5失访 ") |
| | | @ApiModelProperty(value = "å¤çæè§ï¼1æä¸å¤çã2éç¥å°±è¯ã3ç
æ
稳å®ã4人工é访ã5失访") |
| | | private String suggest; |
| | | |
| | | /** |
| | | * å鿥æ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | |
| | | * åéç¶æ |
| | | */ |
| | | @Excel(name = " åéç¶æ ") |
| | | @ApiModelProperty(value = "åéç¶æ 1 被é¢å 2 å¾
åé 3 å·²åé") |
| | | @ApiModelProperty(value = "åéç¶æ 1 被é¢å 2 å¾
åé 3 å·²åé 4 䏿§è¡ 5 åé失败") |
| | | private Long sendstate; |
| | | |
| | | /** |
| | | * æåç¶ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1 |
| | | */ |
| | | @Excel(name = " æåç¶ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1 ") |
| | | @ApiModelProperty(value = "æåç¶ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1") |
| | | private Long stopState; |
| | | |
| | | /** |
| | | * åéUUID |
| | |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " 宿æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | private Date finishtime; |
| | | |
| | |
| | | @Excel(name = " é¨é¨code") |
| | | @ApiModelProperty(value = "é¨é¨code") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * å»çç¼ç |
| | | */ |
| | | @Excel(name = " å»çç¼ç ") |
| | | @ApiModelProperty(value = "å»çç¼ç ") |
| | | private String drcode; |
| | | |
| | | /** |
| | | * å»çå§å |
| | | */ |
| | | @Excel(name = " å»çå§å") |
| | | @ApiModelProperty(value = "å»çå§å") |
| | | private String drname; |
| | | |
| | | /** |
| | | * æ ç¾ç¶æ |
| | |
| | | @ApiModelProperty(value = "é¿æä»»å¡ï¼ç»æ£è
åéçæ¶é´") |
| | | private Date longSendTime; |
| | | |
| | | /** |
| | | * 责任æ¤å£«ç¼ç |
| | | */ |
| | | @Excel(name = "责任æ¤å£«ç¼ç ") |
| | | @ApiModelProperty("责任æ¤å£«ç¼ç ") |
| | | private String nurseId; |
| | | |
| | | /** |
| | | * 责任æ¤å£«å§å |
| | | */ |
| | | @Excel(name = "责任æ¤å£«å§å") |
| | | @ApiModelProperty("责任æ¤å£«å§å") |
| | | private String nurseName; |
| | | |
| | | /** |
| | | * åºé¢ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºç¼å·") |
| | | private String leavehospitaldistrictcode; |
| | | |
| | | /** |
| | | * åºé¢ç
åºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºåç§°") |
| | | @Excel(name = " åºé¢ç
åºåç§° ") |
| | | private String leavehospitaldistrictname; |
| | | |
| | | } |
| | |
| | | private String senduuid; |
| | | |
| | | /** |
| | | * åå¤çæè§ï¼1æä¸å¤çã2éç¥å°±è¯ã3ç
æ
稳å®ã4人工é访ã5失访éUUID |
| | | */ |
| | | @Excel(name = " å¤çæè§ï¼1æä¸å¤çã2éç¥å°±è¯ã3ç
æ
稳å®ã4人工é访ã5失访 ") |
| | | @ApiModelProperty(value = "å¤çæè§ï¼1æä¸å¤çã2éç¥å°±è¯ã3ç
æ
稳å®ã4人工é访ã5失访") |
| | | private String suggest; |
| | | |
| | | /** |
| | | * ææºå· |
| | | */ |
| | | @Excel(name = " ææºå· ") |
| | |
| | | */ |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 å³å»åé") |
| | | private String sendType; |
| | | |
| | | /** |
| | | * åºé¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢æ¶é´") |
| | | private Date inhosptime; |
| | | |
| | | /** |
| | | * å»çç¼ç |
| | | */ |
| | | @Excel(name = " å»çç¼ç ") |
| | | @ApiModelProperty(value = "å»çç¼ç ") |
| | | private String drcode; |
| | | |
| | | /** |
| | | * å»çå§å |
| | | */ |
| | | @Excel(name = " å»çå§å") |
| | | @ApiModelProperty(value = "å»çå§å") |
| | | private String drname; |
| | | |
| | | |
| | | /** |
| | | * å鿥æ |
| | |
| | | @Excel(name = " è¯æåç§°") |
| | | @ApiModelProperty(value = "è¯æåç§°") |
| | | private String diagname; |
| | | // |
| | | // /** |
| | | // * ç§å®¤åç§° |
| | | // */ |
| | | // @Excel(name = "ç§å®¤åç§°") |
| | | // @ApiModelProperty(value = "ç§å®¤åç§°") |
| | | // private String deptname; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @Excel(name = "ç§å®¤åç§°") |
| | | @ApiModelProperty(value = "ç§å®¤åç§°") |
| | | private String deptname; |
| | | // |
| | | // /** |
| | | // * å°±è¯æ¥æ |
| | |
| | | @ApiModelProperty(value = "æ»å") |
| | | private Long score; |
| | | |
| | | |
| | | /** |
| | | * æ¯å¦æäº¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦æäº¤ï¼0æªæäº¤ 1å·²æäº¤") |
| | | private Long submit; |
| | | |
| | | |
| | | /** |
| | | * åºé¢ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºç¼å·") |
| | | private String leavehospitaldistrictcode; |
| | | |
| | | /** |
| | | * åºé¢ç
åºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºåç§°") |
| | | @Excel(name = " åºé¢ç
åºåç§° ") |
| | | private String leavehospitaldistrictname; |
| | | |
| | | |
| | | /** |
| | | * 责任æ¤å£«ç¼ç |
| | | */ |
| | | @Excel(name = "责任æ¤å£«ç¼ç ") |
| | | @ApiModelProperty("责任æ¤å£«ç¼ç ") |
| | | private String nurseId; |
| | | |
| | | /** |
| | | * 责任æ¤å£«å§å |
| | | */ |
| | | @Excel(name = "责任æ¤å£«å§å") |
| | | @ApiModelProperty("责任æ¤å£«å§å") |
| | | private String nurseName; |
| | | |
| | | /** |
| | | * å¼å¸¸æ è¯ |
| | | */ |
| | | @ApiModelProperty(value = "å¼å¸¸æ è¯") |
| | | @Excel(name = " å¼å¸¸æ è¯ ") |
| | | private String excep; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | |
| | | /** |
| | | * åºé¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢æ¶é´") |
| | | private Date endtime; |
| | | |
| | | /** |
| | | * å
¥é¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢æ¶é´") |
| | | private Date starttime; |
| | | |
| | | |
| | | } |
| | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¯¹è±¡ ivr_task |
| | |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | @ApiModel(value = "ServiceTask" , description = "ä»»å¡å¯¹è±¡") |
| | | @ApiModel(value = "ServiceTask", description = "ä»»å¡å¯¹è±¡") |
| | | @Data |
| | | public class ServiceTask extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | * |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " " , width = 30, dateFormat = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | private Date addtime; |
| | | |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " " , width = 30, dateFormat = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | private Date beginTime; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " " , width = 30, dateFormat = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | private Date endTime; |
| | | |
| | |
| | | * å®¡æ ¸äººæ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " " , width = 30, dateFormat = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å®¡æ ¸äººæ¶é´") |
| | | private Date checktime; |
| | | |
| | |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * é¨é¨åç§° |
| | | */ |
| | | @Excel(name = "é¨é¨åç§°") |
| | | @ApiModelProperty(value = "é¨é¨åç§°") |
| | | private String deptname; |
| | | |
| | | /** |
| | | * å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "å é¤") |
| | |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ " , width = 30, dateFormat = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | |
| | | */ |
| | | @Excel(name = " åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | @ApiModelProperty(value = "åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | private Integer sendState; |
| | | private Long sendState; |
| | | |
| | | // /** |
| | | // * ææ¬åéåæ° |
| | |
| | | |
| | | @ApiModelProperty(value = "å±ç¤ºæ¥æ") |
| | | private String showDate; |
| | | |
| | | @ApiModelProperty(value = "å¼åºç½") |
| | | private String kcb; |
| | | |
| | | @ApiModelProperty(value = "ç»æè¯") |
| | | private String jsy; |
| | | |
| | | /** |
| | | * åºé¢ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºç¼å·éå") |
| | | private String leavehospitaldistrictcode; |
| | | |
| | | /** |
| | | * åºé¢ç
åºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºåç§°") |
| | | @Excel(name = " åºé¢ç
åºåç§° ") |
| | | private String leavehospitaldistrictname; |
| | | } |
| | |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | private Long libtemplateid; |
| | | private String libtemplateid; |
| | | /** |
| | | * |
| | | */ |
| | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | @Excel(name = "ç§å®¤ç¼ç ") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = "ç§å®¤å") |
| | | private String deptname; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | |
| | | */ |
| | | @Excel(name = " åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | @ApiModelProperty(value = "åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | private Integer sendState; |
| | | private Long sendState; |
| | | |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå
³æï¼5ãå¤è¯éç¥ï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è
æ¥åï¼ 8ãå
¶ä»éç¥)") |
| | | private String serviceType; |
| | | |
| | | @ApiModelProperty(value = "å¼åºç½") |
| | | private String kcb; |
| | | |
| | | @ApiModelProperty(value = "ç»æè¯") |
| | | private String jsy; |
| | | |
| | | |
| | | /** |
| | | * åºé¢ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºç¼å·éå") |
| | | private String leavehospitaldistrictcode; |
| | | |
| | | /** |
| | | * åºé¢ç
åºåç§° |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºåç§°") |
| | | @Excel(name = " åºé¢ç
åºåç§° ") |
| | | private String leavehospitaldistrictname; |
| | | } |
| | |
| | | private String svycode; |
| | | |
| | | /** |
| | | * é®å·åç§° |
| | | * é®å·æ¨¡æ¿åç§° |
| | | */ |
| | | @ApiModelProperty(value = "é®å·åç§°", required = true) |
| | | @Excel(name = " é®å·åç§° ") |
| | | @ApiModelProperty(value = "é®å·æ¨¡æ¿åç§°", required = true) |
| | | @Excel(name = " é®å·æ¨¡æ¿åç§° ") |
| | | private String svyname; |
| | | |
| | | /** |
| | |
| | | private String svycode; |
| | | |
| | | /** |
| | | * é®å·åç§° |
| | | * é®å·æ¨¡æ¿åç§° |
| | | */ |
| | | @ApiModelProperty(value = "é®å·åç§°", required = true) |
| | | @Excel(name = " é®å·åç§° ") |
| | | @ApiModelProperty(value = "é®å·æ¨¡æ¿åç§°", required = true) |
| | | @Excel(name = " é®å·æ¨¡æ¿åç§° ") |
| | | private String svyname; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "ç»æè¯") |
| | | private String conclusion; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦æ¯é¿ææ¨¡æ¿ï¼ 0ï¼ä¸æ¯ 1ï¼æ¯") |
| | | private Integer longTemp; |
| | | |
| | | @ApiModelProperty(value = "åºé¢å¤©æ°ï¼é¿æä»»å¡ï¼åºå®é¢åï¼ç¬¬å 天åéä¿¡æ¯ï¼") |
| | | private Integer sendDay; |
| | | |
| | | @ApiModelProperty(value = "é¨é¨ç¼ç ") |
| | | private String deptCode; |
| | | |
| | | |
| | | |
| | | public SvyLibTemplateVO() { |
| | |
| | | /** |
| | | * é®å·åç§° |
| | | */ |
| | | @Excel(name = " é®å·åç§° ") |
| | | @ApiModelProperty(value = "é®å·åç§°") |
| | | @Excel(name = " é®å·æ¨¡æ¿åç§° ") |
| | | @ApiModelProperty(value = "é®å·æ¨¡æ¿åç§°") |
| | | private String svyname; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "ç»æè¯") |
| | | private String conclusion; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦æ¯é¿ææ¨¡æ¿ï¼ 0ï¼ä¸æ¯ 1ï¼æ¯") |
| | | private Integer longTemp; |
| | | |
| | | @ApiModelProperty(value = "åºé¢å¤©æ°ï¼é¿æä»»å¡ï¼åºå®é¢åï¼ç¬¬å 天åéä¿¡æ¯ï¼") |
| | | private Integer sendDay; |
| | | |
| | | @ApiModelProperty(value = "é¨é¨ç¼ç ") |
| | | private String deptCode; |
| | | } |
| | |
| | | |
| | | private List Education; |
| | | |
| | | |
| | | /** |
| | | * æ¤å£«ID |
| | | */ |
| | | @ApiModelProperty(value = "æ¤å£«ID") |
| | | private String nurseId; |
| | | |
| | | /** |
| | | * æ¤å£«å§å |
| | | */ |
| | | @ApiModelProperty(value = "æ¤å£«å§å") |
| | | private String nurseName; |
| | | |
| | | /** |
| | | * æ£è
å§å |
| | | */ |
| | |
| | | |
| | | private String patiNatureId; |
| | | |
| | | //å¹´é¾ |
| | | private String treateAge; |
| | | //å¹´é¾åä½ |
| | | private String treatAgeunit; |
| | | private String patiNatureName; |
| | | |
| | |
| | | * åºé¢æ¹å¼åºå· |
| | | */ |
| | | @ApiModelProperty("åºé¢æ¹å¼åºå·") |
| | | @Excel(name = "åºé¢æ¹å¼åºå·") |
| | | @Excel(name = "åºé¢æ¹å¼åºå· 1.æ²»æ 2.好转 3.æªæ 4.æ»äº¡ 5.å
¶å®") |
| | | private String outWayId; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "æ¥å£æå¡åï¼åºå®å¼") |
| | | private String service = "smarthos.yygh.ApiService.push"; |
| | | |
| | | private String spid = "1001"; |
| | | |
| | | /** |
| | | * è¯ä»¶å· |
| | | */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.smartor.domain.PatArchiveImport; |
| | | |
| | | /** |
| | | * Excel导å
¥æ£è
æ¡£æ¡Mapperæ¥å£ |
| | | * |
| | | * @author lihu |
| | | * @date 2024-09-05 |
| | | */ |
| | | @Mapper |
| | | public interface PatArchiveImportMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param id Excel导å
¥æ£è
æ¡£æ¡ä¸»é® |
| | | * @return Excel导å
¥æ£è
æ¡£æ¡ |
| | | */ |
| | | public PatArchiveImport selectPatArchiveImportById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡å表 |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return Excel导å
¥æ£è
æ¡£æ¡éå |
| | | */ |
| | | public List<PatArchiveImport> selectPatArchiveImportList(PatArchiveImport patArchiveImport); |
| | | |
| | | /** |
| | | * æ°å¢Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatArchiveImport(PatArchiveImport patArchiveImport); |
| | | |
| | | /** |
| | | * ä¿®æ¹Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatArchiveImport(PatArchiveImport patArchiveImport); |
| | | |
| | | /** |
| | | * å é¤Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param id Excel导å
¥æ£è
æ¡£æ¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatArchiveImportById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatArchiveImportByIds(Long[] ids); |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.PatArchive; |
| | | import com.smartor.domain.PatArchiveOthreInfo; |
| | | import com.smartor.domain.PatArchiveReq; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | |
| | | public int deletePatArchiveByPatids(Long[] patids); |
| | | |
| | | |
| | | public List<PatArchive> selectPatArchiveInfoByAllhosp(PatArchiveReq patArchive); |
| | | public List<PatArchiveOthreInfo> selectPatArchiveInfoByAllhosp(PatArchiveReq patArchive); |
| | | |
| | | public List<PatArchive> selectPatArchiveInfoByInhosp(PatArchiveReq patArchive); |
| | | public List<PatArchiveOthreInfo> selectPatArchiveInfoByInhosp(PatArchiveReq patArchive); |
| | | |
| | | public List<PatArchive> selectPatArchiveInfoByOuthosp(PatArchiveReq patArchive); |
| | | public List<PatArchiveOthreInfo> selectPatArchiveInfoByOuthosp(PatArchiveReq patArchive); |
| | | |
| | | public List<PatArchive> selectPatArchiveInfoByPhysical(PatArchiveReq patArchive); |
| | | public List<PatArchiveOthreInfo> selectPatArchiveInfoByPhysical(PatArchiveReq patArchive); |
| | | |
| | | |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.PatMedInhosp; |
| | | import com.smartor.domain.PatMedInhospVO; |
| | | import com.smartor.domain.PatMedReq; |
| | | import com.smartor.domain.PatMedRes; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | */ |
| | | public List<PatMedInhosp> selectPatMedInhospList(PatMedInhosp patMedInhosp); |
| | | |
| | | public List<PatMedInhosp> selectPatMedInhospListByCondition(PatMedInhospVO patMedInhospVO); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
ä½é¢è®°å½ |
| | | * |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.PatArchiveImport; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * Excel导å
¥æ£è
æ¡£æ¡Serviceæ¥å£ |
| | | * |
| | | * @author lihu |
| | | * @date 2024-09-05 |
| | | */ |
| | | public interface IPatArchiveImportService { |
| | | /** |
| | | * æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param id Excel导å
¥æ£è
æ¡£æ¡ä¸»é® |
| | | * @return Excel导å
¥æ£è
æ¡£æ¡ |
| | | */ |
| | | public PatArchiveImport selectPatArchiveImportById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡å表 |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return Excel导å
¥æ£è
æ¡£æ¡éå |
| | | */ |
| | | public List<PatArchiveImport> selectPatArchiveImportList(PatArchiveImport patArchiveImport); |
| | | |
| | | /** |
| | | * æ°å¢Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatArchiveImport(PatArchiveImport patArchiveImport); |
| | | |
| | | /** |
| | | * ä¿®æ¹Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatArchiveImport(PatArchiveImport patArchiveImport); |
| | | |
| | | /** |
| | | * æ¹éå é¤Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çExcel导å
¥æ£è
æ¡£æ¡ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatArchiveImportByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤Excel导å
¥æ£è
æ¡£æ¡ä¿¡æ¯ |
| | | * |
| | | * @param id Excel导å
¥æ£è
æ¡£æ¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatArchiveImportById(Long id); |
| | | |
| | | public List<PatArchiveImport> importPatInfo(MultipartFile multipartFile); |
| | | } |
| | |
| | | |
| | | public List<Object> getUserTreatmentInfo(String pid, String type); |
| | | |
| | | public List<ServiceSubtask> getPatientInfo(PatArchiveReq patArchiveReq); |
| | | public List<PatArchiveOthreInfo> getPatientInfo(PatArchiveReq patArchiveReq); |
| | | } |
| | |
| | | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.smartor.domain.PatMedInhosp; |
| | | import com.smartor.domain.PatMedInhospVO; |
| | | import com.smartor.domain.PatMedReq; |
| | | import com.smartor.domain.PatMedRes; |
| | | |
| | |
| | | * @return æ£è
ä½é¢è®°å½éå |
| | | */ |
| | | public List<PatMedInhosp> selectPatMedInhospList(PatMedInhosp patMedInhosp); |
| | | |
| | | /** |
| | | * æ¥è¯¢å½åç»é人èªå·±ï¼ç
åºãé¨é¨ï¼çæ£è
ä½é¢è®°å½å表 |
| | | * @param patMedInhospVO |
| | | * @return |
| | | */ |
| | | public List<PatMedInhosp> selectPatMedInhospListByCondition(PatMedInhospVO patMedInhospVO); |
| | | |
| | | public PatMedInhosp getDeptCodeByPatId(PatMedInhosp patMedInhosp); |
| | | |
| | |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | public int dealOupHospInfo(); |
| | | public int dealOutHospInfo(); |
| | | |
| | | /** |
| | | * è·ååºé¢ï¼ä½é¢ï¼é¨è¯æå¡äººæ¬¡ |
| | |
| | | */ |
| | | public Integer saveQuestionCache(ServiceSubTaskCacheReq serviceSubTaskCacheReq); |
| | | |
| | | public List<SvyLibTemplateScriptVO> getQuestionCache(ServiceSubTaskCacheReq serviceSubTaskCacheReq); |
| | | public Map<String,Object> getQuestionCache(ServiceSubTaskCacheReq serviceSubTaskCacheReq); |
| | | |
| | | public Map<String, Object> selectPatQuestionResult(ServiceSubTaskQueryReq serviceSubTaskQueryReq); |
| | | |
| | |
| | | |
| | | @Override |
| | | public Integer taskSend(SendTaskVO sendTaskVO) { |
| | | synchronized (CommonTaskServiceImpl.class) { |
| | | if (sendTaskVO.getTaskId() == null || sendTaskVO.getTaskType() == null) |
| | | throw new BaseException("ä»»å¡IDæè
ä»»å¡ç±»åä¸è½ä¸ºç©ºï¼è¯·æ£æ¥åï¼åè¿è¡æ§è¡"); |
| | | if (sendTaskVO.getTaskType() == 1) { |
| | | //é访 |
| | | return sfSend(sendTaskVO); |
| | | } else if (sendTaskVO.getTaskType() == 2) { |
| | | //é®å· |
| | | return wjSend(sendTaskVO); |
| | | } else if (sendTaskVO.getTaskType() == 3) { |
| | | //宣æ |
| | | return xjSend(sendTaskVO); |
| | | } |
| | | |
| | | if (sendTaskVO.getTaskId() == null || sendTaskVO.getTaskType() == null) |
| | | throw new BaseException("ä»»å¡IDæè
ä»»å¡ç±»åä¸è½ä¸ºç©ºï¼è¯·æ£æ¥åï¼åè¿è¡æ§è¡"); |
| | | if (sendTaskVO.getTaskType() == 1) { |
| | | //é访 |
| | | return sfSend(sendTaskVO); |
| | | } else if (sendTaskVO.getTaskType() == 2) { |
| | | //é®å· |
| | | return wjSend(sendTaskVO); |
| | | } else if (sendTaskVO.getTaskType() == 3) { |
| | | //宣æ |
| | | return xjSend(sendTaskVO); |
| | | } |
| | | log.error("èµ°å°è¿éäºå"); |
| | | return null; |
| | | } |
| | | |
| | |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(ivrTask.getTaskid()); |
| | | serviceTask.setSendState(2); |
| | | serviceTask.setStopState(ivrTask.getStopState()); |
| | | serviceTask.setSendState(2L); |
| | | //ä¸ç¥ä¸ºå¥è¿æ ·åï¼å
å°stopstate置为null |
| | | // serviceTask.setStopState(ivrTask.getStopState()); |
| | | serviceTask.setStopState(null); |
| | | ivrTaskService.updateServiceTask(serviceTask); |
| | | log.error("æ¶æ¯åéæå"); |
| | | } else if (StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("1") || StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("3")) { |
| | |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(ivrTask.getTaskid()); |
| | | serviceTask.setSendState(2); |
| | | serviceTask.setSendState(2L); |
| | | serviceTask.setStopState(null); |
| | | ivrTaskService.updateServiceTask(serviceTask); |
| | | } |
| | | } |
| | |
| | | serviceTask.setTaskid(sendTaskVO.getTaskId()); |
| | | serviceTask.setStopState(serviceTask1.getStopState() + 1); |
| | | serviceTask.setSendState(sendTaskVO.getSendState()); |
| | | iServiceTaskService.updateServiceTask(serviceTask); |
| | | return 0; |
| | | int i = iServiceTaskService.updateServiceTask(serviceTask); |
| | | return i; |
| | | } |
| | | |
| | | //夿åéç¶ææ¯å¦ä¸ºç©º |
| | |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(serviceTask1.getTaskid()); |
| | | serviceTask.setSendState(2); |
| | | serviceTask.setSendState(2L); |
| | | serviceTask.setStopState(null); |
| | | iServiceTaskService.updateServiceTask(serviceTask); |
| | | } else if (StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("1") || StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("3")) { |
| | | //æ¶é´æ®µåé |
| | |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(serviceTask1.getTaskid()); |
| | | serviceTask.setSendState(2); |
| | | serviceTask.setSendState(2L); |
| | | serviceTask.setStopState(null); |
| | | iServiceTaskService.updateServiceTask(serviceTask); |
| | | } |
| | | } |
| | |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(serviceTask1.getTaskid()); |
| | | serviceTask.setSendState(2); |
| | | serviceTask.setSendState(2L); |
| | | serviceTask.setSendType(1L); |
| | | serviceTask.setStopState(null); |
| | | iServiceTaskService.updateServiceTask(serviceTask); |
| | | } else if (StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("1") || StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("3")) { |
| | | //æ¶é´æ®µåé |
| | |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask.setTaskid(serviceTask1.getTaskid()); |
| | | serviceTask.setSendState(2); |
| | | serviceTask.setSendState(2L); |
| | | serviceTask.setStopState(null); |
| | | iServiceTaskService.updateServiceTask(serviceTask); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.PatArchiveImport; |
| | | import com.smartor.mapper.PatArchiveImportMapper; |
| | | import com.smartor.service.IPatArchiveImportService; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | | import org.apache.poi.ss.usermodel.Sheet; |
| | | import org.apache.poi.ss.usermodel.Workbook; |
| | | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Excel导å
¥æ£è
æ¡£æ¡Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author lihu |
| | | * @date 2024-09-05 |
| | | */ |
| | | @Service |
| | | public class PatArchiveImportServiceImpl implements IPatArchiveImportService { |
| | | @Autowired |
| | | private PatArchiveImportMapper patArchiveImportMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param id Excel导å
¥æ£è
æ¡£æ¡ä¸»é® |
| | | * @return Excel导å
¥æ£è
æ¡£æ¡ |
| | | */ |
| | | @Override |
| | | public PatArchiveImport selectPatArchiveImportById(Long id) { |
| | | return patArchiveImportMapper.selectPatArchiveImportById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡å表 |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return Excel导å
¥æ£è
æ¡£æ¡ |
| | | */ |
| | | @Override |
| | | public List<PatArchiveImport> selectPatArchiveImportList(PatArchiveImport patArchiveImport) { |
| | | return patArchiveImportMapper.selectPatArchiveImportList(patArchiveImport); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPatArchiveImport(PatArchiveImport patArchiveImport) { |
| | | patArchiveImport.setCreateTime(DateUtils.getNowDate()); |
| | | return patArchiveImportMapper.insertPatArchiveImport(patArchiveImport); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param patArchiveImport Excel导å
¥æ£è
æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePatArchiveImport(PatArchiveImport patArchiveImport) { |
| | | patArchiveImport.setUpdateTime(DateUtils.getNowDate()); |
| | | return patArchiveImportMapper.updatePatArchiveImport(patArchiveImport); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤Excel导å
¥æ£è
æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çExcel导å
¥æ£è
æ¡£æ¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatArchiveImportByIds(Long[] ids) { |
| | | return patArchiveImportMapper.deletePatArchiveImportByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤Excel导å
¥æ£è
æ¡£æ¡ä¿¡æ¯ |
| | | * |
| | | * @param id Excel导å
¥æ£è
æ¡£æ¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatArchiveImportById(Long id) { |
| | | return patArchiveImportMapper.deletePatArchiveImportById(id); |
| | | } |
| | | |
| | | @Override |
| | | public List<PatArchiveImport> importPatInfo(MultipartFile multipartFile) { |
| | | //ç¨äºè¿å |
| | | List<PatArchiveImport> patArchiveImports = new ArrayList<>(); |
| | | try { |
| | | Workbook workbook = new XSSFWorkbook(multipartFile.getInputStream()); |
| | | Sheet sheet = workbook.getSheetAt(0); |
| | | |
| | | for (int i = sheet.getFirstRowNum() + 1; i < sheet.getLastRowNum(); i++) { |
| | | //导å
¥æ£è
对象 |
| | | PatArchiveImport patArchiveImport = new PatArchiveImport(); |
| | | Row row = sheet.getRow(i); |
| | | //妿è¡ä¸ºç©ºï¼è¿è¡ä¸ä¸æ¬¡å¾ªç¯ |
| | | if (ObjectUtils.isEmpty(row.getCell(0)) && ObjectUtils.isEmpty(row.getCell(1)) && ObjectUtils.isEmpty(row.getCell(2))) { |
| | | continue; |
| | | } |
| | | //å¤ææ°æ®æ¯å¦æé®é¢ |
| | | |
| | | |
| | | if (ObjectUtils.isNotEmpty(row.getCell(0).toString())) { |
| | | patArchiveImport.setName(row.getCell(0).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(1))) { |
| | | patArchiveImport.setIdcardno(row.getCell(1).toString()); |
| | | } |
| | | |
| | | if (ObjectUtils.isNotEmpty(row.getCell(2))) { |
| | | patArchiveImport.setTelcode(row.getCell(2).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(3))) { |
| | | patArchiveImport.setBatchName(row.getCell(3).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(4))) { |
| | | patArchiveImport.setPatientno(row.getCell(4).toString()); |
| | | } |
| | | |
| | | if (ObjectUtils.isNotEmpty(row.getCell(5))) { |
| | | patArchiveImport.setPattype(row.getCell(5).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(6))) { |
| | | patArchiveImport.setSex(Long.valueOf(row.getCell(6).toString())); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(7))) { |
| | | patArchiveImport.setAge(Long.valueOf(row.getCell(7).toString())); |
| | | } |
| | | |
| | | patArchiveImports.add(patArchiveImport); |
| | | |
| | | patArchiveImport.setCreateTime(new Date()); |
| | | patArchiveImport.setUpdateTime(new Date()); |
| | | //æ¹éå·ï¼å½åæ¶é´ï¼ |
| | | patArchiveImport.setBatchNo(new SimpleDateFormat("yyyyMMddHHmmss").format(new Date())); |
| | | insertPatArchiveImport(patArchiveImport); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | return patArchiveImports; |
| | | } |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ServiceSubtask> getPatientInfo(PatArchiveReq patArchiveReq) { |
| | | List<ServiceSubtask> serviceSubtaskList = new ArrayList<>(); |
| | | public List<PatArchiveOthreInfo> getPatientInfo(PatArchiveReq patArchiveReq) { |
| | | if (CollectionUtils.isEmpty(patArchiveReq.getLeavehospitaldistrictcodes()) || patArchiveReq.getLeavehospitaldistrictcodes().size() == 0) { |
| | | patArchiveReq.setLeavehospitaldistrictcodes(null); |
| | | } |
| | | if (CollectionUtils.isEmpty(patArchiveReq.getLeaveldeptcodes()) || patArchiveReq.getLeaveldeptcodes().size() == 0) { |
| | | patArchiveReq.setLeaveldeptcodes(null); |
| | | } |
| | | |
| | | List<PatArchive> patArchiveList = new ArrayList<>(); |
| | | List<PatArchiveOthreInfo> patArchiveList = new ArrayList<>(); |
| | | if (patArchiveReq.getAllhosp() != null && patArchiveReq.getAllhosp() == 1) { |
| | | // æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3 |
| | | List<PatArchive> patArchives1 = patArchiveMapper.selectPatArchiveInfoByInhosp(patArchiveReq); |
| | | List<PatArchiveOthreInfo> patArchives1 = patArchiveMapper.selectPatArchiveInfoByInhosp(patArchiveReq); |
| | | if (CollectionUtils.isNotEmpty(patArchives1)) { |
| | | patArchiveList.addAll(patArchives1); |
| | | } |
| | | } else if (patArchiveReq.getAllhosp() != null && patArchiveReq.getAllhosp() == 2) { |
| | | // æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3 |
| | | List<PatArchive> patArchives2 = patArchiveMapper.selectPatArchiveInfoByOuthosp(patArchiveReq); |
| | | List<PatArchiveOthreInfo> patArchives2 = patArchiveMapper.selectPatArchiveInfoByOuthosp(patArchiveReq); |
| | | if (CollectionUtils.isNotEmpty(patArchives2)) { |
| | | patArchiveList.addAll(patArchives2); |
| | | } |
| | | } else if (patArchiveReq.getAllhosp() != null && patArchiveReq.getAllhosp() == 3) { |
| | | // æ¥çä½é¢ 1 æ¥çé¨è¯ 2 æ¥ç使£ 3 |
| | | List<PatArchive> patArchives3 = patArchiveMapper.selectPatArchiveInfoByPhysical(patArchiveReq); |
| | | List<PatArchiveOthreInfo> patArchives3 = patArchiveMapper.selectPatArchiveInfoByPhysical(patArchiveReq); |
| | | if (CollectionUtils.isNotEmpty(patArchives3)) { |
| | | patArchiveList.addAll(patArchives3); |
| | | } |
| | | } |
| | | for (PatArchive patArchive : patArchiveList) { |
| | | ServiceSubtask serviceSubtask = DtoConversionUtils.sourceToTarget(patArchive, ServiceSubtask.class); |
| | | serviceSubtask.setCreateTime(patArchive.getCreateTime()); |
| | | serviceSubtask.setCreateBy(patArchive.getCreateBy()); |
| | | serviceSubtask.setDeptname(patArchive.getDept()); |
| | | serviceSubtask.setPhone(patArchive.getTelcode()); |
| | | serviceSubtaskList.add(serviceSubtask); |
| | | } |
| | | |
| | | return serviceSubtaskList; |
| | | return patArchiveList; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | //æ ¹æ®æ¡ä»¶è·åæ£è
ä¿¡æ¯ |
| | | // List<PatArchive> patArchiveList = patArchiveMapper.patInfoByContion(patArchive); |
| | | List<PatArchive> patArchiveList = new ArrayList<>(); |
| | | List<PatArchiveOthreInfo> patArchiveList = new ArrayList<>(); |
| | | |
| | | if (patArchive.getEndtime() != null) { |
| | | //åºé¢æ¶é´åªæä½é¢ææ |
| | |
| | | } |
| | | |
| | | if (patArchive.getAllhosp() != null && patArchive.getAllhosp() == 0) { |
| | | List<PatArchive> patArchives0 = patArchiveMapper.selectPatArchiveInfoByAllhosp(patArchive); |
| | | List<PatArchiveOthreInfo> patArchives0 = patArchiveMapper.selectPatArchiveInfoByAllhosp(patArchive); |
| | | if (CollectionUtils.isNotEmpty(patArchives0)) { |
| | | patArchiveList.addAll(patArchives0); |
| | | } |
| | | } else if (patArchive.getAllhosp() != null && patArchive.getAllhosp() == 1) { |
| | | List<PatArchive> patArchives1 = patArchiveMapper.selectPatArchiveInfoByInhosp(patArchive); |
| | | List<PatArchiveOthreInfo> patArchives1 = patArchiveMapper.selectPatArchiveInfoByInhosp(patArchive); |
| | | if (CollectionUtils.isNotEmpty(patArchives1)) { |
| | | patArchiveList.addAll(patArchives1); |
| | | } |
| | | } else if (patArchive.getAllhosp() != null && patArchive.getAllhosp() == 2) { |
| | | List<PatArchive> patArchives2 = patArchiveMapper.selectPatArchiveInfoByOuthosp(patArchive); |
| | | List<PatArchiveOthreInfo> patArchives2 = patArchiveMapper.selectPatArchiveInfoByOuthosp(patArchive); |
| | | if (CollectionUtils.isNotEmpty(patArchives2)) { |
| | | patArchiveList.addAll(patArchives2); |
| | | } |
| | | } else if (patArchive.getAllhosp() != null && patArchive.getAllhosp() == 3) { |
| | | List<PatArchive> patArchives3 = patArchiveMapper.selectPatArchiveInfoByPhysical(patArchive); |
| | | List<PatArchiveOthreInfo> patArchives3 = patArchiveMapper.selectPatArchiveInfoByPhysical(patArchive); |
| | | if (CollectionUtils.isNotEmpty(patArchives3)) { |
| | | patArchiveList.addAll(patArchives3); |
| | | } |
| | | } |
| | | |
| | | //æ ¹æ®æ£è
IDè¿è¡åç» |
| | | Map<Long, List<PatArchive>> listMap = patArchiveList.stream().collect(Collectors.groupingBy(PatArchive::getId)); |
| | | Map<Long, List<PatArchiveOthreInfo>> listMap = patArchiveList.stream().collect(Collectors.groupingBy(PatArchiveOthreInfo::getId)); |
| | | |
| | | //å¯¹æ°æ®è¿è¡å°è£
|
| | | for (List<PatArchive> list : listMap.values()) { |
| | | for (List<PatArchiveOthreInfo> list : listMap.values()) { |
| | | PatArchive patArchive1 = new PatArchive(); |
| | | Set<PatArchivetag> stringList = new HashSet<>(); |
| | | for (int i = 0; i < list.size(); i++) { |
| | |
| | | import java.util.*; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | |
| | | private IvrTaskTemplateMapper ivrTaskTemplateMapper; |
| | | |
| | | @Autowired |
| | | private Icd10AssociationMapper icd10AssociationMapper; |
| | | |
| | | @Autowired |
| | | private SvyTaskTemplateMapper svyTaskTemplateMapper; |
| | | |
| | | @Autowired |
| | | private ServiceTaskMapper serviceTaskMapper; |
| | | |
| | | @Autowired |
| | |
| | | @Override |
| | | public List<PatMedInhosp> selectPatMedInhospList(PatMedInhosp patMedInhosp) { |
| | | return patMedInhospMapper.selectPatMedInhospList(patMedInhosp); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å½åç»é人èªå·±ï¼ç
åºãé¨é¨ï¼çæ£è
ä½é¢è®°å½å表 |
| | | * |
| | | * @param patMedInhospVO |
| | | * @return |
| | | */ |
| | | public List<PatMedInhosp> selectPatMedInhospListByCondition(PatMedInhospVO patMedInhospVO) { |
| | | return patMedInhospMapper.selectPatMedInhospListByCondition(patMedInhospVO); |
| | | } |
| | | |
| | | |
| | |
| | | return patMedInhospMapper.deletePatMedInhospByInhospid(inhospid); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | |
| | | @Override |
| | | public int dealOupHospInfo() { |
| | | //è·åé¿ææ¨¡æ¿ |
| | | IvrLibaTemplate ivrTemp = new IvrLibaTemplate(); |
| | | ivrTemp.setDelFlag("0"); |
| | | ivrTemp.setLongTemp(1); |
| | | List<IvrLibaTemplate> ivrLibaTemplates = ivrLibaTemplateMapper.selectIvrLibaTemplateList(ivrTemp); |
| | | |
| | | if (CollectionUtils.isNotEmpty(ivrLibaTemplates)) { |
| | | for (IvrLibaTemplate ivrLibaTemplate : ivrLibaTemplates) { |
| | | //è·åå°ä»»å¡æ¨¡æ¿ä¿¡æ¯ |
| | | IvrTaskTemplate ivrTaskTemplate = new IvrTaskTemplate(); |
| | | ivrTaskTemplate.setLibtemplateid(ivrLibaTemplate.getId().toString()); |
| | | List<IvrTaskTemplate> ivrTaskTemplates = ivrTaskTemplateMapper.selectIvrTaskTemplateList(ivrTaskTemplate); |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplates)) { |
| | | IvrTaskTemplate ivrTaskTemplate1 = ivrTaskTemplates.get(0); |
| | | //éè¿ä»»å¡æ¨¡æ¿IDè·åä»»å¡ |
| | | ServiceTask ServiceTask = new ServiceTask(); |
| | | ServiceTask.setTemplateid(ivrTaskTemplate1.getId()); |
| | | List<ServiceTask> serviceTasks = serviceTaskMapper.selectServiceTaskList(ServiceTask); |
| | | if (CollectionUtils.isNotEmpty(serviceTasks)) { |
| | | serviceTaskList.add(serviceTasks.get(0)); |
| | | } |
| | | ivrTaskTemplates.add(ivrTaskTemplate1); |
| | | } |
| | | libaTemplates.add(ivrLibaTemplate); |
| | | } |
| | | } |
| | | |
| | | public int dealOutHospInfo() { |
| | | PatMedInhosp patMedInhosp = new PatMedInhosp(); |
| | | //è·åæªå¤ççæ°æ® |
| | | patMedInhosp.setCheckFlag("0"); |
| | | patMedInhosp.setInhospstate("1"); |
| | | List<PatMedInhosp> patMedInhosps = patMedInhospMapper.selectPatMedInhospList(patMedInhosp); |
| | | |
| | | for (PatMedInhosp patMedInhosp1 : patMedInhosps) { |
| | | //æ ¹æ®æ£è
æå¨ç§å®¤ï¼è·å该ç§å®¤çé¿æä»»å¡æ¨¡æ¿ |
| | | Long taskid = null; |
| | | SvyTaskTemplate svyTaskTemplate = new SvyTaskTemplate(); |
| | | svyTaskTemplate.setDeptCode(patMedInhosp1.getLeaveldeptcode()); |
| | | svyTaskTemplate.setLongTemp(1); |
| | | List<SvyTaskTemplate> svyTaskTemplates = svyTaskTemplateMapper.selectSvyTaskTemplateList(svyTaskTemplate); |
| | | //妿é¨é¨æ¨¡æ¿ä¸ºç©ºï¼æå®ï¼å°åºå
¥é¢è¡¨çcheck_flag设置为2 ï¼long_task_reason è®°å½åå ï¼ |
| | | if (CollectionUtils.isEmpty(svyTaskTemplates) || svyTaskTemplates.size() == 0) { |
| | | patMedInhosp1.setCheckFlag("2"); |
| | | patMedInhosp1.setLongTaskReason("该æ£è
æå¨ç§å®¤ï¼æªé
ç½®ä»»å¡æ¨¡æ¿"); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp1); |
| | | continue; |
| | | } |
| | | |
| | | //è·åæ£è
ä¿¡æ¯ |
| | | PatArchive patArchive = patArchiveMapper.selectPatArchiveByPatid(patMedInhosp1.getPatid()); |
| | | //éè¿icd10codeå»è·åç¸åºçivr_liba_template_id |
| | | if (StringUtils.isNotEmpty(patMedInhosp1.getIcd10code())) { |
| | | for (IvrLibaTemplate ivrLibaTemplate : libaTemplates) { |
| | | String icdCode = patMedInhosp1.getIcd10code().split(",")[0]; |
| | | if (ivrLibaTemplate.getIcd10code().equals(icdCode)) { |
| | | //éè¿æ¨¡æ¿IDè·å任塿¨¡æ¿ |
| | | for (IvrTaskTemplate ivrTaskTemplate : ivrTaskTemplates) { |
| | | if (ivrTaskTemplate.getLibtemplateid().equals(ivrLibaTemplate.getId().toString())) { |
| | | for (ServiceTask serviceTask : serviceTaskList) { |
| | | if (serviceTask.getTemplateid() == ivrTaskTemplate.getId()) { |
| | | //å°è¯¥æ£è
ï¼æå
¥å°åä»»å¡è¡¨ä¸ |
| | | ServiceSubtask serviceSubtask = DtoConversionUtils.sourceToTarget(serviceTask, ServiceSubtask.class); |
| | | serviceSubtask.setId(null); |
| | | serviceSubtask.setTaskid(serviceTask.getTaskid()); |
| | | serviceSubtask.setLibtemplateid(ivrLibaTemplate.getId()); |
| | | serviceSubtask.setTemplateid(ivrTaskTemplate.getId()); |
| | | serviceSubtask.setTemplatename(ivrLibaTemplate.getTemplateName()); |
| | | serviceSubtask.setPatid(patMedInhosp1.getPatid()); |
| | | serviceSubtask.setSendname(patMedInhosp1.getPatname()); |
| | | serviceSubtask.setPhone(patArchive.getTelcode()); |
| | | serviceSubtask.setSex(patArchive.getSex()); |
| | | serviceSubtask.setAge(patArchive.getAge()); |
| | | serviceSubtask.setSendstate(2L); |
| | | serviceSubtask.setServiceform(serviceTask.getPreachform()); |
| | | serviceSubtask.setHospType("2"); |
| | | //æ£è
åéæ¶é´ |
| | | LocalDate currentDate = LocalDate.now(); |
| | | LocalDate newDate = currentDate.plusDays(ivrTaskTemplate.getSendDay()); |
| | | serviceSubtask.setLongSendTime(Date.from(newDate.atStartOfDay(ZoneOffset.ofHours(8)).toInstant())); |
| | | serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | | //å°check_flagæ¹æ1ï¼å·²å¤çï¼ |
| | | PatMedInhosp patMedInhosp2 = new PatMedInhosp(); |
| | | patMedInhosp2.setInhospid(patMedInhosp1.getInhospid()); |
| | | patMedInhosp2.setCheckFlag("1"); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp2); |
| | | } |
| | | //ç»ä¸ªremark(ç¨æ¥åæ¯å¦è¦ç»åéæ¶é´æ è¯) |
| | | String remark = null; |
| | | //å®ä¹ä¸ä¸ªæ¨¡æ¿åéï¼ç¨ä¸ä¸´æ¶ä¿åä¸ä¸æ¾åºæ¥çæ¨¡æ¿ |
| | | SvyTaskTemplate stt = null; |
| | | if (CollectionUtils.isNotEmpty(svyTaskTemplates) && svyTaskTemplates.size() == 1) { |
| | | stt = svyTaskTemplates.get(0); |
| | | taskid = svyTaskTemplates.get(0).getTaskid(); |
| | | |
| | | } else if (CollectionUtils.isNotEmpty(svyTaskTemplates) && svyTaskTemplates.size() > 1) { |
| | | //éè¿æ£è
çç¾ç
廿¾æ¨¡æ¿ |
| | | if (StringUtils.isNotEmpty(patMedInhosp1.getIcd10code())) { |
| | | aa: |
| | | for (SvyTaskTemplate svyTaskTemplate1 : svyTaskTemplates) { |
| | | //éè¿åºç¡æ¨¡æ¿IDè·åå
³èçç¾ç
code |
| | | Icd10Association icd10Association = new Icd10Association(); |
| | | icd10Association.setType(5L); |
| | | icd10Association.setOutid(svyTaskTemplate1.getTemplateid()); |
| | | List<Icd10Association> icd10Associations = icd10AssociationMapper.selectIcd10AssociationList(icd10Association); |
| | | if (CollectionUtils.isEmpty(icd10Associations)) { |
| | | //å¦è½æ¨¡æ¿çç¾ç
为空ï¼åæ¯æ¬ç§å®¤çéç¨é»è®¤æ¨¡æ¿ |
| | | stt = svyTaskTemplate1; |
| | | taskid = stt.getTaskid(); |
| | | continue; |
| | | } else { |
| | | //å¦è½æ¨¡æ¿çç¾ç
ä¸ä¸ºç©ºï¼åæ¯ç¨å¹é
å°ç¾ç
çæ¨¡æ¿ï¼å¦æå¹é
åºæ¥å¤ä¸ªæ¨¡æ¿ï¼åªç¨ç¬¬ä¸ä¸ªï¼ |
| | | for (Icd10Association icd10Association1 : icd10Associations) { |
| | | if (patMedInhosp1.getIcd10code().equals(icd10Association1.getIcd10code())) { |
| | | stt = svyTaskTemplate1; |
| | | taskid = stt.getTaskid(); |
| | | break aa; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //å¦æå¾ªç¯å®ï¼sttè¿æ¯ä¸ºç©ºï¼å该ç§å®¤æ²¡æé»è®¤æ¨¡æ¿ |
| | | if (Objects.isNull(stt)) { |
| | | //å¨åºå
¥é¢è¡¨è®°å½ä¸ä¸è¯¥æ£è
ç¶æï¼è¯¥ç§å®¤æ²¡ææ¨¡æ¿ï¼æä»¥æ æ³å¨åä»»å¡éçæä»»å¡ï¼æä»¥ä»»å¡æ¯å¤±è´¥æ¯çï¼chect_flag=2ï¼ |
| | | patMedInhosp1.setCheckFlag("2"); |
| | | patMedInhosp1.setLongTaskReason("æ æ³å¹é
å°è¯¥ç§å®¤æ¨¡æ¿ï¼è¯¥ç§å®¤ä¹æ é»è®¤æ¨¡æ¿"); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp1); |
| | | continue; |
| | | } |
| | | } else { |
| | | //为空çè¯ï¼ç´æ¥ç¨ç§å®¤çéç¨æ¨¡æ¿çä»»å¡IDï¼è¯¥æ£è
ç´æ¥å¾åä»»å¡è¡¨éæå
¥ï¼ä½ä¸è¦æ§è¡ï¼éè¦äººå·¥å¹²ï¼å°ä¸è½æ§è¡çåå 夿³¨å¥½ï¼ |
| | | for (SvyTaskTemplate svyTaskTemplate1 : svyTaskTemplates) { |
| | | //éè¿åºç¡æ¨¡æ¿IDè·åå
³èçç¾ç
code |
| | | Icd10Association icd10Association = new Icd10Association(); |
| | | icd10Association.setType(5L); |
| | | icd10Association.setOutid(svyTaskTemplate1.getTemplateid()); |
| | | //æ¾åºè¯¥ç§å®¤çéç¨æ¨¡æ¿ |
| | | List<Icd10Association> icd10Associations = icd10AssociationMapper.selectIcd10AssociationList(icd10Association); |
| | | if (CollectionUtils.isEmpty(icd10Associations)) { |
| | | stt = svyTaskTemplate1; |
| | | //ä¸é
ç½®åéæ¶é´ |
| | | remark = "æ£è
å
¥é¢ç¾ç
为空"; |
| | | //å¨åºå
¥é¢è¡¨è®°å½ä¸ä¸è¯¥æ£è
ç¶æï¼è¯¥ç§å®¤æ¯æç¾ç
ä¸ºç©ºçæ¨¡æ¿ï¼æä»¥å¯ä»¥å¨åä»»å¡éçæä»»å¡ï¼æä»¥ä»»å¡æ¯æåçï¼chect_flag=1ï¼ |
| | | patMedInhosp1.setCheckFlag("1"); |
| | | patMedInhosp1.setLongTaskReason("æ£è
å
¥é¢ç¾ç
为空ï¼å·²æ¾å°ç§å®¤æ¨¡æ¿"); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp1); |
| | | continue; |
| | | } |
| | | } |
| | | if (Objects.isNull(stt)) { |
| | | //å¨åºå
¥é¢è¡¨è®°å½ä¸ä¸è¯¥æ£è
ç¶æï¼è¯¥ç§å®¤æ²¡ææ¨¡æ¿ï¼æä»¥æ æ³å¨åä»»å¡éçæä»»å¡ï¼æä»¥ä»»å¡æ¯å¤±è´¥æ¯çï¼chect_flag=2ï¼ |
| | | patMedInhosp1.setCheckFlag("2"); |
| | | patMedInhosp1.setLongTaskReason("æ£è
å
¥é¢ç¾ç
ä¸ºç©ºï¼æªæ¾å°ç§å®¤æ¨¡æ¿"); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp1); |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | |
| | | ServiceTask serviceTask = serviceTaskMapper.selectServiceTaskByTaskid(taskid); |
| | | ServiceSubtask serviceSubtask = DtoConversionUtils.sourceToTarget(serviceTask, ServiceSubtask.class); |
| | | serviceSubtask.setTaskid(serviceTask.getTaskid()); |
| | | serviceSubtask.setLibtemplateid(stt.getTemplateid()); |
| | | serviceSubtask.setTemplateid(stt.getId()); |
| | | serviceSubtask.setTemplatename(stt.getSvyname()); |
| | | serviceSubtask.setPatid(patArchive.getId()); |
| | | serviceSubtask.setSendname(patArchive.getName()); |
| | | serviceSubtask.setPhone(patArchive.getTelcode()); |
| | | serviceSubtask.setSex(patArchive.getSex()); |
| | | serviceSubtask.setAge(patArchive.getAge()); |
| | | serviceSubtask.setSendstate(2L); |
| | | serviceSubtask.setServiceType("2"); |
| | | serviceSubtask.setServiceform(serviceTask.getPreachform()); |
| | | serviceSubtask.setHospType("2"); |
| | | //设置åéæ¶é´ |
| | | Date newDate = addDays(patMedInhosp1.getEndtime(), stt.getSendDay()); |
| | | serviceSubtask.setLongSendTime(newDate); |
| | | //æ£è
åéæ¶é´ |
| | | if (StringUtils.isNotEmpty(remark)) { |
| | | serviceSubtask.setSendstate(4L); |
| | | serviceSubtask.setRemark(remark); |
| | | serviceSubtask.setResult("error"); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | //䏿§è¡ |
| | | serviceSubtask.setSendstate(4L); |
| | | } else if (patArchive.getNotrequiredFlag().equals("4")) { |
| | | //人ä¸å¨äºï¼æè
å
¶å®åå ï¼ä¹ä¸è½é访 |
| | | serviceSubtask.setSendstate(4L); |
| | | serviceSubtask.setRemark(patArchive.getNotrequiredreason()); |
| | | serviceSubtask.setResult("error"); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | } |
| | | serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | | //å°check_flagæ¹æ1ï¼å·²å¤çï¼ |
| | | PatMedInhosp patMedInhosp2 = new PatMedInhosp(); |
| | | patMedInhosp2.setInhospid(patMedInhosp1.getInhospid()); |
| | | patMedInhosp2.setCheckFlag("1"); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp2); |
| | | } |
| | | return 1; |
| | | } |
| | |
| | | return patMedInhospMapper.getDeptRanking(patMedReq); |
| | | } |
| | | |
| | | private Date addDays(Date date, Integer days) { |
| | | if (days == null) { |
| | | days = 1; |
| | | } |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.setTime(date); |
| | | calendar.add(Calendar.DAY_OF_MONTH, days); |
| | | return calendar.getTime(); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import afu.org.checkerframework.checker.oigj.qual.O; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | |
| | | String[] split = key.split("-"); |
| | | if (key.contains("-WJscriptCache")) { |
| | | List<SvyLibTemplateScriptVO> cacheList = redisCache.getCacheList(key); |
| | | |
| | | cacheList.sort(Comparator.comparingLong(SvyLibTemplateScriptVO::getSort)); |
| | | log.error("é®å·åçç»æï¼{}", cacheList); |
| | | for (int i = 0; i < cacheList.size(); i++) { |
| | | if (i == 0) { |
| | | //è¿ä¸ªæ¶é´è¦æ¾å°ç¬¬ä¸é¢ |
| | | for (SvyLibTemplateScriptVO svyLibTemplateScriptVO : cacheList) { |
| | | if (svyLibTemplateScriptVO.getSort() == 1) { |
| | | if (svyLibTemplateScriptVO.getSort() == 1L) { |
| | | //è¯´ææ¯ç¬¬ä¸é¢ |
| | | SvyTaskTemplateScriptVO svyTaskTemplateScriptVO = DtoConversionUtils.sourceToTarget(cacheList.get(0), SvyTaskTemplateScriptVO.class); |
| | | List<SvyLibTemplateTargetoption> svyLibTemplateTargetoptions = cacheList.get(0).getSvyLibTemplateTargetoptions(); |
| | |
| | | |
| | | if (svyTaskTemplateScriptVO.getSort() == nextScriptno) { |
| | | Map<String, String> map = setWJInfo(svyTaskTemplateScriptVO, Long.valueOf(split[1]), Long.valueOf(split[0])); |
| | | log.error("mapçä¿¡æ¯ä¸ºï¼{}", map); |
| | | nextScriptno = Long.valueOf(map.get("nextScriptNo")); |
| | | if (score == null) { |
| | | score = Double.valueOf(map.get("score")); |
| | |
| | | ServiceSubtask serviceSubtask = new ServiceSubtask(); |
| | | serviceSubtask.setTaskid(tid); |
| | | serviceSubtask.setPatid(pid); |
| | | serviceSubtask.setSubmit(1L); |
| | | serviceSubtask.setExcep(serviceSubTaskAnswerReq.getExcep()); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | if (score != null) serviceSubtask.setScore(BigDecimal.valueOf(score)); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(serviceSubtask); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<SvyLibTemplateScriptVO> getQuestionCache(ServiceSubTaskCacheReq serviceSubTaskCacheReq) { |
| | | public Map<String, Object> getQuestionCache(ServiceSubTaskCacheReq serviceSubTaskCacheReq) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | | Long tid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceSubTaskCacheReq.getParam1(), pri_key)); |
| | | Long pid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceSubTaskCacheReq.getParam2(), pri_key)); |
| | | ServiceSubtaskVO serviceSubtaskVO = new ServiceSubtaskVO(); |
| | | serviceSubtaskVO.setTaskid(tid); |
| | | serviceSubtaskVO.setPatid(pid); |
| | | List<ServiceSubtask> selectServiceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | if (CollectionUtils.isEmpty(selectServiceSubtaskList) || selectServiceSubtaskList.size() == 0) { |
| | | map.put("submit", 0); |
| | | } else { |
| | | map.put("submit", selectServiceSubtaskList.get(0).getSubmit()); |
| | | if (selectServiceSubtaskList.get(0).getSubmit() == 1) { |
| | | return map; |
| | | } |
| | | } |
| | | //é®å· |
| | | List<SvyLibTemplateScriptVO> svyTaskTemplateScriptVOList = redisCache.getCacheList(pid + "-" + tid + "-WJscriptCache"); |
| | | return svyTaskTemplateScriptVOList; |
| | | map.put("result", svyTaskTemplateScriptVOList); |
| | | return map; |
| | | } |
| | | |
| | | @Override |
| | |
| | | private ServiceSubtaskMapper serviceSubtaskMapper; |
| | | |
| | | @Autowired |
| | | private IvrTaskTemplateMapper ivrTaskTemplateMapper; |
| | | |
| | | @Autowired |
| | | private SvyTaskTemplateMapper svyTaskTemplateMapper; |
| | | |
| | | @Autowired |
| | | private HeLibraryMapper heLibraryMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaTemplateScriptMapper ivrLibaTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibTemplateScriptMapper svyLibTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private SvyTaskTemplateMapper svyTaskTemplateMapper; |
| | | |
| | | @Autowired |
| | | private PatArchiveMapper patArchiveMapper; |
| | | |
| | | @Autowired |
| | | private HeLibraryMapper heLibraryMapper; |
| | | |
| | | |
| | | @Autowired |
| | |
| | | |
| | | @Override |
| | | public Map<String, Object> getScriptInfoByCondition(Long taskid, Long patid) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | ServiceSubtaskVO serviceSubtaskVO = new ServiceSubtaskVO(); |
| | | serviceSubtaskVO.setPatid(patid); |
| | | serviceSubtaskVO.setTaskid(taskid); |
| | | List<ServiceSubtask> selectServiceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | //æ¥è¯¢æ£è
æ¯å¦éè¦åé¢ |
| | | if (CollectionUtils.isEmpty(selectServiceSubtaskList)) { |
| | | Long submit = selectServiceSubtaskList.get(0).getSubmit(); |
| | | if (submit == 1L) { |
| | | map.put("submit", "1"); |
| | | return map; |
| | | } |
| | | } |
| | | //éè¿ä»»å¡IDè·å模æ¿ID |
| | | ServiceTask serviceTask = selectServiceTaskByTaskid(taskid); |
| | | List info = new ArrayList(); |
| | |
| | | info = wjInfo(serviceTask, patid); |
| | | } else { |
| | | //宣æ |
| | | info = xjInfo(Long.valueOf(serviceTask.getLibtemplateid())); |
| | | info = xjInfo(Long.valueOf(serviceTask.getLibtemplateid()), taskid, patid); |
| | | } |
| | | |
| | | //åªè¦æå¼äºé¡µé¢ï¼å°±ç®æå |
| | |
| | | ServiceTaskSingle.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(ServiceTaskSingle); |
| | | SvyTaskTemplate svyTaskTemplate = svyTaskTemplateMapper.selectSvyTaskTemplateBySvyid(serviceTask.getTemplateid()); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | if (StringUtils.isNotEmpty(serviceTask.getKcb())) map.put("kcb", serviceTask.getKcb()); |
| | | map.put("script", info); |
| | | map.put("revisitAfter", svyTaskTemplate.getConclusion()); |
| | | if (StringUtils.isNotEmpty(serviceTask.getJsy())) map.put("jsy", serviceTask.getJsy()); |
| | | map.put("type", serviceTask.getType()); |
| | | map.put("taskName",serviceTask.getTaskName()); |
| | | map.put("taskName", serviceTask.getTaskName()); |
| | | map.put("submit", "0"); |
| | | |
| | | return map; |
| | | } |
| | |
| | | ivrLibaTemplateScriptVO.setIvrLibaScriptTargetoptionList(ivrLibaTemplateTargetoptions); |
| | | } |
| | | } |
| | | Collections.sort(ivrLibaTemplateScriptVOS, Comparator.comparingInt(IvrLibaTemplateScriptVO::getSort)); |
| | | |
| | | return ivrLibaTemplateScriptVOS; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | //æ¿æ¢æ£è
ä¸ªäººä¿¡æ¯æ°æ® |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${name}", StringUtils.isNotEmpty(patArchive.getName()) ? patArchive.getName() : "")); |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${dzz}", StringUtils.isNotEmpty(patArchive.getPlaceOfResidence()) ? patArchive.getPlaceOfResidence() : "")); |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${dhh}", StringUtils.isNotEmpty(patArchive.getTelcode()) ? patArchive.getTelcode() : "")); |
| | | |
| | | log.error("é®é¢idï¼{}, é®é¢å
容ï¼{}", svyLibTemplateScriptVO.getId(), svyLibTemplateScriptVO.getScriptContent()); |
| | | if (StringUtils.isNotEmpty(svyLibTemplateScriptVO.getScriptContent())) { |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${name}", StringUtils.isNotEmpty(patArchive.getName()) ? patArchive.getName() : "")); |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${dzz}", StringUtils.isNotEmpty(patArchive.getPlaceOfResidence()) ? patArchive.getPlaceOfResidence() : "")); |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${dhh}", StringUtils.isNotEmpty(patArchive.getTelcode()) ? patArchive.getTelcode() : "")); |
| | | } |
| | | //è·åé®é¢é项 |
| | | SvyLibTemplateTargetoption svyLibTemplateTargetoption = new SvyLibTemplateTargetoption(); |
| | | svyLibTemplateTargetoption.setScriptid(svyLibTemplateScriptVO.getId()); |
| | |
| | | svyLibTemplateScriptVO.setSvyLibTemplateTargetoptions(svyLibTemplateTargetoptions); |
| | | } |
| | | } |
| | | Collections.sort(svyLibTemplateScriptVOS, Comparator.comparingLong(SvyLibTemplateScriptVO::getSort)); |
| | | return svyLibTemplateScriptVOS; |
| | | } |
| | | |
| | | private List xjInfo(Long templateId) { |
| | | private List xjInfo(Long templateId, Long taskid, Long patid) { |
| | | ServiceSubtask serviceSubtask = new ServiceSubtask(); |
| | | serviceSubtask.setTaskid(taskid); |
| | | serviceSubtask.setPatid(patid); |
| | | serviceSubtask.setResult("宿"); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(serviceSubtask); |
| | | HeLibrary heLibrary = heLibraryMapper.selectHeLibraryById(Long.valueOf(templateId)); |
| | | List list = new ArrayList(); |
| | | list.add(heLibrary); |
| | |
| | | //å¾ä»»å¡è¡¨ä¸ï¼æ°å¢ä»»å¡ |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVO.getSendTimeslot())) |
| | | serviceTask.setSendTimeSlot(JSON.toJSONString(serviceTaskVO.getSendTimeslot())); |
| | | if (serviceTask.getSendState() == null) serviceTask.setSendState(1); |
| | | serviceTask.setTemplateid(serviceTaskVO.getLibtemplateid()); |
| | | if (serviceTask.getSendState() == null) serviceTask.setSendState(1L); |
| | | serviceTask.setTemplateid(Long.valueOf(serviceTaskVO.getLibtemplateid())); |
| | | iServiceTaskService.insertServiceTask(serviceTask); |
| | | |
| | | //å°ä»»å¡ä¿¡æ¯æ¾å°æå¡è¡¨ä¸ |
| | |
| | | //ä¿®æ¹æä½ï¼éè¦å°stopStateç¶æ+1 |
| | | ServiceTask serviceTask2 = iServiceTaskService.selectServiceTaskByTaskid(serviceTaskVO.getTaskid()); |
| | | serviceTask2.setStopState(serviceTask.getStopState() + 1); |
| | | serviceTask2.setTemplateid(serviceTaskVO.getLibtemplateid()); |
| | | serviceTask2.setTemplateid(Long.valueOf(serviceTaskVO.getLibtemplateid())); |
| | | iServiceTaskService.updateServiceTask(serviceTask2); |
| | | |
| | | if (CollectionUtils.isNotEmpty(serviceTaskVO.getPatTaskRelevances())) { |
| | |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="richText" column="rich_text"/> |
| | | <result property="hetype" column="hetype"/> |
| | | <result property="htmlRichText" column="html_rich_text"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHeLibraryVo"> |
| | | select id, |
| | | classification, |
| | | hetype, |
| | | html_rich_text, |
| | | assortid, |
| | | preachname, |
| | | version, |
| | |
| | | <if test="campus != null and campus != ''">and campus = #{campus}</if> |
| | | <if test="richText != null and richText != ''">and rich_text = #{richText}</if> |
| | | <if test="hetype != null and hetype != ''">and hetype = #{hetype}</if> |
| | | <if test="htmlRichText != null and htmlRichText != ''">and html_rich_text = #{htmlRichText}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="richText != null and richText != ''">rich_text,</if> |
| | | <if test="hetype != null and hetype != ''">hetype,</if> |
| | | <if test="htmlRichText != null and htmlRichText != ''">html_rich_text,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="classification != null">#{classification},</if> |
| | |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="richText != null and richText != ''">#{richText},</if> |
| | | <if test="hetype != null and hetype != ''">#{hetype},</if> |
| | | <if test="htmlRichText != null and htmlRichText != ''">#{htmlRichText},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="richText != null and richText != ''">rich_text = #{richText},</if> |
| | | <if test="hetype != null and hetype != ''">hetype = #{hetype},</if> |
| | | <if test="htmlRichText != null and htmlRichText != ''">html_rich_text = #{htmlRichText},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="silencetime" column="silencetime"/> |
| | | <result property="sendDay" column="send_day"/> |
| | | <result property="longTemp" column="long_temp"/> |
| | | <result property="deptCode" column="dept_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateVo"> |
| | |
| | | revisit_before, |
| | | revisit_after, |
| | | send_day, |
| | | dept_code, |
| | | long_temp, |
| | | templateName, |
| | | firstQuestionNum, |
| | |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0">and no_voice_num = #{noVoiceNum}</if> |
| | | <if test="silencetime != null">and silencetime = #{silencetime}</if> |
| | | <if test="deptCode != null">and dept_code = #{deptCode}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="silencetime != null ">silencetime,</if> |
| | | <if test="sendDay != null ">send_day,</if> |
| | | <if test="longTemp != null ">long_temp,</if> |
| | | <if test="deptCode != null">dept_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">#{templateName},</if> |
| | |
| | | <if test="silencetime != null ">#{silencetime},</if> |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | <if test="longTemp != null ">#{longTemp},</if> |
| | | <if test="deptCode != null">#{deptCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="silencetime != null">silencetime = #{silencetime},</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay},</if> |
| | | <if test="longTemp != null ">long_temp = #{longTemp},</if> |
| | | <if test="deptCode != null">dept_code = #{deptCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="recallcount" column="recallcount"/> |
| | | <result property="instruction" column="instruction"/> |
| | | <result property="sendDay" column="send_day"/> |
| | | <result property="deptCode" column="dept_code"/> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | libtemplateid, |
| | | libtemplatename, |
| | | taskname, |
| | | dept_code, |
| | | targetid, |
| | | targetname, |
| | | templateName, |
| | |
| | | <if test="revisitAfter != null and revisitAfter != ''">and revisit_after = #{revisitAfter}</if> |
| | | <if test="noVoiceNum != null ">and no_voice_num = #{noVoiceNum}</if> |
| | | <if test="recallcount != null">and recallcount = #{prologrecallcountue}</if> |
| | | <if test="deptCode != null">and dept_code = #{deptCode}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="libtemplatename != null ">libtemplatename,</if> |
| | | <if test="instruction != null ">instruction,</if> |
| | | <if test="sendDay != null ">send_day,</if> |
| | | <if test="deptCode != null">dept_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="libtemplatename != null ">#{libtemplatename},</if> |
| | | <if test="instruction != null ">#{instruction},</if> |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | <if test="deptCode != null">#{deptCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="libtemplatename != null ">libtemplatename = #{libtemplatename},</if> |
| | | <if test="instruction != null ">instruction = #{instruction},</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay},</if> |
| | | <if test="deptCode != null">dept_code = #{deptCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.PatArchiveImportMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatArchiveImport" id="PatArchiveImportResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="patientno" column="patientno"/> |
| | | <result property="pattype" column="pattype"/> |
| | | <result property="name" column="name"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="idcardno" column="idcardno"/> |
| | | <result property="age" column="age"/> |
| | | <result property="telcode" column="telcode"/> |
| | | <result property="openid" column="openid"/> |
| | | <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="batchName" column="batch_name"/> |
| | | <result property="batchNo" column="batch_no"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatArchiveImportVo"> |
| | | select id, patientno, pattype, name, sex, idcardno, age, telcode, openid, del_flag, update_by, update_time, create_by, create_time, batch_name, batch_no |
| | | from pat_archive_import |
| | | </sql> |
| | | |
| | | <select id="selectPatArchiveImportList" parameterType="com.smartor.domain.PatArchiveImport" |
| | | resultMap="PatArchiveImportResult"> |
| | | <include refid="selectPatArchiveImportVo"/> |
| | | <where> |
| | | <if test="patientno != null and patientno != ''"> |
| | | and patientno = #{patientno} |
| | | </if> |
| | | <if test="pattype != null and pattype != ''"> |
| | | and pattype = #{pattype} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and name like concat('%', #{name}, '%') |
| | | </if> |
| | | <if test="sex != null "> |
| | | and sex = #{sex} |
| | | </if> |
| | | <if test="idcardno != null and idcardno != ''"> |
| | | and idcardno = #{idcardno} |
| | | </if> |
| | | <if test="age != null "> |
| | | and age = #{age} |
| | | </if> |
| | | <if test="telcode != null and telcode != ''"> |
| | | and telcode = #{telcode} |
| | | </if> |
| | | <if test="openid != null and openid != ''"> |
| | | and openid = #{openid} |
| | | </if> |
| | | <if test="batchName != null and batchName != ''"> |
| | | and batch_name like concat('%', #{batchName}, '%') |
| | | </if> |
| | | <if test="batchNo != null and batchNo != ''"> |
| | | and batch_no = #{batchNo} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveImportById" parameterType="Long" |
| | | resultMap="PatArchiveImportResult"> |
| | | <include refid="selectPatArchiveImportVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatArchiveImport" parameterType="com.smartor.domain.PatArchiveImport" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into pat_archive_import |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="patientno != null">patientno, |
| | | </if> |
| | | <if test="pattype != null">pattype, |
| | | </if> |
| | | <if test="name != null">name, |
| | | </if> |
| | | <if test="sex != null">sex, |
| | | </if> |
| | | <if test="idcardno != null">idcardno, |
| | | </if> |
| | | <if test="age != null">age, |
| | | </if> |
| | | <if test="telcode != null">telcode, |
| | | </if> |
| | | <if test="openid != null">openid, |
| | | </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="batchName != null">batch_name, |
| | | </if> |
| | | <if test="batchNo != null">batch_no, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patientno != null">#{patientno}, |
| | | </if> |
| | | <if test="pattype != null">#{pattype}, |
| | | </if> |
| | | <if test="name != null">#{name}, |
| | | </if> |
| | | <if test="sex != null">#{sex}, |
| | | </if> |
| | | <if test="idcardno != null">#{idcardno}, |
| | | </if> |
| | | <if test="age != null">#{age}, |
| | | </if> |
| | | <if test="telcode != null">#{telcode}, |
| | | </if> |
| | | <if test="openid != null">#{openid}, |
| | | </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="batchName != null">#{batchName}, |
| | | </if> |
| | | <if test="batchNo != null">#{batchNo}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatArchiveImport" parameterType="com.smartor.domain.PatArchiveImport"> |
| | | update pat_archive_import |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="patientno != null">patientno = |
| | | #{patientno}, |
| | | </if> |
| | | <if test="pattype != null">pattype = |
| | | #{pattype}, |
| | | </if> |
| | | <if test="name != null">name = |
| | | #{name}, |
| | | </if> |
| | | <if test="sex != null">sex = |
| | | #{sex}, |
| | | </if> |
| | | <if test="idcardno != null">idcardno = |
| | | #{idcardno}, |
| | | </if> |
| | | <if test="age != null">age = |
| | | #{age}, |
| | | </if> |
| | | <if test="telcode != null">telcode = |
| | | #{telcode}, |
| | | </if> |
| | | <if test="openid != null">openid = |
| | | #{openid}, |
| | | </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="batchName != null">batch_name = |
| | | #{batchName}, |
| | | </if> |
| | | <if test="batchNo != null">batch_no = |
| | | #{batchNo}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatArchiveImportById" parameterType="Long"> |
| | | update pat_archive_import |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatArchiveImportByIds" parameterType="String"> |
| | | update pat_archive_import |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |
| | |
| | | <result property="id" column="id"/> |
| | | <result property="patientno" column="patientno"/> |
| | | <result property="sourcefrom" column="sourcefrom"/> |
| | | <result property="notrequiredFlag" column="notrequired_flag"/> |
| | | <result property="notrequiredreason" column="notrequiredreason"/> |
| | | <result property="patidHis" column="patid_his"/> |
| | | <result property="sdFlag" column="sd_flag"/> |
| | | <result property="pattype" column="pattype"/> |
| | |
| | | <result property="openid" column="openid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="dept" column="deptname"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="drcode" column="drcode"/> |
| | | <result property="drname" column="drname"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | |
| | | <result property="pattype" column="pattype"/> |
| | | <result property="bedNo" column="bedno"/> |
| | | <result property="inhosptime" column="inhosptime"/> |
| | | <result property="ageUnit" column="age_unit"/> |
| | | <result property="leavehospitaldistrictname" column="leavehospitaldistrictname"/> |
| | | <result property="leavehospitaldistrictcode" column="leavehospitaldistrictcode"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <resultMap type="com.smartor.domain.PatArchiveOthreInfo" id="PatArchiveOthreInfoResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="notrequiredFlag" column="notrequired_flag"/> |
| | | <result property="notrequiredreason" column="notrequiredreason"/> |
| | | <result property="patientno" column="patientno"/> |
| | | <result property="sourcefrom" column="sourcefrom"/> |
| | | <result property="patidHis" column="patid_his"/> |
| | | <result property="sdFlag" column="sd_flag"/> |
| | | <result property="pattype" column="pattype"/> |
| | | <result property="viptype" column="viptype"/> |
| | | <result property="name" column="name"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="nation" column="nation"/> |
| | | <result property="nativePlace" column="native_place"/> |
| | | <result property="placeOfResidence" column="place_of_residence"/> |
| | | <result property="birthplace" column="birthplace"/> |
| | | <result property="idcardno" column="idcardno"/> |
| | | <result property="birthdate" column="birthdate"/> |
| | | <result property="age" column="age"/> |
| | | <result property="sourcefrom" column="sourcefrom"/> |
| | | <result property="archivetime" column="archivetime"/> |
| | | <result property="archiveby" column="archiveby"/> |
| | | <result property="telcode" column="telcode"/> |
| | | <result property="relativetelcode" column="relativetelcode"/> |
| | | <result property="idcardtype" column="idcardtype"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="openid" column="openid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="dept" column="deptname"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="drcode" column="drcode"/> |
| | | <result property="drname" column="drname"/> |
| | | <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="tag" column="tag"/> |
| | | <result property="pattype" column="pattype"/> |
| | | <result property="bedNo" column="bedno"/> |
| | | <result property="starttime" column="starttime"/> |
| | | <result property="endtime" column="endtime"/> |
| | | <result property="ageUnit" column="age_unit"/> |
| | | <result property="inhospno" column="inhospno"/> |
| | | <result property="nurseId" column="nurse_id"/> |
| | | <result property="nurseName" column="nurse_name"/> |
| | | <result property="leavehospitaldistrictname" column="leavehospitaldistrictname"/> |
| | | <result property="leavehospitaldistrictcode" column="leavehospitaldistrictcode"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatArchiveVo"> |
| | | select id, |
| | | notrequired_flag, |
| | | notrequiredreason, |
| | | patientno, |
| | | patid_his, |
| | | age_unit, |
| | | sd_flag, |
| | | name, |
| | | sex, |
| | |
| | | <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="idcardno != null and idcardno != ''">and idcardno = #{idcardno}</if> |
| | | <if test="sourcefrom != null ">and sourcefrom = #{sourcefrom}</if> |
| | |
| | | <if test="patientno != null ">and patientno = #{patientno}</if> |
| | | <if test="patidHis != null ">and patid_his = #{patidHis}</if> |
| | | <if test="sdFlag != null ">and sd_flag = #{sdFlag}</if> |
| | | <if test="ageUnit != null ">and age_unit = #{ageUnit}</if> |
| | | <if test="notrequiredFlag != null ">and notrequired_flag = #{notrequiredFlag}</if> |
| | | <if test="notrequiredreason != null ">and notrequiredreason = #{notrequiredreason}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <select id="patInfoByContion" parameterType="com.smartor.domain.PatArchiveReq" resultMap="PatArchiveResult"> |
| | | select |
| | | a.id, |
| | | a.age_unit, |
| | | a.notrequired_flag, |
| | | a.notrequiredreason, |
| | | a.patientno, |
| | | a.patid_his, |
| | | a.sd_flag, |
| | |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="ageUnit != null">age_unit,</if> |
| | | <if test="notrequiredFlag != null ">notrequired_flag,</if> |
| | | <if test="notrequiredreason != null ">notrequiredreason,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patientno != null">#{patientno},</if> |
| | |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="ageUnit != null">#{ageUnit},</if> |
| | | <if test="notrequiredFlag != null ">#{notrequiredFlag},</if> |
| | | <if test="notrequiredreason != null ">#{notrequiredreason},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="insertPatArchive"> |
| | | insert into |
| | | pat_archive(name,viptype,sex,idcardno,birthdate,place_of_residence,age,sourcefrom,archivetime,archiveby,telcode,relativetelcode,idcardtype,orgid,openid,dduserid,update_by,update_time |
| | | ,create_by,create_time,isupload,upload_time,pattype,nation,birthplace,native_place,patientno,patid_his,sd_flag) |
| | | ,create_by,create_time,isupload,upload_time,pattype,nation,birthplace,native_place,patientno,patid_his,sd_flag,age_unit,notrequired_flag,notrequiredreason) |
| | | values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | (#{item.name},#{item.viptype},#{item.sex},#{item.idcardno},#{item.birthdate},#{item.placeOfResidence},#{item.age},#{item.sourcefrom},#{item.archivetime},#{item.archiveby} |
| | | ,#{item.telcode},#{item.archiveby},#{item.idcardtype},#{item.orgid},#{item.openid},#{item.dduserid},#{item.updateBy}, |
| | | #{item.updateTime},#{item.createBy},#{item.createTime},#{item.isupload},#{item.uploadTime},#{item.pattype},#{item.nation},#{item.birthplace},#{item.nativePlace},#{item.patientno},#{item.patidHis},#{item.sdFlag} |
| | | #{item.updateTime},#{item.createBy},#{item.createTime},#{item.isupload},#{item.uploadTime},#{item.pattype},#{item.nation},#{item.birthplace},#{item.nativePlace},#{item.patientno},#{item.patidHis},#{item.sdFlag},#{item.ageUnit},#{item.notrequiredFlag},#{item.notrequiredreason} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | |
| | | <if test="viptype != null">patientno = #{patientno},</if> |
| | | <if test="viptype != null">patid_his = #{patidHis},</if> |
| | | <if test="viptype != null">sd_flag = #{sdFlag},</if> |
| | | <if test="ageUnit != null">age_unit = #{ageUnit},</if> |
| | | <if test="notrequiredFlag != null ">notrequired_flag = #{notrequiredFlag},</if> |
| | | <if test="notrequiredreason != null ">notrequiredreason = #{notrequiredreason},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | </delete> |
| | | |
| | | <select id="selectPatArchiveInfoByAllhosp" parameterType="com.smartor.domain.PatArchiveReq" |
| | | resultMap="PatArchiveResult"> |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | |
| | | SELECT |
| | | a.id, |
| | | a.age_unit, |
| | | a.patid_his, |
| | | a.notrequired_flag, |
| | | a.notrequiredreason, |
| | | a.sd_flag, |
| | | a.patientno, |
| | | a.NAME, |
| | |
| | | |
| | | |
| | | <select id="selectPatArchiveInfoByInhosp" parameterType="com.smartor.domain.PatArchiveReq" |
| | | resultMap="PatArchiveResult"> |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | |
| | | select |
| | | a.id, |
| | | a.age_unit, |
| | | a.inhospno, |
| | | a.notrequired_flag, |
| | | a.notrequiredreason, |
| | | a.patid_his, |
| | | a.sd_flag, |
| | | a.patientno, |
| | | a.NAME, |
| | | d.deptname, |
| | | d.deptcode, |
| | | d.drcode, |
| | | d.drname, |
| | | a.sex, |
| | | a.nation, |
| | | a.native_place, |
| | |
| | | a.upload_time, |
| | | a.pattype, |
| | | d.bed_no, |
| | | d.starttime AS inhosptime, |
| | | d.starttime, |
| | | d.endtime, |
| | | d.nurse_name, |
| | | d.nurse_id, |
| | | d.endtime, |
| | | d.leavehospitaldistrictname AS leavehospitaldistrictname, |
| | | d.leavehospitaldistrictcode AS leavehospitaldistrictcode, |
| | | t.tagname |
| | | FROM |
| | | pat_med_inhosp d |
| | |
| | | <if test="deptname != null and deptname != ''"> |
| | | AND d.deptname LIKE concat('%',#{deptname}, '%') |
| | | </if> |
| | | <if test="leavehospitaldistrictcodes != null"> |
| | | AND d.leavehospitaldistrictcode IN |
| | | <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," |
| | | close=")"> |
| | | #{leavehospitaldistrictcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="leaveldeptcodes != null"> |
| | | AND d.leaveldeptcode IN |
| | | <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," |
| | | close=")"> |
| | | #{leaveldeptcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="pids != null"> |
| | | AND a.id NOT IN |
| | | <foreach collection="pids" item="pid" open="(" separator="," close=")"> |
| | |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByOuthosp" parameterType="com.smartor.domain.PatArchiveReq" |
| | | resultMap="PatArchiveResult"> |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | |
| | | select |
| | | a.id, |
| | | a.age_unit, |
| | | a.patid_his, |
| | | a.sd_flag, |
| | | a.patientno, |
| | | a.notrequired_flag, |
| | | a.notrequiredreason, |
| | | d.deptname, |
| | | d.deptcode, |
| | | d.drcode, |
| | | d.drname, |
| | | a.name, |
| | | a.sex, |
| | | a.nation, |
| | |
| | | a.create_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | d.leavehospitaldistrictcode AS leavehospitaldistrictcode, |
| | | d.leavehospitaldistrictname AS leavehospitaldistrictname, |
| | | a.pattype |
| | | from pat_med_outhosp d JOIN pat_archive a ON a.id = d.patid |
| | | LEFT JOIN ( SELECT patid, GROUP_CONCAT( tagname ) AS tagname FROM pat_archivetag GROUP BY patid ) t ON t.patid = |
| | |
| | | <if test="deptname != null and deptname != ''"> |
| | | and d.deptname LIKE concat('%', #{deptname}, '%') |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''"> |
| | | and d.leavehospitaldistrictname LIKE concat('%', #{leavehospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="drname != null and drname != ''"> |
| | | AND d.drname LIKE concat('%',#{drname}, '%') |
| | | </if> |
| | |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByPhysical" parameterType="com.smartor.domain.PatArchiveReq" |
| | | resultMap="PatArchiveResult"> |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | |
| | | select |
| | | a.id, |
| | | a.age_unit, |
| | | a.name, |
| | | a.notrequired_flag, |
| | | a.notrequiredreason, |
| | | a.patid_his, |
| | | a.sd_flag, |
| | | a.patientno, |
| | | a.sex, |
| | | d.deptname, |
| | | d.deptcode, |
| | | d.drcode, |
| | | d.drname, |
| | | a.nation, |
| | | a.native_place, |
| | | a.place_of_residence, |
| | |
| | | <result property="patno" column="patno"/> |
| | | <result property="inhospstate" column="inhospstate"/> |
| | | <result property="checkFlag" column="check_flag"/> |
| | | <result property="age" column="age"/> |
| | | <result property="telcode" column="telcode"/> |
| | | <result property="longTaskReason" column="long_task_reason"/> |
| | | <result property="nurseId" column="nurse_id"/> |
| | | <result property="nurseName" column="nurse_name"/> |
| | | <result property="outWayId" column="out_way_id"/> |
| | | <result property="outWayName" column="out_way_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedInhospVo"> |
| | | select inhospid, |
| | | patname, |
| | | out_way_id, |
| | | out_way_name, |
| | | nurse_id, |
| | | nurse_name, |
| | | check_flag, |
| | | inhospstate, |
| | | patno, |
| | | long_task_reason, |
| | | inhospno, |
| | | serialnum, |
| | | hospitalname, |
| | |
| | | </sql> |
| | | |
| | | <select id="selectPatMedInhospList" parameterType="com.smartor.domain.PatMedInhosp" resultMap="PatMedInhospResult"> |
| | | <include refid="selectPatMedInhospVo"/> |
| | | select CONCAT( a.age, a.age_unit ) AS age, |
| | | a.telcode as telcode, |
| | | b.inhospid, |
| | | b.nurse_id, |
| | | b.nurse_name, |
| | | b.patname, |
| | | b.out_way_id, |
| | | b.out_way_name, |
| | | b.check_flag, |
| | | b.inhospstate, |
| | | b.patno, |
| | | b.inhospno, |
| | | b.serialnum, |
| | | b.hospitalname, |
| | | b.hospitalcode, |
| | | b.hospitaldistrictcode, |
| | | b.hospitaldistrictname, |
| | | b.icd10code, |
| | | b.diagname, |
| | | b.starttime, |
| | | b.endtime, |
| | | b.deptcode, |
| | | b.deptname, |
| | | b.roomno, |
| | | b.bed_no, |
| | | b.orgid, |
| | | b.del_flag, |
| | | b.update_by, |
| | | b.update_time, |
| | | b.create_by, |
| | | b.create_time, |
| | | b.isupload, |
| | | b.upload_time, |
| | | b.patid, |
| | | b.leavediagname, |
| | | b.leaveicd10code, |
| | | b.drcode, |
| | | b.drname, |
| | | b.schemestatus, |
| | | b.generalschemestatus, |
| | | b.leaveldeptcode, |
| | | b.leaveldeptname, |
| | | b.hospitaldistrictid, |
| | | b.leavehospitaldistrictcode, |
| | | b.leavehospitaldistrictname, |
| | | b.leavehospitaldistrictid, |
| | | b.deptid, |
| | | b.leaveldeptid, |
| | | b.long_task_reason, |
| | | b.schemetime |
| | | FROM |
| | | pat_med_inhosp b, |
| | | pat_archive a |
| | | <where> |
| | | a.del_flag=0 |
| | | and b.del_flag=0 |
| | | and a.id = b.patid |
| | | AND a.idcardno != '' |
| | | <if test="hospitalname != null and hospitalname != ''">and hospitalname like concat('%', #{hospitalname}, |
| | | '%') |
| | | </if> |
| | |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''">and hospitaldistrictname like |
| | | concat('%', #{hospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="endtime != null ">and endtime = #{endtime}</if> |
| | | <if test="patno != null ">and patno = #{patno}</if> |
| | | <if test="checkFlag != null ">and check_flag = #{checkFlag}</if> |
| | | <if test="inhospstate != null ">and inhospstate = #{inhospstate}</if> |
| | | <if test="schemestatus != null ">and schemestatus = #{schemestatus}</if> |
| | | <if test="leavediagname != null and leavediagname != ''">and leavediagname like concat('%', |
| | | <if test="endtime != null ">and b.endtime = #{endtime}</if> |
| | | <if test="patno != null ">and b.patno = #{patno}</if> |
| | | <if test="nurseId != null ">and b.nurse_id = #{nurseId}</if> |
| | | <if test="nurseName != null ">and b.nurse_name = #{nurseName}</if> |
| | | <if test="checkFlag != null ">and b.check_flag = #{checkFlag}</if> |
| | | <if test="inhospstate != null ">and b.inhospstate = #{inhospstate}</if> |
| | | <if test="schemestatus != null ">and b.schemestatus = #{schemestatus}</if> |
| | | <if test="outWayId != null ">and b.out_way_id = #{outWayId}</if> |
| | | <if test="outWayName != null ">and b.out_way_name = #{outWayName}</if> |
| | | <if test="leavediagname != null and leavediagname != ''">and b.leavediagname like concat('%', |
| | | #{leavediagname}, '%') |
| | | </if> |
| | | <if test="drname != null and drname != ''">and drname like concat('%', #{drname}, '%')</if> |
| | | <if test="leaveldeptname != null and leaveldeptname != ''">and leaveldeptname like concat('%', |
| | | <if test="drname != null and drname != ''">and b.drname like concat('%', #{drname}, '%')</if> |
| | | <if test="leaveldeptname != null and leaveldeptname != ''">and b.leaveldeptname like concat('%', |
| | | #{leaveldeptname}, '%') |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''">and |
| | | leavehospitaldistrictname like concat('%', #{leavehospitaldistrictname}, '%') |
| | | b.leavehospitaldistrictname like concat('%', #{leavehospitaldistrictname}, '%') |
| | | </if> |
| | | </where> |
| | | order by update_time desc |
| | | order by b.inhospid desc |
| | | </select> |
| | | |
| | | <select id="selectPatMedInhospListByCondition" parameterType="com.smartor.domain.PatMedInhospVO" |
| | | resultMap="PatMedInhospResult"> |
| | | select CONCAT( a.age, a.age_unit ) AS age, |
| | | a.telcode as telcode, |
| | | b.inhospid, |
| | | b.patname, |
| | | b.out_way_id, |
| | | b.out_way_name, |
| | | b.nurse_id, |
| | | b.nurse_name, |
| | | b.check_flag, |
| | | b.inhospstate, |
| | | b.patno, |
| | | b.inhospno, |
| | | b.serialnum, |
| | | b.hospitalname, |
| | | b.hospitalcode, |
| | | b.hospitaldistrictcode, |
| | | b.hospitaldistrictname, |
| | | b.icd10code, |
| | | b.diagname, |
| | | b.starttime, |
| | | b.endtime, |
| | | b.deptcode, |
| | | b.deptname, |
| | | b.roomno, |
| | | b.bed_no, |
| | | b.orgid, |
| | | b.del_flag, |
| | | b.update_by, |
| | | b.update_time, |
| | | b.create_by, |
| | | b.create_time, |
| | | b.isupload, |
| | | b.upload_time, |
| | | b.patid, |
| | | b.leavediagname, |
| | | b.leaveicd10code, |
| | | b.drcode, |
| | | b.drname, |
| | | b.schemestatus, |
| | | b.generalschemestatus, |
| | | b.leaveldeptcode, |
| | | b.leaveldeptname, |
| | | b.hospitaldistrictid, |
| | | b.leavehospitaldistrictcode, |
| | | b.leavehospitaldistrictname, |
| | | b.leavehospitaldistrictid, |
| | | b.deptid, |
| | | b.leaveldeptid, |
| | | b.long_task_reason, |
| | | b.schemetime |
| | | FROM |
| | | pat_med_inhosp b, |
| | | pat_archive a |
| | | <where> |
| | | a.del_flag=0 |
| | | and b.del_flag=0 |
| | | and a.id = b.patid |
| | | AND a.idcardno != '' |
| | | <if test="hospitalname != null and hospitalname != ''">and hospitalname like concat('%', #{hospitalname}, |
| | | '%') |
| | | </if> |
| | | <if test="patname != null and patname != ''">and patname like concat('%', #{patname}, '%')</if> |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''">and hospitaldistrictname like |
| | | concat('%', #{hospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="endtime != null ">and b.endtime = #{endtime}</if> |
| | | <if test="nurseId != null ">and b.nurse_id = #{nurseId}</if> |
| | | <if test="nurseName != null ">and b.nurse_name = #{nurseName}</if> |
| | | <if test="patno != null ">and b.patno = #{patno}</if> |
| | | <if test="checkFlag != null ">and b.check_flag = #{checkFlag}</if> |
| | | <if test="inhospstate != null ">and b.inhospstate = #{inhospstate}</if> |
| | | <if test="schemestatus != null ">and b.schemestatus = #{schemestatus}</if> |
| | | <if test="leavediagname != null and leavediagname != ''">and b.leavediagname like concat('%', |
| | | #{leavediagname}, '%') |
| | | </if> |
| | | <if test="drname != null and drname != ''">and b.drname like concat('%', #{drname}, '%')</if> |
| | | <if test="leavehospitaldistrictcodes != null"> |
| | | AND b.leavehospitaldistrictcode IN |
| | | <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," |
| | | close=")"> |
| | | #{leavehospitaldistrictcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="leaveldeptcodes != null"> |
| | | AND b.leaveldeptcode IN |
| | | <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," |
| | | close=")"> |
| | | #{leaveldeptcode} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | order by b.inhospid desc |
| | | </select> |
| | | |
| | | |
| | | <select id="selectPatMedInhospByInhospid" parameterType="Long" resultMap="PatMedInhospResult"> |
| | | <include refid="selectPatMedInhospVo"/> |
| | |
| | | <if test="patno != null">patno,</if> |
| | | <if test="inhospstate != null">inhospstate,</if> |
| | | <if test="checkFlag != null">check_flag,</if> |
| | | <if test="longTaskReason != null">long_task_reason,</if> |
| | | <if test="nurseId != null ">nurse_id,</if> |
| | | <if test="nurseName != null ">nurse_name,</if> |
| | | <if test="outWayId != null ">out_way_id,</if> |
| | | <if test="outWayName != null ">out_way_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="serialnum != null">#{serialnum},</if> |
| | |
| | | <if test="patno != null">#{patno},</if> |
| | | <if test="inhospstate != null">#{inhospstate},</if> |
| | | <if test="checkFlag != null">#{checkFlag},</if> |
| | | <if test="longTaskReason != null">#{longTaskReason},</if> |
| | | <if test="nurseId != null ">#{nurseId},</if> |
| | | <if test="nurseName != null ">#{nurseName},</if> |
| | | <if test="outWayId != null ">#{outWayId},</if> |
| | | <if test="outWayName != null ">#{outWayName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="patno != null">patno = #{patno},</if> |
| | | <if test="inhospstate != null">inhospstate = #{inhospstate},</if> |
| | | <if test="checkFlag != null">check_flag = #{checkFlag},</if> |
| | | <if test="longTaskReason != null">long_task_reason = #{longTaskReason},</if> |
| | | <if test="nurseId != null ">nurse_id = #{nurseId},</if> |
| | | <if test="nurseName != null ">nurse_name = #{nurseName},</if> |
| | | <if test="outWayId != null ">out_way_id = #{outWayId},</if> |
| | | <if test="outWayName != null ">out_way_name = #{outWayName},</if> |
| | | </trim> |
| | | where inhospid = #{inhospid} |
| | | </update> |
| | |
| | | <result property="sendname" column="sendname"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="nurseName" column="nurse_name"/> |
| | | <result property="nurseId" column="nurse_id"/> |
| | | <result property="age" column="age"/> |
| | | <result property="sfzh" column="sfzh"/> |
| | | <result property="addr" column="addr"/> |
| | |
| | | <result property="longSendTime" column="long_send_time"/> |
| | | <result property="serviceType" column="service_type"/> |
| | | <result property="score" column="score"/> |
| | | <result property="submit" column="submit"/> |
| | | <result property="drname" column="drname"/> |
| | | <result property="drcode" column="drcode"/> |
| | | <result property="starttime" column="starttime"/> |
| | | <result property="endtime" column="endtime"/> |
| | | <result property="leavehospitaldistrictcode" column="leavehospitaldistrictcode"/> |
| | | <result property="leavehospitaldistrictname" column="leavehospitaldistrictname"/> |
| | | <result property="excep" column="excep"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="suggest" column="suggest"/> |
| | | <result property="sendstate" column="sendstate"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskCount" id="ServiceSubtaskResult2"> |
| | |
| | | <sql id="selectServiceSubtaskVo"> |
| | | select id, |
| | | hosp_type, |
| | | suggest, |
| | | sendstate, |
| | | endtime, |
| | | nurse_id, |
| | | nurse_name, |
| | | starttime, |
| | | submit, |
| | | drname, |
| | | excep, |
| | | drcode, |
| | | long_send_time, |
| | | openid, |
| | | remark, |
| | | service_type, |
| | | libtemplateid, |
| | | libtemplatename, |
| | |
| | | admindate, |
| | | deptname, |
| | | stop_state, |
| | | leavehospitaldistrictcode, |
| | | leavehospitaldistrictname, |
| | | diagname |
| | | from service_subtask |
| | | </sql> |
| | |
| | | del_flag=0 |
| | | <if test="sendname != null and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="leavehospitaldistrictcode != null and leavehospitaldistrictcode != ''">and |
| | | leavehospitaldistrictcode = #{leavehospitaldistrictcode} |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''">and |
| | | leavehospitaldistrictname = #{leavehospitaldistrictname} |
| | | </if> |
| | | <if test="sex != null and sex != ''">and sex = #{sex}</if> |
| | | <if test="age != null ">and age = #{age}</if> |
| | | <if test="submit != null ">and submit = #{submit}</if> |
| | | <if test="serviceType != null ">and service_type = #{serviceType}</if> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | <if test="sfzh != null and sfzh != ''">and sfzh = #{sfzh}</if> |
| | |
| | | <if test="exrecallcount != null ">and exrecallcount = #{exrecallcount}</if> |
| | | <if test="pulltime != null ">and pulltime = #{pulltime}</if> |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <if test="deptname != null and deptname != ''">and deptname = #{deptname}</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="openid != null ">and openid = #{openid}</if> |
| | | <if test="longSendTime != null ">and long_send_time = #{longSendTime}</if> |
| | | <if test="sendstate != null ">and sendstate = #{sendstate}</if> |
| | | <if test="score != null"> |
| | | and score = #{score} |
| | | <if test="drname != null ">and drname = #{drname}</if> |
| | | <if test="drcode != null ">and drcode = #{drcode}</if> |
| | | <if test="starttime != null ">and starttime = #{starttime}</if> |
| | | <if test="endtime != null ">and endtime = #{endtime}</if> |
| | | <if test="excep != null ">and excep = #{excep}</if> |
| | | <if test="nurseId != null ">and nurse_id = #{nurseId}</if> |
| | | <if test="nurseName != null ">and nurse_name = #{nurseName}</if> |
| | | <if test="leavehospitaldistrictcode != null ">and leavehospitaldistrictcode = #{leavehospitaldistrictcode} |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null ">and leavehospitaldistrictname = #{leavehospitaldistrictname} |
| | | </if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | <if test="remark != null">and remark = #{remark}</if> |
| | | <if test="suggest != null">and suggest = #{suggest}</if> |
| | | </where> |
| | | order by update_time desc,id desc |
| | | </select> |
| | |
| | | <if test="pulltime != null">pulltime,</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="longSendTime != null ">long_send_time,</if> |
| | | <if test="serviceType != null ">service_type,</if> |
| | | <if test="score != null ">score,</if> |
| | | <if test="submit != null ">submit,</if> |
| | | <if test="leavehospitaldistrictcode != null and leavehospitaldistrictcode != ''"> |
| | | leavehospitaldistrictcode, |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''"> |
| | | leavehospitaldistrictname, |
| | | </if> |
| | | <if test="drname != null ">drname,</if> |
| | | <if test="drcode != null ">drcode,</if> |
| | | <if test="endtime != null ">endtime,</if> |
| | | <if test="starttime != null ">starttime,</if> |
| | | <if test="excep != null ">excep,</if> |
| | | <if test="nurseName != null ">nurse_name,</if> |
| | | <if test="nurseId != null ">nurse_id,</if> |
| | | <if test="remark != null ">remark,</if> |
| | | <if test="suggest != null ">suggest,</if> |
| | | <if test="sendstate != null ">sendstate,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="sendname != null">#{sendname},</if> |
| | |
| | | <if test="pulltime != null">#{pulltime},</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="longSendTime != null ">#{longSendTime},</if> |
| | | <if test="serviceType != null ">#{serviceType},</if> |
| | | <if test="score != null ">#{score},</if> |
| | | <if test="submit != null ">#{submit},</if> |
| | | <if test="leavehospitaldistrictcode != null and leavehospitaldistrictcode != ''"> |
| | | #{leavehospitaldistrictcode}, |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''"> |
| | | #{leavehospitaldistrictname}, |
| | | </if> |
| | | <if test="drname != null ">#{drname},</if> |
| | | <if test="drcode != null ">#{drcode},</if> |
| | | <if test="endtime != null ">#{endtime},</if> |
| | | <if test="starttime != null ">#{starttime},</if> |
| | | <if test="excep != null ">#{excep},</if> |
| | | <if test="nurseName != null ">#{nurseName},</if> |
| | | <if test="nurseId != null ">#{nurseId},</if> |
| | | <if test="remark != null ">#{remark},</if> |
| | | <if test="suggest != null ">#{suggest},</if> |
| | | <if test="sendstate != null ">#{sendstate},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="pulltime != null">pulltime = #{pulltime},</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="sendstate != null ">sendstate = #{sendstate},</if> |
| | | <if test="serviceType != null ">service_type = #{serviceType},</if> |
| | | <if test="score != null ">score = #{score},</if> |
| | | <if test="submit != null ">submit = #{submit},</if> |
| | | <if test="leavehospitaldistrictcode != null and leavehospitaldistrictcode != ''">leavehospitaldistrictcode |
| | | = #{leavehospitaldistrictcode}, |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''">leavehospitaldistrictname |
| | | = #{leavehospitaldistrictname}, |
| | | </if> |
| | | <if test="drname != null ">drname = #{drname},</if> |
| | | <if test="drcode != null ">drcode = #{drcode},</if> |
| | | <if test="starttime != null ">starttime = #{starttime},</if> |
| | | <if test="endtime != null ">endtime = #{endtime},</if> |
| | | <if test="excep != null ">excep = #{excep},</if> |
| | | <if test="nurseName != null ">nurse_name=#{nurseName},</if> |
| | | <if test="nurseId != null ">nurse_id=#{nurseId},</if> |
| | | <if test="remark != null ">remark=#{remark},</if> |
| | | <if test="suggest != null ">suggest=#{suggest},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test="pulltime != null">pulltime = #{pulltime},</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="longSendTime != null ">long_send_time = #{longSendTime},</if> |
| | | <if test="serviceType != null ">service_type = #{serviceType},</if> |
| | | <if test="score != null ">score = #{score},</if> |
| | | |
| | | <if test="submit != null ">submit = #{submit},</if> |
| | | <if test="leavehospitaldistrictcode != null and leavehospitaldistrictcode != ''">leavehospitaldistrictcode |
| | | = #{leavehospitaldistrictcode}, |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''">leavehospitaldistrictname |
| | | = #{leavehospitaldistrictname}, |
| | | </if> |
| | | <if test="drname != null ">drname = #{drname},</if> |
| | | <if test="drcode != null ">drcode = #{drcode},</if> |
| | | <if test="endtime != null ">endtime = #{endtime},</if> |
| | | <if test="starttime != null ">starttime = #{starttime},</if> |
| | | <if test="excep != null ">excep = #{excep},</if> |
| | | <if test="nurseName != null ">nurse_name=#{nurseName},</if> |
| | | <if test="nurseId != null ">nurse_id=#{nurseId},</if> |
| | | <if test="remark != null ">remark=#{remark},</if> |
| | | <if test="suggest != null ">suggest=#{suggest},</if> |
| | | </trim> |
| | | where patid = #{patid} and taskid = #{taskid} |
| | | </update> |
| | |
| | | sendname, |
| | | long_send_time, |
| | | phone, |
| | | suggest, |
| | | sex, |
| | | age, |
| | | openid, |
| | |
| | | service_type, |
| | | deptname, |
| | | score, |
| | | drname, |
| | | drcode, |
| | | starttime, |
| | | endtime, |
| | | leavehospitaldistrictcode, |
| | | leavehospitaldistrictname, |
| | | excep, |
| | | nurse_id, |
| | | nurse_name, |
| | | remark, |
| | | diagname |
| | | FROM service_subtask, |
| | | JSON_TABLE(send_time_slot, '$[*]' COLUMNS ( |
| | |
| | | <result property="type" column="type"/> |
| | | <result property="typename" column="typename"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="deptname" column="deptname"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | |
| | | <result property="textParam" column="text_param"/> |
| | | <result property="serviceType" column="service_type"/> |
| | | <result property="longTask" column="long_task"/> |
| | | <result property="kcb" column="kcb"/> |
| | | <result property="jsy" column="jsy"/> |
| | | <result property="leavehospitaldistrictcode" column="leavehospitaldistrictcode"/> |
| | | <result property="leavehospitaldistrictname" column="leavehospitaldistrictname"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceTaskVo"> |
| | |
| | | hosp_type, |
| | | typename, |
| | | deptcode, |
| | | deptname, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | |
| | | send_state, |
| | | send_time_slot, |
| | | service_type, |
| | | kcb, |
| | | jsy, |
| | | leavehospitaldistrictcode, |
| | | leavehospitaldistrictname, |
| | | orgid |
| | | from service_task |
| | | </sql> |
| | |
| | | </if> |
| | | |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <if test="deptname != null and deptname != ''">and deptname = #{deptname}</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="libtemplatename != null and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if> |
| | | <if test="createBy != null and createBy != ''">and create_by = #{createBy}</if> |
| | | <if test="sendState != null ">and send_state = #{sendState}</if> |
| | | <if test="leavehospitaldistrictname != null ">and leavehospitaldistrictname = #{leavehospitaldistrictname}</if> |
| | | <if test="leavehospitaldistrictcode != null ">and leavehospitaldistrictcode = #{leavehospitaldistrictcode}</if> |
| | | </where> |
| | | order by update_time desc,taskid desc |
| | | </select> |
| | |
| | | <if test="type != null">type,</if> |
| | | <if test="typename != null">typename,</if> |
| | | <if test="deptcode != null">deptcode,</if> |
| | | <if test="deptname != null">deptname,</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="sendType != null">send_type,</if> |
| | | <if test="sendState != null">send_state,</if> |
| | | <if test="hospType != null and hospType != ''">hosp_type,</if> |
| | | |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc,</if> |
| | | <if test="libtemplateid != null ">libtemplateid,</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename,</if> |
| | |
| | | <if test="textParam != null and textParam != ''">text_param,</if> |
| | | <if test="serviceType != null and serviceType != ''">service_type,</if> |
| | | <if test="longTask != null and longTask != ''">long_task,</if> |
| | | <if test="kcb != null and kcb != ''">kcb,</if> |
| | | <if test="jsy != null and jsy != ''">jsy,</if> |
| | | <if test="leavehospitaldistrictname != null ">leavehospitaldistrictname,</if> |
| | | <if test="leavehospitaldistrictcode != null ">leavehospitaldistrictcode,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">#{taskName},</if> |
| | |
| | | <if test="type != null">#{type},</if> |
| | | <if test="typename != null">#{typename},</if> |
| | | <if test="deptcode != null">#{deptcode},</if> |
| | | <if test="deptname != null">#{deptname},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | |
| | | <if test="textParam != null and textParam != ''">#{textParam},</if> |
| | | <if test="serviceType != null and serviceType != ''">#{serviceType},</if> |
| | | <if test="longTask != null and longTask != ''">#{longTask},</if> |
| | | <if test="kcb != null and kcb != ''">#{kcb},</if> |
| | | <if test="jsy != null and jsy != ''">#{jsy},</if> |
| | | <if test="leavehospitaldistrictname != null ">#{leavehospitaldistrictname},</if> |
| | | <if test="leavehospitaldistrictcode != null ">#{leavehospitaldistrictcode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="type != null">type = #{type},</if> |
| | | <if test="typename != null">typename = #{typename},</if> |
| | | <if test="deptcode != null">deptcode = #{deptcode},</if> |
| | | <if test="deptname != null">deptname = #{deptname},</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="textParam != null and textParam != ''">text_param=#{textParam},</if> |
| | | <if test="serviceType != null and serviceType != ''">service_type = #{serviceType},</if> |
| | | <if test="longTask != null and longTask != ''">long_task = #{longTask},</if> |
| | | <if test="kcb != null and kcb != ''">kcb = #{kcb},</if> |
| | | <if test="jsy != null and jsy != ''">kcb = #{jsy},</if> |
| | | <if test="leavehospitaldistrictname != null ">leavehospitaldistrictname = #{leavehospitaldistrictname},</if> |
| | | <if test="leavehospitaldistrictcode != null ">leavehospitaldistrictcode = #{leavehospitaldistrictcode},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |
| | |
| | | <result property="prologue" column="prologue"/> |
| | | <result property="instruction" column="instruction"/> |
| | | <result property="conclusion" column="conclusion"/> |
| | | <result property="deptCode" column="dept_code"/> |
| | | <result property="longTemp" column="long_temp"/> |
| | | <result property="sendDay" column="send_day"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateVo"> |
| | | select id, |
| | | templateid, |
| | | prologue, |
| | | dept_code, |
| | | long_temp, |
| | | send_day, |
| | | instruction, |
| | | conclusion, |
| | | categoryid, |
| | |
| | | resultMap="SvyTaskTemplateResult"> |
| | | <include refid="selectSvyTaskTemplateVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <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="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> |
| | | <if test="deptCode != null ">and dept_code = #{deptCode}</if> |
| | | <if test="longTemp != null ">and long_temp = #{longTemp}</if> |
| | | <if test="sendDay != null ">and send_day = #{sendDay}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="prologue != null">prologue,</if> |
| | | <if test="instruction != null">instruction,</if> |
| | | <if test="conclusion != null">conclusion,</if> |
| | | <if test="deptCode != null ">dept_code,</if> |
| | | <if test="longTemp != null ">long_temp,</if> |
| | | <if test="sendDay != null ">send_day,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateid != null">#{templateid},</if> |
| | |
| | | <if test="prologue != null">#{prologue},</if> |
| | | <if test="instruction != null">#{instruction},</if> |
| | | <if test="conclusion != null">#{conclusion},</if> |
| | | <if test="deptCode != null ">#{deptCode},</if> |
| | | <if test="longTemp != null ">#{longTemp},</if> |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="prologue != null">prologue = #{prologue},</if> |
| | | <if test="instruction != null">instruction = #{instruction},</if> |
| | | <if test="conclusion != null">conclusion = #{conclusion},</if> |
| | | <if test="deptCode != null ">dept_code = #{deptCode},</if> |
| | | <if test="longTemp != null ">long_temp = #{longTemp},</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="userId" column="user_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="deptCode" column="dept_code"/> |
| | | <result property="deptType" column="dept_type"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | </resultMap> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysUserDeptVo"> |
| | | select id, user_id, dept_id, del_flag, create_time, update_time |
| | | select id, |
| | | user_id, |
| | | dept_id, |
| | | del_flag, |
| | | create_time, |
| | | update_time, |
| | | dept_code, |
| | | dept_type |
| | | from sys_user_dept |
| | | </sql> |
| | | |
| | |
| | | <if test="updateTime != null "> |
| | | update_time, |
| | | </if> |
| | | <if test="deptType != null "> |
| | | dept_type, |
| | | </if> |
| | | <if test="deptCode != null "> |
| | | dept_code, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="userId != null">#{userId}, |
| | |
| | | </if> |
| | | <if test="updateTime != null "> |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="deptType != null "> |
| | | #{deptType}, |
| | | </if> |
| | | <if test="deptCode != null "> |
| | | #{deptCode}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="updateTime != null "> |
| | | update_time = #{updateTime}, |
| | | </if> |
| | | <if test="deptType != null "> |
| | | dept_type = #{deptType}, |
| | | </if> |
| | | <if test="deptCode != null "> |
| | | dept_code = #{deptCode}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |