类别树提交

master
wangxy 1 year ago
parent f43f1c0140
commit 2490384719

@ -3,30 +3,22 @@ package com.ruoyi.web.controller.home;
import cn.hutool.core.convert.Convert; import cn.hutool.core.convert.Convert;
import cn.hutool.core.lang.TypeReference;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.github.pagehelper.page.PageMethod; import com.github.pagehelper.page.PageMethod;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.constant.Constants; import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.Ztree;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.KCategory; import com.ruoyi.system.domain.KCategory;
import com.ruoyi.system.domain.KCategoryVO; import com.ruoyi.system.domain.KCategoryVO;
import com.ruoyi.system.domain.KContent; import com.ruoyi.system.domain.KContent;
import com.ruoyi.system.service.KCategoryService; import com.ruoyi.system.service.KCategoryService;
import com.ruoyi.system.service.KContentService; import com.ruoyi.system.service.KContentService;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;

@ -11,6 +11,7 @@ import lombok.experimental.Accessors;
/** /**
* *
* @author 13560
* @TableName k_category * @TableName k_category
*/ */
@Data @Data

@ -1,6 +1,8 @@
package com.ruoyi.system.domain; package com.ruoyi.system.domain;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
@ -9,9 +11,10 @@ import java.util.List;
/** /**
* *
* @author 13560 * @author 13560
* @TableName k_category
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class KCategoryVO implements Serializable { public class KCategoryVO implements Serializable {
/** /**
* *

@ -11,6 +11,7 @@ import lombok.experimental.Accessors;
/** /**
* *
* @author 13560
* @TableName k_content * @TableName k_content
*/ */
@Data @Data

Loading…
Cancel
Save