优化店铺管理

This commit is contained in:
Richie 2025-05-19 14:36:28 +08:00
parent db4addcf64
commit 252319ddb1
3 changed files with 8 additions and 6 deletions

View File

@ -40,7 +40,10 @@ public class ShopController extends BaseController {
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(ShopBo shop) public TableDataInfo list(ShopBo shop)
{ {
LambdaQueryWrapper<OShop> qw = new LambdaQueryWrapper<OShop>().eq(shop.getType()!=null,OShop::getType,shop.getType()); LambdaQueryWrapper<OShop> qw = new LambdaQueryWrapper<OShop>()
.eq(shop.getType()!=null,OShop::getType,shop.getType())
.ne(shop.getType()==null,OShop::getType,999)
;
List<OShop> list = shopService.list(qw); List<OShop> list = shopService.list(qw);
return getDataTable(list); return getDataTable(list);
} }

View File

@ -11,7 +11,7 @@
Target Server Version : 80200 Target Server Version : 80200
File Encoding : 65001 File Encoding : 65001
Date: 19/05/2025 14:30:08 Date: 19/05/2025 14:36:06
*/ */
SET NAMES utf8mb4; SET NAMES utf8mb4;

View File

@ -55,10 +55,9 @@
<el-table v-loading="loading" :data="shopList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="shopList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="店铺ID" align="center" prop="id" /> <el-table-column label="店铺ID" align="center" prop="id" width="100" />
<el-table-column label="店铺名" align="center" prop="name" /> <el-table-column label="店铺名" align="left" prop="name" />
<el-table-column label="店铺备注" align="center" prop="remark" /> <el-table-column label="店铺备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -143,7 +142,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
name: null, name: null,
platform: 999 type: 999
}, },
// //
form: { form: {