|
|
@@ -17,7 +17,7 @@ import com.qlm.log.Log;
|
|
|
|
|
|
public class WmesService {
|
|
|
private static void con(){
|
|
|
- DruidPlugin dp = new DruidPlugin("jdbc:mysql://61.183.212.90:57911/jinzai?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull", "root", "Qyy#2023.Wzh!");
|
|
|
+ DruidPlugin dp = new DruidPlugin("jdbc:mysql://58.20.133.135:6177/jinzai?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull", "jinzai", "rTdBsjA636XkarRa");
|
|
|
ActiveRecordPlugin arp = new ActiveRecordPlugin(dp);
|
|
|
// ��web����Ψһ�IJ�ͬ��Ҫ�ֶ�����һ����ز����start()����
|
|
|
dp.start();
|
|
|
@@ -30,7 +30,12 @@ public class WmesService {
|
|
|
|
|
|
public static void uploadData(){
|
|
|
|
|
|
- List<Record> find = Db.find("select * from jinzai_upload_master where upload_time is null");
|
|
|
+ List<Record> find = Db.find("select * from jinzai_upload_master where upload_time is null limit 1000");
|
|
|
+
|
|
|
+ if(find.isEmpty()){
|
|
|
+ Log.info("当前无数据,不同步");
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
JSONObject bigData = new JSONObject();
|
|
|
JSONObject data = new JSONObject();
|