|
|
@@ -11,6 +11,7 @@ import com.sundot.airport.item.domain.HkSeizureStat;
|
|
11
|
11
|
import com.sundot.airport.item.service.IHkSeizureStatService;
|
|
12
|
12
|
import org.apache.poi.ss.usermodel.*;
|
|
13
|
13
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
14
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
14
|
15
|
import org.springframework.web.bind.annotation.*;
|
|
15
|
16
|
import org.springframework.web.multipart.MultipartFile;
|
|
16
|
17
|
|
|
|
@@ -29,6 +30,7 @@ public class HkSeizureStatController extends BaseController {
|
|
29
|
30
|
@Autowired
|
|
30
|
31
|
private IHkSeizureStatService service;
|
|
31
|
32
|
|
|
|
33
|
+ @PreAuthorize("@ss.hasPermi('system:seizeData:list')")
|
|
32
|
34
|
@GetMapping("/list")
|
|
33
|
35
|
public TableDataInfo list(HkSeizureStat query) {
|
|
34
|
36
|
startPage();
|
|
|
@@ -36,11 +38,13 @@ public class HkSeizureStatController extends BaseController {
|
|
36
|
38
|
return getDataTable(list);
|
|
37
|
39
|
}
|
|
38
|
40
|
|
|
|
41
|
+ @PreAuthorize("@ss.hasPermi('system:seizeData:query')")
|
|
39
|
42
|
@GetMapping("/{id}")
|
|
40
|
43
|
public AjaxResult getInfo(@PathVariable Long id) {
|
|
41
|
44
|
return success(service.selectHkSeizureStatById(id));
|
|
42
|
45
|
}
|
|
43
|
46
|
|
|
|
47
|
+ @PreAuthorize("@ss.hasPermi('system:seizeData:export')")
|
|
44
|
48
|
@Log(title = "查获数据", businessType = BusinessType.EXPORT)
|
|
45
|
49
|
@PostMapping("/export")
|
|
46
|
50
|
public void export(HttpServletResponse response, HkSeizureStat query) {
|
|
|
@@ -49,18 +53,21 @@ public class HkSeizureStatController extends BaseController {
|
|
49
|
53
|
util.exportExcel(response, list, "查获数据");
|
|
50
|
54
|
}
|
|
51
|
55
|
|
|
|
56
|
+ @PreAuthorize("@ss.hasPermi('system:seizeData:add')")
|
|
52
|
57
|
@Log(title = "查获数据", businessType = BusinessType.INSERT)
|
|
53
|
58
|
@PostMapping
|
|
54
|
59
|
public AjaxResult add(@RequestBody HkSeizureStat data) {
|
|
55
|
60
|
return toAjax(service.insertHkSeizureStat(data));
|
|
56
|
61
|
}
|
|
57
|
62
|
|
|
|
63
|
+ @PreAuthorize("@ss.hasPermi('system:seizeData:edit')")
|
|
58
|
64
|
@Log(title = "查获数据", businessType = BusinessType.UPDATE)
|
|
59
|
65
|
@PutMapping
|
|
60
|
66
|
public AjaxResult edit(@RequestBody HkSeizureStat data) {
|
|
61
|
67
|
return toAjax(service.updateHkSeizureStat(data));
|
|
62
|
68
|
}
|
|
63
|
69
|
|
|
|
70
|
+ @PreAuthorize("@ss.hasPermi('system:seizeData:remove')")
|
|
64
|
71
|
@Log(title = "查获数据", businessType = BusinessType.DELETE)
|
|
65
|
72
|
@DeleteMapping("/{ids}")
|
|
66
|
73
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
@@ -80,6 +87,7 @@ public class HkSeizureStatController extends BaseController {
|
|
80
|
87
|
* col3-14=T1各类别 col15=T1总数(公式,跳过)
|
|
81
|
88
|
* col16-27=T2各类别 col28=T2总数(公式,跳过) col29=合计(公式,跳过)
|
|
82
|
89
|
*/
|
|
|
90
|
+ @PreAuthorize("@ss.hasPermi('system:seizeData:import')")
|
|
83
|
91
|
@Log(title = "查获数据", businessType = BusinessType.IMPORT)
|
|
84
|
92
|
@PostMapping("/importData")
|
|
85
|
93
|
public AjaxResult importData(MultipartFile file) throws Exception {
|