Compare commits
3 Commits
24ea4bfc32
...
test
| Author | SHA1 | Date | |
|---|---|---|---|
| 639252d04e | |||
| 94fce3b08f | |||
| 6a94645076 |
@@ -143,7 +143,7 @@ public class AShopUserServiceImpl implements AShopUserService {
|
|||||||
List<ShopUserDTO> dtoList = shopUserMapper.selectPageByKeyAndIsVip(mainIdByShopId, isVip, key, null);
|
List<ShopUserDTO> dtoList = shopUserMapper.selectPageByKeyAndIsVip(mainIdByShopId, isVip, key, null);
|
||||||
|
|
||||||
// 将 dtoList 转换为 ShopUserExportDTO 列表
|
// 将 dtoList 转换为 ShopUserExportDTO 列表
|
||||||
List<ShopUserExportDTO> exportList = BeanUtil.copyToList(dtoList, ShopUserExportDTO.class);
|
List<ShopUserExportDTO> exportList = BeanUtil.copyToList(dtoList, ShopUserExportDTO.class);
|
||||||
ExcelExportUtil.exportToResponse(exportList, ShopUserExportDTO.class, shopInfo == null ? "店铺用户列表" : shopInfo.getShopName() + "_用户列表", response);
|
ExcelExportUtil.exportToResponse(exportList, ShopUserExportDTO.class, shopInfo == null ? "店铺用户列表" : shopInfo.getShopName() + "_用户列表", response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,7 +193,15 @@ public class AShopUserServiceImpl implements AShopUserService {
|
|||||||
@Override
|
@Override
|
||||||
public ShopUser getDetail(Integer id, Integer userId) {
|
public ShopUser getDetail(Integer id, Integer userId) {
|
||||||
Long mainId = shopInfoService.getMainIdByShopId(StpKit.USER.getShopId());
|
Long mainId = shopInfoService.getMainIdByShopId(StpKit.USER.getShopId());
|
||||||
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getMainShopId, mainId).eq(ShopUser::getId, id).eq(ShopUser::getUserId, userId));
|
ShopUser shopUser;
|
||||||
|
if (id == null) {
|
||||||
|
shopUser = shopUserService.getShopUserInfo(StpKit.USER.getShopId(), userId);
|
||||||
|
} else {
|
||||||
|
shopUser = shopUserService.getById(id);
|
||||||
|
if (shopUser == null) {
|
||||||
|
throw new CzgException("用户不存在");
|
||||||
|
}
|
||||||
|
}
|
||||||
long count = couponRecordService.count(new QueryWrapper()
|
long count = couponRecordService.count(new QueryWrapper()
|
||||||
.eq(MkShopCouponRecord::getShopUserId, shopUser.getId())
|
.eq(MkShopCouponRecord::getShopUserId, shopUser.getId())
|
||||||
.eq(MkShopCouponRecord::getStatus, 0)
|
.eq(MkShopCouponRecord::getStatus, 0)
|
||||||
|
|||||||
@@ -484,8 +484,8 @@ public interface PrinterImpl {
|
|||||||
* @param pickupNumber 取餐号
|
* @param pickupNumber 取餐号
|
||||||
* @return 元数据
|
* @return 元数据
|
||||||
*/
|
*/
|
||||||
default String buildOnlyKitchenPrintData(String pickupNumber, OrderDetail orderDetail) {
|
default String buildOnlyKitchenPrintData(Integer isCode, String pickupNumber, OrderDetail orderDetail) {
|
||||||
PrintSignLabel signLabelInfo = getSignLabelInfo();
|
PrintLabel signLabelInfo = getSignLabelInfo();
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append(formatLabel(pickupNumber, signLabelInfo.centerBold))
|
builder.append(formatLabel(pickupNumber, signLabelInfo.centerBold))
|
||||||
.append(signLabelInfo.br);
|
.append(signLabelInfo.br);
|
||||||
|
|||||||
@@ -1419,7 +1419,9 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
|
|||||||
param.setWaitCall(false);
|
param.setWaitCall(false);
|
||||||
param.setVipPrice(false);
|
param.setVipPrice(false);
|
||||||
param.setPackFee(BigDecimal.ZERO);
|
param.setPackFee(BigDecimal.ZERO);
|
||||||
return initOrderInfo(param, shopInfo, null);
|
OrderInfo orderInfo = initOrderInfo(param, shopInfo, null);
|
||||||
|
redisService.set(RedisCst.classKeyExpired.EXPIRED_ORDER + orderInfo.getId(), "", 60 * 15);
|
||||||
|
return orderInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user