2312销售订单累计发货累计排查接口-张鑫0411
This commit is contained in:
parent
19fcf0793e
commit
455b62a1b9
|
@ -75,8 +75,7 @@ public class saleUpdateSQty extends AbstractNCCRestResource {
|
|||
List sqlStr = new ArrayList();
|
||||
for (int i = 0; i < arrayList.size(); i++) {
|
||||
Map dataMap = (Map) arrayList.get(i);
|
||||
String csaleorderid = getSaleorderBPK(pk_org, (String) dataMap.get("vbillcode"),
|
||||
(String) dataMap.get("crowno"));
|
||||
String csaleorderid = (String) dataMap.get("crowno");
|
||||
if (csaleorderid != null) {
|
||||
sqlStr.add(
|
||||
"UPDATE so_saleorder_b SET vbdef2 = '" + dataMap.get("sendQty") + "' WHERE csaleorderbid='"
|
||||
|
@ -225,34 +224,6 @@ public class saleUpdateSQty extends AbstractNCCRestResource {
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
*创建时间:2024-11-28
|
||||
*作用:查询
|
||||
*传值:无
|
||||
*返回值:必填项map对象
|
||||
*/
|
||||
private String getSaleorderBPK(String pk_org, String vbillcode, String crowno) throws BusinessException {
|
||||
String sql = " select b.csaleorderbid from so_saleorder h \n"
|
||||
+ " left join so_saleorder_b b on h.csaleorderid=b.csaleorderid\n"
|
||||
+ " left join org_salesorg o on h.pk_org=o.pk_salesorg\n"
|
||||
+ " where h.dr=0 and b.dr=0 and\n"
|
||||
+ " h.vbillcode='" + vbillcode + "' and o.code='" + pk_org + "' and b.csaleorderbid='" + crowno + "' ";
|
||||
String saleorderBPK = (String) getQueryService().executeQuery(sql, new ColumnProcessor());
|
||||
return saleorderBPK;
|
||||
}
|
||||
|
||||
/*
|
||||
*创建时间:2024-11-28
|
||||
*作用:查询
|
||||
*传值:无
|
||||
*返回值:必填项map对象
|
||||
*/
|
||||
private int updateSaleBSQty(String sql) throws BusinessException {
|
||||
BaseDAO baseDAO = new BaseDAO();
|
||||
int succInt = baseDAO.executeUpdate(sql);
|
||||
return succInt;
|
||||
}
|
||||
|
||||
public IUAPQueryBS getQueryService() {
|
||||
return NCLocator.getInstance().lookup(IUAPQueryBS.class);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue