diff --git a/cloud-common/cloud-common-security/src/main/java/cn/sh/stc/sict/cloud/common/security/util/SecurityUtils.java b/cloud-common/cloud-common-security/src/main/java/cn/sh/stc/sict/cloud/common/security/util/SecurityUtils.java index 5339c2b75a539babfe9d2486be7d79be4ded40a5..e1850c656c051c0b98d81122e738e81d1799506b 100644 --- a/cloud-common/cloud-common-security/src/main/java/cn/sh/stc/sict/cloud/common/security/util/SecurityUtils.java +++ b/cloud-common/cloud-common-security/src/main/java/cn/sh/stc/sict/cloud/common/security/util/SecurityUtils.java @@ -178,6 +178,7 @@ public class SecurityUtils { current.setName(StrUtil.isBlank(user.getName()) ? user.getUsername() : user.getName()); current.setOpenId(user.getOpenId()); current.setAppId(user.getAppId()); + current.setPhone(user.getPhone()); } current.setToken(token); return current; diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/controller/mobile/HpGpIntelligentQAController.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/controller/mobile/HpGpIntelligentQAController.java index 5996d2fddc754f4e3f2749f1db365e1946c6a383..26b475a64b90da4abf5ea2c08f41d02418761d39 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/controller/mobile/HpGpIntelligentQAController.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/controller/mobile/HpGpIntelligentQAController.java @@ -38,7 +38,7 @@ public class HpGpIntelligentQAController { String from = StrUtil.isNotBlank(current.getOpenId()) ? current.getOpenId() : current.getId().toString(); String xml = "\n" + - " \n" + + " \n" + " \n" + " " + DateUtil.now() + "\n" + " \n" + diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/controller/mobile/HpgpBusyIdlePredictionController.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/controller/mobile/HpgpBusyIdlePredictionController.java index c968cb394f1fa3dfe5966cb02f6a07d92d866a14..e331af21e5c40962a86cc958a8e2f30f2cd454aa 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/controller/mobile/HpgpBusyIdlePredictionController.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/controller/mobile/HpgpBusyIdlePredictionController.java @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.api.ApiController; import io.swagger.annotations.Api; import io.swagger.annotations.ApiParam; import lombok.AllArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -27,7 +28,8 @@ public class HpgpBusyIdlePredictionController extends ApiController { */ private final HpgpBusyIdlePredictionService hpgpBusyIdlePredictionService; - public R busyIdlePrediction(@ApiParam("标准") @RequestParam("deptName") String deptName){ + @GetMapping + public R busyIdlePrediction(@ApiParam("标准科室名称") @RequestParam("deptName") String deptName){ return new R<>().success(hpgpBusyIdlePredictionService.busyIdlePrediction(deptName)); } diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/service/impl/HpgpBusyIdlePredictionServiceImpl.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/service/impl/HpgpBusyIdlePredictionServiceImpl.java index 5953ca070fca372d61e120b5217c77168253c70d..d300115f45267ff6267f7726657e3f5c87c3d878 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/service/impl/HpgpBusyIdlePredictionServiceImpl.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hpgp/service/impl/HpgpBusyIdlePredictionServiceImpl.java @@ -42,6 +42,8 @@ public class HpgpBusyIdlePredictionServiceImpl extends ServiceImpl() .in(HpgpBusyIdlePrediction::getHospitalCode, hospitalCodes) .in(HpgpBusyIdlePrediction::getDeptCode, deptCodes) + .gt(HpgpBusyIdlePrediction::getPredictionDate, "") + .le(HpgpBusyIdlePrediction::getPredictionDate, "") ); } } diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HpDeptInfoController.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HpDeptInfoController.java index 96851c45cf0c7b920d2d83ba09fc58e84c0315e6..ee3f9e97f4458a070a403da4faa0a94a7d884de2 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HpDeptInfoController.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HpDeptInfoController.java @@ -8,6 +8,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import lombok.AllArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -29,6 +30,7 @@ public class HpDeptInfoController extends ApiController { private final HpDeptInfoService hpDeptInfoService; @ApiOperation("科室医生查询接口") + @GetMapping public R getDeptDoctors(@ApiParam("医院代码") @RequestParam("hospitalCode") String hospitalCode, @ApiParam("科室代码") @RequestParam("deptCode") String deptCode){ return new R<>(hpDeptInfoService.getDeptDoctors(hospitalCode, deptCode)); diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HpHyIntelligentQAController.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HpHyIntelligentQAController.java index 51202527586a7c1d73bd7533fc797d7631291076..d83fef0b21d6cb770bebe20959256f7aef415017 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HpHyIntelligentQAController.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HpHyIntelligentQAController.java @@ -23,7 +23,7 @@ import java.util.Map; @RestController @AllArgsConstructor @Api(tags = "[C]黄浦高血压专病导医——智能问答") -@RequestMapping("/hphy/c/intelligent/qa") +@RequestMapping("/c/intelligent/qa") public class HpHyIntelligentQAController { private final static String CONTENT = "Content"; diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HphyPatientBaseController.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HphyPatientBaseController.java index 645ab6ca6cd2bfe6c51a0852172fe04fc6611782..450bd2c9b3cb7d9e861be80ece47370ae6b54e5c 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HphyPatientBaseController.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/HphyPatientBaseController.java @@ -48,9 +48,6 @@ public class HphyPatientBaseController { CurrentUser current = SecurityUtils.getCurrentUser(); HphyPatientBase base = hphyPatientBaseService.getByOpenId(current.getOpenId()); patient.setOpenId(current.getOpenId()); -// if(!ValidateCodeUtil.validateCode(redisTemplate, patient.getPhone(), patient.getRandomCode(), Constant.BYTE_YES)){ -// return new R().error("验证码错误!"); -// } if (base != null) { patient.setId(base.getId()); diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/service/impl/HpDeptInfoServiceImpl.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/service/impl/HpDeptInfoServiceImpl.java index ac1c0f5439e28cbdb9743261e4f92fd16feb6e75..ca6b77060aef734eba3bd30be0fdb3186b9fb8d5 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/service/impl/HpDeptInfoServiceImpl.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/service/impl/HpDeptInfoServiceImpl.java @@ -3,8 +3,10 @@ package cn.sh.stc.sict.theme.hphy.service.impl; import cn.sh.stc.sict.theme.hphy.constant.DataConstant; import cn.sh.stc.sict.theme.hphy.dao.HpDeptInfoMapper; import cn.sh.stc.sict.theme.hphy.dao.HpDocInfoMapper; +import cn.sh.stc.sict.theme.hphy.dao.HpHosInfoMapper; import cn.sh.stc.sict.theme.hphy.model.HpDeptInfo; import cn.sh.stc.sict.theme.hphy.model.HpDocInfo; +import cn.sh.stc.sict.theme.hphy.model.HpHosInfo; import cn.sh.stc.sict.theme.hphy.service.HpDeptInfoService; import cn.sh.stc.sict.theme.hphy.vo.DeptDoctorsVO; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; @@ -26,9 +28,11 @@ import java.util.List; @Service("hpDeptInfoService") public class HpDeptInfoServiceImpl extends ServiceImpl implements HpDeptInfoService { private final HpDocInfoMapper hpDocInfoMapper; + private final HpHosInfoMapper hpHosInfoMapper; @Override public DeptDoctorsVO getDeptDoctors(String hospitalCode, String deptCode) { + HpHosInfo hosInfo = hpHosInfoMapper.selectById(hospitalCode); // 查询科室信息 // 查询医生信息 HpDeptInfo deptInfo = this.getOne( @@ -53,6 +57,6 @@ public class HpDeptInfoServiceImpl extends ServiceImpl doctors = hpDocInfoMapper.selectList(docWrapper); - return new DeptDoctorsVO(deptInfo, doctors); + return new DeptDoctorsVO(hosInfo, deptInfo, doctors); } } diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/vo/DeptDoctorsVO.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/vo/DeptDoctorsVO.java index 546ee0904638b91b86077a36027bf6d4464c3a73..8276fe5e07ea165d2106923439420c320168add1 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/vo/DeptDoctorsVO.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/vo/DeptDoctorsVO.java @@ -2,6 +2,7 @@ package cn.sh.stc.sict.theme.hphy.vo; import cn.sh.stc.sict.theme.hphy.model.HpDeptInfo; import cn.sh.stc.sict.theme.hphy.model.HpDocInfo; +import cn.sh.stc.sict.theme.hphy.model.HpHosInfo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @@ -17,6 +18,7 @@ import java.util.List; @NoArgsConstructor @AllArgsConstructor public class DeptDoctorsVO { + private HpHosInfo hosInfo; private HpDeptInfo deptInfo; private List doctors; } diff --git a/smart-health-modules/theme-schema/src/main/resources/mapper/hpgp/HpgpDepartmentRankMapper.xml b/smart-health-modules/theme-schema/src/main/resources/mapper/hpgp/HpgpDepartmentRankMapper.xml index 822165c27c807aee179fb9baef3cf3737b723c2f..c821770d528d61531b68c5014c62c2130b9a20f1 100644 --- a/smart-health-modules/theme-schema/src/main/resources/mapper/hpgp/HpgpDepartmentRankMapper.xml +++ b/smart-health-modules/theme-schema/src/main/resources/mapper/hpgp/HpgpDepartmentRankMapper.xml @@ -13,7 +13,7 @@ standard_dept , hospital_code, hospital_name, dept_code, dept_name, rank_score - select from hpgp_department_rank where standard_dept = #{deptName} order by rank_score asc limit #{size}