一、项目简述
功能:分为管理员及普通业主角色,业主信息,社区房 屋,维护管理,社区车辆,停车场管理,社区投诉,社区 缴费,社区业务信息维护等等功能。
二、项目运行
环境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)
项目技术: JSP +SpringBoot + MyBatis + html+ css + JavaScript + JQuery + Ajax + Fileupload + maven等等。
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
List<Afforest>list3 = afforestService.findMainAfforest(affname);
model.addAttribute("aflist", list3);
return "showafforest";
}
}
房间处理器:
/**
* @category 房间处理器
*
*/
@Controller
public class HouseController {
@Autowired
private HouseNumberService hService;
/**
* @category 通过传入参数展示相应的房屋信息
* @param type
* @param model
* @return
*/
@RequestMapping("/showhouse")
public String showhouse(@RequestParam ("type") String type,Model model) {
System.out.println(type);
HousenumberExample example=new HousenumberExample();
}
}
房间处理器:
/**
* @category 房间处理器
*
*/
@Controller
public class HouseController {
@Autowired
private HouseNumberService hService;
/**
* @category 通过传入参数展示相应的房屋信息
* @param type
* @param model
* @return
*/
@RequestMapping("/showhouse")
public String showhouse(@RequestParam ("type") String type,Model model) {
System.out.println(type);
HousenumberExample example=new HousenumberExample();
List<Housenumber> list=hService.selectByExample(example);
*/
@RequestMapping("/adornall")
public String adornAll(Model model) {
List<Adorn> list = adornService.findAll();
model.addAttribute("adornlist", list);
return "adorn";
}
/**
* 按类型删除
*/
@RequestMapping("/findbystate")
public String findByState(Model model, String state) {
List<Adorn> list = adornService.findByState(state);
model.addAttribute("adornlist", list);
return "adorn";
}
/**
* @category 跳转到更新房屋信息页面
* @param model
* @param homeid
* @return
*/
@RequestMapping("/updatehouse")
public String updatehouse(Model model,@RequestParam ("homeid") int homeid) {
Housenumber house=hService.selectByPrimaryKey(homeid);
model.addAttribute("house", house);
return "updatehouse";
/**
* @category 通过传入参数展示相应的房屋信息
* @param type
* @param model
* @return
*/
@RequestMapping("/showhouse")
public String showhouse(@RequestParam ("type") String type,Model model) {
System.out.println(type);
HousenumberExample example=new HousenumberExample();
List<Housenumber> list=hService.selectByExample(example);
List<Housenumber> list1=new ArrayList<Housenumber>();
if(type.equals("a")) {
model.addAttribute("list", list);
model.addAttribute("can", "a");
return "house";
}
else if(type.equals("x")) {
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getStatus().equals("闲置")) {
list1.add(list.get(i));
}
}
else if(type.equals("x")) {
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getStatus().equals("闲置")) {
list1.add(list.get(i));
}
}
model.addAttribute("can", "x");
model.addAttribute("list", list1);
return "house";
}
else if(type.equals("y")) {
for (int i = 0; i < list.size(); i++) {
}
else if(type.equals("x")) {
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getStatus().equals("闲置")) {
list1.add(list.get(i));
}
}
model.addAttribute("can", "x");
model.addAttribute("list", list1);
return "house";
}
else if(type.equals("y")) {
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getStatus().equals("已出售")) {
list1.add(list.get(i));
}
}
model.addAttribute("can", "y");
model.addAttribute("list", list1);
return "house";
}
else if(type.equals("y")) {
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getStatus().equals("已出售")) {
list1.add(list.get(i));
}
}
model.addAttribute("can", "y");
model.addAttribute("list", list1);
return "house";
}
return "mian";
}
/**
* @category 跳转到更新房屋信息页面
* @param model
* @param homeid
* @return
*/
@RequestMapping("/updatehouse")
public String updatehouse(Model model,@RequestParam ("homeid") int homeid) {
@RequestMapping("/showhouse")
public String showhouse(@RequestParam ("type") String type,Model model) {
System.out.println(type);
HousenumberExample example=new HousenumberExample();
List<Housenumber> list=hService.selectByExample(example);
List<Housenumber> list1=new ArrayList<Housenumber>();
if(type.equals("a")) {
model.addAttribute("list", list);
model.addAttribute("can", "a");
return "house";
}
else if(type.equals("x")) {
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getStatus().equals("闲置")) {
list1.add(list.get(i));
}
}
model.addAttribute("can", "a");
return "house";
}
else if(type.equals("x")) {
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getStatus().equals("闲置")) {
list1.add(list.get(i));
}
}
model.addAttribute("can", "x");
model.addAttribute("list", list1);
return "house";
}
else if(type.equals("y")) {
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getStatus().equals("已出售")) {
list1.add(list.get(i));
}
}
model.addAttribute("can", "y");
model.addAttribute("list", list1);
return "house";
}
return "mian";
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)