|
@@ -2,6 +2,7 @@ package com.ygj.yuemum.controller.customer;
|
|
|
|
|
|
import com.ygj.yuemum.domain.customer.CustomerInfoFeedback;
|
|
|
import com.ygj.yuemum.domain.customer.dto.CustomerInfoFeedbackDto;
|
|
|
+import com.ygj.yuemum.service.admin.JlAdminUserService;
|
|
|
import com.ygj.yuemum.service.customer.CustomerInfoFeedbackService;
|
|
|
import com.ygj.yuemum.utils.ResponseUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -21,6 +22,9 @@ public class CustomerInfoFeedbackController {
|
|
|
@Resource
|
|
|
CustomerInfoFeedbackService customerInfoFeedbackService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ JlAdminUserService jlAdminUserService;
|
|
|
+
|
|
|
@PostMapping("/info/feedback")
|
|
|
public Map<String, Object> selectByPageNumSize(CustomerInfoFeedbackDto customerInfoFeedbackDto) {
|
|
|
List<CustomerInfoFeedback> customerInfoFeedbacks = customerInfoFeedbackService.selectByPageNumSize(customerInfoFeedbackDto);
|
|
@@ -29,8 +33,7 @@ public class CustomerInfoFeedbackController {
|
|
|
|
|
|
@PostMapping("/info/feedback/insert")
|
|
|
public Integer insertInfoFeedback(CustomerInfoFeedback customerInfoFeedback) {
|
|
|
- Object principal = SecurityUtils.getSubject().getPrincipal();
|
|
|
- customerInfoFeedback.setCreate_person(String.valueOf(principal));
|
|
|
+ customerInfoFeedback.setCreate_person(jlAdminUserService.getUserByDefPrincipal().getName());
|
|
|
if (StringUtils.isBlank(customerInfoFeedback.getFb_type())) {
|
|
|
customerInfoFeedback.setFb_type("待确认");
|
|
|
}
|