类名修改
This commit is contained in:
@@ -33,7 +33,6 @@ public class ShopTableController {
|
||||
/**
|
||||
* 批量生成台桌码
|
||||
* 权限标识: shopTable:code
|
||||
* @return 台桌列表
|
||||
*/
|
||||
@SaAdminCheckPermission("shopTable:code")
|
||||
@PostMapping("/code")
|
||||
|
||||
@@ -22,8 +22,8 @@ import lombok.NoArgsConstructor;
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table("tb_shop_area")
|
||||
public class ShopArea implements Serializable {
|
||||
@Table("tb_shop_table_area")
|
||||
public class ShopTableArea implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.czg.account.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.account.entity.ShopArea;
|
||||
import com.czg.account.entity.ShopTableArea;
|
||||
|
||||
/**
|
||||
* 店铺区域 服务层。
|
||||
@@ -9,6 +9,6 @@ import com.czg.account.entity.ShopArea;
|
||||
* @author zs
|
||||
* @since 2025-02-18
|
||||
*/
|
||||
public interface ShopAreaService extends IService<ShopArea> {
|
||||
public interface ShopAreaService extends IService<ShopTableArea> {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.czg.service.account.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.czg.account.entity.ShopArea;
|
||||
import com.czg.account.entity.ShopTableArea;
|
||||
|
||||
/**
|
||||
* 店铺区域 映射层。
|
||||
@@ -9,6 +9,6 @@ import com.czg.account.entity.ShopArea;
|
||||
* @author zs
|
||||
* @since 2025-02-18
|
||||
*/
|
||||
public interface ShopAreaMapper extends BaseMapper<ShopArea> {
|
||||
public interface ShopAreaMapper extends BaseMapper<ShopTableArea> {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.czg.service.account.service.impl;
|
||||
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.czg.account.entity.ShopArea;
|
||||
import com.czg.account.entity.ShopTableArea;
|
||||
import com.czg.account.service.ShopAreaService;
|
||||
import com.czg.service.account.mapper.ShopAreaMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -13,6 +13,6 @@ import org.springframework.stereotype.Service;
|
||||
* @since 2025-02-18
|
||||
*/
|
||||
@Service
|
||||
public class ShopAreaServiceImpl extends ServiceImpl<ShopAreaMapper, ShopArea> implements ShopAreaService{
|
||||
public class ShopAreaServiceImpl extends ServiceImpl<ShopAreaMapper, ShopTableArea> implements ShopAreaService{
|
||||
|
||||
}
|
||||
|
||||
@@ -1,17 +1,11 @@
|
||||
package com.czg.service.account.service.impl;
|
||||
|
||||
import cn.dev33.satoken.context.SaHolder;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.img.ImgUtil;
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.core.util.ZipUtil;
|
||||
import cn.hutool.extra.qrcode.QrCodeUtil;
|
||||
import com.czg.account.dto.table.ShopTableAddDTO;
|
||||
import com.czg.account.entity.ShopArea;
|
||||
import com.czg.account.entity.ShopTableArea;
|
||||
import com.czg.account.service.ShopAreaService;
|
||||
import com.czg.enums.ShopTableStatusEnum;
|
||||
import com.czg.exception.ApiNotPrintException;
|
||||
@@ -27,12 +21,8 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipOutputStream;
|
||||
@@ -50,8 +40,8 @@ public class ShopTableServiceImpl extends ServiceImpl<ShopTableMapper, ShopTable
|
||||
|
||||
@Override
|
||||
public Boolean add(Long shopId, ShopTableAddDTO shopTableAddDTO) {
|
||||
ShopArea shopArea = shopAreaService.getOne(new QueryWrapper().eq(ShopArea::getShopId, shopId)
|
||||
.eq(ShopArea::getId, shopTableAddDTO.getAreaId()));
|
||||
ShopTableArea shopArea = shopAreaService.getOne(new QueryWrapper().eq(ShopTableArea::getShopId, shopId)
|
||||
.eq(ShopTableArea::getId, shopTableAddDTO.getAreaId()));
|
||||
if (shopArea == null) {
|
||||
throw new ApiNotPrintException("台桌区域不存在");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user