|  |  | 
 |  |  | import com.matrix.core.tools.WebUtil; | 
 |  |  | import com.matrix.system.common.bean.CustomerDataDictionary; | 
 |  |  | import com.matrix.system.common.bean.SysUsers; | 
 |  |  | import com.matrix.system.common.constance.AppConstance; | 
 |  |  | import com.matrix.system.common.dao.CustomerDataDictionaryDao; | 
 |  |  | import com.matrix.system.common.service.SysUsersService; | 
 |  |  | import com.matrix.system.constance.Dictionary; | 
 |  |  | import com.matrix.system.hive.action.BaseController; | 
 |  |  | import com.matrix.system.hive.action.util.QueryUtil; | 
 |  |  | import com.matrix.system.hive.bean.SysOrder; | 
 |  |  | import com.matrix.system.hive.bean.SysShopInfo; | 
 |  |  | import com.matrix.system.hive.bean.SysVipInfo; | 
 |  |  | import com.matrix.system.hive.bean.SysVipLevel; | 
 |  |  | import com.matrix.system.hive.dao.MoneyCardUseDao; | 
 |  |  | import com.matrix.system.hive.dao.ShoppingGoodsDao; | 
 |  |  | import com.matrix.system.hive.dao.SysVipLabelDao; | 
 |  |  | import com.matrix.system.hive.pojo.CzXkVo; | 
 |  |  | import com.matrix.system.hive.service.MoneyCardUseService; | 
 |  |  | import com.matrix.system.hive.service.SysOrderService; | 
 |  |  | import com.matrix.system.hive.service.SysVipInfoService; | 
 |  |  | import com.matrix.system.hive.service.*; | 
 |  |  | import com.matrix.system.padApi.dto.PadVipListDto; | 
 |  |  | import com.matrix.system.score.dao.ScoreVipDetailDao; | 
 |  |  | import com.matrix.system.shopXcx.mqTask.AsyncMessageRouting; | 
 |  |  | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Resource | 
 |  |  |     private SysVipLevelService cardLevelService; | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "显示所有的会员卡等级信息,不分页", notes = "显示所有的会员卡等级信息,不分页") | 
 |  |  |     @GetMapping(value = "/all") | 
 |  |  |     public AjaxResult all() { | 
 |  |  |         SysVipLevel sysVipLevel = new SysVipLevel(); | 
 |  |  |         return new AjaxResult(AjaxResult.STATUS_SUCCESS, cardLevelService.findByModel(sysVipLevel), null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Resource | 
 |  |  |     private SysShopInfoService shopInfoService; // 店铺Service | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "所属门店,不分页", notes = "所属门店,不分页") | 
 |  |  |     @GetMapping(value = "/findShopByRole") | 
 |  |  |     public AjaxResult findShopByRole() { | 
 |  |  |         SysUsers user = getMe(); | 
 |  |  |         SysShopInfo shopInfo = new SysShopInfo(); | 
 |  |  |         shopInfo.setCompanyId(user.getCompanyId()); | 
 |  |  |         if(!user.getSuUserType().equals(AppConstance.USER_TYPE_ADMIN) && !user.getShopRole().equals(Dictionary.FLAG_YES_Y)){ | 
 |  |  |             shopInfo.setId(user.getShopId()); | 
 |  |  |         } | 
 |  |  |         return new AjaxResult(AjaxResult.STATUS_SUCCESS, shopInfoService.findByModel(shopInfo), null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 查看会员信息 | 
 |  |  |      */ |