<>基于Java的疫情管理系统
下面是效果图
其他功能
系统管理
系统工具:邮件短信发送,二维码生成
组件管理
日志管理
疫情管理
等等…
代码片段
package com.ssgl.controller; import com.alibaba.fastjson.JSON; import com.ssgl.
entity.Area; import com.ssgl.entity.Building; import com.ssgl.service.
AreaService; import com.ssgl.service.BuildingService; import com.ssgl.vo.
JsonBody; import com.ssgl.vo.Page; import lombok.extern.slf4j.Slf4j; import org.
springframework.beans.factory.annotation.Autowired; import org.springframework.
stereotype.Controller; import org.springframework.web.bind.annotation.
RequestMapping; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam; import org.
springframework.web.bind.annotation.ResponseBody; import java.util.HashMap;
import java.util.List; import java.util.Map; import java.util.logging.Handler;
/** * @Author YangZhi * @Date 2021/4/23 23:30 * @Version 1.0 */ @Controller
@Slf4j @RequestMapping("/area") public class AreaController extends
BaseController{ @Autowired private AreaService areaService; /** * 进入地区管理页面 *
@return */ @RequestMapping(value = "/jsp",method = {RequestMethod.GET}) public
StringtoJsp(){ return backView( "rygl/area","进入地区管理页面" ); } /** * 地区管理分页查询 *
@param page * @param area * @return */ @RequestMapping(value = "/findAllByPage",
method= {RequestMethod.GET,RequestMethod.POST}) @ResponseBody public Page<Area>
findAllByPage(Page<Area> page, Area area){ page = areaService.findAllByPage(
page,area ); log.info( "地区管理分页查询:{}", JSON.toJSONString(page) ); return page; }
/** * 添加或者修改 * @param area * @return */ @RequestMapping("/addOrUpdate")
@ResponseBody public JsonBody addOrUpdate(Area area){ if(area.getId()!=null){
//修改操作 areaService.update( area ); }else { //添加操作 areaService.add( area ); }
return success(); } /** * 根据id删除 * @param id * @return */ @RequestMapping(
"/deleteById") @ResponseBody public JsonBody deleteById(@RequestParam("id")
Long id){ areaService.deleteById( id ); log.info( "根据id:{}删除",id ); return
success(); } /** * 根据id列表批量删除 * @param ids * @return */ @RequestMapping(
"/deleteByIds") @ResponseBody public JsonBody deleteByIds(@RequestParam("ids")
List<Long> ids){ areaService.deleteByIds( ids ); log.info( "根据id列表:{}批量删除",ids )
; return success(); } /** * 地区管理echerts查询 * @param areaname * @param areatype *
@return */ @RequestMapping(value = "/findAllToEcherts",method = {RequestMethod.
GET,RequestMethod.POST}) @ResponseBody public List<Area> findAllToEcherts(
String areaname,String areatype){ Map map = new HashMap<>(); map.put("areaname",
areaname); map.put("areatype",areatype); List<Area> lists = areaService.
findAllEcherts(map); log.info( "地区管理echerts查询:{}", JSON.toJSONString(lists) );
return lists; } }
源码+V:ttff227
QQ:1319018129
制作不易,白嫖党就不要伸手了