1. fix
This commit is contained in:
2026-04-07 08:56:19 +08:00
parent 5b49c7a591
commit fbbefeb4a5
3 changed files with 1 additions and 7 deletions

View File

@@ -36,7 +36,6 @@ import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.kiosk.pojo.entity.CategoryEntity;
@@ -98,7 +97,6 @@ public class CategoryController extends BladeController {
@PostMapping("/save")
@ApiOperationSupport(order = 4)
@Operation(summary = "新增", description = "传入category")
@CacheEvict(cacheNames = "kiosk:category:list", key = "'all-categories'")
public R save(@Valid @RequestBody CategoryEntity category) {
return R.status(categoryService.save(category));
}
@@ -109,7 +107,6 @@ public class CategoryController extends BladeController {
@PostMapping("/update")
@ApiOperationSupport(order = 5)
@Operation(summary = "修改", description = "传入category")
@CacheEvict(cacheNames = "kiosk:category:list", key = "'all-categories'")
public R update(@Valid @RequestBody CategoryEntity category) {
return R.status(categoryService.updateById(category));
}
@@ -120,7 +117,6 @@ public class CategoryController extends BladeController {
@PostMapping("/submit")
@ApiOperationSupport(order = 6)
@Operation(summary = "新增或修改", description = "传入category")
@CacheEvict(cacheNames = "kiosk:category:list", key = "'all-categories'")
public R submit(@Valid @RequestBody CategoryEntity category) {
return R.status(categoryService.saveOrUpdate(category));
}
@@ -131,7 +127,6 @@ public class CategoryController extends BladeController {
@PostMapping("/remove")
@ApiOperationSupport(order = 7)
@Operation(summary = "逻辑删除", description = "传入ids")
@CacheEvict(cacheNames = "kiosk:category:list", key = "'all-categories'")
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
return R.status(categoryService.deleteLogic(Func.toLongList(ids)));
}

View File

@@ -44,7 +44,6 @@ public class KioskApiController {
*/
@GetMapping("/category-list")
@Operation(summary = "产品目录")
@Cacheable(cacheNames = "kiosk:category:list", key = "'all-categories'")
public R<List<CategoryApiVO>> categoryList() {
List<CategoryApiVO> list = kioskApiService.categoryList();
return R.data(list);

View File

@@ -51,7 +51,7 @@
<if test="priceList.style !=null">
and kpl.style = #{priceList.style}
</if>
order by kpl.original_price, kc.type
order by kpl.update_time desc
</select>
<select id="selectPriceList" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">