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: