fix: 修复分账配置更新不生效问题, 修复wxjava配置使用base64无法解析问题, 修复微信分账同步有空指针问题

This commit is contained in:
DaxPay
2024-12-17 16:50:05 +08:00
parent 98b07dba77
commit c0ee1dd7f8
7 changed files with 41 additions and 38 deletions

View File

@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.*;
@RequestGroup(groupCode = "AllocConfig", groupName = "分账配置", moduleCode = "Alloc", moduleName = "分账管理" )
@RequestMapping("/allocation/config")
@RequiredArgsConstructor
public class AllocController {
public class AllocConfigController {
private final AllocConfigService allocConfigService;
@RequestPath("保存")

View File

@@ -43,7 +43,7 @@ public class AllocConfigService {
public void update(AllocConfigParam param) {
AllocConfig config = allocConfigManger.findById(param.getId())
.orElseThrow(() -> new DataNotExistException("分账配置不存在"));
BeanUtil.copyProperties(config, param, CopyOptions.create().ignoreNullValue());
BeanUtil.copyProperties(param, config, CopyOptions.create().ignoreNullValue());
allocConfigManger.updateById(config);
}