Commit f6aa6f20 authored by 廖旭伟's avatar 廖旭伟

素材分组接口修改

parent 1d061db1
......@@ -6,5 +6,5 @@ import lombok.Data;
@Data
public class ParamEntityExt extends BaseEntityLong {
/** 素材分组名称 */
private String groupName;
private String pictureGroupName;
}
......@@ -38,7 +38,7 @@ public class PictureGroupController extends BaseCRUDJsonBodyMappingController<Pa
@Override
protected void saveBefore(ParamEntity entity, Map<String, Object> model, Context context) throws AppException {
if(StringUtils.isEmpty(entity.getGroupName())){
if(StringUtils.isEmpty(entity.getPictureGroupName())){
throw new AppException("分组名称不能为空");
}
ParamEntity query = new ParamEntity();
......@@ -48,7 +48,7 @@ public class PictureGroupController extends BaseCRUDJsonBodyMappingController<Pa
int size = (paramEntities==null?0:paramEntities.size()) + 1;
entity.setParamKey(size+"");
entity.setName("素材分组");
entity.setParamValue(entity.getGroupName());
entity.setParamValue(entity.getPictureGroupName());
entity.setFirstOrganize("PictureMaterial");
entity.setSecondOrganize("pictureGroupId");
}
......
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