0027005599 2 жил өмнө
parent
commit
812076c323

+ 6 - 3
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/controller/HisController.java

@@ -105,10 +105,12 @@ public class HisController extends JeecgController<Audit, IAuditService> {
     @ApiOperation(value="住院事中预警接口", notes="住院事中预警接口调用")
     @PostMapping(value = "/hospMidIncidentWarning")
     public Result hospMidIncidentWarning(@RequestBody @Valid HospMidIncidentWarningVO midIncidentWarningVO, HttpServletRequest httpServletRequest) {
-
+        log.info("事中住院预警请求报文:{}", JSON.toJSONString(midIncidentWarningVO));
         String ipStr = HttpUtils.getIPAddress(httpServletRequest);
         log.info("住院事中远端请求的服务ip地址:{}", ipStr);
-        return hospGetDataToRuleEngine.getHopsDataByVisiVo(midIncidentWarningVO);
+        Result result = hospGetDataToRuleEngine.getHopsDataByVisiVo(midIncidentWarningVO);
+        log.info("住院事中预警返回报文:{}", result);
+        return result;
     }
 
 
@@ -123,11 +125,12 @@ public class HisController extends JeecgController<Audit, IAuditService> {
     @ApiOperation(value="门诊事中预警接口", notes="门诊事中预警接口调用")
     @PostMapping(value = "/outpatientMidIncidentWarning")
     public Result outpatientMidIncidentWarning(@RequestBody @Valid MidIncidentWarningVO midIncidentWarningVO,HttpServletRequest httpServletRequest) {
-
+        log.info("事中门诊预警请求报文:{}", JSON.toJSONString(midIncidentWarningVO));
         String ipStr = HttpUtils.getIPAddress(httpServletRequest);
         log.info("事中远端请求的服务ip地址:{}", ipStr);
         midIncidentWarningVO.setVisit_type("2");
         MidResult midResult = ruleEngine.dealMidInterfaceEngin(midIncidentWarningVO);
+        log.info("事中门诊预警返回报文:{}", midResult);
         return Result.OK(midResult);
     }
 

+ 5 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/ruleengine/FactorEnchangeFactory.java

@@ -157,6 +157,11 @@ public class FactorEnchangeFactory {
                     if (Constant.WARING_EVENT_ATTR_ID == factorEnchance.getEventAttrId()) {
                         if (result) {
                             insertWarningDetail(localMap, medicalInsRuleInfo, audit, itemList);
+                        }else{
+                            Object debugSwitch = redisTemplate.opsForValue().get("DEBUG_SWITCH");
+                            if(null != debugSwitch) {
+                                insertWarningDetail(localMap, medicalInsRuleInfo, audit, itemList);
+                            }
                         }
                     } else {
                         localMap.put(getParamName(factorEnchance.getEventAttrId()), result);