|
|
@@ -19,7 +19,7 @@ import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
- * 今日热门Controller
|
|
|
+ * 新品上架Controller
|
|
|
*
|
|
|
* @author ruoyi
|
|
|
* @date 2025-05-15
|
|
|
@@ -43,7 +43,7 @@ public class NewProdController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询今日热门列表
|
|
|
+ * 查询新品上架列表
|
|
|
*/
|
|
|
@RequiresPermissions("business:newProd:list")
|
|
|
@PostMapping("/list")
|
|
|
@@ -55,23 +55,23 @@ public class NewProdController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 导出今日热门列表
|
|
|
+ * 导出新品上架列表
|
|
|
*/
|
|
|
@RequiresPermissions("business:newProd:export")
|
|
|
- @Log(title = "今日热门", businessType = BusinessType.EXPORT)
|
|
|
+ @Log(title = "新品上架", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
@ResponseBody
|
|
|
public AjaxResult export(NewProd newProd) {
|
|
|
List<NewProd> list = newProdService.selectNewProdList(newProd);
|
|
|
ExcelUtil<NewProd> util = new ExcelUtil<>(NewProd.class);
|
|
|
- return util.exportExcel(list, "今日热门数据");
|
|
|
+ return util.exportExcel(list, "新品上架数据");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 新增保存今日热门
|
|
|
+ * 新增保存新品上架
|
|
|
*/
|
|
|
@RequiresPermissions("business:newProd:add")
|
|
|
- @Log(title = "今日热门", businessType = BusinessType.INSERT)
|
|
|
+ @Log(title = "新品上架", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
@ResponseBody
|
|
|
public AjaxResult addSave(NewProd newProd) {
|
|
|
@@ -85,10 +85,10 @@ public class NewProdController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 新增保存今日热门
|
|
|
+ * 新增保存新品上架
|
|
|
*/
|
|
|
@RequiresPermissions("business:newProd:edit")
|
|
|
- @Log(title = "今日热门", businessType = BusinessType.UPDATE)
|
|
|
+ @Log(title = "新品上架", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/editSort")
|
|
|
@ResponseBody
|
|
|
public AjaxResult editSort(@RequestBody List<NewProd> newProdList) {
|
|
|
@@ -96,10 +96,10 @@ public class NewProdController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 删除今日热门
|
|
|
+ * 删除新品上架
|
|
|
*/
|
|
|
@RequiresPermissions("business:newProd:remove")
|
|
|
- @Log(title = "今日热门", businessType = BusinessType.DELETE)
|
|
|
+ @Log(title = "新品上架", businessType = BusinessType.DELETE)
|
|
|
@PostMapping("/remove")
|
|
|
@ResponseBody
|
|
|
public AjaxResult remove(String ids) {
|