Explorar el Código

修改冗余代码

songyh hace 4 años
padre
commit
ddeabdcd90

+ 0 - 4
jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java

@@ -64,10 +64,6 @@ public class SysDepartController {
     private ISysBaseApi sysBaseAPI;
     @Autowired
     private ISysDepartService sysDepartService;
-    @Autowired
-    private ISysUserService sysUserService;
-    @Autowired
-    private ISysUserDepartService sysUserDepartService;
     public RedisTemplate<String, Object> redisTemplate;
 
     /**

+ 0 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java

@@ -359,8 +359,6 @@ public class SysUserController {
     private ISysDepartService departService;
 
     @RequestMapping(value = "/edit", method = RequestMethod.PUT)
-    //@RequiresRoles({"admin"})
-    //@RequiresPermissions("user:edit")
     public Result<SysUser> edit(@RequestBody JSONObject jsonObject) {
         Result<SysUser> result = new Result<SysUser>();
         try {

+ 9 - 0
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -237,4 +237,13 @@ public class SampleTest {
         etlReportBytedanceVideoService.etlBytedanceVideoPlanInfoJob();
         etlReportBytedanceVideoService.etlBytedanceVideoShotInfoJob();
     }
+
+    @Test
+    public void loadEffecfData(){
+        String startDate = "2021-05-01";
+        for(int i=0;i<=70;i++){
+            String getDate = DateUtils.addDay(startDate,i);
+            bytedanceVideoEtlInfoService.etlBytedanceVideoInfo(DateUtils.parseDate(getDate,"yyyy-MM-dd"));
+        }
+    }
 }

+ 0 - 10
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/controller/KsVideoReportCtrl.java

@@ -59,17 +59,8 @@ public class KsVideoReportCtrl {
     public Result<PageInfo<JSONObject>> getListReport(@RequestBody JSONObject requestBody) {
         Result<PageInfo<JSONObject>> result = new Result<>();
         try {
-            if (Check.isNull(requestBody)) {
-                new Exception("入参不能为空");
-            }
             int pageSize = requestBody.getInteger("pageSize");
-            if (Check.isNull(pageSize)) {
-                throw new Exception("请输入查询每页条数");
-            }
             int pageNo = requestBody.getInteger("pageNo");
-            if (Check.isNull(pageNo)) {
-                throw new Exception("请输入查询页数");
-            }
             String startDate = requestBody.getString("startDate");
             if (Check.isNull(startDate)) {
                 throw new Exception("请输入查询开始时间");
@@ -79,7 +70,6 @@ public class KsVideoReportCtrl {
                 throw new Exception("请输入查询结束时间");
             }
             String filedAll = JsonResourceUtil.joinAllFiled(AccountReportConstants.kuaishouVideoReportMap);
-            //   System.err.println(filedAll);
             if (Check.isNull(filedAll)) {
                 throw new Exception("初始化查询 字段返回为空");
             }

+ 0 - 3
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/operation/util/GetChangeDateUtil.java

@@ -1,13 +1,10 @@
 package cn.com.ctop.toutiao.modules.operation.util;
 
 import cn.com.ctop.common.module.entity.SysUser;
-import cn.com.ctop.toutiao.modules.operation.entity.BytedanceOperationLog;
-import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;
 
 import java.beans.Introspector;
 import java.beans.PropertyDescriptor;
 import java.lang.reflect.Method;
-import java.security.Timestamp;
 import java.util.*;
 
 public class GetChangeDateUtil {