店铺管理-店铺配置:打印机设置相关接口
This commit is contained in:
@@ -1923,6 +1923,7 @@ public class PayService {
|
|||||||
return Result.fail(CodeEnum.ORDERNOEXIST);
|
return Result.fail(CodeEnum.ORDERNOEXIST);
|
||||||
}
|
}
|
||||||
if (StrUtil.isNotBlank(remark)) {
|
if (StrUtil.isNotBlank(remark)) {
|
||||||
|
orderInfo.setDiscountAmount(orderInfo.getOrderAmount().subtract(amount));
|
||||||
orderInfo.setRemark(remark);
|
orderInfo.setRemark(remark);
|
||||||
tbOrderInfoMapper.updateByPrimaryKey(orderInfo);
|
tbOrderInfoMapper.updateByPrimaryKey(orderInfo);
|
||||||
}
|
}
|
||||||
@@ -1940,6 +1941,7 @@ public class PayService {
|
|||||||
orderInfo.setPayType(payType);
|
orderInfo.setPayType(payType);
|
||||||
orderInfo.setPayAmount(amount);
|
orderInfo.setPayAmount(amount);
|
||||||
orderInfo.setOrderAmount(amount);
|
orderInfo.setOrderAmount(amount);
|
||||||
|
orderInfo.setDiscountAmount(BigDecimal.ZERO);
|
||||||
orderInfo.setSendType("QR");
|
orderInfo.setSendType("QR");
|
||||||
orderInfo.setStatus("WAIT_PAY");
|
orderInfo.setStatus("WAIT_PAY");
|
||||||
orderInfo.setMerchantId(shopInfo.getMerchantId());
|
orderInfo.setMerchantId(shopInfo.getMerchantId());
|
||||||
@@ -1983,7 +1985,7 @@ public class PayService {
|
|||||||
|
|
||||||
String reqbody = "店铺收款码";
|
String reqbody = "店铺收款码";
|
||||||
PublicResp<JspayResp> publicResp = thirdPayService.jspay(url, thirdApply.getAppId(), thirdApply.getAppToken(),
|
PublicResp<JspayResp> publicResp = thirdPayService.jspay(url, thirdApply.getAppId(), thirdApply.getAppToken(),
|
||||||
reqbody, reqbody, orderInfo.getOrderAmount().multiply(new BigDecimal(100)).longValue(),
|
reqbody, reqbody, amount.multiply(new BigDecimal(100)).longValue(),
|
||||||
payType, thirdApply.getSmallAppid(), userId, ip,
|
payType, thirdApply.getSmallAppid(), userId, ip,
|
||||||
DateUtils.getSsdfTimes(), thirdApply.getStoreId(), backUrl, backUrl);
|
DateUtils.getSsdfTimes(), thirdApply.getStoreId(), backUrl, backUrl);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user