SpringBoot+Vue实现精准扶贫系统

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
  • 3
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 8
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值