|
@@ -0,0 +1,84 @@
|
|
|
+package com.diagbot.web;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.KlDiagnoseInfoDTO;
|
|
|
+import com.diagbot.dto.KlDiagnoseTypeDTO;
|
|
|
+import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.enums.StatusEnum;
|
|
|
+import com.diagbot.facade.KlDiagnoseFacade;
|
|
|
+import com.diagbot.vo.KlDiagnoseByIdVO;
|
|
|
+import com.diagbot.vo.KlDiagnoseClearVO;
|
|
|
+import com.diagbot.vo.KlDiagnoseInfoVO;
|
|
|
+import com.diagbot.vo.KlDiagnoseSatarDisVO;
|
|
|
+import com.diagbot.vo.KlDiagnoseSaveVO;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author wangfeng
|
|
|
+ * @Description:
|
|
|
+ * @date 2021-03-19 14:52
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/klDiagnose")
|
|
|
+@Api(value = "诊断依据维护相关API", tags = { "诊断依据维护相关API" })
|
|
|
+@SuppressWarnings("unchecked")
|
|
|
+public class KlDiagnoseController {
|
|
|
+ @Autowired
|
|
|
+ KlDiagnoseFacade klDiagnoseFacade;
|
|
|
+
|
|
|
+ @ApiOperation(value = "分页获取诊断依据维护列表[by:wangfeng]")
|
|
|
+ @PostMapping("/getDiagnosePage")
|
|
|
+ @SysLogger("getDiagnosePage")
|
|
|
+ public RespDTO<Page<KlDiagnoseInfoDTO>> getDiagnosePages(@RequestBody KlDiagnoseInfoVO klDiagnoseInfoVO) {
|
|
|
+ return RespDTO.onSuc(klDiagnoseFacade.getKlDiagnoseInfoPage(klDiagnoseInfoVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据Id获取诊断依据详情[by:wangfeng]")
|
|
|
+ @PostMapping("/getByIdDiagnoseAll")
|
|
|
+ @SysLogger("getByIdDiagnoseAll")
|
|
|
+ public RespDTO<List<KlDiagnoseTypeDTO>> getByIdDiagnoseAlls(@RequestBody @Valid KlDiagnoseByIdVO klDiagnoseByIdVO) {
|
|
|
+ return RespDTO.onSuc(klDiagnoseFacade.getByIdDiagnoseAll(klDiagnoseByIdVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "保存诊断依据详情[by:wangfeng]")
|
|
|
+ @PostMapping("/saveDiagnoseAll")
|
|
|
+ @SysLogger("saveDiagnoseAll")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO<Boolean> saveDiagnoseAlls(@RequestBody @Valid KlDiagnoseSaveVO klDiagnoseSaveVO) {
|
|
|
+ return RespDTO.onSuc(klDiagnoseFacade.saveDiagnoseAll(klDiagnoseSaveVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "刪除诊断依据详情[by:wangfeng]")
|
|
|
+ @PostMapping("/clearDiagnoseAll")
|
|
|
+ @SysLogger("clearDiagnoseAll")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO<Boolean> clearDiagnoseAlls(@RequestBody @Valid KlDiagnoseClearVO klDiagnoseClearVO) {
|
|
|
+ return RespDTO.onSuc(klDiagnoseFacade.clearDiagnoseAll(klDiagnoseClearVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "停用诊断依据[by:wangfeng]")
|
|
|
+ @PostMapping("/disableDiagnose")
|
|
|
+ @SysLogger("disableDiagnose")
|
|
|
+ public RespDTO<Boolean> disableDiagnoses(@RequestBody @Valid KlDiagnoseSatarDisVO klDiagnoseSatarDisVO) {
|
|
|
+ return RespDTO.onSuc(klDiagnoseFacade.disableDiagnose(klDiagnoseSatarDisVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "启用诊断依据[by:wangfeng]")
|
|
|
+ @PostMapping("/startDiagnose")
|
|
|
+ @SysLogger("startDiagnose")
|
|
|
+ public RespDTO<Boolean> startKlDiagnoses(@RequestBody @Valid KlDiagnoseSatarDisVO klDiagnoseSatarDisVO) {
|
|
|
+ return RespDTO.onSuc(klDiagnoseFacade.startKlDiagnoses(klDiagnoseSatarDisVO));
|
|
|
+ }
|
|
|
+}
|