|
@@ -3,8 +3,8 @@ package com.ruoyi.web.controller.branch;
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
-import com.ruoyi.branch.domain.TBranchMeetingMgr;
|
|
|
-import com.ruoyi.branch.service.ITBranchMeetingMgrService;
|
|
|
+import com.ruoyi.branch.domain.TBranchMeeting;
|
|
|
+import com.ruoyi.branch.service.ITBranchMeetingService;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -30,20 +30,20 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/branch/meeting")
|
|
|
-public class TBranchMeetingMgrController extends BaseController
|
|
|
+public class TBranchMeetingController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
- private ITBranchMeetingMgrService tBranchMeetingMgrService;
|
|
|
+ private ITBranchMeetingService tBranchMeetingMgrService;
|
|
|
|
|
|
/**
|
|
|
* 查询支部会议管理列表
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('branch:meeting:list')")
|
|
|
@GetMapping("/list")
|
|
|
- public TableDataInfo list(TBranchMeetingMgr tBranchMeetingMgr)
|
|
|
+ public TableDataInfo list(TBranchMeeting tBranchMeeting)
|
|
|
{
|
|
|
startPage();
|
|
|
- List<TBranchMeetingMgr> list = tBranchMeetingMgrService.selectTBranchMeetingMgrList(tBranchMeetingMgr);
|
|
|
+ List<TBranchMeeting> list = tBranchMeetingMgrService.selectTBranchMeetingMgrList(tBranchMeeting);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
@@ -53,10 +53,10 @@ public class TBranchMeetingMgrController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('branch:meeting:export')")
|
|
|
@Log(title = "支部会议管理", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, TBranchMeetingMgr tBranchMeetingMgr)
|
|
|
+ public void export(HttpServletResponse response, TBranchMeeting tBranchMeeting)
|
|
|
{
|
|
|
- List<TBranchMeetingMgr> list = tBranchMeetingMgrService.selectTBranchMeetingMgrList(tBranchMeetingMgr);
|
|
|
- ExcelUtil<TBranchMeetingMgr> util = new ExcelUtil<TBranchMeetingMgr>(TBranchMeetingMgr.class);
|
|
|
+ List<TBranchMeeting> list = tBranchMeetingMgrService.selectTBranchMeetingMgrList(tBranchMeeting);
|
|
|
+ ExcelUtil<TBranchMeeting> util = new ExcelUtil<TBranchMeeting>(TBranchMeeting.class);
|
|
|
util.exportExcel(response, list, "支部会议管理数据");
|
|
|
}
|
|
|
|
|
@@ -76,9 +76,9 @@ public class TBranchMeetingMgrController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('branch:meeting:add')")
|
|
|
@Log(title = "支部会议管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
- public AjaxResult add(@RequestBody TBranchMeetingMgr tBranchMeetingMgr)
|
|
|
+ public AjaxResult add(@RequestBody TBranchMeeting tBranchMeeting)
|
|
|
{
|
|
|
- return toAjax(tBranchMeetingMgrService.insertTBranchMeetingMgr(tBranchMeetingMgr));
|
|
|
+ return toAjax(tBranchMeetingMgrService.insertTBranchMeetingMgr(tBranchMeeting));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -87,9 +87,9 @@ public class TBranchMeetingMgrController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('branch:meeting:edit')")
|
|
|
@Log(title = "支部会议管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
- public AjaxResult edit(@RequestBody TBranchMeetingMgr tBranchMeetingMgr)
|
|
|
+ public AjaxResult edit(@RequestBody TBranchMeeting tBranchMeeting)
|
|
|
{
|
|
|
- return toAjax(tBranchMeetingMgrService.updateTBranchMeetingMgr(tBranchMeetingMgr));
|
|
|
+ return toAjax(tBranchMeetingMgrService.updateTBranchMeetingMgr(tBranchMeeting));
|
|
|
}
|
|
|
|
|
|
/**
|