update:
1. fix
This commit is contained in:
@@ -36,7 +36,6 @@ import org.springblade.core.mp.support.Condition;
|
|||||||
import org.springblade.core.mp.support.Query;
|
import org.springblade.core.mp.support.Query;
|
||||||
import org.springblade.core.tool.api.R;
|
import org.springblade.core.tool.api.R;
|
||||||
import org.springblade.core.tool.utils.Func;
|
import org.springblade.core.tool.utils.Func;
|
||||||
import org.springframework.cache.annotation.CacheEvict;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import org.springblade.modules.kiosk.pojo.entity.CategoryEntity;
|
import org.springblade.modules.kiosk.pojo.entity.CategoryEntity;
|
||||||
@@ -98,7 +97,6 @@ public class CategoryController extends BladeController {
|
|||||||
@PostMapping("/save")
|
@PostMapping("/save")
|
||||||
@ApiOperationSupport(order = 4)
|
@ApiOperationSupport(order = 4)
|
||||||
@Operation(summary = "新增", description = "传入category")
|
@Operation(summary = "新增", description = "传入category")
|
||||||
@CacheEvict(cacheNames = "kiosk:category:list", key = "'all-categories'")
|
|
||||||
public R save(@Valid @RequestBody CategoryEntity category) {
|
public R save(@Valid @RequestBody CategoryEntity category) {
|
||||||
return R.status(categoryService.save(category));
|
return R.status(categoryService.save(category));
|
||||||
}
|
}
|
||||||
@@ -109,7 +107,6 @@ public class CategoryController extends BladeController {
|
|||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
@ApiOperationSupport(order = 5)
|
@ApiOperationSupport(order = 5)
|
||||||
@Operation(summary = "修改", description = "传入category")
|
@Operation(summary = "修改", description = "传入category")
|
||||||
@CacheEvict(cacheNames = "kiosk:category:list", key = "'all-categories'")
|
|
||||||
public R update(@Valid @RequestBody CategoryEntity category) {
|
public R update(@Valid @RequestBody CategoryEntity category) {
|
||||||
return R.status(categoryService.updateById(category));
|
return R.status(categoryService.updateById(category));
|
||||||
}
|
}
|
||||||
@@ -120,7 +117,6 @@ public class CategoryController extends BladeController {
|
|||||||
@PostMapping("/submit")
|
@PostMapping("/submit")
|
||||||
@ApiOperationSupport(order = 6)
|
@ApiOperationSupport(order = 6)
|
||||||
@Operation(summary = "新增或修改", description = "传入category")
|
@Operation(summary = "新增或修改", description = "传入category")
|
||||||
@CacheEvict(cacheNames = "kiosk:category:list", key = "'all-categories'")
|
|
||||||
public R submit(@Valid @RequestBody CategoryEntity category) {
|
public R submit(@Valid @RequestBody CategoryEntity category) {
|
||||||
return R.status(categoryService.saveOrUpdate(category));
|
return R.status(categoryService.saveOrUpdate(category));
|
||||||
}
|
}
|
||||||
@@ -131,7 +127,6 @@ public class CategoryController extends BladeController {
|
|||||||
@PostMapping("/remove")
|
@PostMapping("/remove")
|
||||||
@ApiOperationSupport(order = 7)
|
@ApiOperationSupport(order = 7)
|
||||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||||
@CacheEvict(cacheNames = "kiosk:category:list", key = "'all-categories'")
|
|
||||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||||
return R.status(categoryService.deleteLogic(Func.toLongList(ids)));
|
return R.status(categoryService.deleteLogic(Func.toLongList(ids)));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ public class KioskApiController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/category-list")
|
@GetMapping("/category-list")
|
||||||
@Operation(summary = "产品目录")
|
@Operation(summary = "产品目录")
|
||||||
@Cacheable(cacheNames = "kiosk:category:list", key = "'all-categories'")
|
|
||||||
public R<List<CategoryApiVO>> categoryList() {
|
public R<List<CategoryApiVO>> categoryList() {
|
||||||
List<CategoryApiVO> list = kioskApiService.categoryList();
|
List<CategoryApiVO> list = kioskApiService.categoryList();
|
||||||
return R.data(list);
|
return R.data(list);
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<if test="priceList.style !=null">
|
<if test="priceList.style !=null">
|
||||||
and kpl.style = #{priceList.style}
|
and kpl.style = #{priceList.style}
|
||||||
</if>
|
</if>
|
||||||
order by kpl.original_price, kc.type
|
order by kpl.update_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectPriceList" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">
|
<select id="selectPriceList" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">
|
||||||
|
|||||||
Reference in New Issue
Block a user