用友API

master
erzhongxmu 2020-08-18 15:25:56 +08:00
parent ba6dcde08a
commit d79f0b8578
2 changed files with 53 additions and 5 deletions

View File

@ -830,7 +830,7 @@ public class WvStockController extends BaseController {
String hql = " from WvStockEntity where 1 = 1 "; String hql = " from WvStockEntity where 1 = 1 ";
D0.setOK(true); D0.setOK(true);
if (!StringUtil.isEmpty(searchstr)) { if (!StringUtil.isEmpty(searchstr)) {
hql = hql + " and kuWeiBianMa = '" + searchstr + "'"; hql = hql + " and kuWeiBianMa like '%" + searchstr + "%'";
} }
if (!StringUtil.isEmpty(searchstr2)) { if (!StringUtil.isEmpty(searchstr2)) {
try { try {
@ -843,15 +843,15 @@ public class WvStockController extends BaseController {
} }
String[] ss = searchstr2.split(","); String[] ss = searchstr2.split(",");
if (ss.length == 1) { if (ss.length == 1) {
hql = hql + " and goodsId = '" + searchstr2 + "'"; hql = hql + " and (goodsId like '%" + searchstr2 + "%' or shpMingCheng like '%" + searchstr2 + "%')" ;
} else { } else {
String insearch = ""; String insearch = "";
for (String s : ss) { for (String s : ss) {
if (StringUtil.isNotEmpty(insearch)) { if (StringUtil.isNotEmpty(insearch)) {
insearch = insearch + " or goodsId = '" + s + "'"; insearch = insearch + " or goodsId like '%" + s + "%'";
} else { } else {
insearch = "goodsId = '" + s + "'"; insearch = "goodsId like '%" + s + "%'";
} }
} }

View File

@ -213,6 +213,12 @@ public class yyUtil {
} }
if (result!=null&&result.size()>0) { if (result!=null&&result.size()>0) {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
try{
Thread.sleep(3000);
}catch (Exception e){
}
Map<String, Object> prodbo = result.get(i); Map<String, Object> prodbo = result.get(i);
String poid = prodbo.get("id").toString(); String poid = prodbo.get("id").toString();
String otherid = prodbo.get("cCode").toString(); String otherid = prodbo.get("cCode").toString();
@ -289,6 +295,12 @@ public class yyUtil {
} }
if (result!=null&&result.size()>0) { if (result!=null&&result.size()>0) {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
try{
Thread.sleep(3000);
}catch (Exception e){
}
Map<String, Object> prodbo = result.get(i); Map<String, Object> prodbo = result.get(i);
String poid = prodbo.get("id").toString(); String poid = prodbo.get("id").toString();
String otherid = prodbo.get("cCode").toString(); String otherid = prodbo.get("cCode").toString();
@ -364,6 +376,12 @@ public class yyUtil {
result = DynamicDBUtil.findList(dbKey, SqlUtil.jeecgCreatePageSql(dbKey, querySql, queryparams, 1, 1000000)); result = DynamicDBUtil.findList(dbKey, SqlUtil.jeecgCreatePageSql(dbKey, querySql, queryparams, 1, 1000000));
} }
if (result!=null&&result.size()>0) { if (result!=null&&result.size()>0) {
try{
Thread.sleep(3000);
}catch (Exception e){
}
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
Map<String, Object> prodbo = result.get(i); Map<String, Object> prodbo = result.get(i);
String poid = prodbo.get("id").toString(); String poid = prodbo.get("id").toString();
@ -440,6 +458,12 @@ public class yyUtil {
} }
if (result!=null&&result.size()>0) { if (result!=null&&result.size()>0) {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
try{
Thread.sleep(3000);
}catch (Exception e){
}
Map<String, Object> prodbo = result.get(i); Map<String, Object> prodbo = result.get(i);
String poid = prodbo.get("poid").toString(); String poid = prodbo.get("poid").toString();
@ -515,6 +539,12 @@ public class yyUtil {
} }
if (result!=null&&result.size()>0) { if (result!=null&&result.size()>0) {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
try{
Thread.sleep(3000);
}catch (Exception e){
}
Map<String, Object> prodbo = result.get(i); Map<String, Object> prodbo = result.get(i);
String imcuscode = prodbo.get("DLID").toString(); String imcuscode = prodbo.get("DLID").toString();
if (StringUtil.isNotEmpty(imcuscode)) { if (StringUtil.isNotEmpty(imcuscode)) {
@ -579,6 +609,12 @@ public class yyUtil {
} }
if (result!=null&&result.size()>0) { if (result!=null&&result.size()>0) {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
try{
Thread.sleep(3000);
}catch (Exception e){
}
Map<String, Object> prodbo = result.get(i); Map<String, Object> prodbo = result.get(i);
String imcuscode = prodbo.get("id").toString(); String imcuscode = prodbo.get("id").toString();
String otherid = prodbo.get("cCode").toString(); String otherid = prodbo.get("cCode").toString();
@ -643,6 +679,12 @@ public class yyUtil {
} }
if (result!=null&&result.size()>0) { if (result!=null&&result.size()>0) {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
try{
Thread.sleep(3000);
}catch (Exception e){
}
Map<String, Object> prodbo = result.get(i); Map<String, Object> prodbo = result.get(i);
String imcuscode = prodbo.get("id").toString(); String imcuscode = prodbo.get("id").toString();
String otherid = prodbo.get("cCode").toString(); String otherid = prodbo.get("cCode").toString();
@ -694,7 +736,7 @@ public class yyUtil {
public static void getclck(String indate) { public static void getclck(String indate) {
// / PO_Pomain 其他出库单主表 // / PO_Pomain 其他出库单主表
// PO_Podetails 其他出库单主表子表 //// PO_Podetails 其他出库单主表子表
String dbKey= ResourceUtil.getConfigByName("yydbkey"); String dbKey= ResourceUtil.getConfigByName("yydbkey");
List<Map<String, Object>> result=null; List<Map<String, Object>> result=null;
List<Map<String, Object>> resultdetail=null; List<Map<String, Object>> resultdetail=null;
@ -707,6 +749,12 @@ public class yyUtil {
} }
if (result!=null&&result.size()>0) { if (result!=null&&result.size()>0) {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
try{
Thread.sleep(3000);
}catch (Exception e){
}
Map<String, Object> prodbo = result.get(i); Map<String, Object> prodbo = result.get(i);
String imcuscode = prodbo.get("id").toString(); String imcuscode = prodbo.get("id").toString();
String otherid = prodbo.get("cCode").toString(); String otherid = prodbo.get("cCode").toString();