提交京东产品编码搜索

dev
袁野 3 months ago
parent a55ec4a33e
commit 3fab94aac5
  1. 4
      bweb/src/main/java/com/bweb/controller/goods/GoodsController.java
  2. 2
      order/src/main/java/com/order/controller/business/BsOrderGoodsController.java
  3. 3
      service/src/main/java/com/hfkj/dao/GoodsMsgMapperExt.java
  4. 8
      service/src/main/java/com/hfkj/model/goods/JdGoodsModel.java
  5. 4
      service/src/main/java/com/hfkj/service/goods/impl/BsOrderGoodsServiceImpl.java

@ -530,6 +530,7 @@ public class GoodsController {
@ApiOperation(value = "查询京东商品")
public ResponseData getJdGoodsList(@RequestParam(value = "title" , required = false) String title,
@RequestParam(value = "goodsType" , required = false) Long goodsType,
@RequestParam(value = "id" , required = false) Long id,
@RequestParam(value = "goodsBrand" , required = false) Integer goodsBrand,
@RequestParam(value = "salePriceS" , required = false) BigDecimal salePriceS,
@RequestParam(value = "salePriceE" , required = false) BigDecimal salePriceE,
@ -547,6 +548,7 @@ public class GoodsController {
}
}
param.put("title", title);
param.put("id", id);
param.put("goodsBrand", goodsBrand);
param.put("salePriceS", salePriceS);
param.put("salePriceE", salePriceE);
@ -565,6 +567,7 @@ public class GoodsController {
@ApiOperation(value = "导出京东商品")
public ResponseData exportJdGoods(@RequestParam(value = "title" , required = false) String title,
@RequestParam(value = "goodsType" , required = false) Long goodsType,
@RequestParam(value = "id" , required = false) Long id,
@RequestParam(value = "goodsBrand" , required = false) Integer goodsBrand,
@RequestParam(value = "salePriceS" , required = false) BigDecimal salePriceS,
@RequestParam(value = "salePriceE" , required = false) BigDecimal salePriceE, HttpServletRequest request) {
@ -587,6 +590,7 @@ public class GoodsController {
}
map.put("title", title);
map.put("goodsBrand", goodsBrand);
map.put("id", id);
map.put("salePriceS", salePriceS);
map.put("salePriceE", salePriceE);

@ -83,6 +83,7 @@ public class BsOrderGoodsController {
public ResponseData getListGoods(@RequestParam(value = "logisticsNo" , required = false) String logisticsNo,
@RequestParam(value = "goodsType" , required = false) Long goodsType,
@RequestParam(value = "goodsBrand" , required = false) Long goodsBrand,
@RequestParam(value = "goodsSpecsId" , required = false) Long goodsSpecsId,
@RequestParam(value = "orderNo" , required = false) String orderNo,
@RequestParam(value = "childOrderNo" , required = false) String childOrderNo,
@RequestParam(value = "userPhone" , required = false) String userPhone,
@ -117,6 +118,7 @@ public class BsOrderGoodsController {
map.put("logisticsNo", logisticsNo);
map.put("goodsType", goodsType);
map.put("goodsBrand", goodsBrand);
map.put("goodsSpecsId", goodsSpecsId);
map.put("orderNo", orderNo);
map.put("childOrderNo", childOrderNo);
map.put("userPhone", userPhone);

@ -24,6 +24,8 @@ public interface GoodsMsgMapperExt {
" a.goods_type_name as goodsTypeName," +
" a.goods_brand_name as goodsBrandName," +
" a.title as title," +
" b.id as id," +
" b.ext_3 as costPrice," +
" a.list_img as listImg," +
" b.sale_price as salePrice, " +
" b.third_price as thirdPrice," +
@ -34,6 +36,7 @@ public interface GoodsMsgMapperExt {
" <if test='param.goodsTypeParent != null'> and a.goods_type_parent = #{param.goodsTypeParent} </if>" +
" <if test='param.title != null'> and a.title like concat('%',#{param.title},'%') </if>" +
" <if test='param.goodsType != null'> and a.goods_type = #{param.goodsType} </if>" +
" <if test='param.id != null'> and b.id = #{param.id} </if>" +
" <if test='param.goodsBrand != null'> and a.goods_brand = #{param.goodsBrand} </if>" +
" <if test='param.salePriceS != null'><![CDATA[ and b.sale_price >= #{param.salePriceS} ]]></if>" +
" <if test='param.salePriceE != null'><![CDATA[ and b.sale_price <= #{param.salePriceE} ]]></if>" +

@ -43,13 +43,17 @@ public class JdGoodsModel {
@ExcelProperty("售卖价格")
public BigDecimal salePrice;
@ColumnWidth(20)
@ExcelProperty("京东价")
public BigDecimal thirdPrice;
@ColumnWidth(15)
@ExcelProperty("售卖价格")
public BigDecimal price;
@ColumnWidth(20)
@ExcelProperty("京东价")
public BigDecimal thirdPrice;
@ExcelProperty("成本价")
public BigDecimal costPrice;
@ColumnWidth(20)
@ExcelProperty({"原价"})

@ -153,6 +153,10 @@ public class BsOrderGoodsServiceImpl implements BsOrderGoodsService {
if (MapUtils.getLong(map, "goodsType") != null) {
criteria.andGoodsTypeIdEqualTo(MapUtils.getLong(map, "goodsType"));
}
if (MapUtils.getLong(map, "goodsSpecsId") != null) {
criteria.andGoodsSpecsIdEqualTo(MapUtils.getLong(map, "goodsSpecsId"));
}
if (MapUtils.getLong(map, "goodsBrand") != null) {
criteria.andGoodsBrandIdEqualTo(MapUtils.getLong(map, "goodsBrand"));
}

Loading…
Cancel
Save