Commit 5b9c40bc by guojuxing

Merge remote-tracking branch 'origin/developer' into developer

parents ce4e3a1e a9c2f270
...@@ -219,7 +219,7 @@ public class OfflineStrategy implements PayStrategy { ...@@ -219,7 +219,7 @@ public class OfflineStrategy implements PayStrategy {
// gic // gic
approvalDTO.setPlatformType(1); approvalDTO.setPlatformType(1);
if (outPayDTO.getInitiatorUser() != null) { if (outPayDTO.getInitiatorUser() != null) {
UserDTO userDTO = userApiService.getUserById(outPayDTO.getInitiatorUser()).getResult(); UserDTO userDTO = userApiService.getUserInfoById(outPayDTO.getInitiatorUser()).getResult();
if (userDTO != null) { if (userDTO != null) {
approvalDTO.setInitiatorType(userDTO.getLoginType() == 0 ? approvalDTO.setInitiatorType(userDTO.getLoginType() == 0 ?
BillingInitiatorTypeEnum.ENTERPRISE.getCode() : BillingInitiatorTypeEnum.OPERATION.getCode()); BillingInitiatorTypeEnum.ENTERPRISE.getCode() : BillingInitiatorTypeEnum.OPERATION.getCode());
......
...@@ -122,6 +122,7 @@ public class LoginController { ...@@ -122,6 +122,7 @@ public class LoginController {
temp.setUserName(userDetailsVO.getRealName()); temp.setUserName(userDetailsVO.getRealName());
temp.setPhoneAreaCode(Constants.NATION_CODE); temp.setPhoneAreaCode(Constants.NATION_CODE);
temp.setSuperAdmin(1); temp.setSuperAdmin(1);
temp.setLoginType(1);
ServiceResponse<Integer> saveResult = userApiService.saveOperationUser(temp); ServiceResponse<Integer> saveResult = userApiService.saveOperationUser(temp);
user = temp; user = temp;
user.setUserId(saveResult.getResult()); user.setUserId(saveResult.getResult());
......
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