修改children的返回值来消除前端element组件的警告
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
*/
|
||||
package co.yixiang.modules.system.service.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@ -33,6 +34,7 @@ public class DeptDto implements Serializable {
|
||||
/** 状态 */
|
||||
private Boolean enabled;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<DeptDto> children;
|
||||
|
||||
/** 创建日期 */
|
||||
|
@ -36,11 +36,6 @@ public class YxStoreCategoryDto implements Serializable {
|
||||
/** 是否推荐 */
|
||||
private Integer isShow;
|
||||
|
||||
/** 添加时间 */
|
||||
private Integer addTime;
|
||||
|
||||
/** 删除状态 */
|
||||
private Integer isDel;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<YxStoreCategoryDto> children;
|
||||
|
@ -91,8 +91,6 @@ public class YxStoreCategoryServiceImpl extends BaseServiceImpl<StoreCategoryMap
|
||||
map.put("排序", yxStoreCategory.getSort());
|
||||
map.put("图标", yxStoreCategory.getPic());
|
||||
map.put("是否推荐", yxStoreCategory.getIsShow());
|
||||
map.put("添加时间", yxStoreCategory.getAddTime());
|
||||
map.put("删除状态", yxStoreCategory.getIsDel());
|
||||
list.add(map);
|
||||
}
|
||||
FileUtil.downloadExcel(list, response);
|
||||
|
Reference in New Issue
Block a user