菜单权限放开,允许管理员任意调用

This commit is contained in:
张松
2025-02-17 18:04:36 +08:00
parent 483c67dab0
commit 732f562ee6
4 changed files with 20 additions and 15 deletions

View File

@@ -14,7 +14,6 @@ import com.czg.service.account.mapper.ShopCouponMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
@@ -32,7 +31,7 @@ public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCou
private ShopActivateOutRecordService outService;
@Override
public List<ShopCouponDTO> getList(Long shopId, Integer status) {
public List<ShopCoupon> getList(Long shopId, Integer status) {
QueryWrapper queryWrapper = new QueryWrapper();
if (shopId != null) {
if (status == 1) {
@@ -44,10 +43,10 @@ public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCou
return switch (status) {
case -1 -> {
queryWrapper.ge(ShopActivateInRecord::getUseEndTime, DateUtil.date());
// yield list(queryWrapper);
yield null;
yield list(queryWrapper);
}
case 0 -> {
// yield outService.list(queryWrapper);
yield null;
}