|
|
@ -10,6 +10,7 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.base.entity.ZyClothsModular; |
|
|
|
import org.jeecg.modules.demo.base.entity.ZyClothsType; |
|
|
|
import org.jeecg.modules.demo.base.entity.ZyClothsType; |
|
|
|
import org.jeecg.modules.demo.base.service.IZyClothsModularService; |
|
|
|
import org.jeecg.modules.demo.base.service.IZyClothsModularService; |
|
|
|
import org.jeecg.modules.demo.base.service.IZyClothsTypeService; |
|
|
|
import org.jeecg.modules.demo.base.service.IZyClothsTypeService; |
|
|
@ -451,7 +452,7 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
for(int i = 0 ; i < pageList.getRecords().size();i++){ |
|
|
|
for(int i = 0 ; i < pageList.getRecords().size();i++){ |
|
|
|
Zxdz zxdz = new Zxdz(); |
|
|
|
Zxdz zxdz = new Zxdz(); |
|
|
|
zxdz.setId(pageList.getRecords().get(i).getId()); |
|
|
|
zxdz.setId(pageList.getRecords().get(i).getId()); |
|
|
|
zxdz.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageList.getRecords().get(i).getGoodsPicture()); |
|
|
|
zxdz.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageList.getRecords().get(i).getDefaultPicture()); |
|
|
|
zxdz.setPrice(pageList.getRecords().get(i).getUnitPrice()); |
|
|
|
zxdz.setPrice(pageList.getRecords().get(i).getUnitPrice()); |
|
|
|
zxdz.setTitle1(zyClothsTypeService.getById(pageList.getRecords().get(i).getClothsTypeId()).getTypeName()); |
|
|
|
zxdz.setTitle1(zyClothsTypeService.getById(pageList.getRecords().get(i).getClothsTypeId()).getTypeName()); |
|
|
|
zxdz.setTitle2(pageList.getRecords().get(i).getGoodsName()); |
|
|
|
zxdz.setTitle2(pageList.getRecords().get(i).getGoodsName()); |
|
|
@ -484,7 +485,7 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
for(int i = 0 ; i < pageList.getRecords().size();i++){ |
|
|
|
for(int i = 0 ; i < pageList.getRecords().size();i++){ |
|
|
|
Tcsp tcsp = new Tcsp(); |
|
|
|
Tcsp tcsp = new Tcsp(); |
|
|
|
tcsp.setId(pageList.getRecords().get(i).getId()); |
|
|
|
tcsp.setId(pageList.getRecords().get(i).getId()); |
|
|
|
tcsp.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageList.getRecords().get(i).getGoodsPicture()); |
|
|
|
tcsp.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageList.getRecords().get(i).getDefaultPicture()); |
|
|
|
tcsp.setTime(pageList.getRecords().get(i).getUnitPrice()); |
|
|
|
tcsp.setTime(pageList.getRecords().get(i).getUnitPrice()); |
|
|
|
tcsp.setTitle(pageList.getRecords().get(i).getGoodsName()); |
|
|
|
tcsp.setTitle(pageList.getRecords().get(i).getGoodsName()); |
|
|
|
tcspList.add(tcsp); |
|
|
|
tcspList.add(tcsp); |
|
|
@ -526,7 +527,7 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
for(int j = 0 ; j < pageList.getRecords().size();j++){ |
|
|
|
for(int j = 0 ; j < pageList.getRecords().size();j++){ |
|
|
|
Fzlx fzlx = new Fzlx(); |
|
|
|
Fzlx fzlx = new Fzlx(); |
|
|
|
fzlx.setId(pageList.getRecords().get(j).getId()); |
|
|
|
fzlx.setId(pageList.getRecords().get(j).getId()); |
|
|
|
fzlx.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageList.getRecords().get(j).getGoodsPicture()); |
|
|
|
fzlx.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageList.getRecords().get(j).getDefaultPicture()); |
|
|
|
fzlx.setTitle1(zyClothsTypeService.getById(pageList.getRecords().get(j).getClothsTypeId()).getTypeName()); |
|
|
|
fzlx.setTitle1(zyClothsTypeService.getById(pageList.getRecords().get(j).getClothsTypeId()).getTypeName()); |
|
|
|
fzlx.setTitle2(pageList.getRecords().get(j).getGoodsName()); |
|
|
|
fzlx.setTitle2(pageList.getRecords().get(j).getGoodsName()); |
|
|
|
String tag1 = zyClothsStyleService.getById(pageList.getRecords().get(j).getStyleId()).getCharacteristic(); |
|
|
|
String tag1 = zyClothsStyleService.getById(pageList.getRecords().get(j).getStyleId()).getCharacteristic(); |
|
|
@ -567,7 +568,7 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
for(int l = 0 ; l < pageListn.getRecords().size();l++){ |
|
|
|
for(int l = 0 ; l < pageListn.getRecords().size();l++){ |
|
|
|
Fzlx fzlx = new Fzlx(); |
|
|
|
Fzlx fzlx = new Fzlx(); |
|
|
|
fzlx.setId(pageListn.getRecords().get(l).getId()); |
|
|
|
fzlx.setId(pageListn.getRecords().get(l).getId()); |
|
|
|
fzlx.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageListn.getRecords().get(l).getGoodsPicture()); |
|
|
|
fzlx.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageListn.getRecords().get(l).getDefaultPicture()); |
|
|
|
fzlx.setTitle1(zyClothsTypeService.getById(pageListn.getRecords().get(l).getClothsTypeId()).getTypeName()); |
|
|
|
fzlx.setTitle1(zyClothsTypeService.getById(pageListn.getRecords().get(l).getClothsTypeId()).getTypeName()); |
|
|
|
fzlx.setTitle2(pageListn.getRecords().get(l).getGoodsName()); |
|
|
|
fzlx.setTitle2(pageListn.getRecords().get(l).getGoodsName()); |
|
|
|
String tag1 = zyClothsStyleService.getById(pageListn.getRecords().get(l).getStyleId()).getCharacteristic(); |
|
|
|
String tag1 = zyClothsStyleService.getById(pageListn.getRecords().get(l).getStyleId()).getCharacteristic(); |
|
|
@ -608,7 +609,7 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
for(int n = 0 ; n < pageListt.getRecords().size();n++){ |
|
|
|
for(int n = 0 ; n < pageListt.getRecords().size();n++){ |
|
|
|
Fzlx fzlx = new Fzlx(); |
|
|
|
Fzlx fzlx = new Fzlx(); |
|
|
|
fzlx.setId(pageListt.getRecords().get(n).getId()); |
|
|
|
fzlx.setId(pageListt.getRecords().get(n).getId()); |
|
|
|
fzlx.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageListt.getRecords().get(n).getGoodsPicture()); |
|
|
|
fzlx.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageListt.getRecords().get(n).getDefaultPicture()); |
|
|
|
fzlx.setTitle1(zyClothsTypeService.getById(pageListt.getRecords().get(n).getClothsTypeId()).getTypeName()); |
|
|
|
fzlx.setTitle1(zyClothsTypeService.getById(pageListt.getRecords().get(n).getClothsTypeId()).getTypeName()); |
|
|
|
fzlx.setTitle2(pageListt.getRecords().get(n).getGoodsName()); |
|
|
|
fzlx.setTitle2(pageListt.getRecords().get(n).getGoodsName()); |
|
|
|
String tag1 = zyClothsStyleService.getById(pageListt.getRecords().get(n).getStyleId()).getCharacteristic(); |
|
|
|
String tag1 = zyClothsStyleService.getById(pageListt.getRecords().get(n).getStyleId()).getCharacteristic(); |
|
|
@ -724,7 +725,7 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
for (int i = 0 ; i < pageList.size() ; i++){ |
|
|
|
for (int i = 0 ; i < pageList.size() ; i++){ |
|
|
|
FzlxSp fzlxSp = new FzlxSp(); |
|
|
|
FzlxSp fzlxSp = new FzlxSp(); |
|
|
|
fzlxSp.setId(pageList.get(i).getId()); |
|
|
|
fzlxSp.setId(pageList.get(i).getId()); |
|
|
|
fzlxSp.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageList.get(i).getGoodsPicture()); |
|
|
|
fzlxSp.setImgUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+pageList.get(i).getDefaultPicture()); |
|
|
|
fzlxSp.setCurrentPrice(pageList.get(i).getPromotionPrice()); |
|
|
|
fzlxSp.setCurrentPrice(pageList.get(i).getPromotionPrice()); |
|
|
|
fzlxSp.setHistoricalPrice(pageList.get(i).getUnitPrice()); |
|
|
|
fzlxSp.setHistoricalPrice(pageList.get(i).getUnitPrice()); |
|
|
|
fzlxSp.setTitle(pageList.get(i).getGoodsName()); |
|
|
|
fzlxSp.setTitle(pageList.get(i).getGoodsName()); |
|
|
@ -733,5 +734,48 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
} |
|
|
|
} |
|
|
|
return Result.OK(listsp); |
|
|
|
return Result.OK(listsp); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 商城接口服装详情 |
|
|
|
|
|
|
|
* @param req |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@AutoLog(value = "服装详情查询") |
|
|
|
|
|
|
|
@ApiOperation(value="服装详情查询", notes="服装详情查询") |
|
|
|
|
|
|
|
@GetMapping(value = "/lxlistxq") |
|
|
|
|
|
|
|
public Result<?> lxlistxq(HttpServletRequest req,@RequestParam(name="id",required=true) String id) { |
|
|
|
|
|
|
|
Map<String,Object> mapgoods = new HashMap<>(); |
|
|
|
|
|
|
|
ZyGoods zyGoods = zyGoodsService.getById(id); |
|
|
|
|
|
|
|
mapgoods.put("zyGoods",zyGoods); |
|
|
|
|
|
|
|
String[] baseUrl = zyGoods.getGoodsPicture().split(","); |
|
|
|
|
|
|
|
String str = ""; |
|
|
|
|
|
|
|
for (int i = 0 ; i < baseUrl.length;i++){ |
|
|
|
|
|
|
|
str = str +"http://localhost:10085/jeecg-boot/sys/common/static/"+baseUrl[i]+","; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
mapgoods.put("baseUrl",str.substring(0,str.length()-1).split(",")); |
|
|
|
|
|
|
|
//模块数据
|
|
|
|
|
|
|
|
ZyStyleModule zyStyleModule = new ZyStyleModule(); |
|
|
|
|
|
|
|
QueryWrapper<ZyStyleModule> queryWrapper = QueryGenerator.initQueryWrapper(zyStyleModule, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrapper.eq("style_id",zyGoods.getStyleId()); |
|
|
|
|
|
|
|
queryWrapper.eq("type_id",zyGoods.getClothsTypeId()); |
|
|
|
|
|
|
|
List<ZyStyleModule> listzsm = zyStyleModuleService.list(queryWrapper); |
|
|
|
|
|
|
|
String mkids = ""; |
|
|
|
|
|
|
|
for (int k = 0 ; k < listzsm.size() ; k++){ |
|
|
|
|
|
|
|
mkids = mkids + listzsm.get(k).getModularId()+","; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ZyClothsModular zyClothsModular = new ZyClothsModular(); |
|
|
|
|
|
|
|
QueryWrapper<ZyClothsModular> queryWrapper2 = QueryGenerator.initQueryWrapper(zyClothsModular, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrapper2.in("id",mkids.substring(0,mkids.length()-1).split(",")); |
|
|
|
|
|
|
|
List<ZyClothsModular> listzcm = zyClothsModularService.list(queryWrapper2); |
|
|
|
|
|
|
|
List<Mk> listmk = new ArrayList<>(); |
|
|
|
|
|
|
|
for (int j = 0 ; j < listzcm.size() ; j++){ |
|
|
|
|
|
|
|
Mk mk = new Mk(); |
|
|
|
|
|
|
|
mk.setId(listzcm.get(j).getId()); |
|
|
|
|
|
|
|
mk.setText(listzcm.get(j).getModularName()); |
|
|
|
|
|
|
|
mk.setUrl("http://localhost:10085/jeecg-boot/sys/common/static/"+listzcm.get(j).getPictureUrl()); |
|
|
|
|
|
|
|
listmk.add(mk); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
mapgoods.put("selectedClothList",listmk); |
|
|
|
|
|
|
|
return Result.OK(mapgoods); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|