菜单权限放开,允许管理员任意调用
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user