|
|
@@ -556,13 +556,16 @@ public class AdminDemandApiController extends CertifyApiController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
- if (!DemandDataCategory.USERDEMAND.getCode().equals(demand.getDataCategory())
|
|
|
+ /*if (!DemandDataCategory.USERDEMAND.getCode().equals(demand.getDataCategory())
|
|
|
&& !DemandDataCategory.ORGDEMAND.getCode().equals(demand.getDataCategory())) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "数据类型"));
|
|
|
return res;
|
|
|
+ }*/
|
|
|
+ if (null == demand.getDataCategory()) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到需求类型", "需求类别"));
|
|
|
+ return res;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if (StringUtils.isBlank(demand.getKeyword())) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到关键词", "关键词"));
|
|
|
return res;
|