From c6d32fdfe1f96e1c2c0157a29da28eaeac7cc92d Mon Sep 17 00:00:00 2001 From: zk <2762560464@qq.com> Date: Thu, 24 Oct 2024 10:07:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=94=AF=E6=8C=81=E4=B8=8EO2=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E8=BF=9B=E8=A1=8C=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= =?UTF-8?q?):=20=E6=94=AF=E6=8C=81=E5=9C=B0=E5=9D=80=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/currency/appengine/controller/OpenController.java | 3 +++ .../main/java/com/currency/appengine/domain/AysnCustomer.java | 4 ++++ .../appengine/service/system/imp/CustomerServiceImpl.java | 1 + appengine/src/main/resources/application.yml | 4 ++-- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/appengine/src/main/java/com/currency/appengine/controller/OpenController.java b/appengine/src/main/java/com/currency/appengine/controller/OpenController.java index 758ea28..e494ca2 100644 --- a/appengine/src/main/java/com/currency/appengine/controller/OpenController.java +++ b/appengine/src/main/java/com/currency/appengine/controller/OpenController.java @@ -35,6 +35,9 @@ public class OpenController { if (Objects.nonNull(obj.get("phone"))) { customerReq.setContactPhone(obj.get("phone").toString()); } + if (Objects.nonNull(obj.get("address"))) { + customerReq.setAddress(obj.get("address").toString()); + } customerReq.setStatus(1); customerReq.setIsAuto(true); customerReq.setSettlementCurrency("CNY"); diff --git a/appengine/src/main/java/com/currency/appengine/domain/AysnCustomer.java b/appengine/src/main/java/com/currency/appengine/domain/AysnCustomer.java index 43e7a91..3c967d9 100644 --- a/appengine/src/main/java/com/currency/appengine/domain/AysnCustomer.java +++ b/appengine/src/main/java/com/currency/appengine/domain/AysnCustomer.java @@ -34,6 +34,10 @@ public class AysnCustomer { * 备注 */ private String remark; + /** + * 地址 + */ + private String address; /** * 创建时间(时间戳) */ diff --git a/appengine/src/main/java/com/currency/appengine/service/system/imp/CustomerServiceImpl.java b/appengine/src/main/java/com/currency/appengine/service/system/imp/CustomerServiceImpl.java index 67c4d69..79c8875 100644 --- a/appengine/src/main/java/com/currency/appengine/service/system/imp/CustomerServiceImpl.java +++ b/appengine/src/main/java/com/currency/appengine/service/system/imp/CustomerServiceImpl.java @@ -80,6 +80,7 @@ public class CustomerServiceImpl implements CustomerService { customer.setName(req.getCustomerName()); customer.setPhone(req.getContactPhone()); customer.setRemark(req.getRemarks()); + customer.setAddress(req.getAddress()); // customer.setCreateTime(crmCustomer.getCreateTime().getTime()); Map toMap = BeanUtil.beanToMap(customer, false, true); long timestamp = System.currentTimeMillis(); diff --git a/appengine/src/main/resources/application.yml b/appengine/src/main/resources/application.yml index f5e4a53..3ea4ce9 100644 --- a/appengine/src/main/resources/application.yml +++ b/appengine/src/main/resources/application.yml @@ -1,8 +1,8 @@ spring: profiles: - active: local # test 本地 +# active: local # test 本地 # active: dev # test 测试 -# active: pro # pro 生产 + active: pro # pro 生产 # 通用配置 servlet: