From 3da42cf1e6aad11f6ecebcd865023745a5afd772 Mon Sep 17 00:00:00 2001 From: gaoqr <13665037151@163.com> Date: Fri, 28 Mar 2025 17:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=85=E9=81=93#1439=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20&=20=E5=9F=BA=E7=A1=80=E3=80=81=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E9=85=8D=E7=BD=AE=E9=9D=9E=E5=BF=85=E5=A1=AB=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=97=A0=E6=B3=95=E9=87=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/plate/PlateManageServiceImpl.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/manage/plate/PlateManageServiceImpl.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/manage/plate/PlateManageServiceImpl.java index f5cbef6d0..939f21626 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/manage/plate/PlateManageServiceImpl.java +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/manage/plate/PlateManageServiceImpl.java @@ -100,28 +100,12 @@ public class PlateManageServiceImpl implements PlateManageService { throw exception(ErrorCodeConstants.PLATE_NOT_EXISTS); } validatePlateExists(updateReqVO.getId(), organId); + PlateGoodDO updateObj = BeanUtils.toBean(updateReqVO, PlateGoodDO.class); // 校验板材goods_id是否相同 if (plateGoodMapper.isByGoodIDAndId(updateReqVO.getGoodsId(), organId, Long.valueOf(updateReqVO.getId()))) { throw exception(PLATE_GOODS_ID_NOT_SAME); } - - PlateGoodDO updateObj = PlateGoodDO.builder() - .id(updateReqVO.getId()) - .goodsId(updateReqVO.getGoodsId()) - .goodsName(updateReqVO.getGoodsName()) - .material(updateReqVO.getMaterial()) - .color(updateReqVO.getColor()) - .texture(ObjectUtil.isNull(updateReqVO.getTexture()) ? false : updateReqVO.getTexture()) - .width(getZeroDouble(updateReqVO.getWidth())) - .height(getZeroDouble(updateReqVO.getHeight())) - .thickness(getZeroDouble(updateReqVO.getThickness())) - .price(getZeroDouble(updateReqVO.getPrice())) - .brand(getEmpty(updateReqVO.getBrand())) - .spec(getEmpty(updateReqVO.getSpec())) - .remark(getEmpty(updateReqVO.getRemark())) - .organId(organId) - .build(); plateGoodMapper.updateById(updateObj); }