diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/controller/admin/PropertyDealItemController.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/controller/admin/PropertyDealItemController.java index 65f82247..ec89efbb 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/controller/admin/PropertyDealItemController.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/controller/admin/PropertyDealItemController.java @@ -95,4 +95,19 @@ public class PropertyDealItemController { propertyDealItemService.deletePropertyDealItem(id); return CommonResult.ok(); } + + /** + * 更新企业管理-资产变动子表 + * + * @param updateReqVO 更新对象 + * @author 小李 + * @date 14:05 2024/8/17 + **/ + @PutMapping("/updateChange") + @Operation(summary = "更新企业管理-资产处置子表") + @PreAuthorize("@ss.hasPermission('company:property-deal:update')") + public CommonResult updatePropertyDealItemChange(@RequestBody PropertyDealItemReqVO updateReqVO) { + propertyDealItemService.updatePropertyDealItemChange(updateReqVO); + return CommonResult.ok(); + } } \ No newline at end of file diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/service/PropertyDealItemService.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/service/PropertyDealItemService.java index d5a173c7..e3c2815e 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/service/PropertyDealItemService.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/service/PropertyDealItemService.java @@ -48,4 +48,13 @@ public interface PropertyDealItemService extends IService { * @param id 记录 **/ void deletePropertyDealItem(String id); + + /** + * 更新企业管理-资产变动子表 + * + * @param updateReqVO 更新对象 + * @author 小李 + * @date 14:05 2024/8/17 + **/ + void updatePropertyDealItemChange(PropertyDealItemReqVO updateReqVO); } \ No newline at end of file diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/service/impl/PropertyDealItemServiceImpl.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/service/impl/PropertyDealItemServiceImpl.java index c3186caa..319a52ab 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/service/impl/PropertyDealItemServiceImpl.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/service/impl/PropertyDealItemServiceImpl.java @@ -1,10 +1,13 @@ package cn.iocoder.yudao.module.property.service.impl; +import cn.hutool.core.bean.BeanUtil; +import cn.iocoder.yudao.module.property.entity.Property; import cn.iocoder.yudao.module.property.entity.PropertyDeal; import cn.iocoder.yudao.module.property.entity.PropertyDealItem; import cn.iocoder.yudao.module.property.mapper.PropertyDealItemMapper; import cn.iocoder.yudao.module.property.service.PropertyDealItemService; import cn.iocoder.yudao.module.property.service.PropertyDealService; +import cn.iocoder.yudao.module.property.service.PropertyService; import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO; import cn.iocoder.yudao.module.property.vo.PropertyDealItemRespVO; import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO; @@ -34,6 +37,10 @@ public class PropertyDealItemServiceImpl extends ServiceImpl