|
|
@@ -24,7 +24,7 @@ public class ErpProdIODetailServiceImpl implements ErpProdIODetailService{
|
|
|
String sql = "select p.pi_inoutno inOutNo,p.pd_detno detno ,p.pi_class piClass, p.pd_ordercode orderCode, p.pd_orderdetno orderDetno,"
|
|
|
+ " p.pd_prodcode prodCode, p.pd_qty qty, p.pi_date piDate, p.pd_orderprice orderPrice, p.pi_currency currency, p.pd_taxrate taxrate, p.pd_ycheckqty yCheckQty,"
|
|
|
+ " p.pd_thischeckqty thisCheckQty, p.custuu custUu, p.custname custName, p.enuu enUu, p.sourceid sourceId, p.pi_sourcetable sourceTable, p.pi_rate rate, p.pi_receivecode receiveCode,"
|
|
|
- + " p.pi_receivename receiveName from erp$prodiodetail p where enuu = ? order by pi_date desc";
|
|
|
+ + " p.pi_receivename receiveName from erp$prodiodetail p where enuu = ?";
|
|
|
Object[] args = new Object[] {enUu};
|
|
|
if (!CollectionUtils.isEmpty(filter)) {
|
|
|
String[] str = new String[filter.size()];
|
|
|
@@ -43,6 +43,7 @@ public class ErpProdIODetailServiceImpl implements ErpProdIODetailService{
|
|
|
lon[0] = enUu;
|
|
|
args = lon;
|
|
|
}
|
|
|
+ sql = sql +" order by pi_date desc";
|
|
|
List<ErpProdIODetail> erpProdIODetails = jdbcTemplate.query(sql,args, new BeanPropertyRowMapper<ErpProdIODetail>(ErpProdIODetail.class));
|
|
|
return erpProdIODetails;
|
|
|
}
|