From df83ac893a4b840a83a239ff018a70ed85fa6180 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 01 三月 2024 09:18:02 +0800
Subject: [PATCH] 修改样式,添加次破明细表实体类
---
north-glass-erp/src/main/java/com/example/erp/service/sd/CustomerService.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/service/sd/CustomerService.java b/north-glass-erp/src/main/java/com/example/erp/service/sd/CustomerService.java
index d575958..9c04b4b 100644
--- a/north-glass-erp/src/main/java/com/example/erp/service/sd/CustomerService.java
+++ b/north-glass-erp/src/main/java/com/example/erp/service/sd/CustomerService.java
@@ -44,9 +44,11 @@
try {
Customer customer = JSONObject.parseObject(JSONObject.toJSONString(object.get("customer")), Customer.class);
if(customer!=null){
- if (customer.getId()!=null){
+ if (customer.getId()!=null && customer.getId()!=0){
+ System.out.println(111);
customerMapper.updateCustomer(customer);
}else{
+ System.out.println(222);
customerMapper.insertCustomer(customer);
}
--
Gitblit v1.8.0