Commit 0d67bce4 by zhiwj

添加错误信息

parent f68a0394
......@@ -102,19 +102,19 @@ public class StoreDictController {
}
}
// @RequestMapping("relevance-storefield")
// @ResponseBody
// public RestResponse setStoreField(String value, int type){
// Integer enterpriseId = 1111;
// if(StringUtils.isBlank(value)){
// return EnterpriseRestResponse.failure(com.gic.enterprise.error.ErrorCode.ERR_2);
// }
// ServiceResponse serviceResponse = this.storeDictApiService.saveStoreField(enterpriseId, value, type);
// if(serviceResponse.isSuccess()){
// return RestResponse.success();
// }
// return EnterpriseRestResponse.failure(serviceResponse);
// }
@RequestMapping("relevance-storefield")
@ResponseBody
public RestResponse setStoreField(String value, int type){
Integer enterpriseId = 1111;
if(StringUtils.isBlank(value)){
return EnterpriseRestResponse.failure(com.gic.enterprise.error.ErrorCode.ERR_2);
}
ServiceResponse serviceResponse = this.storeDictApiService.saveStoreField(enterpriseId, value, type);
if(serviceResponse.isSuccess()){
return RestResponse.success();
}
return EnterpriseRestResponse.failure(serviceResponse);
}
@RequestMapping("list-storefield-relevance")
@ResponseBody
......
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