• 大小: 7.07M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-17
  • 语言: 其他
  • 标签: 其他  

资源简介

apartment.zip

资源截图

代码片段和文件信息

package com.design.apartment.controller;

import java.util.List;

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.ResponseBody;

import com.design.apartment.pojo.Apartment;
import com.design.apartment.service.ApartmentService;
import com.github.pagehelper.PageInfo;

@Controller
@RequestMapping(“/apartment“)
public class ApartmentController {

@Autowired
ApartmentService apartmentService;
//新增公寓
@RequestMapping(value = “/addApartment“)
@ResponseBody
public String addApartment(Apartment apartment) {
System.out.println(apartment);
int result = apartmentService.addApartment(apartment);
if (result > 0) {
return “addApartmentSuccess“;
}
return “false“;
}

//查询公寓 默认查询所有
@RequestMapping(“/queryApartment“)
@ResponseBody
public PageInfo queryApartment(String nameInteger pageNumInteger pageSize){
System.out.println(“###########################“);
System.out.println(“name“+name);
System.out.println(“pageNum“+pageNum);
System.out.println(“pageSize“+pageSize);
System.out.println(“###########################“);
List apartment=apartmentService.queryApartment(name pageNum pageSize);
for (Apartment apartment2 : apartment) {
System.out.println(apartment2);
}
return new PageInfo(apartment);
}
//查询一个或一类公寓
public List queryOneOrMoreApartment(){
return null;
}
//清空公寓
@RequestMapping(“/updateNullBeds“)
@ResponseBody
public int updateNullBeds(String id){
apartmentService.updateNullBeds(id);
return 1;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-24 21:04  apartment\
     文件        1536  2018-05-24 09:43  apartment\.classpath
     文件        1446  2018-04-24 21:05  apartment\.project
     目录           0  2018-04-24 21:04  apartment\.settings\
     文件         639  2018-04-13 09:48  apartment\.settings\.jsdtscope
     文件          83  2018-04-13 10:49  apartment\.settings\org.eclipse.core.resources.prefs
     文件         430  2018-04-13 10:04  apartment\.settings\org.eclipse.jdt.core.prefs
     文件          90  2018-04-13 09:48  apartment\.settings\org.eclipse.m2e.core.prefs
     文件         669  2018-04-24 21:07  apartment\.settings\org.eclipse.wst.common.component
     文件         321  2018-04-13 15:07  apartment\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml
     文件         346  2018-04-13 15:07  apartment\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-04-13 09:48  apartment\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-04-13 09:48  apartment\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          50  2018-04-13 09:48  apartment\.settings\org.eclipse.wst.validation.prefs
     目录           0  2018-04-24 21:04  apartment\emailjars\
     文件      188671  2016-11-09 21:44  apartment\emailjars\commons-beanutils-1.7.0.jar
     文件      571259  2016-11-09 21:44  apartment\emailjars\commons-collections-3.2.jar
     文件       51239  2016-11-11 14:32  apartment\emailjars\commons-email-1.4.jar
     文件      245274  2016-11-09 21:40  apartment\emailjars\commons-lang-2.3.jar
     文件       26388  2016-11-09 21:43  apartment\emailjars\commons-logging.jar
     文件       19171  2016-11-11 14:32  apartment\emailjars\dsn.jar
     文件       77826  2016-11-09 21:43  apartment\emailjars\ezmorph-1.0.3.jar
     文件       14769  2016-11-11 14:32  apartment\emailjars\gimap.jar
     文件      181492  2016-11-11 14:32  apartment\emailjars\imap.jar
     文件      653275  2018-04-22 11:42  apartment\emailjars\javax.mail.jar
     文件      521000  2016-11-11 14:32  apartment\emailjars\mail.jar
     文件      279893  2016-11-11 14:32  apartment\emailjars\mailapi.jar
     文件       44405  2016-11-11 14:32  apartment\emailjars\pop3.jar
     文件       52869  2016-11-11 14:32  apartment\emailjars\smtp.jar
     目录           0  2018-04-24 21:04  apartment\generator\
     文件        2191  2018-05-21 20:02  apartment\generator\generator.xml
............此处省略418个文件信息

评论

共有 条评论