Commit 5b9c40bc by guojuxing

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

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