|
|
@@ -3,6 +3,7 @@ package com.uas.platform.b2b.service.impl;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import org.apache.axis.utils.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
@@ -54,7 +55,7 @@ public class ErpProdIODetailServiceImpl implements ErpProdIODetailService {
|
|
|
+ " p.pd_prodcode prodCode, p.pr_title prodTitle,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 = ?";
|
|
|
- if (keyword != "") {
|
|
|
+ if (!StringUtils.isEmpty(keyword)) {
|
|
|
String[] strs = keyword.split("-");
|
|
|
if (strs.length == 1) {
|
|
|
sql = sql + " and custname = '" + strs[0] + "'";
|