陈昶聿
昨天 14f2352da6fc317cd0d5fad85f2d146fc1b6bc64
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInhospController.java
@@ -11,6 +11,7 @@
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.service.ISysConfigService;
import com.smartor.domain.PatMedInhosp;
import com.smartor.domain.PatMedInhospVO;
import com.smartor.domain.PatMedReq;
@@ -42,6 +43,19 @@
    @Autowired
    private IPatMedOuthospService iPatMedOuthospService;
    @Autowired
    private IPatMedInhospService iPatMedInhospService;
    @Autowired
    private ISysConfigService configService;
    @Value("${server.port}")
    private String port;
    @Value("${spring.profiles.active}")
    private String active;
    /**
     * 查询患者住院记录列表
@@ -182,6 +196,7 @@
     * @return
     */
    @ApiOperation("各科室服务人次")
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/getDeptRanking")
    public TableDataInfo getDeptRanking(@RequestBody PatMedReq patMedReq) {
        return getDataTable(patMedInhospService.getDeptRanking(patMedReq));
@@ -215,4 +230,20 @@
//        }
//    }
    /**
     * 处理患者信息,进入子任务表
     */
    @ApiOperation("dealOutHospInfo")
    @PostMapping("/dealOutHospInfo")
    public void dealOutHospInfo() {
        String config = configService.selectConfigByKey("visit.early.day");
        if (port.equals("8095")) {
            //出院表
            iPatMedInhospService.dealOutHospInfo(config);
            //门诊表(新华的暂时不做门诊随访)
            if (!active.equals("xh")) {
                iPatMedOuthospService.dealOutpatientInfo();
            }
        }
    }
}