|
@@ -34,6 +34,8 @@ import thyyxxk.webserver.entity.medicalinsurance.inpatient.SiLimitRequest;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.DoctorSOrderFee;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.OneClickOrder;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.ZyOrderZk;
|
|
|
+import thyyxxk.webserver.entity.zhuyuanyisheng.dto.doctorAuth.DoctorAuthParams;
|
|
|
+import thyyxxk.webserver.entity.zhuyuanyisheng.vo.doctorAuth.DoctorAuthRest;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.yizhuluru.*;
|
|
|
import thyyxxk.webserver.service.PublicServer;
|
|
|
import thyyxxk.webserver.service.inpatient.casefrontsheet.CaseFrontSheetMainService;
|
|
@@ -68,6 +70,8 @@ public class YiZhuLuRuServer {
|
|
|
private final SqlSessionFactory sqlSessionFactory;
|
|
|
private final SiChargeLimitService siChargeLimitService;
|
|
|
|
|
|
+ private static String CHU_YUAN = "06026";
|
|
|
+
|
|
|
private final String ITEM = "00";
|
|
|
|
|
|
public ResultVo<String> getOrderNo() {
|
|
@@ -1386,21 +1390,30 @@ public class YiZhuLuRuServer {
|
|
|
*
|
|
|
* @return 信息
|
|
|
*/
|
|
|
- public ResultVo<UserInfo> doctorAuthorizationLogin(UserInfo userInfo) {
|
|
|
- userInfo.setPassword(SecureUtil.md5(userInfo.getPassword()));
|
|
|
- UserInfo u = dao.doctorAuthorizationLogin(userInfo);
|
|
|
+ public ResultVo<DoctorAuthRest> doctorAuthorizationLogin(DoctorAuthParams userInfo) {
|
|
|
+ DoctorAuthRest u;
|
|
|
+ if (StrUtil.isNotBlank(userInfo.getPassword())) {
|
|
|
+ userInfo.setPassword(SecureUtil.md5(userInfo.getPassword()));
|
|
|
+ u = dao.doctorAuthorizationLogin(userInfo);
|
|
|
+ } else {
|
|
|
+ u = dao.doctorAuthorizationLoginByEmrSignPwd(userInfo);
|
|
|
+ }
|
|
|
|
|
|
if (u == null) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "密码错误或用户不存在。");
|
|
|
}
|
|
|
|
|
|
+ // 如果是项目
|
|
|
+ if (userInfo.getDrugCode().endsWith("_00")) {
|
|
|
+ return ResultVoUtil.success(u);
|
|
|
+ }
|
|
|
+
|
|
|
Integer drugLeven = dao.selectYpLevel(userInfo.getDrugCode());
|
|
|
|
|
|
if (drugLeven > (u.getDoctorLevel() + 1)) {
|
|
|
return ResultVoUtil.success(ExceptionEnum.LOGICAL_ERROR, StrUtil.format("该医生等级不足,药品等级【{}】,医生等级:【{}】", drugLeven, u.getDoctorLevel()));
|
|
|
}
|
|
|
|
|
|
- u.setPassword("");
|
|
|
return ResultVoUtil.success(u);
|
|
|
}
|
|
|
|