|
|
@@ -63,9 +63,15 @@ public class AdminNewOrderApiController extends CertifyApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"","销售类型"));
|
|
|
return res;
|
|
|
}else{
|
|
|
- if (salesType== salesTypes.qd.getCode()&&StringUtils.isBlank(channelId)){
|
|
|
- res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"","销售类型为渠道,渠道客户"));
|
|
|
- return res;
|
|
|
+ if (salesType== salesTypes.qd.getCode()){
|
|
|
+ if (StringUtils.isBlank(channelId)){
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"","销售类型为渠道,渠道客户"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(other)){
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"","销售类型为渠道,渠道客户名称"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
}
|
|
|
if ((salesType== salesTypes.qt.getCode()||salesType== salesTypes.zjs.getCode())
|
|
|
&&StringUtils.isBlank(other)){
|