formaFee2Fen rename to formatFee2Fen

This commit is contained in:
jinyu
2016-08-01 13:44:47 +08:00
parent 92cc725f41
commit bbdd8980af
7 changed files with 19 additions and 15 deletions
@@ -261,8 +261,8 @@ public class PayOldApi extends MpApi {
map.put("service_version", "1.1");
map.put("partner", weixinAccount.getPartnerId());
map.put("out_refund_no", outRefundNo);
map.put("total_fee", DateUtil.formaFee2Fen(totalFee));
map.put("refund_fee", DateUtil.formaFee2Fen(refundFee));
map.put("total_fee", DateUtil.formatFee2Fen(totalFee));
map.put("refund_fee", DateUtil.formatFee2Fen(refundFee));
map.put(idQuery.getType().getName(), idQuery.getId());
if (StringUtil.isBlank(opUserId)) {
opUserId = weixinAccount.getPartnerId();
@@ -133,8 +133,8 @@ public class PayPackageV2 extends PayPackage {
this.inputCharset = "UTF-8";
this.partner = partner;
this.transportFee = transportFee > 0d ? DateUtil
.formaFee2Fen(transportFee) : null;
this.productFee = productFee > 0 ? DateUtil.formaFee2Fen(productFee)
.formatFee2Fen(transportFee) : null;
this.productFee = productFee > 0 ? DateUtil.formatFee2Fen(productFee)
: null;
}
@@ -165,7 +165,7 @@ public class PayPackageV2 extends PayPackage {
* 物流费用 单位为元
*/
public void setTransportFee(double transportFee) {
this.transportFee = DateUtil.formaFee2Fen(transportFee);
this.transportFee = DateUtil.formatFee2Fen(transportFee);
}
public String getProductFee() {
@@ -179,7 +179,7 @@ public class PayPackageV2 extends PayPackage {
* 商品 单位为元
*/
public void setProductFee(double productFee) {
this.productFee = DateUtil.formaFee2Fen(productFee);
this.productFee = DateUtil.formatFee2Fen(productFee);
}
public String getInputCharset() {