|
|
@@ -5,6 +5,7 @@ import com.xingxi.common.core.controller.BaseController;
|
|
|
import com.xingxi.common.core.domain.AjaxResult;
|
|
|
import com.xingxi.common.core.page.TableDataInfo;
|
|
|
import com.xingxi.common.enums.BusinessType;
|
|
|
+import com.xingxi.common.enums.EDelFlag;
|
|
|
import com.xingxi.common.utils.poi.ExcelUtil;
|
|
|
import com.xingxi.master.tag.domain.Tag;
|
|
|
import com.xingxi.master.tag.service.ITagService;
|
|
|
@@ -19,7 +20,7 @@ import java.util.List;
|
|
|
/**
|
|
|
* 标签Controller
|
|
|
*
|
|
|
- * @author ruoyi
|
|
|
+ * @author xingxi
|
|
|
* @date 2025-03-09
|
|
|
*/
|
|
|
@Controller
|
|
|
@@ -42,9 +43,9 @@ public class TagController extends BaseController {
|
|
|
@RequiresPermissions("master:tag:list")
|
|
|
@PostMapping("/list")
|
|
|
@ResponseBody
|
|
|
- public TableDataInfo list(Tag mTag) {
|
|
|
+ public TableDataInfo list(Tag tag) {
|
|
|
startPage();
|
|
|
- List<Tag> list = tagService.selectTagList(mTag);
|
|
|
+ List<Tag> list = tagService.selectTagList(tag);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
@@ -55,8 +56,8 @@ public class TagController extends BaseController {
|
|
|
@Log(title = "标签", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
@ResponseBody
|
|
|
- public AjaxResult export(Tag mTag) {
|
|
|
- List<Tag> list = tagService.selectTagList(mTag);
|
|
|
+ public AjaxResult export(Tag tag) {
|
|
|
+ List<Tag> list = tagService.selectTagList(tag);
|
|
|
ExcelUtil<Tag> util = new ExcelUtil<>(Tag.class);
|
|
|
return util.exportExcel(list, "标签数据");
|
|
|
}
|
|
|
@@ -76,8 +77,8 @@ public class TagController extends BaseController {
|
|
|
@Log(title = "标签", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
@ResponseBody
|
|
|
- public AjaxResult addSave(Tag mTag) {
|
|
|
- return toAjax(tagService.insertTag(mTag));
|
|
|
+ public AjaxResult addSave(Tag tag) {
|
|
|
+ return toAjax(tagService.insertTag(tag));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -86,8 +87,8 @@ public class TagController extends BaseController {
|
|
|
@RequiresPermissions("master:tag:edit")
|
|
|
@GetMapping("/edit/{tagId}")
|
|
|
public String edit(@PathVariable("tagId") Long tagId, ModelMap mMap) {
|
|
|
- Tag mTag = tagService.selectTagByTagId(tagId);
|
|
|
- mMap.put("mTag", mTag);
|
|
|
+ Tag tag = tagService.selectTagByTagId(tagId);
|
|
|
+ mMap.put("tag", tag);
|
|
|
return prefix + "/edit";
|
|
|
}
|
|
|
|
|
|
@@ -98,8 +99,8 @@ public class TagController extends BaseController {
|
|
|
@Log(title = "标签", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
@ResponseBody
|
|
|
- public AjaxResult editSave(Tag mTag) {
|
|
|
- return toAjax(tagService.updateTag(mTag));
|
|
|
+ public AjaxResult editSave(Tag tag) {
|
|
|
+ return toAjax(tagService.updateTag(tag));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -110,6 +111,6 @@ public class TagController extends BaseController {
|
|
|
@PostMapping("/remove")
|
|
|
@ResponseBody
|
|
|
public AjaxResult remove(String ids) {
|
|
|
- return toAjax(tagService.deleteTagByTagIds(ids));
|
|
|
+ return toAjax(tagService.logicDeleteTagByTagIds(ids));
|
|
|
}
|
|
|
}
|