优化销售发票接口中获取订单信息的代码
This commit is contained in:
parent
4e6619bb3d
commit
55c62e668b
|
@ -145,7 +145,7 @@ public class saveCommitAction extends AbstractNCCRestResource {
|
||||||
// 发票的全部信息都返回给合同平台
|
// 发票的全部信息都返回给合同平台
|
||||||
desc.put("vos", saleInvoiceVO);
|
desc.put("vos", saleInvoiceVO);
|
||||||
}
|
}
|
||||||
return ResultMessageUtil.toJSON(desc, "操作成功");
|
return ResultMessageUtil.toJSON(desc, "0");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return ResultMessageUtil.exceptionToJSON(e);
|
return ResultMessageUtil.exceptionToJSON(e);
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ public class saveCommitAction extends AbstractNCCRestResource {
|
||||||
itemDetails.put("pk_group", "00");// 集团
|
itemDetails.put("pk_group", "00");// 集团
|
||||||
itemDetails.put("pk_org", originalJson.getJSONObject("billhead").getString("pk_org"));// 开票组织
|
itemDetails.put("pk_org", originalJson.getJSONObject("billhead").getString("pk_org"));// 开票组织
|
||||||
itemDetails.put("cunitid", item.getString("castunitid"));// 主单位
|
itemDetails.put("cunitid", item.getString("castunitid"));// 主单位
|
||||||
itemDetails.put("vchangerate", value2.getOrDefault("vchangerate", "1/1"));// 换算率
|
itemDetails.put("vchangerate", value2.getOrDefault("vchangerate", "1/1") + "");// »»ËãÂÊ
|
||||||
|
|
||||||
// double nastnum = Double.parseDouble(item.getString("nastnum"));//数量
|
// double nastnum = Double.parseDouble(item.getString("nastnum"));//数量
|
||||||
// double nqtorigtaxprice = Double.parseDouble(item.getString("nqtorigtaxprice"));//含税单价
|
// double nqtorigtaxprice = Double.parseDouble(item.getString("nqtorigtaxprice"));//含税单价
|
||||||
|
@ -393,7 +393,7 @@ public class saveCommitAction extends AbstractNCCRestResource {
|
||||||
private static Map<String, Object> getSaleorderVo(String csourcebillbidStr) throws BusinessException {
|
private static Map<String, Object> getSaleorderVo(String csourcebillbidStr) throws BusinessException {
|
||||||
IUAPQueryBS queryBS = NCLocator.getInstance().lookup(IUAPQueryBS.class);
|
IUAPQueryBS queryBS = NCLocator.getInstance().lookup(IUAPQueryBS.class);
|
||||||
String sql = " select s.vbillcode,s.csaleorderid, s.corigcurrencyid," +
|
String sql = " select s.vbillcode,s.csaleorderid, s.corigcurrencyid," +
|
||||||
" sb.csaleorderbid,sb.crowno,sb.blargessflag,sb.nexchangerate,sb.vchangerate" +
|
" sb.csaleorderbid,sb.crowno,sb.blargessflag,sb.nexchangerate,sb.vchangerate," +
|
||||||
" bdc.code currencycode" +
|
" bdc.code currencycode" +
|
||||||
" from so_saleorder_b sb" +
|
" from so_saleorder_b sb" +
|
||||||
" inner join so_saleorder s on sb.csaleorderid=s.csaleorderid" +
|
" inner join so_saleorder s on sb.csaleorderid=s.csaleorderid" +
|
||||||
|
|
Loading…
Reference in New Issue