---快递发货问题和取消面单接口

This commit is contained in:
wangjinlei
2023-09-19 17:23:32 +08:00
parent 8b5298364a
commit 386e8011f1
239 changed files with 721 additions and 3725 deletions

View File

@@ -206,6 +206,36 @@ public class ShopProductController {
}
return R.ok().put("result", result);
}
/**
* 获取关联订单列表
* @param productId
* @return
*/
@RequestMapping("/getGlProductList")
public R getGlProductList(@RequestParam int productId) {
//获取此商品下的books
List<Integer> ids = shopProudictBookService.getBookidsByProductId(productId);
List<ShopProudictBookEntity> ss = shopProudictBookService.getBaseMapper().selectList(new QueryWrapper<ShopProudictBookEntity>()
.eq("del_flag",0)
.in("book_id",ids)
.groupBy("proudict_id")
.having("count(proudict_id) >="+ids.size())
);
List<ShopProductEntity> frag = new ArrayList<>();
for (ShopProudictBookEntity spbe : ss){
ShopProductEntity ca_sp = shopProductService.getById(spbe.getProudictId());
frag.add(ca_sp);
}
return R.ok().put("result",frag);
}
/**
* 信息
* @param productId

View File

@@ -15,4 +15,6 @@ public interface ShopProudictBookService extends IService<ShopProudictBookEntity
List<ProudictBookqueryVO> getCartList(Integer proudictId);
List<Integer> getBookidsByProductId(Integer productId);
}

View File

@@ -71,4 +71,16 @@ public class ShopProudictBookServiceImpl extends ServiceImpl<ShopProudictBookDa
shopProductEntity.setBookidsimages(prList);
return prLists;
}
@Override
public List<Integer> getBookidsByProductId(Integer productId) {
List<ShopProudictBookEntity> spbs = this.list(new QueryWrapper<ShopProudictBookEntity>().eq("del_flag",0).eq("proudict_id",productId));
List<Integer> ids = new ArrayList();
for (ShopProudictBookEntity s : spbs){
ids.add(s.getBookId());
}
return ids;
}
}

View File

@@ -16,7 +16,8 @@ wxpay.notifyUrl: http://59.110.212.44:9100/pb/pay/payNotify
wxpay.refundNotifyUrl: http://pjm6m9.natappfree.cc/pay/refundNotify
# 密钥路径,resources下 /usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
wxpay.keyPemPath:C:/Users/Administrator/IdeaProjects/peanut_book/src/main/resources/cent/apiclient_key.pem
#wxpay.keyPemPath:C:/Users/Administrator/IdeaProjects/peanut_book/src/main/resources/cent/apiclient_key.pem
wxpay.keyPemPath:D:/hs/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
#商户证书序列号
wxpay.serialNo: 679AECB2F7AC4183033F713828892BA640E4EEE3
#微信服务器地址