|
@@ -10,12 +10,14 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.config.sign.util.HttpUtils;
|
|
import org.jeecg.config.sign.util.HttpUtils;
|
|
|
|
|
+import org.jeecg.modules.medical.Constant;
|
|
|
import org.jeecg.modules.medical.entity.AdvanceWarningVO;
|
|
import org.jeecg.modules.medical.entity.AdvanceWarningVO;
|
|
|
import org.jeecg.modules.medical.entity.Audit;
|
|
import org.jeecg.modules.medical.entity.Audit;
|
|
|
import org.jeecg.modules.medical.entity.MidIncidentWarningVO;
|
|
import org.jeecg.modules.medical.entity.MidIncidentWarningVO;
|
|
@@ -34,6 +36,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
@@ -84,8 +87,11 @@ public class HisController extends JeecgController<Audit, IAuditService> {
|
|
|
@AutoLog(value = "事前提醒")
|
|
@AutoLog(value = "事前提醒")
|
|
|
@ApiOperation(value="事前提醒接口", notes="事前提醒接口调用")
|
|
@ApiOperation(value="事前提醒接口", notes="事前提醒接口调用")
|
|
|
@PostMapping(value = "/advanceWarning")
|
|
@PostMapping(value = "/advanceWarning")
|
|
|
- public Result<String> advanceWarning(@RequestBody AdvanceWarningVO advanceWarningVO,HttpServletRequest httpServletRequest) {
|
|
|
|
|
|
|
+ public Result<String> advanceWarning(@RequestBody @Valid AdvanceWarningVO advanceWarningVO, HttpServletRequest httpServletRequest) {
|
|
|
String ipStr = HttpUtils.getIPAddress(httpServletRequest);
|
|
String ipStr = HttpUtils.getIPAddress(httpServletRequest);
|
|
|
|
|
+ if(StringUtils.isBlank(advanceWarningVO.getVisit_type())){
|
|
|
|
|
+ advanceWarningVO.setVisit_type(Constant.TREAMENT_TYPE_OUTPATIENT);
|
|
|
|
|
+ }
|
|
|
log.info("事前远端请求的服务ip地址:{}", ipStr);
|
|
log.info("事前远端请求的服务ip地址:{}", ipStr);
|
|
|
ruleEngine.dealPreInterfaceEngin(advanceWarningVO, ipStr);
|
|
ruleEngine.dealPreInterfaceEngin(advanceWarningVO, ipStr);
|
|
|
return Result.OK("添加成功!");
|
|
return Result.OK("添加成功!");
|
|
@@ -101,7 +107,7 @@ public class HisController extends JeecgController<Audit, IAuditService> {
|
|
|
@AutoLog(value = "事中提醒")
|
|
@AutoLog(value = "事中提醒")
|
|
|
@ApiOperation(value="事中提醒接口", notes="事中提醒接口调用")
|
|
@ApiOperation(value="事中提醒接口", notes="事中提醒接口调用")
|
|
|
@PostMapping(value = "/midIncidentWarning")
|
|
@PostMapping(value = "/midIncidentWarning")
|
|
|
- public Result<String> midIncidentWarning(@RequestBody MidIncidentWarningVO midIncidentWarningVO,HttpServletRequest httpServletRequest) {
|
|
|
|
|
|
|
+ public Result<String> midIncidentWarning(@RequestBody @Valid MidIncidentWarningVO midIncidentWarningVO,HttpServletRequest httpServletRequest) {
|
|
|
|
|
|
|
|
String ipStr = HttpUtils.getIPAddress(httpServletRequest);
|
|
String ipStr = HttpUtils.getIPAddress(httpServletRequest);
|
|
|
log.info("事中远端请求的服务ip地址:{}", ipStr);
|
|
log.info("事中远端请求的服务ip地址:{}", ipStr);
|