|
@@ -23,18 +23,16 @@ import java.util.List;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/system/records")
|
|
|
-public class MeetingRecordsController extends BaseController
|
|
|
-{
|
|
|
+public class MeetingRecordsController extends BaseController {
|
|
|
@Autowired
|
|
|
private IMeetingRecordsService meetingRecordsService;
|
|
|
|
|
|
-/**
|
|
|
- * 查询会议记录列表
|
|
|
- */
|
|
|
-@PreAuthorize("@ss.hasPermi('system:records:list')")
|
|
|
-@GetMapping("/list")
|
|
|
- public TableDataInfo list(MeetingRecords meetingRecords)
|
|
|
- {
|
|
|
+ /**
|
|
|
+ * 查询会议记录列表
|
|
|
+ */
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:records:list')")
|
|
|
+ @GetMapping("/list")
|
|
|
+ public TableDataInfo list(MeetingRecords meetingRecords) {
|
|
|
startPage();
|
|
|
List<MeetingRecords> list = meetingRecordsService.selectMeetingRecordsList(meetingRecords);
|
|
|
return getDataTable(list);
|
|
@@ -46,8 +44,7 @@ public class MeetingRecordsController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('system:records:export')")
|
|
|
@Log(title = "会议记录", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, MeetingRecords meetingRecords)
|
|
|
- {
|
|
|
+ public void export(HttpServletResponse response, MeetingRecords meetingRecords) {
|
|
|
List<MeetingRecords> list = meetingRecordsService.selectMeetingRecordsList(meetingRecords);
|
|
|
ExcelUtil<MeetingRecords> util = new ExcelUtil<MeetingRecords>(MeetingRecords.class);
|
|
|
util.exportExcel(response, list, "会议记录数据");
|
|
@@ -58,30 +55,27 @@ public class MeetingRecordsController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:records:query')")
|
|
|
@GetMapping(value = "/{recordId}")
|
|
|
- public AjaxResult getInfo(@PathVariable("recordId") Long recordId)
|
|
|
- {
|
|
|
+ public AjaxResult getInfo(@PathVariable("recordId") Long recordId) {
|
|
|
return success(meetingRecordsService.selectMeetingRecordsByRecordId(recordId));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新增会议记录
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:records:add')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('system:records:add')")
|
|
|
@Log(title = "会议记录", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
- public AjaxResult add(@RequestBody MeetingRecords meetingRecords)
|
|
|
- {
|
|
|
+ public AjaxResult add(@RequestBody MeetingRecords meetingRecords) {
|
|
|
return toAjax(meetingRecordsService.insertMeetingRecords(meetingRecords));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 修改会议记录
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:records:edit')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('system:records:edit')")
|
|
|
@Log(title = "会议记录", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/put")
|
|
|
- public AjaxResult edit(@RequestBody MeetingRecords meetingRecords)
|
|
|
- {
|
|
|
+ public AjaxResult edit(@RequestBody MeetingRecords meetingRecords) {
|
|
|
return toAjax(meetingRecordsService.updateMeetingRecords(meetingRecords));
|
|
|
}
|
|
|
|
|
@@ -91,8 +85,7 @@ public class MeetingRecordsController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('system:records:remove')")
|
|
|
@Log(title = "会议记录", businessType = BusinessType.DELETE)
|
|
|
@GetMapping("/delete/{recordIds}")
|
|
|
- public AjaxResult remove(@PathVariable Long[] recordIds)
|
|
|
- {
|
|
|
+ public AjaxResult remove(@PathVariable Long[] recordIds) {
|
|
|
return toAjax(meetingRecordsService.deleteMeetingRecordsByRecordIds(recordIds));
|
|
|
}
|
|
|
}
|