|
@@ -2,6 +2,7 @@ package com.ruoyi.project.base.controller;
|
|
|
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
+import com.ruoyi.common.annotation.RepeatSubmit;
|
|
|
import com.ruoyi.common.config.RuoYiConfig;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
@@ -86,6 +87,7 @@ public class TBasePointController extends BaseController {
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('base:point:export')")
|
|
|
@Log(title = "密封点导出", businessType = BusinessType.EXPORT)
|
|
|
+ @RepeatSubmit
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, TBasePoint tBasePoint) {
|
|
|
List<TBasePoint> list = tBasePointService.selectTBasePointList(tBasePoint);
|
|
@@ -107,6 +109,7 @@ public class TBasePointController extends BaseController {
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('base:point:add')")
|
|
|
@Log(title = "密封点新增", businessType = BusinessType.INSERT)
|
|
|
+ @RepeatSubmit
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody TBasePoint tBasePoint) {
|
|
|
try {
|
|
@@ -134,6 +137,7 @@ public class TBasePointController extends BaseController {
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('base:point:edit')")
|
|
|
@Log(title = "密封点修改", businessType = BusinessType.UPDATE)
|
|
|
+ @RepeatSubmit
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody TBasePoint tBasePoint) {
|
|
|
TBasePoint point = tBasePointService.selectTBasePointByGroupCodeAndExtendCode(tBasePoint);
|
|
@@ -148,12 +152,14 @@ public class TBasePointController extends BaseController {
|
|
|
|
|
|
@PutMapping("/handleApprove")
|
|
|
@Log(title = "密封点审核", businessType = BusinessType.APPROVE)
|
|
|
+ @RepeatSubmit
|
|
|
public AjaxResult handleApprove(@RequestBody TBasePoint tBasePoint) {
|
|
|
tBasePoint.setApproveTime(new Date());
|
|
|
return toAjax(tBasePointService.updateTBasePointByPointIds(tBasePoint));
|
|
|
}
|
|
|
|
|
|
@PutMapping("/handleApproveAll")
|
|
|
+ @RepeatSubmit
|
|
|
@Log(title = "密封点审核所有", businessType = BusinessType.APPROVE)
|
|
|
public AjaxResult handleApproveAll(@RequestBody TBasePoint tBasePoint) {
|
|
|
long status = tBasePoint.getApproveStatus();
|
|
@@ -177,6 +183,7 @@ public class TBasePointController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@PutMapping("/handleUpload")
|
|
|
+ @RepeatSubmit
|
|
|
@Log(title = "密封点上传文件修改", businessType = BusinessType.UPDATE)
|
|
|
public AjaxResult handleUpload(@RequestBody TBasePoint tBasePoint) {
|
|
|
tBasePoint.setUpdaterCode(getUserId());
|
|
@@ -198,6 +205,7 @@ public class TBasePointController extends BaseController {
|
|
|
|
|
|
|
|
|
@Log(title = "密封点台账导入", businessType = BusinessType.INSERT)
|
|
|
+ @RepeatSubmit
|
|
|
@PostMapping("/importData")
|
|
|
public AjaxResult importData(@RequestParam("file") MultipartFile file) throws IOException {
|
|
|
//获取操作人员ID
|
|
@@ -371,6 +379,7 @@ public class TBasePointController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@Log(title = "密封点文件上传", businessType = BusinessType.UPDATE)
|
|
|
+ @RepeatSubmit
|
|
|
@PostMapping("/uploadFile")
|
|
|
public AjaxResult uploadFile(@RequestParam("file") MultipartFile file) throws IOException {
|
|
|
if (!file.isEmpty()) {
|