From c2e7638196ebbb472356d83c73e519e411bc0b3c Mon Sep 17 00:00:00 2001 From: xiao-fajia <1665375861@qq.com> Date: Mon, 19 Aug 2024 09:18:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E7=AE=A1=E7=90=86ALL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/PropertyDealItemController.java | 15 +++++++++++ .../service/PropertyDealItemService.java | 9 +++++++ .../impl/PropertyDealItemServiceImpl.java | 26 +++++++++++++++++++ 3 files changed, 50 insertions(+) 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