fix:正元手机号
This commit is contained in:
1 parent
b5a41f85b0
commit
ae79956dcf
3 files changed
+20
-7
No files matched your search
+13
-3
@@ -1,14 +1,24 @@
|
||||
package com.bsd.pjcloud.wallet.api.dto.rule;
|
||||
|
||||
import com.bsd.pjcloud.wallet.api.entity.rule.WalletRuleJoinEntity;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
//@Builder
|
||||
//@AllArgsConstructor
|
||||
//@NoArgsConstructor
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class WalletRuleJoinDto extends WalletRuleJoinEntity {
|
||||
|
||||
/**
|
||||
* 部门数组
|
||||
*/
|
||||
@NotEmpty(message = "部门数组不能为空")
|
||||
private List<@NotEmpty Long> targetDeptIdList;
|
||||
|
||||
}
|
||||
+2
-2
@@ -69,8 +69,8 @@ public class WalletRuleJoinController {
|
||||
@SysLog("新增钱包规则配置")
|
||||
@PostMapping
|
||||
// @PreAuthorize("@pms.hasPermission('wallet_walletRuleJoin_add')")
|
||||
public R save(@RequestBody WalletRuleJoinEntity walletRuleJoin) {
|
||||
return R.ok(walletRuleJoinService.create(walletRuleJoin));
|
||||
public R save(@RequestBody WalletRuleJoinDto dto) {
|
||||
return R.ok(walletRuleJoinService.create(dto));
|
||||
}
|
||||
|
||||
@Operation(summary = "修改钱包规则配置", description = "修改钱包规则配置")
|
||||
|
||||
+5
-2
@@ -7,6 +7,7 @@ import cn.hutool.json.JSONUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.bsd.pjcloud.admin.api.dto.DeptAllListDto;
|
||||
import com.bsd.pjcloud.admin.api.dto.UserDTO;
|
||||
import com.bsd.pjcloud.admin.api.dto.UserInfo;
|
||||
import com.bsd.pjcloud.admin.api.entity.SysDept;
|
||||
import com.bsd.pjcloud.admin.api.entity.SysRole;
|
||||
import com.bsd.pjcloud.admin.api.feign.RemoteDeptService;
|
||||
@@ -252,7 +253,9 @@ public class WalletThirdZyServiceImpl implements WalletThirdZyService {
|
||||
List<ZyMerSyncAccountInfoDto> syncList = new ArrayList<>();
|
||||
String syncAllMchVersion = getSyncAllMchVersion();
|
||||
for (UserVO v : userVOList) {
|
||||
if (ObjectUtil.isEmpty(v) || ObjectUtil.isEmpty(v.getUserId())) {
|
||||
// 查询用户手机号
|
||||
UserInfo userInfo = remoteUserService.getByUserId(v.getUserId()).getData();
|
||||
if (ObjectUtil.isEmpty(userInfo)) {
|
||||
log.error("|{}|syncAllUserGroup用户不存在WalletManageVo|{}|", TAG, JSONUtil.toJsonStr(v));
|
||||
continue;
|
||||
}
|
||||
@@ -292,7 +295,7 @@ public class WalletThirdZyServiceImpl implements WalletThirdZyService {
|
||||
item.setEPID(v.getDeptId().toString());
|
||||
item.setPerCode(v.getUserId().toString());
|
||||
item.setAccClassID(roleId.toString());
|
||||
item.setPhoneNo(v.getPhone());
|
||||
item.setPhoneNo(userInfo.getSysUser().getPhone());
|
||||
item.setFixId(syncAllMchVersion);
|
||||
syncList.add(item);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user