Преглед на файлове

删除无用的输出日志

syh преди 4 години
родител
ревизия
3c16e90f00

+ 0 - 5
jeecg-boot-base-common/src/main/java/org/jeecg/common/util/MD5Util.java

@@ -89,9 +89,4 @@ public class MD5Util {
 	public static String getFileMd5(String path) throws Exception {
 		return DigestUtils.md5Hex(new FileInputStream(path));
 	}
-
-	public static void main(String[] args) throws Exception {
-		System.out.println(getFileMd5("D:\\mnt\\0427有缘3-帆楠E打车-同城热恋-1587982341839.mp4"));
-		System.out.println(getFileMd5("D:\\mnt\\0427有缘4-帆楠E洗脚-同城热恋-1593661309704.mp4"));
-	}
 }

+ 0 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/JhsBakendDataController.java

@@ -217,7 +217,6 @@ public class JhsBakendDataController {
 			  fis = (FileInputStream) file.getInputStream();
 			  AnalysisEventListener listener = new JhsBakendDataExcelListener();
 			  Boolean flag = ExcelUtils.readExcel(fis, JhsBakendDataEntity.class, listener);
-			  System.out.println("导入是否成功:" + flag);
 		  } catch (Exception e) {
 			  e.printStackTrace();
 		  } finally {

+ 0 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/KuaishouChannelRegInfoController.java

@@ -191,7 +191,6 @@ public class KuaishouChannelRegInfoController {
                 fis = (FileInputStream) file.getInputStream();
                 AnalysisEventListener listener = new KuaishouChannelRegInfoExcelListener();
                 Boolean flag = ExcelUtils.readExcel(fis, KuaishouChannelRegInfoEntity.class, listener);
-                System.out.println("导入是否成功:" + flag);
             } catch (Exception e) {
                 e.printStackTrace();
             } finally {

+ 0 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

@@ -242,7 +242,6 @@ public class TestController {
         } catch (InterruptedException e) {
             e.printStackTrace();
         }
-        System.out.println("数据获取完成");
 //        bytedanceReportMaterialDailyMapper.updateImageReportCode();
 //        bytedanceReportMaterialDailyMapper.updateImageReportProjectId();
 //        bytedanceReportMaterialDailyMapper.updateImageReportProjectName();

+ 8 - 8
jeecg-boot-module-system/src/main/resources/application-wps.yml

@@ -95,16 +95,16 @@ spring:
         # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
       datasource:
-        master:
-          url: jdbc:mysql://139.186.151.174:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true
-          username: hcst
-          password: hcst@2020
-          driver-class-name: com.mysql.jdbc.Driver
 #        master:
-#          url: jdbc:mysql://139.186.27.96:4000/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
-#          username: data
-#          password: hcst@2021
+#          url: jdbc:mysql://139.186.151.174:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true
+#          username: hcst
+#          password: hcst@2020
 #          driver-class-name: com.mysql.jdbc.Driver
+        master:
+          url: jdbc:mysql://139.186.27.96:4000/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
+          username: data
+          password: hcst@2021
+          driver-class-name: com.mysql.jdbc.Driver
   #redis 配置
   redis:
     database: 0

+ 1 - 2
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -46,7 +46,7 @@ import static org.jeecg.common.util.DateUtils.getAnotherDay;
 
 @RunWith(SpringRunner.class)
 @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
-@ActiveProfiles("dev")
+@ActiveProfiles("wps")
 @Slf4j
 public class SampleTest {
     @Autowired
@@ -175,7 +175,6 @@ public class SampleTest {
                 reportService.getAdvertiserReport(token, DateUtils.parseDate(startDate, "yyyy-MM-dd"), DateUtils.parseDate(endDate, "yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_HOURLY);
             }
         }
-        System.out.println("任务结束");
     }
 
     @Test

+ 0 - 4
module-common/src/main/java/cn/com/ctop/common/module/utils/LoadFileUtil.java

@@ -91,10 +91,6 @@ public class LoadFileUtil {
         return flag;
     }
 
-    public static void main(String[] args) throws IOException {
-        System.out.println(getMD5("D:\\data\\6ybjAGrL.mp4"));
-    }
-
     /**
      * 获取文件md5
      *

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouVideoGetMapper.xml

@@ -123,7 +123,7 @@
         where account_id = #{accountId}
         and signature = #{signature}
         and status = 0
-    </select
+    </select>
 
 
 </mapper>

+ 4 - 2
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/link/service/impl/ETLReportBytedanceVideoServiceImpl.java

@@ -96,10 +96,12 @@ public class ETLReportBytedanceVideoServiceImpl extends ServiceImpl<ETLReportByt
             return;
         }
         boolean result = this.saveBatch(etlReportBytedanceVideos);
-        if(result)
+        if(result){
             log.info("{},头条etl报表清洗完成,数量:{}",statDate,etlReportBytedanceVideos.size());
-        else
+        }
+        else{
             log.error("{},头条etl报表清洗失败,请重试",statDate);
+        }
     }
 
 }

+ 0 - 2
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/service/impl/BytedanceReportServiceImpl.java

@@ -569,7 +569,6 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
             }
         };
         JSONObject json = HttpUtils.bytedanceGetRequest(token.getAccessToken(), url, JSONObject.parseObject(JSONObject.toJSONString(data)));
-        System.out.println(json);
         if (json == null) {
             log.error("返回为空,请求有误:" + JSONObject.toJSONString(data));
             return -2;
@@ -782,7 +781,6 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
             log.error("返回为空,请求有误:" + JSONObject.toJSONString(data));
             return -2;
         }
-        System.out.println(json.toJSONString());
         try {
             Integer code = json.getInteger("code");
             if (code != 0) {

+ 2 - 1
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/service/impl/BytedanceVideoReportServiceImpl.java

@@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import javax.annotation.Resource;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -24,7 +25,7 @@ import java.util.Map;
 @Service
 public class BytedanceVideoReportServiceImpl implements IBytedanceVideoReportService {
 
-    @Autowired
+    @Resource
     BytedanceVideoReportMapper bytedanceVideoReportMapper;
 
     @Autowired

+ 0 - 2
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/service/impl/ReportServiceImpl.java

@@ -86,7 +86,6 @@ public class ReportServiceImpl implements IReportService {
         config.propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
         JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(conditions, config));
         JSONObject getObject = getAdvertiserStat(token, jsonObject);
-        System.out.println(getObject);
         if(null == getObject){
             XxlJobHelper.log("头条广告主数据获取异常");
             return;
@@ -494,7 +493,6 @@ public class ReportServiceImpl implements IReportService {
         config.propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
         JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(conditions, config));
         JSONObject getObject = getAdvertiserStat(token, jsonObject);
-        System.out.println(getObject);
         if(null == getObject){
             XxlJobHelper.log("头条广告主数据获取异常");
             return;