|
@@ -501,7 +501,7 @@ public class AddOrderJob implements Job,ApplicationContextAware {
|
|
|
// " left join Vendor v on p.supplierCode=v.cVenCode"+
|
|
|
// " where s.iRowNo ="+syOrderDataVO.getPoIrowno() +" and ss.cSOCode='"+syOrderDataVO.getOmpoCode()+"'";
|
|
|
String sql2 = "SELECT " +
|
|
|
- " ompoCode,ompoIdItem,ompoId,supplierCode,v.cVenAbbName as supplier,iTaxPrice,dArriveDate,guangpeiGateWidth " +account[2]+" as ompoAccount"+
|
|
|
+ " ompoCode,ompoIdItem,ompoId,supplierCode,v.cVenAbbName as supplier,iTaxPrice,dArriveDate,guangpeiGateWidth, " +account[2]+" as ompoAccount"+
|
|
|
" FROM " +
|
|
|
" so_somain ss " +
|
|
|
" join SO_SODetails s on s.id=ss.id " +
|
|
@@ -517,7 +517,7 @@ public class AddOrderJob implements Job,ApplicationContextAware {
|
|
|
" where s.iRowNo ="+syOrderDataVO.getPoIrowno() +" and ss.cSOCode='"+syOrderDataVO.getOmpoCode()+"'"+
|
|
|
" union all " +
|
|
|
" SELECT " +
|
|
|
- " ompoCode,ompoIdItem,ompoId,supplierCode,v.cVenAbbName as supplier,iTaxPrice,dArriveDate,guangpeiGateWidth " +account[2]+" as ompoAccount"+
|
|
|
+ " ompoCode,ompoIdItem,ompoId,supplierCode,v.cVenAbbName as supplier,iTaxPrice,dArriveDate,guangpeiGateWidth, " +account[2]+" as ompoAccount"+
|
|
|
" FROM " +
|
|
|
" so_somain ss " +
|
|
|
" join SO_SODetails s on s.id=ss.id " +
|