|
@@ -10,7 +10,6 @@ import com.ygj.yuemum.domain.customer.dto.CustomerInfoFeedbackCyDto;
|
|
|
import com.ygj.yuemum.domain.customer.dto.CustomerInfoFeedbackDto;
|
|
|
import com.ygj.yuemum.service.admin.JlAdminUserService;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
-import org.apache.shiro.SecurityUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -35,9 +34,7 @@ public class CustomerInfoFeedbackService {
|
|
|
}
|
|
|
|
|
|
public int insertInfoFeedback(CustomerInfoFeedback customerInfoFeedback) {
|
|
|
- if (StringUtils.isBlank(customerInfoFeedback.getFb_remarks())) {
|
|
|
- customerInfoFeedback.setFb_remarks("");
|
|
|
- }
|
|
|
+ this.setDefValue(customerInfoFeedback);
|
|
|
int count = feedbackDao.insertInfoFeedback(customerInfoFeedback);
|
|
|
if (count != 0) {
|
|
|
this.insertServiceLog(customerInfoFeedback.getId(), "新增", customerInfoFeedback);
|
|
@@ -74,4 +71,15 @@ public class CustomerInfoFeedbackService {
|
|
|
customerInfoServiceLogService.insert(customerInfoServiceLog);
|
|
|
}
|
|
|
|
|
|
+ private void setDefValue(CustomerInfoFeedback customerInfoFeedback) {
|
|
|
+ if (StringUtils.isBlank(customerInfoFeedback.getFb_remarks())) {
|
|
|
+ customerInfoFeedback.setFb_remarks("");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(customerInfoFeedback.getFb_customer_name())) {
|
|
|
+ customerInfoFeedback.setFb_customer_name("");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(customerInfoFeedback.getFb_customer_phone())) {
|
|
|
+ customerInfoFeedback.setFb_customer_phone("");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|