|
@@ -2,11 +2,8 @@ package com.diagbot.web;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
-import com.diagbot.dto.KlDiagnoseByIdDTO;
|
|
|
import com.diagbot.dto.KlDiagnoseInfoDTO;
|
|
|
import com.diagbot.dto.KlDiagnoseTypeDTO;
|
|
|
-import com.diagbot.dto.KlRuleByIdParDTO;
|
|
|
-import com.diagbot.dto.KlRuleInfoDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.enums.StatusEnum;
|
|
|
import com.diagbot.facade.KlDiagnoseFacade;
|
|
@@ -14,11 +11,7 @@ import com.diagbot.vo.KlDiagnoseByIdVO;
|
|
|
import com.diagbot.vo.KlDiagnoseClearVO;
|
|
|
import com.diagbot.vo.KlDiagnoseInfoVO;
|
|
|
import com.diagbot.vo.KlDiagnoseSatarDisVO;
|
|
|
-import com.diagbot.vo.KlRuleByIdVO;
|
|
|
-import com.diagbot.vo.KlRuleInfoClearVO;
|
|
|
-import com.diagbot.vo.KlRuleInfoSaveVO;
|
|
|
-import com.diagbot.vo.KlRuleInfoVO;
|
|
|
-import com.diagbot.vo.KlRuleSatartOrdisaVO;
|
|
|
+import com.diagbot.vo.KlDiagnoseSaveVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -42,31 +35,31 @@ import java.util.List;
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public class KlDiagnoseController {
|
|
|
@Autowired
|
|
|
- KlDiagnoseFacade klDiagnoseFacade;
|
|
|
+ KlDiagnoseFacade klDiagnoseFacade;
|
|
|
|
|
|
- @ApiOperation(value = "分页获取规则维护列表[by:wangfeng]")
|
|
|
+ @ApiOperation(value = "分页获取诊断依据维护列表[by:wangfeng]")
|
|
|
@PostMapping("/getKlDiagnosePage")
|
|
|
@SysLogger("getKlDiagnosePage")
|
|
|
public RespDTO<IPage<KlDiagnoseInfoDTO>> getDiagnosePages(@RequestBody KlDiagnoseInfoVO klRuleInfoVO) {
|
|
|
return RespDTO.onSuc(klDiagnoseFacade.getKlDiagnoseInfoPage(klRuleInfoVO));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "根据规则Id获取规则详情[by:wangfeng]")
|
|
|
+ @ApiOperation(value = "根据Id获取诊断依据详情[by:wangfeng]")
|
|
|
@PostMapping("/getByIdDiagnose")
|
|
|
@SysLogger("getByIdDiagnose")
|
|
|
public RespDTO<List<KlDiagnoseTypeDTO>> getByIdDiagnoseAll(@RequestBody @Valid KlDiagnoseByIdVO klDiagnoseByIdVO) {
|
|
|
return RespDTO.onSuc(klDiagnoseFacade.getByIdDiagnoseAll(klDiagnoseByIdVO));
|
|
|
}
|
|
|
-/*
|
|
|
- @ApiOperation(value = "保存规则详情[by:wangfeng]")
|
|
|
+
|
|
|
+ @ApiOperation(value = "保存诊断依据详情[by:wangfeng]")
|
|
|
@PostMapping("/saveDiagnose")
|
|
|
@SysLogger("saveDiagnose")
|
|
|
@Transactional
|
|
|
- public RespDTO<Boolean> saveDiagnoseAll(@RequestBody @Valid KlDiagnoseSaveVO klRuleInfoSaveVO) {
|
|
|
- return RespDTO.onSuc(klDiagnoseFacade.saveDiagnoseAll(klRuleInfoSaveVO));
|
|
|
- }*/
|
|
|
+ public RespDTO<Boolean> saveDiagnoseAll(@RequestBody @Valid KlDiagnoseSaveVO klDiagnoseSaveVO) {
|
|
|
+ return RespDTO.onSuc(klDiagnoseFacade.saveDiagnoseAll(klDiagnoseSaveVO));
|
|
|
+ }
|
|
|
|
|
|
- @ApiOperation(value = "刪除规则详情[by:wangfeng]")
|
|
|
+ @ApiOperation(value = "刪除诊断依据详情[by:wangfeng]")
|
|
|
@PostMapping("/clearDiagnose")
|
|
|
@SysLogger("clearDiagnose")
|
|
|
@Transactional
|
|
@@ -74,17 +67,17 @@ public class KlDiagnoseController {
|
|
|
return RespDTO.onSuc(klDiagnoseFacade.clearDiagnoseAll(klDiagnoseClearVO));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "停用规则[by:wangfeng]")
|
|
|
+ @ApiOperation(value = "停用诊断依据[by:wangfeng]")
|
|
|
@PostMapping("/disableKlDiagnose")
|
|
|
@SysLogger("disableKlDiagnose")
|
|
|
public RespDTO<Boolean> disableDiagnoses(@RequestBody @Valid KlDiagnoseSatarDisVO klDiagnoseSatarDisVO) {
|
|
|
return RespDTO.onSuc(klDiagnoseFacade.disableDiagnose(klDiagnoseSatarDisVO, StatusEnum.Disable.getKey()));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "启用规则[by:wangfeng]")
|
|
|
+ @ApiOperation(value = "启用诊断依据[by:wangfeng]")
|
|
|
@PostMapping("/startKlDiagnose")
|
|
|
@SysLogger("startKlDiagnose")
|
|
|
public RespDTO<Boolean> startKlDiagnoses(@RequestBody @Valid KlDiagnoseSatarDisVO klDiagnoseSatarDisVO) {
|
|
|
- return RespDTO.onSuc(klDiagnoseFacade.disableDiagnose(klDiagnoseSatarDisVO,StatusEnum.Enable.getKey()));
|
|
|
+ return RespDTO.onSuc(klDiagnoseFacade.disableDiagnose(klDiagnoseSatarDisVO, StatusEnum.Enable.getKey()));
|
|
|
}
|
|
|
}
|