SpringBoot+Vue实现精准扶贫系统
1.需求描述:(包含论文)
(1)系统管理员,乡镇领导,贫困户三个用户共用一个登陆页面,各自有不同的权限。系统根据用户的不同权限执行不同的操作。
(2)系统管理员可以对贫困户的信息进行增删改查,也可对乡镇领导的信息进行增删改查。
(3)乡镇领导可以对贫困户人员进行管理,以及对平困户进行设置用户权限,其中还包括对贫困户的姓名,编号,家庭住址,是否贫困户,贫困补贴等相关信息进行操作。
(4)系统管理员,乡镇领导,贫困户均可修改自己的密码。
(5)贫困户可以登录自己账号,对自己的贫困补贴,家庭人均月收入,家庭人口数量进行查询,纠正留言等等。
2.技术架构
前后端分离
java+springboot+mysql+mybatis
Vue
3.部分代码展示
package com.ruoyi.web.controller.system;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.Apply;
import com.ruoyi.system.service.IApplyService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
-
贫困户申请Controller
-
@author ruoyi
-
@date 2021-04-18
*/
@RestController
@RequestMapping("/system/apply")
public class ApplyController extends BaseController
{
@Autowired
private IApplyService applyService;/**
- 查询贫困户申请列表
*/
@PreAuthorize("@ss.hasPermi(‘system:apply:list’)")
@GetMapping("/list")
public TableDataInfo list(Apply apply)
{
startPage();
List list = applyService.selectApplyList(apply);
return getDataTable(list);
}
/**
- 导出贫困户申请列表
*/
@PreAuthorize("@ss.hasPermi(‘system:apply:export’)")
@Log(title = “贫困户申请”, businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(Apply apply)
{
List list = applyService.selectApplyList(apply);
ExcelUtil util = new ExcelUtil(Apply.class);
return util.exportExcel(list, “apply”);
}
/**
- 获取贫困户申请详细信息
*/
@PreAuthorize("@ss.hasPermi(‘system:apply:query’)")
@GetMapping(value = “/{id}”)
public AjaxResult getInfo(@PathVariable(“id”) Long id)
{
return AjaxResult.success(applyService.selectApplyById(id));
}
/**
- 新增贫困户申请
*/
@PreAuthorize("@ss.hasPermi(‘system:apply:add’)")
@Log(title = “贫困户申请”, businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Apply apply)
{
return toAjax(applyService.insertApply(apply));
}
/**
- 修改贫困户申请
*/
@PreAuthorize("@ss.hasPermi(‘system:apply:edit’)")
@Log(title = “贫困户申请”, businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Apply apply)
{
return toAjax(applyService.updateApply(apply));
}
@Log(title = “贫困户申请”, businessType = BusinessType.UPDATE)
@PostMapping(“audt”)
public AjaxResult audt(@RequestBody Apply apply)
{
apply.setStatus(“已审核”);
return toAjax(applyService.updateApply(apply));
}/**
- 删除贫困户申请
*/
@PreAuthorize("@ss.hasPermi(‘system:apply:remove’)")
@Log(title = “贫困户申请”, businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(applyService.deleteApplyByIds(ids));
}
}
4.系统演示地址:
个人网站:http://xiaocaoshare.com/
链接:https://pan.baidu.com/s/1GmpR5DTVbGmUuyR2wQ5o6A
提取码:pogq
- 查询贫困户申请列表