律师事务所管理系统-JAVA【毕业设计、快速开发、源码、开题报告】

   

功能介绍

根据律师事务所管理系统的功能需求,进行系统设计。

管理员包括主页、个人中心、客户管理、律师管理、主任管理、新闻公告管理、法律法规管理、案件信息管理、立案登记管理、案件受理管理、退案信息管理、结案信息管理、费用结算管理、意见评价管理、法律咨询管理、部门信息管理等;

客户包括主页、个人中心、新闻公告管理、法律法规管理、案件信息管理、立案登记管理、案件受理管理、结案信息管理、费用结算管理、意见评价管理、法律咨询管理等;

律师包括主页、个人中心、新闻公告管理、立案登记管理、案件受理管理、退案信息管理、结案信息管理等;

主任包括主页、个人中心、新闻公告管理、案件信息管理、立案登记管理、案件受理管理、退案信息管理、结案信息管理等;

部分功能模块代码

package com.controller;import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.format.annotation.DateTimeFormat;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;import com.entity.AnjianshouliEntity;
import com.entity.view.AnjianshouliView;import com.service.AnjianshouliService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;/*** 案件受理* 后端接口* @author * @email * @date 2022-05-16 16:28:07*/
@RestController
@RequestMapping("/anjianshouli")
public class AnjianshouliController {@Autowiredprivate AnjianshouliService anjianshouliService;/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,AnjianshouliEntity anjianshouli, HttpServletRequest request){String tableName = request.getSession().getAttribute("tableName").toString();if(tableName.equals("kehu")) {anjianshouli.setKehuzhanghao((String)request.getSession().getAttribute("username"));}if(tableName.equals("lvshi")) {anjianshouli.setLvshizhanghao((String)request.getSession().getAttribute("username"));}EntityWrapper<AnjianshouliEntity> ew = new EntityWrapper<AnjianshouliEntity>();PageUtils page = anjianshouliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, anjianshouli), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,AnjianshouliEntity anjianshouli, HttpServletRequest request){EntityWrapper<AnjianshouliEntity> ew = new EntityWrapper<AnjianshouliEntity>();PageUtils page = anjianshouliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, anjianshouli), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( AnjianshouliEntity anjianshouli){EntityWrapper<AnjianshouliEntity> ew = new EntityWrapper<AnjianshouliEntity>();ew.allEq(MPUtil.allEQMapPre( anjianshouli, "anjianshouli")); return R.ok().put("data", anjianshouliService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(AnjianshouliEntity anjianshouli){EntityWrapper< AnjianshouliEntity> ew = new EntityWrapper< AnjianshouliEntity>();ew.allEq(MPUtil.allEQMapPre( anjianshouli, "anjianshouli")); AnjianshouliView anjianshouliView =  anjianshouliService.selectView(ew);return R.ok("查询案件受理成功").put("data", anjianshouliView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){AnjianshouliEntity anjianshouli = anjianshouliService.selectById(id);return R.ok().put("data", anjianshouli);}/*** 前端详情*/@IgnoreAuth@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){AnjianshouliEntity anjianshouli = anjianshouliService.selectById(id);return R.ok().put("data", anjianshouli);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody AnjianshouliEntity anjianshouli, HttpServletRequest request){anjianshouli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(anjianshouli);anjianshouliService.insert(anjianshouli);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody AnjianshouliEntity anjianshouli, HttpServletRequest request){anjianshouli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(anjianshouli);anjianshouliService.insert(anjianshouli);return R.ok();}/*** 修改*/@RequestMapping("/update")@Transactionalpublic R update(@RequestBody AnjianshouliEntity anjianshouli, HttpServletRequest request){//ValidatorUtils.validateEntity(anjianshouli);anjianshouliService.updateById(anjianshouli);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){anjianshouliService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 提醒接口*/@RequestMapping("/remind/{columnName}/{type}")public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) {map.put("column", columnName);map.put("type", type);if(type.equals("2")) {SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");Calendar c = Calendar.getInstance();Date remindStartDate = null;Date remindEndDate = null;if(map.get("remindstart")!=null) {Integer remindStart = Integer.parseInt(map.get("remindstart").toString());c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart);remindStartDate = c.getTime();map.put("remindstart", sdf.format(remindStartDate));}if(map.get("remindend")!=null) {Integer remindEnd = Integer.parseInt(map.get("remindend").toString());c.setTime(new Date());c.add(Calendar.DAY_OF_MONTH,remindEnd);remindEndDate = c.getTime();map.put("remindend", sdf.format(remindEndDate));}}Wrapper<AnjianshouliEntity> wrapper = new EntityWrapper<AnjianshouliEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}String tableName = request.getSession().getAttribute("tableName").toString();if(tableName.equals("kehu")) {wrapper.eq("kehuzhanghao", (String)request.getSession().getAttribute("username"));}if(tableName.equals("lvshi")) {wrapper.eq("lvshizhanghao", (String)request.getSession().getAttribute("username"));}int count = anjianshouliService.selectCount(wrapper);return R.ok().put("count", count);}}
package com.service.impl;import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;import com.dao.AnjianshouliDao;
import com.entity.AnjianshouliEntity;
import com.service.AnjianshouliService;
import com.entity.vo.AnjianshouliVO;
import com.entity.view.AnjianshouliView;@Service("anjianshouliService")
public class AnjianshouliServiceImpl extends ServiceImpl<AnjianshouliDao, AnjianshouliEntity> implements AnjianshouliService {@Overridepublic PageUtils queryPage(Map<String, Object> params) {Page<AnjianshouliEntity> page = this.selectPage(new Query<AnjianshouliEntity>(params).getPage(),new EntityWrapper<AnjianshouliEntity>());return new PageUtils(page);}@Overridepublic PageUtils queryPage(Map<String, Object> params, Wrapper<AnjianshouliEntity> wrapper) {Page<AnjianshouliView> page =new Query<AnjianshouliView>(params).getPage();page.setRecords(baseMapper.selectListView(page,wrapper));PageUtils pageUtil = new PageUtils(page);return pageUtil;}@Overridepublic List<AnjianshouliVO> selectListVO(Wrapper<AnjianshouliEntity> wrapper) {return baseMapper.selectListVO(wrapper);}@Overridepublic AnjianshouliVO selectVO(Wrapper<AnjianshouliEntity> wrapper) {return baseMapper.selectVO(wrapper);}@Overridepublic List<AnjianshouliView> selectListView(Wrapper<AnjianshouliEntity> wrapper) {return baseMapper.selectListView(wrapper);}@Overridepublic AnjianshouliView selectView(Wrapper<AnjianshouliEntity> wrapper) {return baseMapper.selectView(wrapper);}}

论文目录

Published by

风君子

独自遨游何稽首 揭天掀地慰生平