Commit 5b8517ef by Water Wang

optimize

parent beb9f649
......@@ -180,7 +180,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
List<String> mobileSpecials = Arrays.asList(mobileSpecialStr.split(","));
isSpecial = mobileSpecials.contains(mobileNo);
}
if(28L == practitionerType || isSpecial){//只有寿险的经纪人和注册为经纪人的员工才能登录
// if(28L == practitionerType || isSpecial){//只有寿险的经纪人和注册为经纪人的员工才能登录
PractitionerBasicInfo practitionerBasicInfo = aclPractitionerDALService.findByMobileNoE(mobileNo);
Long practitionerId = practitionerInfo.getPractitionerId();
Long customerId = practitionerInfo.getCustomerId();
......@@ -212,10 +212,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
getOpenIdUrl(responseVO,customer);
responseVO.setCustomerId(customerId);
responseVO.setPractitionerId(practitionerId);
responseVO.setPractitionerTypeId(practitionerType);
responseVO.setPractitionerBasicInfo(basicInfo);
responseVO.setLoginTimes(logTimes);
responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
}
// }
}else{
responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830001")));
}
......
......@@ -6,6 +6,7 @@ import com.yd.api.result.CommonResult;
public class PractitionerLoginResponseVO {
private Long customerId;
private Long practitionerId;
private Long practitionerTypeId;
private String practitionerIdEG;
private Integer loginTimes;
private String getOpenIdUrl;
......@@ -67,4 +68,12 @@ public class PractitionerLoginResponseVO {
public void setCommonResult(CommonResult commonResult) {
this.commonResult = commonResult;
}
public Long getPractitionerTypeId() {
return practitionerTypeId;
}
public void setPractitionerTypeId(Long practitionerTypeId) {
this.practitionerTypeId = practitionerTypeId;
}
}
......@@ -13,7 +13,7 @@
810001=token无效或者错误!
820001=未查询到相应结果。
830001=该用户非寿险经纪人。
830001=该用户非经纪人。
830002=只有寿险经纪人才有权限进入!
830003=请上传图片格式
830004=上传照片尺寸比例为4:3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment