From 3a56ad7404c9f3bfb47813d4a99915d39044480e Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Fri, 8 Nov 2024 15:35:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ERP=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/MachinProcedureFarmServiceImpl.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/skyeye-erp/erp-pro/src/main/java/com/skyeye/machinprocedure/service/impl/MachinProcedureFarmServiceImpl.java b/skyeye-erp/erp-pro/src/main/java/com/skyeye/machinprocedure/service/impl/MachinProcedureFarmServiceImpl.java index 5f506893..b11d6633 100644 --- a/skyeye-erp/erp-pro/src/main/java/com/skyeye/machinprocedure/service/impl/MachinProcedureFarmServiceImpl.java +++ b/skyeye-erp/erp-pro/src/main/java/com/skyeye/machinprocedure/service/impl/MachinProcedureFarmServiceImpl.java @@ -105,6 +105,16 @@ public class MachinProcedureFarmServiceImpl extends SkyeyeBusinessServiceImpl entity) { + String serviceClassName = getServiceClassName(); + entity.forEach(bean -> { + Map business = BeanUtil.beanToMap(bean); + String oddNumber = iCodeRuleService.getNextCodeByClassName(serviceClassName, business); + bean.setOddNumber(oddNumber); + }); + } + @Override public MachinProcedureFarm selectById(String id) { MachinProcedureFarm machinProcedureFarm = super.selectById(id);