|
@@ -208,7 +208,7 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
public StoreMainInfoVo getDecorationDetail(Integer id) {
|
|
public StoreMainInfoVo getDecorationDetail(Integer id) {
|
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(id);
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(id);
|
|
|
StoreMainInfoVo storeMainInfoVo = storeInfoMapper.getStoreInfo(id);
|
|
StoreMainInfoVo storeMainInfoVo = storeInfoMapper.getStoreInfo(id);
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
|
|
|
|
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
String expirationDate = sdf.format(storeMainInfoVo.getExpirationTime());
|
|
String expirationDate = sdf.format(storeMainInfoVo.getExpirationTime());
|
|
|
storeMainInfoVo.setExpirationDate(expirationDate);
|
|
storeMainInfoVo.setExpirationDate(expirationDate);
|
|
|
//审核通过给前台反显未提交
|
|
//审核通过给前台反显未提交
|
|
@@ -1589,7 +1589,7 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
// 构建查询优惠券的条件对象
|
|
// 构建查询优惠券的条件对象
|
|
|
LambdaUpdateWrapper<LifeCoupon> quanWrapper = new LambdaUpdateWrapper<>();
|
|
LambdaUpdateWrapper<LifeCoupon> quanWrapper = new LambdaUpdateWrapper<>();
|
|
|
// 添加门店ID筛选条件
|
|
// 添加门店ID筛选条件
|
|
|
- quanWrapper.in(LifeCoupon::getStoreId, storeIds)
|
|
|
|
|
|
|
+ quanWrapper.in(ObjectUtils.isNotEmpty(storeIds),LifeCoupon::getStoreId, storeIds)
|
|
|
// 添加优惠券状态筛选条件
|
|
// 添加优惠券状态筛选条件
|
|
|
.eq(LifeCoupon::getStatus, CouponStatusEnum.ONGOING.getCode())
|
|
.eq(LifeCoupon::getStatus, CouponStatusEnum.ONGOING.getCode())
|
|
|
// 按照创建时间降序排序
|
|
// 按照创建时间降序排序
|
|
@@ -1599,7 +1599,7 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
// 构建查询团购套餐条件对象
|
|
// 构建查询团购套餐条件对象
|
|
|
LambdaUpdateWrapper<LifeGroupBuyMain> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
|
LambdaUpdateWrapper<LifeGroupBuyMain> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
|
|
// 添加门店ID筛选条件
|
|
// 添加门店ID筛选条件
|
|
|
- lambdaUpdateWrapper.in(LifeGroupBuyMain::getStoreId, storeIds)
|
|
|
|
|
|
|
+ lambdaUpdateWrapper.in(ObjectUtils.isNotEmpty(storeIds),LifeGroupBuyMain::getStoreId, storeIds)
|
|
|
// 添加团购套餐状态筛选条件
|
|
// 添加团购套餐状态筛选条件
|
|
|
.eq(LifeGroupBuyMain::getStatus, 5)
|
|
.eq(LifeGroupBuyMain::getStatus, 5)
|
|
|
.orderByDesc(LifeGroupBuyMain::getCreatedTime);
|
|
.orderByDesc(LifeGroupBuyMain::getCreatedTime);
|