浏览代码

1、修改页面动效回放接口

lry 8 月之前
父节点
当前提交
228ec1198f

+ 2 - 2
industry-system/industry-da/src/main/java/com/example/opc_da/controller/PageAnimationController.java

@@ -57,12 +57,12 @@ public class PageAnimationController {
     @GetMapping("getPageAnimationStatusByType")
 //    @PermissionControl
     @WebLog(ServerEnum = ServerEnum.SERVER, ModelEnum = ModelEnum.PAGEANIMATION, OperationEnum = OperationEnum.SELECT)
-    public Result getPageAnimationStatusByType(@RequestParam("type") String type) {
+    public Result getPageAnimationStatusByType(@RequestParam("type") String type,Date startTime) {
         Boolean flag = ListUtil.toList(StrUtil.split("ztfj,ztfjqql,ztzcql,ztzcqlys,fjzxtzfj,fjzxtyfj,ydgdx_L,ydgdx_C,ydgdx_R", ",")).contains(type);
         if (!flag) {
             return Result.no(ResultEnum.REQUEST_WRONGPARAMS);
         }
-        return pageAnimationService.getPageAnimationStatusByType(type);
+        return pageAnimationService.getPageAnimationStatusByType(type,startTime);
     }
     /**
      * 查看

+ 1 - 1
industry-system/industry-da/src/main/java/com/example/opc_da/service/PageAnimationService.java

@@ -13,7 +13,7 @@ public interface PageAnimationService {
 
     Result getAllPageAnimation();
 
-    Result getPageAnimationStatusByType(String type);
+    Result getPageAnimationStatusByType(String type,Date startTime);
 
     Result getPageAnimationValueByType(String type, Date startTime);
 }

+ 2 - 2
industry-system/industry-da/src/main/java/com/example/opc_da/service/impl/PageAnimationServiceImpl.java

@@ -64,11 +64,11 @@ public class PageAnimationServiceImpl implements PageAnimationService {
     }
 
     @Override
-    public Result getPageAnimationStatusByType(String type){
+    public Result getPageAnimationStatusByType(String type,Date startTime){
         PageAnimation pageAnimation = pageAnimationDao.getPageAnimationByType(type);
         List<PageAnimation> pageAnimationList = new ArrayList<>();
         pageAnimationList.add(pageAnimation);
-        pageAnimationList = (List<PageAnimation>) queryServiceUtil.exchangeRealData(pageAnimationList);
+        pageAnimationList = (List<PageAnimation>) queryServiceUtil.exchangeRealData(pageAnimationList,startTime);
 
         Boolean flag = false;
         if(pageAnimationList.size() == 0){