Commit f4c6ea60 by huluobin

update

parent 5f3b64f7
...@@ -7,6 +7,7 @@ import com.gogirl.infrastructure.common.annotation.AuthIgnore; ...@@ -7,6 +7,7 @@ import com.gogirl.infrastructure.common.annotation.AuthIgnore;
import com.gogirl.infrastructure.common.annotation.LoginIgnore; import com.gogirl.infrastructure.common.annotation.LoginIgnore;
import com.gogirl.infrastructure.common.base.JsonResult; import com.gogirl.infrastructure.common.base.JsonResult;
import com.gogirl.infrastructure.common.exception.RRException; import com.gogirl.infrastructure.common.exception.RRException;
import com.gogirl.infrastructure.common.util.StringUtils;
import com.gogirl.shared.member.CustomerOrderDetail; import com.gogirl.shared.member.CustomerOrderDetail;
import com.gogirl.shared.user.CustomerQuery; import com.gogirl.shared.user.CustomerQuery;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -154,6 +155,27 @@ public class CustomerController { ...@@ -154,6 +155,27 @@ public class CustomerController {
if (customerSource == null) { if (customerSource == null) {
throw new RRException("客户来源必填"); throw new RRException("客户来源必填");
} }
if (StringUtils.isEmpty(storeRecordRealName)) {
throw new RRException("姓名必填");
}
if (StringUtils.isEmpty(sex)) {
throw new RRException("性别必填");
}
if (birthdayMonth == null || birthdayDay == null) {
throw new RRException("生日必填");
}
if (StringUtils.isEmpty(ageGroup)) {
throw new RRException("年龄必填");
}
if (StringUtils.isEmpty(job)) {
throw new RRException("职业必填");
}
if (StringUtils.isEmpty(preference)) {
throw new RRException("偏好必填");
}
if (StringUtils.isEmpty(character)) {
throw new RRException("偏好必填");
}
customerService.updateCustomerDetail(birthdayMonth, birthdayDay, ageGroup, customerId, orderId, orderServeId, storeRecordRealName, sex, age, job, preference, character, customerSource); customerService.updateCustomerDetail(birthdayMonth, birthdayDay, ageGroup, customerId, orderId, orderServeId, storeRecordRealName, sex, age, job, preference, character, customerSource);
return JsonResult.success(); return JsonResult.success();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment