Browse Source

增大同步size

wzh 1 month atrás
parent
commit
21cfc0cd40
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/qlm/service/WmesService.java

+ 2 - 2
src/main/java/com/qlm/service/WmesService.java

@@ -60,7 +60,7 @@ public class WmesService {
 	@Before(Tx.class)
 	@TxConfig("oracle")
 	public static  void transData(){
-		List<Record> find = Db.find("select * from jinzai_upload_master where upload_time  is null limit 200");
+		List<Record> find = Db.find("select * from jinzai_upload_master where upload_time  is null limit 2000");
 		
 		if(find.isEmpty()){
 			  Log.info("当前无数据,不同步");
@@ -105,7 +105,7 @@ public class WmesService {
             @Override
             public boolean run() throws SQLException {
             	Db.use("oracle").update(udfSqlString);
-        		Db.use("oracle").batchSave("WMS_PROD.CUS_ASN_SERIALNO", datas, 300);
+        		Db.use("oracle").batchSave("WMS_PROD.CUS_ASN_SERIALNO", datas, 500);
                 return true; // 事务提交
             }
         });