|
@@ -4,10 +4,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.dto.*;
|
|
import com.diagbot.dto.*;
|
|
import com.diagbot.facade.ConsoleFacade;
|
|
import com.diagbot.facade.ConsoleFacade;
|
|
|
|
+import com.diagbot.util.RedisUtils;
|
|
import com.diagbot.vo.*;
|
|
import com.diagbot.vo.*;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -31,6 +33,8 @@ public class ConsoleController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ConsoleFacade consoleFacade;
|
|
private ConsoleFacade consoleFacade;
|
|
|
|
+ @Autowired
|
|
|
|
+ private RedisUtils redisUtils;
|
|
|
|
|
|
//region-----------------------聚合接口开始-------------------------------
|
|
//region-----------------------聚合接口开始-------------------------------
|
|
@ApiOperation(value = "病历相关统计[by:zhaops]",
|
|
@ApiOperation(value = "病历相关统计[by:zhaops]",
|
|
@@ -431,6 +435,13 @@ public class ConsoleController {
|
|
@PostMapping("/entryGroupByEntryInnerPage")
|
|
@PostMapping("/entryGroupByEntryInnerPage")
|
|
@SysLogger("entryGroupByEntryInnerPage")
|
|
@SysLogger("entryGroupByEntryInnerPage")
|
|
public RespDTO<IPage<EntryNumDTO>> entryGroupByEntryInnerPage(@RequestBody @Valid FilterPageVO filterPageVO) {
|
|
public RespDTO<IPage<EntryNumDTO>> entryGroupByEntryInnerPage(@RequestBody @Valid FilterPageVO filterPageVO) {
|
|
|
|
+ if(filterPageVO.getEnableTargetEntryId()) {
|
|
|
|
+ String key = "console:entryGroup4UnreasonableDiagnosis:targetEntryIds";
|
|
|
|
+ List<Long> targetEntryIds = (List<Long>) redisUtils.get(key);
|
|
|
|
+ if (!CollectionUtils.isEmpty(targetEntryIds)) {
|
|
|
|
+ filterPageVO.setTargetEntryIds(targetEntryIds);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return RespDTO.onSuc(consoleFacade.entryGroupByEntryInnerPage(filterPageVO));
|
|
return RespDTO.onSuc(consoleFacade.entryGroupByEntryInnerPage(filterPageVO));
|
|
}
|
|
}
|
|
//endregion-----------------------分页接口结束-------------------------------
|
|
//endregion-----------------------分页接口结束-------------------------------
|