zjxpcyc 6 years ago
parent
commit
fbf127382f

+ 1
- 1
whole-estate/src/main/java/com/example/wholeestate/service/impl/CustomerServiceImpl.java View File

101
         Customer customer = JSONObject.parseObject(parameter, Customer.class);
101
         Customer customer = JSONObject.parseObject(parameter, Customer.class);
102
 
102
 
103
         UpdateWrapper<Customer> updateWrapper = new UpdateWrapper<>();
103
         UpdateWrapper<Customer> updateWrapper = new UpdateWrapper<>();
104
-        updateWrapper.set("customerName", customer.getCustomerName());
104
+        updateWrapper.set("customer_name", customer.getCustomerName());
105
         updateWrapper.set("name", customer.getName());
105
         updateWrapper.set("name", customer.getName());
106
         updateWrapper.set("phone", customer.getPhone());
106
         updateWrapper.set("phone", customer.getPhone());
107
         updateWrapper.set("idNum", customer.getIdNum());
107
         updateWrapper.set("idNum", customer.getIdNum());