소스 검색

接口加入列表和按钮权限

gy b 2 년 전
부모
커밋
af901190b9

+ 7
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/AdjudicationController.java 파일 보기

6
 import com.ruoyi.wisdomarbitrate.domain.vo.BookSendVO;
6
 import com.ruoyi.wisdomarbitrate.domain.vo.BookSendVO;
7
 import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
7
 import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
8
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.security.access.prepost.PreAuthorize;
9
 import org.springframework.validation.annotation.Validated;
10
 import org.springframework.validation.annotation.Validated;
10
 import org.springframework.web.bind.annotation.*;
11
 import org.springframework.web.bind.annotation.*;
11
 
12
 
21
      * @return
22
      * @return
22
      */
23
      */
23
     @PostMapping("/document")
24
     @PostMapping("/document")
25
+    @PreAuthorize("@ss.hasPermi('caseManagement:createaward')")
24
     public AjaxResult createDocument(@Validated @RequestBody CaseApplication caseApplication){
26
     public AjaxResult createDocument(@Validated @RequestBody CaseApplication caseApplication){
25
         return adjudicationService.createDocument(caseApplication);
27
         return adjudicationService.createDocument(caseApplication);
26
     }
28
     }
41
      * @return
43
      * @return
42
      */
44
      */
43
     @GetMapping("/logistics")
45
     @GetMapping("/logistics")
46
+    @PreAuthorize("@ss.hasPermi('delivery:detail')")
44
     public AjaxResult  getLogisticsInfo(CaseApplication caseApplication){
47
     public AjaxResult  getLogisticsInfo(CaseApplication caseApplication){
45
         return adjudicationService.getLogisticsInfo(caseApplication);
48
         return adjudicationService.getLogisticsInfo(caseApplication);
46
     }
49
     }
51
      * @return
54
      * @return
52
      */
55
      */
53
     @PostMapping("/signature")
56
     @PostMapping("/signature")
57
+    @PreAuthorize("@ss.hasPermi('awardManagement:sign')")
54
     public AjaxResult signature(@Validated @RequestBody CaseApplication caseApplication){
58
     public AjaxResult signature(@Validated @RequestBody CaseApplication caseApplication){
55
         return adjudicationService.signature(caseApplication);
59
         return adjudicationService.signature(caseApplication);
56
     }
60
     }
61
      * @return
65
      * @return
62
      */
66
      */
63
     @PostMapping("/caseFile")
67
     @PostMapping("/caseFile")
68
+    @PreAuthorize("@ss.hasPermi('awardManagement:file')")
64
     public AjaxResult caseFile(@Validated @RequestBody CaseApplication caseApplication){
69
     public AjaxResult caseFile(@Validated @RequestBody CaseApplication caseApplication){
65
         return adjudicationService.caseFile(caseApplication);
70
         return adjudicationService.caseFile(caseApplication);
66
     }
71
     }
71
      * @return
76
      * @return
72
      */
77
      */
73
     @PostMapping("/service")
78
     @PostMapping("/service")
79
+    @PreAuthorize("@ss.hasPermi('awardManagement:sendaward')")
74
     public AjaxResult service(@RequestBody BookSendVO bookSendVO){
80
     public AjaxResult service(@RequestBody BookSendVO bookSendVO){
75
         return adjudicationService.service(bookSendVO.getId(),bookSendVO.getAppEmail(),bookSendVO.getResEmail(),bookSendVO.getApptrackingNum(),bookSendVO.getRestrackingNum());
81
         return adjudicationService.service(bookSendVO.getId(),bookSendVO.getAppEmail(),bookSendVO.getResEmail(),bookSendVO.getApptrackingNum(),bookSendVO.getRestrackingNum());
76
     }
82
     }
80
      * @return
86
      * @return
81
      */
87
      */
82
     @PostMapping("/stamp")
88
     @PostMapping("/stamp")
89
+    @PreAuthorize("@ss.hasPermi('awardManagement:signprint')")
83
     public AjaxResult stamp(@Validated @RequestBody CaseApplication caseApplication){
90
     public AjaxResult stamp(@Validated @RequestBody CaseApplication caseApplication){
84
         return adjudicationService.stamp(caseApplication);
91
         return adjudicationService.stamp(caseApplication);
85
     }
92
     }

+ 10
- 9
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java 파일 보기

34
     /**
34
     /**
35
      * 查询立案数据
35
      * 查询立案数据
36
      */
36
      */
37
-    @PreAuthorize("@ss.hasPermi('caseApplication:list')")
37
+    @PreAuthorize("@ss.hasPermi('caseManagement:list')")
38
     @GetMapping("/list")
38
     @GetMapping("/list")
39
     public TableDataInfo list(CaseApplication caseApplication)
39
     public TableDataInfo list(CaseApplication caseApplication)
40
     {
40
     {
46
     /**
46
     /**
47
      * 新增立案数据
47
      * 新增立案数据
48
      */
48
      */
49
-    @PreAuthorize("@ss.hasPermi('caseApplication:add')")
49
+    @PreAuthorize("@ss.hasPermi('caseManagement:add')")
50
     @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
50
     @Log(title = "新增立案数据", businessType = BusinessType.INSERT)
51
     @PostMapping("/addCaseApplication")
51
     @PostMapping("/addCaseApplication")
52
     public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
52
     public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
62
     /**
62
     /**
63
      * 修改立案数据
63
      * 修改立案数据
64
      */
64
      */
65
-    @PreAuthorize("@ss.hasPermi('caseApplication:edit')")
65
+    @PreAuthorize("@ss.hasPermi('caseManagement:update')")
66
     @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
66
     @Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
67
     @PostMapping("/editCaseApplication")
67
     @PostMapping("/editCaseApplication")
68
     public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
68
     public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
75
     /**
75
     /**
76
      * 提交立案申请
76
      * 提交立案申请
77
      */
77
      */
78
-    @PreAuthorize("@ss.hasPermi('caseApplication:submit')")
78
+    @PreAuthorize("@ss.hasPermi('caseManagement:submit')")
79
     @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
79
     @Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
80
     @PostMapping("/submitCaseApplication")
80
     @PostMapping("/submitCaseApplication")
81
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
81
     public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
87
     /**
87
     /**
88
      * 删除立案数据
88
      * 删除立案数据
89
      */
89
      */
90
-    @PreAuthorize("@ss.hasPermi('caseApplication:remove')")
90
+    @PreAuthorize("@ss.hasPermi('caseManagement:delete')")
91
     @Log(title = "删除立案数据", businessType = BusinessType.DELETE)
91
     @Log(title = "删除立案数据", businessType = BusinessType.DELETE)
92
     @PostMapping("/removeCaseApplication")
92
     @PostMapping("/removeCaseApplication")
93
     public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
93
     public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
99
     /**
99
     /**
100
      * 查询立案信息
100
      * 查询立案信息
101
      */
101
      */
102
+    @PreAuthorize("@ss.hasPermi('caseManagement:detail')")
102
     @PostMapping("/selectCaseApplication")
103
     @PostMapping("/selectCaseApplication")
103
     public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
104
     public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
104
     {
105
     {
117
     }
118
     }
118
 
119
 
119
     @Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
120
     @Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
120
-    @PreAuthorize("@ss.hasPermi('caseApplication:import')")
121
+    @PreAuthorize("@ss.hasPermi('caseManagement:import')")
121
     @PostMapping("/importData")
122
     @PostMapping("/importData")
122
     public AjaxResult importData(MultipartFile file) throws Exception {
123
     public AjaxResult importData(MultipartFile file) throws Exception {
123
         ExcelUtil<CaseApplication> util = new ExcelUtil<CaseApplication>(CaseApplication.class);
124
         ExcelUtil<CaseApplication> util = new ExcelUtil<CaseApplication>(CaseApplication.class);
141
     /**
142
     /**
142
      * 组庭审核
143
      * 组庭审核
143
      */
144
      */
144
-    @PreAuthorize("@ss.hasPermi('caseApplication:pendTralCheck')")
145
+    @PreAuthorize("@ss.hasPermi('caseManagement:checkgroup')")
145
     @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
146
     @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
146
     @PostMapping("/pendTralCheck")
147
     @PostMapping("/pendTralCheck")
147
     public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication)
148
     public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication)
152
     /**
153
     /**
153
      * 组庭确认
154
      * 组庭确认
154
      */
155
      */
155
-    @PreAuthorize("@ss.hasPermi('caseApplication:pendTralSure')")
156
+    @PreAuthorize("@ss.hasPermi('caseManagement:confirmgroup')")
156
     @Log(title = "组庭确认", businessType = BusinessType.UPDATE)
157
     @Log(title = "组庭确认", businessType = BusinessType.UPDATE)
157
     @PostMapping("/pendTralSure")
158
     @PostMapping("/pendTralSure")
158
     public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication)
159
     public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication)
198
     /**
199
     /**
199
      * 提交立案审查
200
      * 提交立案审查
200
      */
201
      */
201
-    @PreAuthorize("@ss.hasPermi('caseApplication:submitCaseApplicationCheck')")
202
+    @PreAuthorize("@ss.hasPermi('caseManagement:check')")
202
     @Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
203
     @Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
203
     @PostMapping("/submitCaseApplicationCheck")
204
     @PostMapping("/submitCaseApplicationCheck")
204
     public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication)
205
     public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication)

+ 3
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseArbitrateController.java 파일 보기

6
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
7
 import com.ruoyi.wisdomarbitrate.service.ICaseArbitrateService;
7
 import com.ruoyi.wisdomarbitrate.service.ICaseArbitrateService;
8
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.security.access.prepost.PreAuthorize;
9
 import org.springframework.validation.annotation.Validated;
10
 import org.springframework.validation.annotation.Validated;
10
 import org.springframework.web.bind.annotation.*;
11
 import org.springframework.web.bind.annotation.*;
11
 
12
 
22
      * @return
23
      * @return
23
      */
24
      */
24
     @PutMapping("/method")
25
     @PutMapping("/method")
26
+    @PreAuthorize("@ss.hasPermi('caseManagement:checkarbitrationway')")
25
     public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
27
     public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
26
             ,Integer opinion){
28
             ,Integer opinion){
27
         return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion);
29
         return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion);
33
      * @return
35
      * @return
34
      */
36
      */
35
     @PostMapping("/writtenHear")
37
     @PostMapping("/writtenHear")
38
+    @PreAuthorize("@ss.hasPermi('caseManagement:offlinehear')")
36
     public AjaxResult writtenHear(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
39
     public AjaxResult writtenHear(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
37
         return caseArbitrateService.writtenHear(arbitrateRecord);
40
         return caseArbitrateService.writtenHear(arbitrateRecord);
38
     }
41
     }

+ 3
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseEvidenceController.java 파일 보기

8
 import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceVO;
8
 import com.ruoyi.wisdomarbitrate.domain.vo.CaseEvidenceVO;
9
 import com.ruoyi.wisdomarbitrate.service.ICaseEvidenceService;
9
 import com.ruoyi.wisdomarbitrate.service.ICaseEvidenceService;
10
 import org.springframework.beans.factory.annotation.Autowired;
10
 import org.springframework.beans.factory.annotation.Autowired;
11
+import org.springframework.security.access.prepost.PreAuthorize;
11
 import org.springframework.validation.annotation.Validated;
12
 import org.springframework.validation.annotation.Validated;
12
 import org.springframework.web.bind.annotation.*;
13
 import org.springframework.web.bind.annotation.*;
13
 import org.springframework.web.multipart.MultipartFile;
14
 import org.springframework.web.multipart.MultipartFile;
35
      * @return
36
      * @return
36
      */
37
      */
37
     @GetMapping("/{id}")
38
     @GetMapping("/{id}")
39
+    @PreAuthorize("@ss.hasPermi('caseManagement:detail')")
38
     public AjaxResult getCaseDetailsById(@PathVariable Long id) {
40
     public AjaxResult getCaseDetailsById(@PathVariable Long id) {
39
         String username = this.getUsername();
41
         String username = this.getUsername();
40
         return caseEvidenceService.getCaseDetailsById(id,username);
42
         return caseEvidenceService.getCaseDetailsById(id,username);
61
      * @return
63
      * @return
62
      */
64
      */
63
     @GetMapping("/all")
65
     @GetMapping("/all")
66
+    @PreAuthorize("@ss.hasPermi('caseManagement:list')")
64
     public TableDataInfo getCaseListAll(@RequestParam String identityNum) {
67
     public TableDataInfo getCaseListAll(@RequestParam String identityNum) {
65
         startPage();
68
         startPage();
66
         List<CaseEvidenceVO> list = caseEvidenceService.getCaseListAll(identityNum);
69
         List<CaseEvidenceVO> list = caseEvidenceService.getCaseListAll(identityNum);

+ 1
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseLogRecordController.java 파일 보기

22
     /**
22
     /**
23
      * 查询案件日志列表
23
      * 查询案件日志列表
24
      */
24
      */
25
-    @PreAuthorize("@ss.hasPermi('caseLogRecord:list')")
25
+    @PreAuthorize("@ss.hasPermi('caseLog:list')")
26
     @GetMapping("/list")
26
     @GetMapping("/list")
27
     public TableDataInfo list(CaseLogRecord caseLogRecord)
27
     public TableDataInfo list(CaseLogRecord caseLogRecord)
28
     {
28
     {

+ 3
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CasePaymentController.java 파일 보기

5
 import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
5
 import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
6
 import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
6
 import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
7
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.security.access.prepost.PreAuthorize;
8
 import org.springframework.validation.annotation.Validated;
9
 import org.springframework.validation.annotation.Validated;
9
 import org.springframework.web.bind.annotation.*;
10
 import org.springframework.web.bind.annotation.*;
10
 
11
 
24
      * @param casePayDTO 缴费传入参数
25
      * @param casePayDTO 缴费传入参数
25
      * @return 统一响应结果
26
      * @return 统一响应结果
26
      */
27
      */
28
+    @PreAuthorize("@ss.hasPermi('caseManagement:pay')")
27
     @PostMapping("/casePay")
29
     @PostMapping("/casePay")
28
     public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
30
     public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
29
         return paymentService.casePay(casePayDTO);
31
         return paymentService.casePay(casePayDTO);
34
      * @param caseApplication
36
      * @param caseApplication
35
      * @return
37
      * @return
36
      */
38
      */
39
+    @PreAuthorize("@ss.hasPermi('paymentManagement:payconfirm')")
37
     @PutMapping("/confirm")
40
     @PutMapping("/confirm")
38
     public AjaxResult confirmPayment(@Validated @RequestBody CaseApplication caseApplication) {
41
     public AjaxResult confirmPayment(@Validated @RequestBody CaseApplication caseApplication) {
39
         return paymentService.confirmPayment(caseApplication);
42
         return paymentService.confirmPayment(caseApplication);