记得上下班打卡 | git大法好,push需谨慎

Commit 9a985041 authored by 张国柄's avatar 张国柄

Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin

parents 21b983cc 3b7de285
......@@ -57,6 +57,8 @@ public class GoblinStoreInfoVo implements Serializable, Cloneable {
@ApiModelProperty(position = 30, value = "店铺认证信息")
private GoblinStoreCertificationVo certificationVo;
@ApiModelProperty(position = 31, value = "商铺商品数量")
private int count;
private static final GoblinStoreInfoVo obj = new GoblinStoreInfoVo();
......
......@@ -173,7 +173,7 @@
// addItem (1);
let url = window.location.hostname;
if (url.includes('test')) {
$("#iframe").attr('src', 'https://testm.zhengzai.tv/#/goods/home?place=admin');
$("#iframe").attr('src', 'https://ttestm.zhengzai.tv/#/goods/home?place=admin');
} else if (!url.includes('test') && url.includes('admin')) {
$("#iframe").attr('src', 'https://m.zhengzai.tv/#/goods/home?place=admin');
} else {
......
......@@ -186,7 +186,7 @@
$(function() {
let url = window.location.hostname;
if (url.includes('test')) {
$("#iframe").attr('src', 'https://testm.zhengzai.tv/#/goods/home?place=admin');
$("#iframe").attr('src', 'https://ttestm.zhengzai.tv/#/goods/home?place=admin');
} else if (!url.includes('test') && url.includes('admin')) {
$("#iframe").attr('src', 'https://m.zhengzai.tv/#/goods/home?place=admin');
} else {
......
......@@ -149,7 +149,7 @@
$(function() {
let url = window.location.hostname;
if (url.includes('test')) {
$("#iframe").attr('src', 'https://testm.zhengzai.tv/#/goods/home?place=admin');
$("#iframe").attr('src', 'https://ttestm.zhengzai.tv/#/goods/home?place=admin');
} else if (!url.includes('test') && url.includes('admin')) {
$("#iframe").attr('src', 'https://m.zhengzai.tv/#/goods/home?place=admin');
} else {
......
......@@ -161,7 +161,7 @@
$(function() {
let url = window.location.hostname;
if (url.includes('test')) {
$("#iframe").attr('src', 'https://testm.zhengzai.tv/#/goods/home?place=admin');
$("#iframe").attr('src', 'https://ttestm.zhengzai.tv/#/goods/home?place=admin');
} else if (!url.includes('test') && url.includes('admin')) {
$("#iframe").attr('src', 'https://m.zhengzai.tv/#/goods/home?place=admin');
} else {
......
......@@ -130,7 +130,7 @@
$(function(){
let url = window.location.hostname;
if (url.includes('test')) {
$("#iframe").attr('src', 'https://testm.zhengzai.tv/#/goods/home?place=admin');
$("#iframe").attr('src', 'https://ttestm.zhengzai.tv/#/goods/home?place=admin');
} else if (!url.includes('test') && url.includes('admin')) {
$("#iframe").attr('src', 'https://m.zhengzai.tv/#/goods/home?place=admin');
} else {
......
......@@ -165,7 +165,7 @@
$(function(){
let url = window.location.hostname;
if (url.includes('test')) {
$("#iframe").attr('src', 'https://testm.zhengzai.tv/#/goods/home?place=admin');
$("#iframe").attr('src', 'https://ttestm.zhengzai.tv/#/goods/home?place=admin');
} else if (!url.includes('test') && url.includes('admin')) {
$("#iframe").attr('src', 'https://m.zhengzai.tv/#/goods/home?place=admin');
} else {
......
......@@ -111,9 +111,9 @@ public class GoblinFrontController {
return ResponseDto.success( goblinFrontService.getStoreCategory(storeId));
}
@GetMapping("getStoreGoodes")
@ApiOperation("获得店铺分类")
public ResponseDto<List<GoblinStoreGoodsCategoryVo>> getStoreGoodes(@RequestParam(name = "storeId", required = true)String storeId) throws ParseException {
return ResponseDto.success( goblinFrontService.getStoreCategory(storeId));
@ApiOperation("获得店铺商品")
public ResponseDto<List<GoblinGoodsInfoVo>> getStoreGoodes(@RequestParam(name = "storeId", required = true)String storeId,@RequestParam(name = "categoryId", required = true)String categoryId) throws ParseException {
return ResponseDto.success( goblinFrontService.getStoreGoodes(storeId,categoryId));
}
......
......@@ -304,7 +304,12 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
return goblinFrontCubeVo;
}
public GoblinStoreInfoVo getStore(String storId){
return goblinRedisUtils.getStoreInfoVo(storId);
Query query = new Query();
query.addCriteria(Criteria.where("storeId").is(storId));
long count = mongoTemplate.count(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName());
GoblinStoreInfoVo goblinStoreInfoVo=goblinRedisUtils.getStoreInfoVo(storId);
goblinStoreInfoVo.setCount((int) count);
return goblinStoreInfoVo;
}
/***
* @author zhangfuxin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment