拉卡拉支付增加接口
This commit is contained in:
parent
db71764d8a
commit
a31bee549d
@ -33,9 +33,6 @@ public class SyncApp implements Serializable {
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "app id")
|
||||
private String app_id;
|
||||
|
||||
@ApiModelProperty(value = "app key")
|
||||
private String app_key;
|
||||
|
||||
|
||||
@ -243,10 +243,11 @@ public class PayUserPayServiceImpl extends BaseServiceImpl<PayUserPayMapper, Pay
|
||||
List<String> trade_titles = trade_rows.stream().map(PayConsumeTrade::getTrade_title).distinct().collect(Collectors.toList());
|
||||
trade_row.setTrade_title(CollUtil.join(trade_titles, ","));
|
||||
|
||||
// 付款金额
|
||||
// 多条付款金额累加
|
||||
BigDecimal payment_amount = trade_rows.stream().map(PayConsumeTrade::getTrade_payment_amount).reduce(BigDecimal::add).get();
|
||||
trade_row.setTrade_payment_amount(payment_amount);
|
||||
if (payment_amount.compareTo(BigDecimal.ZERO) > 0) {
|
||||
// 订单金额大于0的情况
|
||||
List<Integer> order_state_ids = trade_rows.stream().map(PayConsumeTrade::getOrder_state_id).distinct().collect(Collectors.toList());
|
||||
if (!order_state_ids.contains(StateCode.ORDER_STATE_CANCEL)) {
|
||||
trade_row.setTrade_title(I18nUtil._("在线购物"));
|
||||
|
||||
@ -31,25 +31,25 @@ public class SyncThirdDataController {
|
||||
@ApiOperation(value = "商品分类数据同步", notes = "商品分类数据同步")
|
||||
@RequestMapping(value = "/goods/category", method = RequestMethod.POST)
|
||||
public ThirdApiRes syncGoodsCategory(HttpServletRequest request,
|
||||
@RequestParam String appId,
|
||||
@RequestParam String appKey,
|
||||
@RequestParam String sign,
|
||||
@RequestBody JSONArray categoryListJSON) {
|
||||
return syncThirdDataService.saveOrUpdateShopBaseProductCategoryBatch(appId, sign, categoryListJSON);
|
||||
return syncThirdDataService.saveOrUpdateShopBaseProductCategoryBatch(appKey, sign, categoryListJSON);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "商品品牌数据同步", notes = "商品品牌数据同步")
|
||||
@RequestMapping(value = "/goods/brand", method = RequestMethod.POST)
|
||||
public ThirdApiRes syncGoodsBrand(HttpServletRequest request,
|
||||
@RequestParam String appId,
|
||||
@RequestParam String appKey,
|
||||
@RequestParam String sign,
|
||||
@RequestBody JSONArray brandListJSON) {
|
||||
return syncThirdDataService.saveOrUpdateShopBaseProductBrandBatch(appId, sign, brandListJSON);
|
||||
return syncThirdDataService.saveOrUpdateShopBaseProductBrandBatch(appKey, sign, brandListJSON);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "商品辅助属性数据同步", notes = "商品辅助属性数据同步")
|
||||
@RequestMapping(value = "/goods/assist", method = RequestMethod.POST)
|
||||
public ThirdApiRes syncGoodsAssist(HttpServletRequest request,
|
||||
@RequestParam String appId,
|
||||
@RequestParam String appKey,
|
||||
@RequestParam String sign,
|
||||
@RequestBody String reqBody) {
|
||||
return null;
|
||||
@ -58,7 +58,7 @@ public class SyncThirdDataController {
|
||||
@ApiOperation(value = "商品数据同步", notes = "商品数据同步")
|
||||
@RequestMapping(value = "/goods", method = RequestMethod.POST)
|
||||
public ThirdApiRes syncGoods(HttpServletRequest request,
|
||||
@RequestParam String appId,
|
||||
@RequestParam String appKey,
|
||||
@RequestParam String sign,
|
||||
@RequestBody String reqBody) {
|
||||
return null;
|
||||
@ -67,7 +67,7 @@ public class SyncThirdDataController {
|
||||
@ApiOperation(value = "会员数据同步", notes = "会员数据同步")
|
||||
@RequestMapping(value = "/member", method = RequestMethod.POST)
|
||||
public ThirdApiRes syncMember(HttpServletRequest request,
|
||||
@RequestParam String appId,
|
||||
@RequestParam String appKey,
|
||||
@RequestParam String sign,
|
||||
@RequestBody List<SyncThirdMemberReq> memberList) {
|
||||
return null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user