|
@@ -113,10 +113,10 @@ public class TOrderController {
|
|
return R.fail(ResponseCodesEnum.A0002,"订单非支付状态");
|
|
return R.fail(ResponseCodesEnum.A0002,"订单非支付状态");
|
|
}
|
|
}
|
|
//判断是不是直连微信退款
|
|
//判断是不是直连微信退款
|
|
- if(StringUtils.isNotEmpty(order.getPayPlatform())&&order.getPayPlatform().equals("3")){
|
|
|
|
- String ifSuccess = R.getDataIfSuccess(payFeign.refund(order.getSn(),refusePrice));
|
|
|
|
- return R.ok(ifSuccess);
|
|
|
|
- }
|
|
|
|
|
|
+// if(StringUtils.isNotEmpty(order.getPayPlatform())&&order.getPayPlatform().equals("3")){
|
|
|
|
+// String ifSuccess = R.getDataIfSuccess(payFeign.refund(order.getSn(),refusePrice));
|
|
|
|
+// return R.ok(ifSuccess);
|
|
|
|
+// }
|
|
|
|
|
|
String notifyUrl = JoinpayConstant.Notify_Refund_Url;
|
|
String notifyUrl = JoinpayConstant.Notify_Refund_Url;
|
|
|
|
|
|
@@ -152,7 +152,6 @@ public class TOrderController {
|
|
refInfo.put("altMchNo", altInfoObject.getString("altMchNo"));
|
|
refInfo.put("altMchNo", altInfoObject.getString("altMchNo"));
|
|
String altAmount = altInfoObject.getString("altAmount");
|
|
String altAmount = altInfoObject.getString("altAmount");
|
|
BigDecimal altAmountPrice = new BigDecimal(altAmount);
|
|
BigDecimal altAmountPrice = new BigDecimal(altAmount);
|
|
-// altAmountPrice = altAmountPrice.multiply(refusePrice.divide(order.getPrice(),2,BigDecimal.ROUND_HALF_UP)).setScale(2, RoundingMode.HALF_DOWN);
|
|
|
|
p = p.add(altAmountPrice);
|
|
p = p.add(altAmountPrice);
|
|
refInfo.put("altRefAmount", altAmountPrice.toString());
|
|
refInfo.put("altRefAmount", altAmountPrice.toString());
|
|
if(order.getMarketingAmount()!=null){
|
|
if(order.getMarketingAmount()!=null){
|
|
@@ -174,9 +173,6 @@ public class TOrderController {
|
|
String altAmount = altInfoObject.getString("altAmount");
|
|
String altAmount = altInfoObject.getString("altAmount");
|
|
|
|
|
|
BigDecimal altAmountPrice = new BigDecimal(altAmount).setScale(2, RoundingMode.HALF_DOWN);
|
|
BigDecimal altAmountPrice = new BigDecimal(altAmount).setScale(2, RoundingMode.HALF_DOWN);
|
|
-// BigDecimal divide = altAmountPrice.divide(order.getPrice(),3,BigDecimal.ROUND_HALF_UP).setScale(3, RoundingMode.HALF_DOWN);
|
|
|
|
-// altAmountPrice = refusePrice.multiply(divide).setScale(2, RoundingMode.HALF_DOWN);
|
|
|
|
-// refInfo.put("altRefAmount", altAmountPrice.toString());
|
|
|
|
p = p.add(altAmountPrice);
|
|
p = p.add(altAmountPrice);
|
|
refInfo.put("altRefAmount", altAmountPrice.toString());
|
|
refInfo.put("altRefAmount", altAmountPrice.toString());
|
|
if(order.getMarketingAmount()!=null){
|
|
if(order.getMarketingAmount()!=null){
|
|
@@ -207,7 +203,6 @@ public class TOrderController {
|
|
Date date = order.getCreateDate();
|
|
Date date = order.getCreateDate();
|
|
String payDate = DateTools.formatYYYYMMDD(date);
|
|
String payDate = DateTools.formatYYYYMMDD(date);
|
|
String remark = "";
|
|
String remark = "";
|
|
-// BigDecimal refundAmount = order.getRefundAmount();
|
|
|
|
// 判断是否退过款
|
|
// 判断是否退过款
|
|
if(refundAmount != null && refundAmount.compareTo(BigDecimal.ZERO) > 0) {
|
|
if(refundAmount != null && refundAmount.compareTo(BigDecimal.ZERO) > 0) {
|
|
acctSplitBunch = getAcctSplitBunch(proportion, refusePrice, companyType).toString();
|
|
acctSplitBunch = getAcctSplitBunch(proportion, refusePrice, companyType).toString();
|