委托管理bug修复
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
XaoLi717 2025-02-11 09:54:48 +08:00
parent 69654b72c4
commit ae0fc674b0

View File

@ -45,7 +45,7 @@ public class WtglServiceImpl implements WtglService {
wtgl.setMultiData(multiDataJson); // JSON 字符串赋值给 WtglDO
} catch (Exception e) {
// 错误信息
log.error("处理异常: {}", e.getMessage());
log.error("createErr: {}", e.getMessage());
}
wtglMapper.insert(wtgl);
// 返回
@ -58,6 +58,14 @@ public class WtglServiceImpl implements WtglService {
validateWtglExists(updateReqVO.getId());
// 更新
WtglDO updateObj = BeanUtils.toBean(updateReqVO, WtglDO.class);
// List<WtglMultiItem> 转换为 JSON 字符串
try {
String multiDataJson = objectMapper.writeValueAsString(updateReqVO.getMultiData()); // 正确序列化为 JSON 字符串
updateObj.setMultiData(multiDataJson); // JSON 字符串赋值给 WtglDO
} catch (Exception e) {
// 错误信息
log.error("upDataErr: {}", e.getMessage());
}
wtglMapper.updateById(updateObj);
}