This commit is contained in:
zjf committed 2025-02-17 10:18:18 +08:00
1 parent f1662deaf0
commit ec763d0610
1 file changed
+2 -2
@@ -109,10 +109,10 @@ public class SmErpCgPlanController {
SmErpCgPlanEntity smErpCgPlanEntity = smErpCgPlanService.getById(id);
List<SmErpCgPlanItemEntity> list = smErpCgPlanItemService.list(new LambdaQueryWrapper<SmErpCgPlanItemEntity>()
.eq(SmErpCgPlanItemEntity::getPlanId, id));
BeanUtils.toBean(smErpCgPlanEntity, SmErpCgPlanVo.class, (source) -> {
SmErpCgPlanVo bean = BeanUtils.toBean(smErpCgPlanEntity, SmErpCgPlanVo.class, (source) -> {
source.setItems(BeanUtils.toBean(list, SmeErpCgPlanItemVo.class));
});
return R.ok(smErpCgPlanEntity);
return R.ok(bean);
}
/**