|
@@ -1,29 +1,29 @@
|
|
package org.eco.als.controller;
|
|
package org.eco.als.controller;
|
|
|
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
|
-import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
-import cn.hutool.core.collection.CollUtil;
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
|
+import jakarta.annotation.Resource;
|
|
|
|
+import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
|
+import org.eco.als.domain.bo.JudgeFaultLogicBo;
|
|
|
|
+import org.eco.als.domain.vo.JudgeFaultLogicImportVo;
|
|
|
|
+import org.eco.als.domain.vo.JudgeFaultLogicVo;
|
|
|
|
+import org.eco.als.service.IJudgeFaultLogicService;
|
|
import org.eco.common.core.core.domain.CommonResult;
|
|
import org.eco.common.core.core.domain.CommonResult;
|
|
|
|
+import org.eco.common.core.core.domain.model.LoginUser;
|
|
|
|
+import org.eco.common.core.core.page.PageResult;
|
|
|
|
+import org.eco.common.excel.utils.ExcelUtil;
|
|
import org.eco.common.log.annotation.Log;
|
|
import org.eco.common.log.annotation.Log;
|
|
import org.eco.common.log.enums.BusinessType;
|
|
import org.eco.common.log.enums.BusinessType;
|
|
import org.eco.common.security.utils.LoginHelper;
|
|
import org.eco.common.security.utils.LoginHelper;
|
|
-import org.eco.common.core.core.domain.model.LoginUser;
|
|
|
|
import org.eco.common.web.annotation.RepeatSubmit;
|
|
import org.eco.common.web.annotation.RepeatSubmit;
|
|
-import org.eco.common.excel.utils.ExcelUtil;
|
|
|
|
import org.eco.common.web.core.BaseController;
|
|
import org.eco.common.web.core.BaseController;
|
|
-import jakarta.annotation.Resource;
|
|
|
|
-import org.eco.als.domain.vo.JudgeFaultLogicImportVo;
|
|
|
|
-import org.eco.als.domain.vo.JudgeFaultLogicVo;
|
|
|
|
-import org.eco.als.domain.bo.JudgeFaultLogicBo;
|
|
|
|
-import org.eco.als.service.IJudgeFaultLogicService;
|
|
|
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
- import org.eco.common.core.core.page.PageResult;
|
|
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 判故逻辑Controller
|
|
* 判故逻辑Controller
|
|
@@ -39,11 +39,11 @@ public class JudgeFaultLogicController extends BaseController {
|
|
@Resource
|
|
@Resource
|
|
private IJudgeFaultLogicService judgeFaultLogicService;
|
|
private IJudgeFaultLogicService judgeFaultLogicService;
|
|
|
|
|
|
-/**
|
|
|
|
- * 查询判故逻辑列表
|
|
|
|
- */
|
|
|
|
-@SaCheckPermission("als:judgeFaultLogic:list")
|
|
|
|
-@GetMapping("/list")
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 查询判故逻辑列表
|
|
|
|
+ */
|
|
|
|
+ @SaCheckPermission("als:judgeFaultLogic:list")
|
|
|
|
+ @GetMapping("/list")
|
|
public CommonResult<PageResult<JudgeFaultLogicVo>> list(JudgeFaultLogicBo judgeFaultLogicBo) {
|
|
public CommonResult<PageResult<JudgeFaultLogicVo>> list(JudgeFaultLogicBo judgeFaultLogicBo) {
|
|
return CommonResult.success(judgeFaultLogicService.selectPage(judgeFaultLogicBo));
|
|
return CommonResult.success(judgeFaultLogicService.selectPage(judgeFaultLogicBo));
|
|
}
|
|
}
|
|
@@ -60,7 +60,7 @@ public class JudgeFaultLogicController extends BaseController {
|
|
if (CollUtil.isEmpty(list)) {
|
|
if (CollUtil.isEmpty(list)) {
|
|
return CommonResult.fail("导出列表为空");
|
|
return CommonResult.fail("导出列表为空");
|
|
}
|
|
}
|
|
- judgeFaultLogicService.asyncExport(list, "判故逻辑", loginUser);
|
|
|
|
|
|
+ judgeFaultLogicService.asyncExport(list, "判故逻辑", loginUser);
|
|
return CommonResult.success();
|
|
return CommonResult.success();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -78,7 +78,7 @@ public class JudgeFaultLogicController extends BaseController {
|
|
@PostMapping("/importData")
|
|
@PostMapping("/importData")
|
|
public CommonResult<Void> importData(MultipartFile file, boolean updateSupport) {
|
|
public CommonResult<Void> importData(MultipartFile file, boolean updateSupport) {
|
|
LoginUser loginUser = LoginHelper.getLoginUser();
|
|
LoginUser loginUser = LoginHelper.getLoginUser();
|
|
- judgeFaultLogicService.asyncImportData(file, updateSupport, loginUser);
|
|
|
|
|
|
+ judgeFaultLogicService.asyncImportData(file, updateSupport, loginUser);
|
|
return CommonResult.success();
|
|
return CommonResult.success();
|
|
}
|
|
}
|
|
|
|
|