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