现今的世界是一个信息跨越式发展的进步社会,在多种的多样的信息之间进行着交流与传递,近年来随着互联网网络的快速发展,信息传播速度越来越快,谣言舆情问题逐渐严重,成为影响社会稳定和民间矛盾的重要因素,因此其也逐渐成为社会和政府的重点关注问题之一。如何有效从根本上解决舆情问题成为政府机关迫切需要解决的问题。作者认为对于群众进行法律知识普及是解决此问题的一条重要途径,其能够强化群众法律意识,不信谣不传谣,有效抵制谣言传播。 针对的法律风险防控实施情况,设计并开发了一套法律风险管理防控系统,为群众进行法律知识普及。后台管理系统则是面向系统管理人员的系统管理子系统。后台服务子系统则是系统业务逻辑处理工作平台,面向各种前端系统提供基础数据和逻辑操作。本文利用软件工程思想对于整个石狮市法律风险管理防控系统进行全方位的分析、设计与实现等工作,并且对于开发过程细节内容进行了详细的阐述,包括可行性分析、需求分析、总体设计、技术架构、物理部署架构、代码实现等重点内容。
本文通过对国内外咨询业的现状和法律咨询的需求分析,探讨了利用社会网为大家提供法律咨询的可行性,针对法律咨询中常见的服务需求,提出了基于java的法律咨询系统研究,完成了该系统的应用方案设计与实现。
本文的研究成果为我国人民法律咨询的发展提供了新的模式与应用解决方案,具有成本低、效率高、互动性强等优点,满足了广大在群众的多种需求,具有一定的应用价值。
【536】基于ssm法律风险防控系统源码和论文
关键词:Java编程;SSM框架;B\S模式;MySQL数据库;法律风险管理
Abstract
Today's world is a progressive society with great leap forward development of information, which exchanges and transmits a variety of information. In recent years, with the rapid development of Internet, the speed of information dissemination is faster and faster, and the problem of rumor and public opinion is becoming more and more serious, which has become an important factor affecting social stability and civil contradictions. Therefore, it has gradually become one of the key concerns of the society and the government. How to effectively and fundamentally solve the problem of public opinion has become an urgent problem for government organs. The author believes that the popularization of legal knowledge for the masses is an important way to solve this problem. It can strengthen the masses' legal awareness, not believe rumors, not spread rumors, and effectively resist the spread of rumors. According to the implementation of public legal services, a set of public legal service platform has been designed and developed to popularize legal knowledge for the masses. Background management system is a system management subsystem for system managers. The background service subsystem is the system business logic processing platform, which provides basic data and logical operation for various front-end systems. Using the idea of software engineering, this paper makes a comprehensive analysis, design and implementation of the whole Shishi public legal service platform, and expounds the details of the development process in detail, including feasibility analysis, demand analysis, overall design, technical framework, physical deployment architecture, code implementation and other key contents.
Through the analysis of the current situation of the consulting industry at home and abroad and the demand for legal consultation, this paper discusses the feasibility of using the social network to provide legal consultation for everyone. According to the common service requirements in legal consultation, this paper puts forward the research on the legal consultation system based on Java, and completes the application scheme design and implementation of the system.
The research results of this paper provide a new model and application solution for the development of people's legal consultation in China. It has the advantages of low cost, high efficiency and strong interaction. It meets the various needs of the masses and has a certain application value.
Keywords: Java programming; SSM framework; B \ S mode; Mysql database; Legal risk management
































package com.module.controller.pc;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.module.controller.base.BaseController;
import com.module.mapper.*;
import com.module.pojo.*;
import com.module.util.ResultUtil;
import com.module.util.TreeList;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 前端控制器
*/
@Controller
public class FrontController extends BaseController {
@Autowired
InformMapper informMapper;
@Autowired
UserinfoMapper userinfoMapper;
@Autowired
WenjuanMapper wenjuanMapper;
@Autowired
WenjuanjieguoMapper wenjuanjieguoMapper;
@Autowired
SorttypeMapper sorttypeMapper;
@Autowired
ArticleMapper articleMapper;
@Autowired
LinkurlMapper linkurlMapper;
@Autowired
LiuyanMapper liuyanMapper;
/**
* 留言显示页面
*
* @param model
* @return
*/
@RequestMapping("pc/liuyan")
public String liuyan(Model model) {
Page<Object> pageInfo = PageHelper.startPage(1, 100, true);
pageInfo.setOrderBy(" id desc ");
List<Liuyan> liuyanList = liuyanMapper.selectAll(null);
TreeList tree = new TreeList(liuyanList);
List<Liuyan> listTree = tree.buildTree();
model.addAttribute("liuyanList", listTree);
return "pc/liuyan";
}
/**
* 留言提交页面
*
* @param liuyan
* @return
*/
@RequestMapping("pc/liuyanSubmit")
public String liuyanSubmit(Liuyan liuyan) {
liuyan.setCreatetime(new Date());
liuyanMapper.insertLiuyan(liuyan);
if (null == liuyan.getIntro()) {
return "redirect:liuyan";
} else {
return "redirect:articleDetail?id=" + liuyan.getIntro();
}
}
/**
* 跳转到问卷管理页面
*
* @param model
* @return
*/
@RequestMapping("pc/wenjuan")
public String wenjuan(Model model) {
List<Wenjuan> wenjuanList = wenjuanMapper.selectAll(null);
model.addAttribute("wenjuanList", wenjuanList);
return "pc/wenjuan";
}
/**
* 关于我们
*
* @param model
* @return
*/
@RequestMapping("pc/about")
public String about(Model model) {
return "pc/about";
}
@RequestMapping("pc/")
public String index(Model model) {
return "pc/index";
}
@RequestMapping("/")
public String index1(Model model) {
return "pc/index";
}
@RequestMapping("pc/articleList")
public String indexType(Model model, Integer p, Integer limit, String keyword, String name, String orderStr, String type, HttpSession session) {
limit = 6;
if (null == p) { //默认第一页
p = 1;
}
if (null == limit) { //默认每页10条
limit = 9;
}
Map map = new HashMap();
if (StringUtils.isNotEmpty(type)) {
map.put("type", type);
model.addAttribute("type", type);
}
if (StringUtils.isNotEmpty(keyword)) {
map.put("keyword", keyword);
map.put("type", null);
model.addAttribute("keyword", keyword);
}
Page<Object> pageInfo = PageHelper.startPage(p, limit, true);
pageInfo.setOrderBy(" id desc ");
List<Article> beanDataList = articleMapper.selectAll(map);
model.addAttribute("beanDataList", beanDataList);
setPageParams(model, "pc/articleList", pageInfo); //绑定分页参数
return "pc/articleList";
}
/**
* 系统首页
*
* @param model
* @return
*/
@RequestMapping("pc/index")
public String index(Model model, Integer p, Integer limit, String keyword, String title, String author, String orderStr, String type, HttpSession session) {
limit = 6;
if (null == p) { //默认第一页
p = 1;
}
if (null == limit) { //默认每页10条
limit = 9;
}
Map map = new HashMap();
if (StringUtils.isNotEmpty(keyword)) {
map.put("keyword", keyword);
model.addAttribute("keyword", keyword);
}
if (StringUtils.isNotEmpty(title)) {
map.put("title", title);
model.addAttribute("title", title);
}
if (StringUtils.isNotEmpty(author)) {
map.put("author", author);
model.addAttribute("author", author);
}
if (StringUtils.isNotEmpty(type)) {
map.put("type", type);
model.addAttribute("type", type);
}
Page<Object> pageInfo = PageHelper.startPage(p, limit, true);
if (StringUtils.isNotEmpty(orderStr)) {
pageInfo.setOrderBy(orderStr);
} else {
pageInfo.setOrderBy(" id desc ");
}
List<Article> beanDataList = articleMapper.selectAll(map);
model.addAttribute("beanDataList", beanDataList);
setPageParams(model, "pc/index", pageInfo); //绑定分页参数
List<Sorttype> sorttypeList = sorttypeMapper.selectAll(null);
model.addAttribute("sorttypeList", sorttypeList);
setLinkurlContent(session); //查询友情链接
return "pc/index";
}
@RequestMapping("pc/articleIndex")
public String articleIndex(Model model, Integer p, Integer limit, String keyword, String title, String author, String orderStr, String type, HttpSession session) {
limit = 6;
if (null == p) { //默认第一页
p = 1;
}
if (null == limit) { //默认每页10条
limit = 9;
}
Map map = new HashMap();
if (StringUtils.isNotEmpty(keyword)) {
map.put("keyword", keyword);
model.addAttribute("keyword", keyword);
}
if (StringUtils.isNotEmpty(title)) {
map.put("title", title);
model.addAttribute("title", title);
}
if (StringUtils.isNotEmpty(author)) {
map.put("author", author);
model.addAttribute("author", author);
}
if (StringUtils.isNotEmpty(type)) {
map.put("type", type);
model.addAttribute("type", type);
}
Page<Object> pageInfo = PageHelper.startPage(p, limit, true);
if (StringUtils.isNotEmpty(orderStr)) {
pageInfo.setOrderBy(orderStr);
} else {
pageInfo.setOrderBy(" id desc ");
}
List<Article> beanDataList = articleMapper.selectAll(map);
model.addAttribute("beanDataList", beanDataList);
setPageParams(model, "pc/index", pageInfo); //绑定分页参数
List<Sorttype> sorttypeList = sorttypeMapper.selectAll(null);
model.addAttribute("sorttypeList", sorttypeList);
setLinkurlContent(session); //查询友情链接
return "pc/articleIndex";
}
/**
* 将友情链接放入session中
*
* @param session
*/
public void setLinkurlContent(HttpSession session) {
List<Linkurl> linkurlList = linkurlMapper.selectAll(null);
session.setAttribute("linkurlList", linkurlList);
}
/**
* 详情
*
* @param id
* @param model
* @return
*/
@RequestMapping("pc/articleDetail")
public String articleDetail(Integer id, Model model) {
Article beanData = articleMapper.selectArticleById(id);
model.addAttribute("beanData", beanData);
List<Wenjuan> wenjuanList = wenjuanMapper.selectAll(null);
model.addAttribute("wenjuanList", wenjuanList);
Page<Object> pageInfo = PageHelper.startPage(1, 1000, true);
pageInfo.setOrderBy(" id desc ");
Map map = new HashMap();
map.put("artid", id);
List<Liuyan> liuyanList = liuyanMapper.selectAll(map);
System.out.println("liuyanList.size() = " + liuyanList.size());
TreeList tree = new TreeList(liuyanList);
List<Liuyan> listTree = tree.buildTree();
System.out.println("liuyanList.size() = " + listTree.size());
model.addAttribute("liuyanList", listTree);
return "pc/articleDetail";
}
@RequestMapping("pc/submitWenjuan")
public String submitWenjuan(Integer id, String username, Model model, HttpServletRequest request) {
Wenjuanjieguo j = new Wenjuanjieguo();
j.setA1(request.getParameter("xx1"));
j.setA2(request.getParameter("xx2"));
j.setA3(request.getParameter("xx3"));
j.setA4(request.getParameter("xx4"));
j.setA5(request.getParameter("xx5"));
j.setA6(request.getParameter("xx6"));
j.setA7(request.getParameter("xx7"));
j.setA8(request.getParameter("xx8"));
j.setA9(request.getParameter("xx9"));
j.setA10(request.getParameter("xx10"));
j.setUsername(username);
j.setCreatetime(new Date());
System.out.println("j = " + j);
List<Wenjuan> wenjuanList = wenjuanMapper.selectAll(null);
wenjuanjieguoMapper.insertWenjuanjieguo(j);
return "pc/submitSuccess";
}
@RequestMapping("pc/informIndex")
public String informIndex(Model model, Integer p, Integer limit, String keyword) {
limit = 10;
if (null == p) { //默认第一页
p = 1;
}
if (null == limit) { //默认每页10条
limit = 10;
}
Map map = new HashMap();
if (StringUtils.isNotEmpty(keyword)) {
map.put("keyword", keyword);
}
Page<Object> pageInfo = PageHelper.startPage(p, limit, true);
List<Inform> beanDataList = informMapper.selectAll(map);
model.addAttribute("beanDataList", beanDataList);
setPageParams(model, "pc/informIndex", pageInfo); //绑定分页参数
return "pc/informIndex";
}
/**
* 获取验证码
*
* @param model
* @return
*/
@RequestMapping("pc/code")
public String code(Model model) {
return "pc/code";
}
/**
* 跳转登陆页
*
* @param model
* @return
*/
@RequestMapping("pc/login")
public String login(Model model) {
return "pc/login";
}
/**
* 退出登录
*
* @param request
* @param id
* @param model
* @return
*/
@RequestMapping("pc/loginOut")
public String loginOut(HttpServletRequest request, Integer id, Model model) {
HttpSession session = request.getSession();
session.removeAttribute("loginUserinfo");
return "pc/login";
}
/**
* 登录提交
*
* @param username
* @param password
* @param vercode
* @param request
* @return
*/
@ResponseBody
@RequestMapping("pc/loginSubmit")
public ResultUtil loginSubmit(String username, String password, String vercode, HttpServletRequest request) {
HttpSession session = request.getSession();
if (StringUtils.isBlank(vercode)) {
return ResultUtil.error("验证码不能为空");
}
String randCode = session.getAttribute("randCode").toString();
if (!randCode.equals(vercode)) {
return ResultUtil.error("验证码不正确");
}
if (StringUtils.isBlank(username)) {
return ResultUtil.error("用户名不能为空");
}
if (StringUtils.isBlank(password)) {
return ResultUtil.error("登录密码不能为空");
}
Map map = new HashMap();
map.put("name", username);
List<Userinfo> beanList = userinfoMapper.selectAll(map);
if (beanList.size() > 0) {
Userinfo userinfo = beanList.get(0);
if (userinfo.getPassword().equals(password)) {
session.setAttribute("loginUserinfo", userinfo);
session.setAttribute("loginUserinfoID", userinfo.getId());
return ResultUtil.ok("登录成功");
} else {
return ResultUtil.error("用户名或者密码错误");
}
} else {
return ResultUtil.error("用户名或者密码错误");
}
}
@RequestMapping("pc/register")
public String reg() {
return "pc/register";
}
@ResponseBody
@RequestMapping("pc/registerSubmit")
public ResultUtil regSubmit(HttpServletRequest request, Userinfo userinfo, String vercode) {
HttpSession session = request.getSession();
if (StringUtils.isBlank(vercode)) {
return ResultUtil.error("验证码不能为空");
}
String randCode = session.getAttribute("randCode").toString();
if (!randCode.equals(vercode)) {
return ResultUtil.error("验证码不正确");
}
if (StringUtils.isBlank(userinfo.getName())) {
return ResultUtil.error("姓名不能为空");
}
if (StringUtils.isBlank(userinfo.getPassword())) {
return ResultUtil.error("登录密码不能为空");
}
userinfo.setCreatetime(new Date());
userinfoMapper.insertUserinfo(userinfo);
return ResultUtil.ok("注册成功");
}
/**
* 用户个人中心
*
* @param model
* @param session
* @return
*/
@RequestMapping("pc/userinfoCenter")
public String userinfoCenter(Model model, HttpSession session) {
int userInfoID = getLoginUserInfoID(session);
Userinfo userinfo = userinfoMapper.selectUserinfoById(userInfoID);
model.addAttribute("userinfo", userinfo);
return "pc/userinfoCenter";
}
/**
* 更新个人信息
*/
@RequestMapping("pc/updateUserinfo")
@ResponseBody
public ResultUtil updateUserinfo(Userinfo userinfo, HttpSession session) {
Date nowTime = new Date();
userinfo.setCreatetime(nowTime);
try {
userinfoMapper.updateUserinfo(userinfo);
userinfo = getLoginUserInfo(session);
session.setAttribute("loginUserinfo", userinfo);
return ResultUtil.ok("修改用户信息成功");
} catch (Exception e) {
return ResultUtil.error("修改用户信息出错,稍后再试!");
}
}
/**
* 获取前端登录用户ID
*
* @param session
* @return
*/
public int getLoginUserInfoID(HttpSession session) {
int userID = (int) session.getAttribute("loginUserinfoID");
return userID;
}
public Userinfo getLoginUserInfo(HttpSession session) {
int userID = (int) session.getAttribute("loginUserinfoID");
Userinfo userinfo = userinfoMapper.selectUserinfoById(userID);
return userinfo;
}
@RequestMapping("pc/lawyer")
public String lawyer(Model model, Integer p, Integer limit, HttpSession session) {
limit = 6;
if (null == p) { //默认第一页
p = 1;
}
if (null == limit) { //默认每页10条
limit = 9;
}
Map map = new HashMap();
Page<Object> pageInfo = PageHelper.startPage(p, limit, true);
List<Userinfo> userinfos = userinfoMapper.selectAll(map);
model.addAttribute("userinfos", userinfos);
setPageParams(model, "pc/lawyer", pageInfo); //绑定分页参数
setLinkurlContent(session); //查询友情链接
return "pc/lawyer";
}
@RequestMapping("pc/userinfo")
public String userinfo(Model model,Integer id) {
Userinfo userinfo = userinfoMapper.selectUserinfoById(id);
model.addAttribute("userinfo", userinfo);
Map map = new HashMap();
map.put("type", "个人相册");
map.put("author",userinfo.getName());
List<Article> beanDataList = articleMapper.selectAll(map);
model.addAttribute("beanDataList", beanDataList);
return "pc/userinfo";
}
}
本文探讨了在信息快速传播背景下,利用Java和SSM框架开发的法律风险管理防控系统,以提升公众法律意识,有效解决舆情问题。系统包括用户界面、后台管理与服务子系统,详述了系统分析、设计与实现过程。
755

被折叠的 条评论
为什么被折叠?



