傅行帆 3 gadus atpakaļ
vecāks
revīzija
f92706c71a

+ 8
- 1
src/main/java/com/yunzhi/marketing/xlk/controller/CustomerInfoController.java Parādīt failu

@@ -200,6 +200,13 @@ public class CustomerInfoController extends BaseController {
200 200
                 customerInfo.setCustomerInfoId(oldCustomerInfo.getCustomerInfoId());
201 201
                 iCustomerInfoService.updateById(customerInfo);
202 202
             }
203
+            // 修改客户性别
204
+            TaRecommendCustomer customer = iTaRecommendCustomerService.getById(customerId);
205
+            if (null != customer) {
206
+                customer.setSex(customerInfo.getSex());
207
+                iTaRecommendCustomerService.updateById(customer);
208
+            }
209
+
203 210
             // 记录到修改记录表中
204 211
             CustomerInfoModifyRecord customerInfoModifyRecord = new CustomerInfoModifyRecord();
205 212
             customerInfoModifyRecord.setCreateDate(LocalDateTime.now());
@@ -238,7 +245,7 @@ public class CustomerInfoController extends BaseController {
238 245
                 customerInfo = new CustomerInfo();
239 246
             }
240 247
             customerInfo.setName(customer.getName());
241
-//            customerInfo.setSex(customer.getSex());
248
+            customerInfo.setSex(customer.getSex());
242 249
             customerInfo.setPhone(customer.getPhone());
243 250
             customerInfo.setPicture(customer.getPicture());
244 251