增加品牌馆滚动条
This commit is contained in:
+11
@@ -43,6 +43,17 @@ public class AppStoreBrandController {
|
||||
return ApiResult.ok(yxStoreBrandService.getList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 品牌馆滚动条信息
|
||||
*/
|
||||
@AnonymousAccess
|
||||
@GetMapping("/brandInfo")
|
||||
@ApiOperation(value = "品牌馆滚动条信息",notes = "品牌馆滚动条信息")
|
||||
public ApiResult<Object> getYxStoreBrandInfo(){
|
||||
|
||||
return ApiResult.ok(yxStoreBrandService.getBrandInfo());
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品品牌列表按首字母分类
|
||||
*/
|
||||
|
||||
@@ -101,6 +101,11 @@ public interface ShopConstants {
|
||||
* 关于我们
|
||||
*/
|
||||
String ZSW_HOME_ABOUTUS = "aboutUS";
|
||||
|
||||
/**
|
||||
* 品牌馆首页滚动条
|
||||
*/
|
||||
String ZSW_BRAND_INDEX = "brandIndex";
|
||||
/**
|
||||
* 首页菜单
|
||||
*/
|
||||
|
||||
+2
-1
@@ -96,7 +96,8 @@ public class YxStoreProductAttrServiceImpl extends BaseServiceImpl<StoreProductA
|
||||
for (ProductFormatDto productFormatDto : attrs) {
|
||||
|
||||
if(productFormatDto.getPinkStock()>productFormatDto.getStock() || productFormatDto.getSeckillStock()>productFormatDto.getStock()){
|
||||
throw new BadRequestException("活动商品库存不能大于原有商品库存");
|
||||
// throw new BadRequestException("活动商品库存不能大于原有商品库存");
|
||||
throw new YshopException("活动商品库存不能大于原有商品库存");
|
||||
}
|
||||
List<String> stringList = new ArrayList<>(productFormatDto.getDetail().values());
|
||||
Collections.sort(stringList);
|
||||
|
||||
+3
-1
@@ -489,7 +489,9 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
|
||||
|
||||
IPage<YxStoreProduct> pageList = storeProductMapper.selectPage(pageModel, wrapper);
|
||||
|
||||
return generator.convert(pageList.getRecords(), YxStoreProductQueryVo.class);
|
||||
List<YxStoreProductQueryVo> list=generator.convert(pageList.getRecords(), YxStoreProductQueryVo.class);
|
||||
list.forEach(yxStoreProductQueryVo -> yxStoreProductQueryVo.setBrandName(storeBrandMapper.selectById(yxStoreProductQueryVo.getBrandId()).getBrandName()));
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import co.yixiang.modules.evaluation.domain.EditableTabs;
|
||||
import co.yixiang.modules.product.domain.YxStoreProductAttrValue;
|
||||
import co.yixiang.modules.product.domain.YxStoreProductConfig;
|
||||
import co.yixiang.modules.product.service.dto.Parameter;
|
||||
import co.yixiang.modules.store.vo.YxStoreBrandVo;
|
||||
import co.yixiang.serializer.BigDecimalSerializer;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
|
||||
@@ -165,6 +166,9 @@ public class YxStoreProductQueryVo implements Serializable {
|
||||
@ApiModelProperty(value = "是否单独分佣")
|
||||
private Integer isSub;
|
||||
|
||||
@ApiModelProperty(value = "品牌信息")
|
||||
private YxStoreBrandVo brandInfo;
|
||||
|
||||
/** 规格 0单 1多 */
|
||||
@ApiModelProperty(value = "规格 0单 1多 ")
|
||||
private Integer specType;
|
||||
|
||||
@@ -53,4 +53,7 @@ public interface YxStoreBrandService extends BaseService<YxStoreBrand> {
|
||||
void download(List<YxStoreBrandDto> all, HttpServletResponse response) throws IOException;
|
||||
|
||||
BrandDTO getYxStoreBrandById(String id);
|
||||
|
||||
//获取品牌馆首页滚动条信息
|
||||
Object getBrandInfo();
|
||||
}
|
||||
|
||||
+13
@@ -9,15 +9,20 @@
|
||||
package co.yixiang.modules.store.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.iocoder.yudao.framework.common.pojo.ApiResult;
|
||||
import cn.iocoder.yudao.framework.common.util.json.JsonUtils;
|
||||
import co.yixiang.common.service.impl.BaseServiceImpl;
|
||||
import co.yixiang.common.utils.QueryHelpPlus;
|
||||
import co.yixiang.constant.ShopConstants;
|
||||
import co.yixiang.domain.PageResult;
|
||||
import co.yixiang.dozer.service.IGenerator;
|
||||
import co.yixiang.enums.ShopCommonEnum;
|
||||
import co.yixiang.modules.shop.service.YxSystemConfigService;
|
||||
import co.yixiang.modules.store.domain.YxStoreBrand;
|
||||
import co.yixiang.modules.store.service.dto.YxStoreBrandNameDto;
|
||||
import co.yixiang.utils.FileUtil;
|
||||
import co.yixiang.utils.BrandDTO;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
@@ -52,6 +57,7 @@ public class YxStoreBrandServiceImpl extends BaseServiceImpl<YxStoreBrandMapper,
|
||||
private final IGenerator generator;
|
||||
@Autowired
|
||||
private YxStoreBrandMapper yxStoreBrandMapper;
|
||||
private final YxSystemConfigService systemConfigService;
|
||||
/**
|
||||
* 获取商家品牌
|
||||
* @return list
|
||||
@@ -120,4 +126,11 @@ public class YxStoreBrandServiceImpl extends BaseServiceImpl<YxStoreBrandMapper,
|
||||
BeanUtil.copyProperties(yxStoreBrand,brandDTO);
|
||||
return brandDTO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getBrandInfo() {
|
||||
// Map<String,Object> map = new LinkedHashMap<>();
|
||||
// map.put("brandIndex", JSONObject.parseObject(systemConfigService.getData(ShopConstants.ZSW_BRAND_INDEX)));
|
||||
return JSONObject.parseObject(systemConfigService.getData(ShopConstants.ZSW_BRAND_INDEX));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ import co.yixiang.event.TemplateEvent;
|
||||
import co.yixiang.event.TemplateListenEnum;
|
||||
import co.yixiang.modules.activity.domain.YxStoreCouponUser;
|
||||
import co.yixiang.modules.activity.service.mapper.YxStoreCouponUserMapper;
|
||||
import co.yixiang.modules.activity.vo.StoreCouponUserVo;
|
||||
import co.yixiang.modules.order.service.YxStoreOrderService;
|
||||
import co.yixiang.modules.order.service.dto.YxStoreOrderDto;
|
||||
import co.yixiang.modules.shop.service.YxSystemConfigService;
|
||||
@@ -25,6 +24,7 @@ import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationEventPublisher;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@@ -34,6 +34,7 @@ import java.util.*;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
@Lazy(false)
|
||||
public class WxbotMsgUtil {
|
||||
|
||||
@Autowired
|
||||
@@ -49,8 +50,12 @@ public class WxbotMsgUtil {
|
||||
private ApplicationEventPublisher publisher;
|
||||
|
||||
//定时器,每天下午17点触发
|
||||
@Scheduled(cron = "0 0 15 * * ?")
|
||||
@Scheduled(cron = "0 0 17 * * ?")
|
||||
public void scheduled(){
|
||||
log.info("=====>>>>>使用cron {}",System.currentTimeMillis());
|
||||
log.info("=====>>>>>使用cron {}",System.currentTimeMillis());
|
||||
log.info("=====>>>>>使用cron {}",System.currentTimeMillis());
|
||||
log.info("=====>>>>>使用cron {}",System.currentTimeMillis());
|
||||
log.info("=====>>>>>使用cron {}",System.currentTimeMillis());
|
||||
//查出所有用户拥有的券使用时间小于24小时且未使用的券
|
||||
Date now=new Date();
|
||||
|
||||
Reference in New Issue
Block a user