Commit bc2871c8 by jinxin

素材编辑接口调整

parent 430e75fa
...@@ -75,8 +75,9 @@ public class MaterialController extends WebBaseController { ...@@ -75,8 +75,9 @@ public class MaterialController extends WebBaseController {
public HaobanResponse categoryEdit(MaterialCategoryDTO materialCategoryDTO) { public HaobanResponse categoryEdit(MaterialCategoryDTO materialCategoryDTO) {
String categoryName = materialCategoryDTO.getCategoryName(); String categoryName = materialCategoryDTO.getCategoryName();
String categoryId = materialCategoryDTO.getCategoryId(); String categoryId = materialCategoryDTO.getCategoryId();
String wxEnterpriseId = materialCategoryDTO.getWxEnterpriseId(); WebLoginDTO login = AuthWebRequestUtil.getLoginUser();
if (StringUtils.isAnyBlank(categoryName, categoryId,wxEnterpriseId)) { String wxEnterpriseId = login.getWxEnterpriseId();
if (StringUtils.isAnyBlank(categoryName, categoryId)) {
return resultResponse(HaoBanErrCode.ERR_2); return resultResponse(HaoBanErrCode.ERR_2);
} }
MaterialCategoryDTO dto = materialApiService.selectMaterialCategoryById(categoryId); MaterialCategoryDTO dto = materialApiService.selectMaterialCategoryById(categoryId);
......
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