|
|
@@ -8,6 +8,7 @@ import com.ruoyi.common.core.controller.BaseController;
|
|
8
|
8
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
9
|
9
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
10
|
10
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
11
|
+import com.ruoyi.common.utils.StringUtils;
|
|
11
|
12
|
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
|
12
|
13
|
import com.ruoyi.wisdomarbitrate.domain.vo.SendRoomNoMessageVO;
|
|
13
|
14
|
import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
|
|
|
@@ -17,14 +18,14 @@ import org.springframework.validation.annotation.Validated;
|
|
17
|
18
|
import org.springframework.web.bind.annotation.*;
|
|
18
|
19
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
19
|
20
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
21
|
+
|
|
20
|
22
|
import javax.servlet.http.HttpServletResponse;
|
|
21
|
23
|
import java.util.List;
|
|
22
|
24
|
|
|
23
|
25
|
|
|
24
|
|
-
|
|
25
|
26
|
@RestController
|
|
26
|
27
|
@RequestMapping("/caseApplication")
|
|
27
|
|
-public class CaseApplicationController extends BaseController {
|
|
|
28
|
+public class CaseApplicationController extends BaseController {
|
|
28
|
29
|
@Autowired
|
|
29
|
30
|
private ICaseApplicationService caseApplicationService;
|
|
30
|
31
|
|
|
|
@@ -34,8 +35,7 @@ public class CaseApplicationController extends BaseController {
|
|
34
|
35
|
*/
|
|
35
|
36
|
@PreAuthorize("@ss.hasPermi('caseManagement:list')")
|
|
36
|
37
|
@GetMapping("/list")
|
|
37
|
|
- public TableDataInfo list(CaseApplication caseApplication)
|
|
38
|
|
- {
|
|
|
38
|
+ public TableDataInfo list(CaseApplication caseApplication) {
|
|
39
|
39
|
startPage();
|
|
40
|
40
|
List<CaseApplication> list = caseApplicationService.selectCaseApplicationList(caseApplication);
|
|
41
|
41
|
return getDataTable(list);
|
|
|
@@ -44,7 +44,7 @@ public class CaseApplicationController extends BaseController {
|
|
44
|
44
|
/**
|
|
45
|
45
|
* 新增立案数据
|
|
46
|
46
|
*/
|
|
47
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:add')")
|
|
|
47
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
|
|
48
|
48
|
@Log(title = "新增立案数据", businessType = BusinessType.INSERT)
|
|
49
|
49
|
@PostMapping("/addCaseApplication")
|
|
50
|
50
|
public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
|
|
|
@@ -57,11 +57,10 @@ public class CaseApplicationController extends BaseController {
|
|
57
|
57
|
/**
|
|
58
|
58
|
* 修改立案数据
|
|
59
|
59
|
*/
|
|
60
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:update')")
|
|
|
60
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
|
|
61
|
61
|
@Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
|
|
62
|
62
|
@PostMapping("/editCaseApplication")
|
|
63
|
|
- public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
|
|
64
|
|
- {
|
|
|
63
|
+ public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
|
65
|
64
|
|
|
66
|
65
|
caseApplication.setUpdateBy(getUsername());
|
|
67
|
66
|
return toAjax(caseApplicationService.editCaseApplication(caseApplication));
|
|
|
@@ -70,11 +69,10 @@ public class CaseApplicationController extends BaseController {
|
|
70
|
69
|
/**
|
|
71
|
70
|
* 提交立案申请
|
|
72
|
71
|
*/
|
|
73
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:submit')")
|
|
|
72
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:submit')")
|
|
74
|
73
|
@Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
|
|
75
|
74
|
@PostMapping("/submitCaseApplication")
|
|
76
|
|
- public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
|
|
77
|
|
- {
|
|
|
75
|
+ public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
|
78
|
76
|
|
|
79
|
77
|
return toAjax(caseApplicationService.submitCaseApplication(caseApplication));
|
|
80
|
78
|
}
|
|
|
@@ -82,11 +80,10 @@ public class CaseApplicationController extends BaseController {
|
|
82
|
80
|
/**
|
|
83
|
81
|
* 删除立案数据
|
|
84
|
82
|
*/
|
|
85
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:delete')")
|
|
|
83
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:delete')")
|
|
86
|
84
|
@Log(title = "删除立案数据", businessType = BusinessType.DELETE)
|
|
87
|
85
|
@PostMapping("/removeCaseApplication")
|
|
88
|
|
- public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
|
|
89
|
|
- {
|
|
|
86
|
+ public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
|
90
|
87
|
|
|
91
|
88
|
return toAjax(caseApplicationService.deletecaseApplicationByIds(caseApplication));
|
|
92
|
89
|
}
|
|
|
@@ -94,10 +91,9 @@ public class CaseApplicationController extends BaseController {
|
|
94
|
91
|
/**
|
|
95
|
92
|
* 查询立案信息
|
|
96
|
93
|
*/
|
|
97
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:detail')")
|
|
|
94
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
|
|
98
|
95
|
@PostMapping("/selectCaseApplication")
|
|
99
|
|
- public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
|
|
100
|
|
- {
|
|
|
96
|
+ public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
|
101
|
97
|
CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
|
|
102
|
98
|
return success(caseApplicationselect);
|
|
103
|
99
|
}
|
|
|
@@ -106,20 +102,19 @@ public class CaseApplicationController extends BaseController {
|
|
106
|
102
|
* 立案申请导入模板下载
|
|
107
|
103
|
*/
|
|
108
|
104
|
@PostMapping("/importTemplate")
|
|
109
|
|
- public void importTemplate(HttpServletResponse response)
|
|
110
|
|
- {
|
|
|
105
|
+ public void importTemplate(HttpServletResponse response) {
|
|
111
|
106
|
ExcelUtil<CaseApplication> util = new ExcelUtil<CaseApplication>(CaseApplication.class);
|
|
112
|
107
|
util.importTemplateExcel(response, "立案申请数据");
|
|
113
|
108
|
}
|
|
114
|
109
|
|
|
115
|
110
|
@Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
|
|
116
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:import')")
|
|
|
111
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:import')")
|
|
117
|
112
|
@PostMapping("/importData")
|
|
118
|
113
|
public AjaxResult importData(MultipartFile file) throws Exception {
|
|
119
|
114
|
ExcelUtil<CaseApplication> util = new ExcelUtil<CaseApplication>(CaseApplication.class);
|
|
120
|
115
|
List<CaseApplication> caseApplicationList = util.importExcel(file.getInputStream());
|
|
121
|
116
|
String operName = getUsername();
|
|
122
|
|
- String message = caseApplicationService.importCaseApplication(caseApplicationList,operName);
|
|
|
117
|
+ String message = caseApplicationService.importCaseApplication(caseApplicationList, operName);
|
|
123
|
118
|
return success(message);
|
|
124
|
119
|
}
|
|
125
|
120
|
|
|
|
@@ -129,30 +124,27 @@ public class CaseApplicationController extends BaseController {
|
|
129
|
124
|
@PreAuthorize("@ss.hasPermi('caseApplication:pendTral')")
|
|
130
|
125
|
@Log(title = "组庭", businessType = BusinessType.UPDATE)
|
|
131
|
126
|
@PostMapping("/pendTral")
|
|
132
|
|
- public AjaxResult pendTral(@Validated @RequestBody CaseApplication caseApplication)
|
|
133
|
|
- {
|
|
|
127
|
+ public AjaxResult pendTral(@Validated @RequestBody CaseApplication caseApplication) {
|
|
134
|
128
|
return toAjax(caseApplicationService.pendTral(caseApplication));
|
|
135
|
129
|
}
|
|
136
|
130
|
|
|
137
|
131
|
/**
|
|
138
|
132
|
* 组庭审核
|
|
139
|
133
|
*/
|
|
140
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:checkgroup')")
|
|
|
134
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
|
|
141
|
135
|
@Log(title = "组庭审核", businessType = BusinessType.UPDATE)
|
|
142
|
136
|
@PostMapping("/pendTralCheck")
|
|
143
|
|
- public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication)
|
|
144
|
|
- {
|
|
|
137
|
+ public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
|
|
145
|
138
|
return toAjax(caseApplicationService.pendTralCheck(caseApplication));
|
|
146
|
139
|
}
|
|
147
|
140
|
|
|
148
|
141
|
/**
|
|
149
|
142
|
* 组庭确认
|
|
150
|
143
|
*/
|
|
151
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:confirmgroup')")
|
|
|
144
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:confirmgroup')")
|
|
152
|
145
|
@Log(title = "组庭确认", businessType = BusinessType.UPDATE)
|
|
153
|
146
|
@PostMapping("/pendTralSure")
|
|
154
|
|
- public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication)
|
|
155
|
|
- {
|
|
|
147
|
+ public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication) {
|
|
156
|
148
|
return toAjax(caseApplicationService.pendTralSure(caseApplication));
|
|
157
|
149
|
}
|
|
158
|
150
|
|
|
|
@@ -162,8 +154,7 @@ public class CaseApplicationController extends BaseController {
|
|
162
|
154
|
@PreAuthorize("@ss.hasPermi('caseApplication:verificationArbitrateRecord')")
|
|
163
|
155
|
@Log(title = "核验裁决书", businessType = BusinessType.UPDATE)
|
|
164
|
156
|
@PostMapping("/verificationArbitrateRecord")
|
|
165
|
|
- public AjaxResult verificationArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication)
|
|
166
|
|
- {
|
|
|
157
|
+ public AjaxResult verificationArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
|
|
167
|
158
|
return toAjax(caseApplicationService.verificationArbitrateRecord(caseApplication));
|
|
168
|
159
|
}
|
|
169
|
160
|
|
|
|
@@ -173,32 +164,28 @@ public class CaseApplicationController extends BaseController {
|
|
173
|
164
|
@PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
|
|
174
|
165
|
@Log(title = "审核裁决书", businessType = BusinessType.UPDATE)
|
|
175
|
166
|
@PostMapping("/checkArbitrateRecord")
|
|
176
|
|
- public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication)
|
|
177
|
|
- {
|
|
|
167
|
+ public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
|
|
178
|
168
|
return toAjax(caseApplicationService.checkArbitrateRecord(caseApplication));
|
|
179
|
169
|
}
|
|
180
|
170
|
|
|
181
|
171
|
|
|
182
|
|
-
|
|
183
|
172
|
/**
|
|
184
|
173
|
* 是否指派仲裁员
|
|
185
|
174
|
*/
|
|
186
|
175
|
@PreAuthorize("@ss.hasPermi('caseApplication:pendingAppointArbotrar')")
|
|
187
|
176
|
@Log(title = "是否指派仲裁员", businessType = BusinessType.UPDATE)
|
|
188
|
177
|
@PostMapping("/pendingAppointArbotrar")
|
|
189
|
|
- public AjaxResult pendingAppointArbotrar(@Validated @RequestBody CaseApplication caseApplication)
|
|
190
|
|
- {
|
|
|
178
|
+ public AjaxResult pendingAppointArbotrar(@Validated @RequestBody CaseApplication caseApplication) {
|
|
191
|
179
|
return toAjax(caseApplicationService.pendingAppointArbotrar(caseApplication));
|
|
192
|
180
|
}
|
|
193
|
181
|
|
|
194
|
182
|
/**
|
|
195
|
183
|
* 提交立案审查
|
|
196
|
184
|
*/
|
|
197
|
|
- @PreAuthorize("@ss.hasPermi('caseManagement:check')")
|
|
|
185
|
+ @PreAuthorize("@ss.hasPermi('caseManagement:list:check')")
|
|
198
|
186
|
@Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
|
|
199
|
187
|
@PostMapping("/submitCaseApplicationCheck")
|
|
200
|
|
- public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication)
|
|
201
|
|
- {
|
|
|
188
|
+ public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication) {
|
|
202
|
189
|
|
|
203
|
190
|
return toAjax(caseApplicationService.submitCaseApplicationCheck(caseApplication));
|
|
204
|
191
|
}
|
|
|
@@ -206,22 +193,20 @@ public class CaseApplicationController extends BaseController {
|
|
206
|
193
|
/**
|
|
207
|
194
|
* 确认缴费查询立案信息
|
|
208
|
195
|
*/
|
|
|
196
|
+ @PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
|
|
209
|
197
|
@PostMapping("/selectCaseApplicationConfirm")
|
|
210
|
|
- public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication)
|
|
211
|
|
- {
|
|
|
198
|
+ public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication) {
|
|
212
|
199
|
CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);
|
|
213
|
200
|
return success(caseApplicationselect);
|
|
214
|
201
|
}
|
|
215
|
202
|
|
|
216
|
203
|
|
|
217
|
|
-
|
|
218
|
204
|
/**
|
|
219
|
205
|
* 发送房间号短信
|
|
220
|
206
|
*/
|
|
221
|
207
|
@Anonymous
|
|
222
|
208
|
@PostMapping("/sendRoomNoMessage")
|
|
223
|
|
- public AjaxResult sendRoomNoMessage(@Validated @RequestBody SendRoomNoMessageVO messageVO)
|
|
224
|
|
- {
|
|
|
209
|
+ public AjaxResult sendRoomNoMessage(@Validated @RequestBody SendRoomNoMessageVO messageVO) {
|
|
225
|
210
|
String result = caseApplicationService.sendRoomNoMessage(messageVO);
|
|
226
|
211
|
return success(result);
|
|
227
|
212
|
}
|