收款新增-币种接收BIP合同平台

This commit is contained in:
mzr 2025-04-17 10:28:33 +08:00
parent 4a5bf28ef3
commit 9033478c93
1 changed files with 13 additions and 2 deletions

View File

@ -143,7 +143,7 @@ public class GatheringbillRestResource extends ArapBaseRestResource {
Object ctaxcodeid = hybo.findColValue("so_saleorder_b", "ctaxcodeid", Object ctaxcodeid = hybo.findColValue("so_saleorder_b", "ctaxcodeid",
"csaleorderid = '" + csaleorderid + "' "); "csaleorderid = '" + csaleorderid + "' ");
Object tc = hybo.findColValue("bd_taxcode", "code", "pk_taxcode = '" + ctaxcodeid + "' "); Object tc = hybo.findColValue("bd_taxcode", "code", "pk_taxcode = '" + ctaxcodeid + "' ");
ctaxcode = tc.toString(); ctaxcode = getString_TrimAsNull(tc);
// 业务员 // 业务员
Object cemployeeid = hybo.findColValue("so_saleorder", "cemployeeid", Object cemployeeid = hybo.findColValue("so_saleorder", "cemployeeid",
"csaleorderid = '" + csaleorderid + "' "); "csaleorderid = '" + csaleorderid + "' ");
@ -160,7 +160,10 @@ public class GatheringbillRestResource extends ArapBaseRestResource {
} }
} }
// pk_currtype 币种编码 默认人民币 // pk_currtype 币种编码 默认人民币
headvo.setPk_currtype("CNY"); if (headvo.getPk_currtype() == null || headvo.getPk_currtype().isEmpty()) {
headvo.setPk_currtype("CNY");
}
// accessorynum 附件张数 默认2 // accessorynum 附件张数 默认2
headvo.setAccessorynum(2); headvo.setAccessorynum(2);
// 制单人 默认BIP // 制单人 默认BIP
@ -769,4 +772,12 @@ public class GatheringbillRestResource extends ArapBaseRestResource {
return ResultMessageUtil.exceptionToJSON(e); return ResultMessageUtil.exceptionToJSON(e);
} }
} }
public static String getString_TrimAsNull(Object value) {
if ((value == null) || (value.toString().trim().length() == 0)) {
return "";
}
return value.toString().trim();
}
} }