定时回写BIP销售订单调整
This commit is contained in:
parent
d75b27399e
commit
d83974d94b
|
@ -125,22 +125,7 @@ public class ErpSaleOrderToBIPBackgroupWorkPlugin implements IBackgroundWorkPlug
|
||||||
|
|
||||||
|
|
||||||
// 获取未推送合同销售订单更新的销售发票信息;
|
// 获取未推送合同销售订单更新的销售发票信息;
|
||||||
String sql = " select '1' as flag,so_saleinvoice_b.cfirstbid,csaleinvoicebid " +
|
String sql = " select * from v_bip_so_cron";
|
||||||
"from so_saleinvoice,so_saleinvoice_b " +
|
|
||||||
"where so_saleinvoice.csaleinvoiceid=so_saleinvoice_b.csaleinvoiceid " +
|
|
||||||
"and so_saleinvoice.fstatusflag=2 " +
|
|
||||||
"and nvl(so_saleinvoice_b.vbdef10,'N') in ('~','N') " +
|
|
||||||
"and nvl(so_saleinvoice.vdef13,'~') not in ('~') " +
|
|
||||||
"union all " +
|
|
||||||
"select " +
|
|
||||||
"'2' as flag, " +
|
|
||||||
"ic_saleout_b.cfirstbillbid as cfirstbid, " +
|
|
||||||
"ic_saleout_b.cgeneralbid as csaleinvoicebid " +
|
|
||||||
"from ic_saleout_h, " +
|
|
||||||
"ic_saleout_b " +
|
|
||||||
"where ic_saleout_h.cgeneralhid = ic_saleout_b.cgeneralhid " +
|
|
||||||
"and nvl(ic_saleout_b.vbdef4,'N') in ('~','N') " +
|
|
||||||
"and ic_saleout_b.cfirsttype = '30'";
|
|
||||||
|
|
||||||
List<Map<String, String>> l_pk = (List<Map<String, String>>) new BaseDAO().executeQuery(sql.toString(), new MapListProcessor());
|
List<Map<String, String>> l_pk = (List<Map<String, String>>) new BaseDAO().executeQuery(sql.toString(), new MapListProcessor());
|
||||||
if (l_pk.isEmpty()) {
|
if (l_pk.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue