|
@@ -0,0 +1,86 @@
|
|
|
+package com.xxh.cloud.inspur.admin.controller;
|
|
|
+
|
|
|
+import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
+import com.xxh.cloud.framework.common.entity.Result;
|
|
|
+import com.xxh.cloud.inspur.framework.modules.biz.bean.dto.DeptInfoAddDto;
|
|
|
+import com.xxh.cloud.inspur.framework.modules.biz.service.UploadInspurInfoBizService;
|
|
|
+import com.xxh.cloud.inspur.framework.modules.mq.bean.PatientEventMqBo;
|
|
|
+import com.xxh.cloud.inspur.framework.modules.third.service.InspurPatientPushService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.log4j.Log4j2;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.multipart.MultipartFile;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 上传病种信息
|
|
|
+ */
|
|
|
+@Log4j2
|
|
|
+@SaIgnore
|
|
|
+@RestController
|
|
|
+@RequestMapping("/sys/upload/inspur/info")
|
|
|
+@Api(tags = "上传模板信息")
|
|
|
+public class UploadInspurInfoController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private UploadInspurInfoBizService uploadInspurInfoBizService;
|
|
|
+
|
|
|
+ @PostMapping("/deptNotes")
|
|
|
+ @ApiOperation(value="上传部门信息")
|
|
|
+ public Result<String> deptNotes(@RequestPart("files") MultipartFile files) {
|
|
|
+ log.info("----------上传部门信息---------------");
|
|
|
+ uploadInspurInfoBizService.deptNotes(files);
|
|
|
+ return new Result<String>().ok("ok");
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/examNotes")
|
|
|
+ @ApiOperation(value="上传检查信息")
|
|
|
+ public Result<String> examNotes(@RequestPart("files") MultipartFile files) {
|
|
|
+ log.info("----------上传检查信息---------------");
|
|
|
+ uploadInspurInfoBizService.examNotes(files);
|
|
|
+ return new Result<String>().ok("ok");
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/labNotes")
|
|
|
+ @ApiOperation(value="上传检验信息")
|
|
|
+ public Result<String> labNotes(@RequestPart("files") MultipartFile files) {
|
|
|
+ log.info("----------上传检验信息---------------");
|
|
|
+ uploadInspurInfoBizService.labNotes(files);
|
|
|
+ return new Result<String>().ok("ok");
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/opNotes")
|
|
|
+ @ApiOperation(value="手术注意事项")
|
|
|
+ public Result<String> opNotes(@RequestPart("files") MultipartFile files) {
|
|
|
+ log.info("----------上传手术注意事项---------------");
|
|
|
+ uploadInspurInfoBizService.opNotes(files);
|
|
|
+ return new Result<String>().ok("ok");
|
|
|
+ }
|
|
|
+
|
|
|
+ // --------------------------------------------
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private InspurPatientPushService inspurPatientPushService;
|
|
|
+
|
|
|
+ @PostMapping("/sendTemp_demo")
|
|
|
+ @ApiOperation(value="微信推送sendTemp_demo")
|
|
|
+ public Result<String> sendTemp_GH(@RequestBody PatientEventMqBo bo) {
|
|
|
+ if ("eve_register".equals(bo.getEventType())) {
|
|
|
+ inspurPatientPushService.sendTemp_GH(bo);
|
|
|
+ }
|
|
|
+ if ("eve_diag".equals(bo.getEventType())) {
|
|
|
+ inspurPatientPushService.sendTemp_YZ(bo);
|
|
|
+ }
|
|
|
+ if ("eve_inpatient".equals(bo.getEventType())) {
|
|
|
+ inspurPatientPushService.sendTemp_ZYYY(bo);
|
|
|
+ }
|
|
|
+ if ("eve_exa_lab".equals(bo.getEventType())) {
|
|
|
+ inspurPatientPushService.sendTemp_BG(bo);
|
|
|
+ }
|
|
|
+ if ("eve_discharge".equals(bo.getEventType())) {
|
|
|
+ inspurPatientPushService.sendTemp_CY(bo);
|
|
|
+ }
|
|
|
+ return new Result<String>().ok("ok");
|
|
|
+ }
|
|
|
+}
|