Compare commits

..

22 Commits

@ -0,0 +1,248 @@
package com.controller;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ResourceUtils;
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.annotation.IgnoreAuth;
import com.baidu.aip.face.AipFace;
import com.baidu.aip.face.MatchRequest;
import com.baidu.aip.util.Base64Util;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.entity.ConfigEntity;
import com.service.CommonService;
import com.service.ConfigService;
import com.utils.BaiduUtil;
import com.utils.FileUtil;
import com.utils.R;
/**
*
*/
@RestController
public class CommonController{
@Autowired
private CommonService commonService;
@Autowired
private ConfigService configService;
private static AipFace client = null;
private static String BAIDU_DITU_AK = null;
@RequestMapping("/location")
public R location(String lng,String lat) {
if(BAIDU_DITU_AK==null) {
BAIDU_DITU_AK = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "baidu_ditu_ak")).getValue();
if(BAIDU_DITU_AK==null) {
return R.error("请在配置管理中正确配置baidu_ditu_ak");
}
}
Map<String, String> map = BaiduUtil.getCityByLonLat(BAIDU_DITU_AK, lng, lat);
return R.ok().put("data", map);
}
/**
*
*
* @param face1 1
* @param face2 2
* @return
*/
@RequestMapping("/matchFace")
public R matchFace(String face1, String face2) {
if(client==null) {
/*String AppID = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "AppID")).getValue();*/
String APIKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "APIKey")).getValue();
String SecretKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "SecretKey")).getValue();
String token = BaiduUtil.getAuth(APIKey, SecretKey);
if(token==null) {
return R.error("请在配置管理中正确配置APIKey和SecretKey");
}
client = new AipFace(null, APIKey, SecretKey);
client.setConnectionTimeoutInMillis(2000);
client.setSocketTimeoutInMillis(60000);
}
JSONObject res = null;
try {
File file1 = new File(ResourceUtils.getFile("classpath:static/upload").getAbsolutePath()+"/"+face1);
File file2 = new File(ResourceUtils.getFile("classpath:static/upload").getAbsolutePath()+"/"+face2);
String img1 = Base64Util.encode(FileUtil.FileToByte(file1));
String img2 = Base64Util.encode(FileUtil.FileToByte(file2));
MatchRequest req1 = new MatchRequest(img1, "BASE64");
MatchRequest req2 = new MatchRequest(img2, "BASE64");
ArrayList<MatchRequest> requests = new ArrayList<MatchRequest>();
requests.add(req1);
requests.add(req2);
res = client.match(requests);
System.out.println(res.get("result"));
} catch (FileNotFoundException e) {
e.printStackTrace();
return R.error("文件不存在");
} catch (IOException e) {
e.printStackTrace();
}
return R.ok().put("data", com.alibaba.fastjson.JSONObject.parse(res.get("result").toString()));
}
/**
* tablecolumn()
* @param table
* @param column
* @return
*/
@IgnoreAuth
@RequestMapping("/option/{tableName}/{columnName}")
public R getOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,String level,String parent) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("column", columnName);
if(StringUtils.isNotBlank(level)) {
params.put("level", level);
}
if(StringUtils.isNotBlank(parent)) {
params.put("parent", parent);
}
List<String> data = commonService.getOption(params);
return R.ok().put("data", data);
}
/**
* tablecolumn
* @param table
* @param column
* @return
*/
@IgnoreAuth
@RequestMapping("/follow/{tableName}/{columnName}")
public R getFollowByOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName, @RequestParam String columnValue) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("column", columnName);
params.put("columnValue", columnValue);
Map<String, Object> result = commonService.getFollowByOption(params);
return R.ok().put("data", result);
}
/**
* tablesfsh
* @param table
* @param map
* @return
*/
@RequestMapping("/sh/{tableName}")
public R sh(@PathVariable("tableName") String tableName, @RequestBody Map<String, Object> map) {
map.put("table", tableName);
commonService.sh(map);
return R.ok();
}
/**
*
* @param tableName
* @param columnName
* @param type 1: 2:
* @param map
* @return
*/
@IgnoreAuth
@RequestMapping("/remind/{tableName}/{columnName}/{type}")
public R remindCount(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("table", tableName);
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));
}
}
int count = commonService.remindCount(map);
return R.ok().put("count", count);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/cal/{tableName}/{columnName}")
public R cal(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("column", columnName);
Map<String, Object> result = commonService.selectCal(params);
return R.ok().put("data", result);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/group/{tableName}/{columnName}")
public R group(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("column", columnName);
List<Map<String, Object>> result = commonService.selectGroup(params);
return R.ok().put("data", result);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/value/{tableName}/{xColumnName}/{yColumnName}")
public R value(@PathVariable("tableName") String tableName, @PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("xColumn", xColumnName);
params.put("yColumn", yColumnName);
List<Map<String, Object>> result = commonService.selectValue(params);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
}

@ -0,0 +1,111 @@
package com.controller;
import java.util.Arrays;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
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.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.service.ConfigService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;
/**
*
*/
@RequestMapping("config")
@RestController
public class ConfigController{
@Autowired
private ConfigService configService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ConfigEntity config){
EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
PageUtils page = configService.queryPage(params);
return R.ok().put("data", page);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ConfigEntity config){
EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
PageUtils page = configService.queryPage(params);
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
ConfigEntity config = configService.selectById(id);
return R.ok().put("data", config);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") String id){
ConfigEntity config = configService.selectById(id);
return R.ok().put("data", config);
}
/**
* name
*/
@RequestMapping("/info")
public R infoByName(@RequestParam String name){
ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
return R.ok().put("data", config);
}
/**
*
*/
@PostMapping("/save")
public R save(@RequestBody ConfigEntity config){
// ValidatorUtils.validateEntity(config);
configService.insert(config);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody ConfigEntity config){
// ValidatorUtils.validateEntity(config);
configService.updateById(config);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
configService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
}

@ -0,0 +1,203 @@
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.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.DiscussfangwuxinxiEntity;
import com.entity.view.DiscussfangwuxinxiView;
import com.service.DiscussfangwuxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/discussfangwuxinxi")
public class DiscussfangwuxinxiController {
@Autowired
private DiscussfangwuxinxiService discussfangwuxinxiService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,DiscussfangwuxinxiEntity discussfangwuxinxi, HttpServletRequest request){
EntityWrapper<DiscussfangwuxinxiEntity> ew = new EntityWrapper<DiscussfangwuxinxiEntity>();
PageUtils page = discussfangwuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussfangwuxinxi), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,DiscussfangwuxinxiEntity discussfangwuxinxi, HttpServletRequest request){
EntityWrapper<DiscussfangwuxinxiEntity> ew = new EntityWrapper<DiscussfangwuxinxiEntity>();
PageUtils page = discussfangwuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussfangwuxinxi), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( DiscussfangwuxinxiEntity discussfangwuxinxi){
EntityWrapper<DiscussfangwuxinxiEntity> ew = new EntityWrapper<DiscussfangwuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( discussfangwuxinxi, "discussfangwuxinxi"));
return R.ok().put("data", discussfangwuxinxiService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(DiscussfangwuxinxiEntity discussfangwuxinxi){
EntityWrapper< DiscussfangwuxinxiEntity> ew = new EntityWrapper< DiscussfangwuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( discussfangwuxinxi, "discussfangwuxinxi"));
DiscussfangwuxinxiView discussfangwuxinxiView = discussfangwuxinxiService.selectView(ew);
return R.ok("查询房屋信息评论表成功").put("data", discussfangwuxinxiView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
DiscussfangwuxinxiEntity discussfangwuxinxi = discussfangwuxinxiService.selectById(id);
return R.ok().put("data", discussfangwuxinxi);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
DiscussfangwuxinxiEntity discussfangwuxinxi = discussfangwuxinxiService.selectById(id);
return R.ok().put("data", discussfangwuxinxi);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody DiscussfangwuxinxiEntity discussfangwuxinxi, HttpServletRequest request){
discussfangwuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(discussfangwuxinxi);
discussfangwuxinxiService.insert(discussfangwuxinxi);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody DiscussfangwuxinxiEntity discussfangwuxinxi, HttpServletRequest request){
discussfangwuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(discussfangwuxinxi);
discussfangwuxinxiService.insert(discussfangwuxinxi);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody DiscussfangwuxinxiEntity discussfangwuxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(discussfangwuxinxi);
discussfangwuxinxiService.updateById(discussfangwuxinxi);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
discussfangwuxinxiService.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<DiscussfangwuxinxiEntity> wrapper = new EntityWrapper<DiscussfangwuxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = discussfangwuxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,203 @@
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.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.DiscusswoyaodangfangzhuEntity;
import com.entity.view.DiscusswoyaodangfangzhuView;
import com.service.DiscusswoyaodangfangzhuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/discusswoyaodangfangzhu")
public class DiscusswoyaodangfangzhuController {
@Autowired
private DiscusswoyaodangfangzhuService discusswoyaodangfangzhuService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu, HttpServletRequest request){
EntityWrapper<DiscusswoyaodangfangzhuEntity> ew = new EntityWrapper<DiscusswoyaodangfangzhuEntity>();
PageUtils page = discusswoyaodangfangzhuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discusswoyaodangfangzhu), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu, HttpServletRequest request){
EntityWrapper<DiscusswoyaodangfangzhuEntity> ew = new EntityWrapper<DiscusswoyaodangfangzhuEntity>();
PageUtils page = discusswoyaodangfangzhuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discusswoyaodangfangzhu), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu){
EntityWrapper<DiscusswoyaodangfangzhuEntity> ew = new EntityWrapper<DiscusswoyaodangfangzhuEntity>();
ew.allEq(MPUtil.allEQMapPre( discusswoyaodangfangzhu, "discusswoyaodangfangzhu"));
return R.ok().put("data", discusswoyaodangfangzhuService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu){
EntityWrapper< DiscusswoyaodangfangzhuEntity> ew = new EntityWrapper< DiscusswoyaodangfangzhuEntity>();
ew.allEq(MPUtil.allEQMapPre( discusswoyaodangfangzhu, "discusswoyaodangfangzhu"));
DiscusswoyaodangfangzhuView discusswoyaodangfangzhuView = discusswoyaodangfangzhuService.selectView(ew);
return R.ok("查询我要当房主评论表成功").put("data", discusswoyaodangfangzhuView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu = discusswoyaodangfangzhuService.selectById(id);
return R.ok().put("data", discusswoyaodangfangzhu);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu = discusswoyaodangfangzhuService.selectById(id);
return R.ok().put("data", discusswoyaodangfangzhu);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu, HttpServletRequest request){
discusswoyaodangfangzhu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(discusswoyaodangfangzhu);
discusswoyaodangfangzhuService.insert(discusswoyaodangfangzhu);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu, HttpServletRequest request){
discusswoyaodangfangzhu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(discusswoyaodangfangzhu);
discusswoyaodangfangzhuService.insert(discusswoyaodangfangzhu);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhu, HttpServletRequest request){
//ValidatorUtils.validateEntity(discusswoyaodangfangzhu);
discusswoyaodangfangzhuService.updateById(discusswoyaodangfangzhu);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
discusswoyaodangfangzhuService.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<DiscusswoyaodangfangzhuEntity> wrapper = new EntityWrapper<DiscusswoyaodangfangzhuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = discusswoyaodangfangzhuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,196 @@
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.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.FangwuleixingEntity;
import com.entity.view.FangwuleixingView;
import com.service.FangwuleixingService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/fangwuleixing")
public class FangwuleixingController {
@Autowired
private FangwuleixingService fangwuleixingService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,FangwuleixingEntity fangwuleixing, HttpServletRequest request){
EntityWrapper<FangwuleixingEntity> ew = new EntityWrapper<FangwuleixingEntity>();
PageUtils page = fangwuleixingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangwuleixing), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,FangwuleixingEntity fangwuleixing, HttpServletRequest request){
EntityWrapper<FangwuleixingEntity> ew = new EntityWrapper<FangwuleixingEntity>();
PageUtils page = fangwuleixingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangwuleixing), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( FangwuleixingEntity fangwuleixing){
EntityWrapper<FangwuleixingEntity> ew = new EntityWrapper<FangwuleixingEntity>();
ew.allEq(MPUtil.allEQMapPre( fangwuleixing, "fangwuleixing"));
return R.ok().put("data", fangwuleixingService.selectListView(ew));
}
/**
*
*/
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
FangwuleixingEntity fangwuleixing = fangwuleixingService.selectById(id);
return R.ok().put("data", fangwuleixing);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
FangwuleixingEntity fangwuleixing = fangwuleixingService.selectById(id);
return R.ok().put("data", fangwuleixing);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody FangwuleixingEntity fangwuleixing, HttpServletRequest request){
fangwuleixing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangwuleixing);
fangwuleixingService.insert(fangwuleixing);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody FangwuleixingEntity fangwuleixing, HttpServletRequest request){
fangwuleixing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangwuleixing);
fangwuleixingService.insert(fangwuleixing);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody FangwuleixingEntity fangwuleixing, HttpServletRequest request){
//ValidatorUtils.validateEntity(fangwuleixing);
fangwuleixingService.updateById(fangwuleixing);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
fangwuleixingService.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<FangwuleixingEntity> wrapper = new EntityWrapper<FangwuleixingEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = fangwuleixingService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,216 @@
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.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.FangwupingjiaEntity;
import com.entity.view.FangwupingjiaView;
import com.service.FangwupingjiaService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/fangwupingjia")
public class FangwupingjiaController {
@Autowired
private FangwupingjiaService fangwupingjiaService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,FangwupingjiaEntity fangwupingjia, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("fangzhu")) {
fangwupingjia.setFangzhuzhanghao((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("yonghu")) {
fangwupingjia.setYonghuming((String)request.getSession().getAttribute("username"));
}
EntityWrapper<FangwupingjiaEntity> ew = new EntityWrapper<FangwupingjiaEntity>();
PageUtils page = fangwupingjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangwupingjia), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,FangwupingjiaEntity fangwupingjia, HttpServletRequest request){
EntityWrapper<FangwupingjiaEntity> ew = new EntityWrapper<FangwupingjiaEntity>();
PageUtils page = fangwupingjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangwupingjia), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( FangwupingjiaEntity fangwupingjia){
EntityWrapper<FangwupingjiaEntity> ew = new EntityWrapper<FangwupingjiaEntity>();
ew.allEq(MPUtil.allEQMapPre( fangwupingjia, "fangwupingjia"));
return R.ok().put("data", fangwupingjiaService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(FangwupingjiaEntity fangwupingjia){
EntityWrapper< FangwupingjiaEntity> ew = new EntityWrapper< FangwupingjiaEntity>();
ew.allEq(MPUtil.allEQMapPre( fangwupingjia, "fangwupingjia"));
FangwupingjiaView fangwupingjiaView = fangwupingjiaService.selectView(ew);
return R.ok("查询房屋评价成功").put("data", fangwupingjiaView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
FangwupingjiaEntity fangwupingjia = fangwupingjiaService.selectById(id);
return R.ok().put("data", fangwupingjia);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
FangwupingjiaEntity fangwupingjia = fangwupingjiaService.selectById(id);
return R.ok().put("data", fangwupingjia);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody FangwupingjiaEntity fangwupingjia, HttpServletRequest request){
fangwupingjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangwupingjia);
fangwupingjiaService.insert(fangwupingjia);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody FangwupingjiaEntity fangwupingjia, HttpServletRequest request){
fangwupingjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangwupingjia);
fangwupingjiaService.insert(fangwupingjia);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody FangwupingjiaEntity fangwupingjia, HttpServletRequest request){
//ValidatorUtils.validateEntity(fangwupingjia);
fangwupingjiaService.updateById(fangwupingjia);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
fangwupingjiaService.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<FangwupingjiaEntity> wrapper = new EntityWrapper<FangwupingjiaEntity>();
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("fangzhu")) {
wrapper.eq("fangzhuzhanghao", (String)request.getSession().getAttribute("username"));
}
if(tableName.equals("yonghu")) {
wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
}
int count = fangwupingjiaService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,212 @@
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.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.FangwuxinxiEntity;
import com.entity.view.FangwuxinxiView;
import com.service.FangwuxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/fangwuxinxi")
public class FangwuxinxiController {
@Autowired
private FangwuxinxiService fangwuxinxiService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,FangwuxinxiEntity fangwuxinxi, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("fangzhu")) {
fangwuxinxi.setFangzhuzhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<FangwuxinxiEntity> ew = new EntityWrapper<FangwuxinxiEntity>();
PageUtils page = fangwuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangwuxinxi), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,FangwuxinxiEntity fangwuxinxi, HttpServletRequest request){
EntityWrapper<FangwuxinxiEntity> ew = new EntityWrapper<FangwuxinxiEntity>();
PageUtils page = fangwuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangwuxinxi), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( FangwuxinxiEntity fangwuxinxi){
EntityWrapper<FangwuxinxiEntity> ew = new EntityWrapper<FangwuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( fangwuxinxi, "fangwuxinxi"));
return R.ok().put("data", fangwuxinxiService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(FangwuxinxiEntity fangwuxinxi){
EntityWrapper< FangwuxinxiEntity> ew = new EntityWrapper< FangwuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( fangwuxinxi, "fangwuxinxi"));
FangwuxinxiView fangwuxinxiView = fangwuxinxiService.selectView(ew);
return R.ok("查询房屋信息成功").put("data", fangwuxinxiView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
FangwuxinxiEntity fangwuxinxi = fangwuxinxiService.selectById(id);
return R.ok().put("data", fangwuxinxi);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
FangwuxinxiEntity fangwuxinxi = fangwuxinxiService.selectById(id);
return R.ok().put("data", fangwuxinxi);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody FangwuxinxiEntity fangwuxinxi, HttpServletRequest request){
fangwuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangwuxinxi);
fangwuxinxiService.insert(fangwuxinxi);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody FangwuxinxiEntity fangwuxinxi, HttpServletRequest request){
fangwuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangwuxinxi);
fangwuxinxiService.insert(fangwuxinxi);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody FangwuxinxiEntity fangwuxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(fangwuxinxi);
fangwuxinxiService.updateById(fangwuxinxi);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
fangwuxinxiService.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<FangwuxinxiEntity> wrapper = new EntityWrapper<FangwuxinxiEntity>();
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("fangzhu")) {
wrapper.eq("fangzhuzhanghao", (String)request.getSession().getAttribute("username"));
}
int count = fangwuxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,266 @@
package com.controller;
import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.entity.FangzhuEntity;
import com.entity.view.FangzhuView;
import com.service.FangzhuService;
import com.service.TokenService;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/fangzhu")
public class FangzhuController {
@Autowired
private FangzhuService fangzhuService;
@Autowired
private TokenService tokenService;
/**
*
*/
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
FangzhuEntity user = fangzhuService.selectOne(new EntityWrapper<FangzhuEntity>().eq("fangzhuzhanghao", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("账号或密码不正确");
}
String token = tokenService.generateToken(user.getId(), username,"fangzhu", "房主" );
return R.ok().put("token", token);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/register")
public R register(@RequestBody FangzhuEntity fangzhu){
//ValidatorUtils.validateEntity(fangzhu);
FangzhuEntity user = fangzhuService.selectOne(new EntityWrapper<FangzhuEntity>().eq("fangzhuzhanghao", fangzhu.getFangzhuzhanghao()));
if(user!=null) {
return R.error("注册用户已存在");
}
Long uId = new Date().getTime();
fangzhu.setId(uId);
fangzhuService.insert(fangzhu);
return R.ok();
}
/**
* 退
*/
@RequestMapping("/logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}
/**
* session
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
FangzhuEntity user = fangzhuService.selectById(id);
return R.ok().put("data", user);
}
/**
*
*/
@IgnoreAuth
@RequestMapping(value = "/resetPass")
public R resetPass(String username, HttpServletRequest request){
FangzhuEntity user = fangzhuService.selectOne(new EntityWrapper<FangzhuEntity>().eq("fangzhuzhanghao", username));
if(user==null) {
return R.error("账号不存在");
}
user.setMima("123456");
fangzhuService.updateById(user);
return R.ok("密码已重置为123456");
}
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,FangzhuEntity fangzhu, HttpServletRequest request){
EntityWrapper<FangzhuEntity> ew = new EntityWrapper<FangzhuEntity>();
PageUtils page = fangzhuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangzhu), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,FangzhuEntity fangzhu, HttpServletRequest request){
EntityWrapper<FangzhuEntity> ew = new EntityWrapper<FangzhuEntity>();
PageUtils page = fangzhuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangzhu), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( FangzhuEntity fangzhu){
EntityWrapper<FangzhuEntity> ew = new EntityWrapper<FangzhuEntity>();
ew.allEq(MPUtil.allEQMapPre( fangzhu, "fangzhu"));
return R.ok().put("data", fangzhuService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(FangzhuEntity fangzhu){
EntityWrapper< FangzhuEntity> ew = new EntityWrapper< FangzhuEntity>();
ew.allEq(MPUtil.allEQMapPre( fangzhu, "fangzhu"));
FangzhuView fangzhuView = fangzhuService.selectView(ew);
return R.ok("查询房主成功").put("data", fangzhuView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
FangzhuEntity fangzhu = fangzhuService.selectById(id);
return R.ok().put("data", fangzhu);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
FangzhuEntity fangzhu = fangzhuService.selectById(id);
return R.ok().put("data", fangzhu);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody FangzhuEntity fangzhu, HttpServletRequest request){
fangzhu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangzhu);
FangzhuEntity user = fangzhuService.selectOne(new EntityWrapper<FangzhuEntity>().eq("fangzhuzhanghao", fangzhu.getFangzhuzhanghao()));
if(user!=null) {
return R.error("用户已存在");
}
fangzhu.setId(new Date().getTime());
fangzhuService.insert(fangzhu);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody FangzhuEntity fangzhu, HttpServletRequest request){
fangzhu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangzhu);
FangzhuEntity user = fangzhuService.selectOne(new EntityWrapper<FangzhuEntity>().eq("fangzhuzhanghao", fangzhu.getFangzhuzhanghao()));
if(user!=null) {
return R.error("用户已存在");
}
fangzhu.setId(new Date().getTime());
fangzhuService.insert(fangzhu);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody FangzhuEntity fangzhu, HttpServletRequest request){
//ValidatorUtils.validateEntity(fangzhu);
fangzhuService.updateById(fangzhu);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
fangzhuService.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<FangzhuEntity> wrapper = new EntityWrapper<FangzhuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = fangzhuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,100 @@
package com.controller;
import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.entity.EIException;
import com.service.ConfigService;
import com.utils.R;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import java.io.File;
import java.io.IOException;
import java.util.Date;
/**
*
*/
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{
@Autowired
private ConfigService configService;
/**
*
*/
@RequestMapping("/upload")
public R upload(@RequestParam("file") MultipartFile file,String type) throws Exception {
if (file.isEmpty()) {
throw new EIException("上传文件不能为空");
}
String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);
File path = new File(ResourceUtils.getURL("classpath:static").getPath());
if(!path.exists()) {
path = new File("");
}
File upload = new File(path.getAbsolutePath(),"/upload/");
if(!upload.exists()) {
upload.mkdirs();
}
String fileName = new Date().getTime()+"."+fileExt;
File dest = new File(upload.getAbsolutePath()+"/"+fileName);
file.transferTo(dest);
if(StringUtils.isNotBlank(type) && type.equals("1")) {
ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
if(configEntity==null) {
configEntity = new ConfigEntity();
configEntity.setName("faceFile");
configEntity.setValue(fileName);
} else {
configEntity.setValue(fileName);
}
configService.insertOrUpdate(configEntity);
}
return R.ok().put("file", fileName);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/download")
public ResponseEntity<byte[]> download(@RequestParam String fileName) {
try {
File path = new File(ResourceUtils.getURL("classpath:static").getPath());
if(!path.exists()) {
path = new File("");
}
File upload = new File(path.getAbsolutePath(),"/upload/");
if(!upload.exists()) {
upload.mkdirs();
}
File file = new File(upload.getAbsolutePath()+"/"+fileName);
if(file.exists()){
/*if(!fileService.canRead(file, SessionManager.getSessionUser())){
getResponse().sendError(403);
}*/
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);
headers.setContentDispositionFormData("attachment", fileName);
return new ResponseEntity<byte[]>(FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);
}
} catch (IOException e) {
e.printStackTrace();
}
return new ResponseEntity<byte[]>(HttpStatus.INTERNAL_SERVER_ERROR);
}
}

@ -0,0 +1,209 @@
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.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.MessagesEntity;
import com.entity.view.MessagesView;
import com.service.MessagesService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/messages")
public class MessagesController {
@Autowired
private MessagesService messagesService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,MessagesEntity messages, HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
messages.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<MessagesEntity> ew = new EntityWrapper<MessagesEntity>();
PageUtils page = messagesService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, messages), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,MessagesEntity messages, HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
messages.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<MessagesEntity> ew = new EntityWrapper<MessagesEntity>();
PageUtils page = messagesService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, messages), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( MessagesEntity messages){
EntityWrapper<MessagesEntity> ew = new EntityWrapper<MessagesEntity>();
ew.allEq(MPUtil.allEQMapPre( messages, "messages"));
return R.ok().put("data", messagesService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(MessagesEntity messages){
EntityWrapper< MessagesEntity> ew = new EntityWrapper< MessagesEntity>();
ew.allEq(MPUtil.allEQMapPre( messages, "messages"));
MessagesView messagesView = messagesService.selectView(ew);
return R.ok("查询留言板成功").put("data", messagesView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
MessagesEntity messages = messagesService.selectById(id);
return R.ok().put("data", messages);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
MessagesEntity messages = messagesService.selectById(id);
return R.ok().put("data", messages);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody MessagesEntity messages, HttpServletRequest request){
messages.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(messages);
messagesService.insert(messages);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody MessagesEntity messages, HttpServletRequest request){
messages.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(messages);
messages.setUserid((Long)request.getSession().getAttribute("userId"));
messagesService.insert(messages);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody MessagesEntity messages, HttpServletRequest request){
//ValidatorUtils.validateEntity(messages);
messagesService.updateById(messages);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
messagesService.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<MessagesEntity> wrapper = new EntityWrapper<MessagesEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = messagesService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,204 @@
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.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.NewsEntity;
import com.entity.view.NewsView;
import com.service.NewsService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/news")
public class NewsController {
@Autowired
private NewsService newsService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,NewsEntity news, HttpServletRequest request){
EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
PageUtils page = newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,NewsEntity news, HttpServletRequest request){
EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
PageUtils page = newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( NewsEntity news){
EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
ew.allEq(MPUtil.allEQMapPre( news, "news"));
return R.ok().put("data", newsService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(NewsEntity news){
EntityWrapper< NewsEntity> ew = new EntityWrapper< NewsEntity>();
ew.allEq(MPUtil.allEQMapPre( news, "news"));
NewsView newsView = newsService.selectView(ew);
return R.ok("查询公告信息成功").put("data", newsView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
NewsEntity news = newsService.selectById(id);
return R.ok().put("data", news);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
NewsEntity news = newsService.selectById(id);
return R.ok().put("data", news);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody NewsEntity news, HttpServletRequest request){
news.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(news);
newsService.insert(news);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody NewsEntity news, HttpServletRequest request){
news.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(news);
newsService.insert(news);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody NewsEntity news, HttpServletRequest request){
//ValidatorUtils.validateEntity(news);
newsService.updateById(news);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
newsService.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<NewsEntity> wrapper = new EntityWrapper<NewsEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = newsService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,213 @@
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.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.StoreupEntity;
import com.entity.view.StoreupView;
import com.service.StoreupService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/storeup")
public class StoreupController {
@Autowired
private StoreupService storeupService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,StoreupEntity storeup, HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
storeup.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<StoreupEntity> ew = new EntityWrapper<StoreupEntity>();
PageUtils page = storeupService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, storeup), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,StoreupEntity storeup, HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
storeup.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<StoreupEntity> ew = new EntityWrapper<StoreupEntity>();
PageUtils page = storeupService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, storeup), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( StoreupEntity storeup){
EntityWrapper<StoreupEntity> ew = new EntityWrapper<StoreupEntity>();
ew.allEq(MPUtil.allEQMapPre( storeup, "storeup"));
return R.ok().put("data", storeupService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(StoreupEntity storeup){
EntityWrapper< StoreupEntity> ew = new EntityWrapper< StoreupEntity>();
ew.allEq(MPUtil.allEQMapPre( storeup, "storeup"));
StoreupView storeupView = storeupService.selectView(ew);
return R.ok("查询收藏表成功").put("data", storeupView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
StoreupEntity storeup = storeupService.selectById(id);
return R.ok().put("data", storeup);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
StoreupEntity storeup = storeupService.selectById(id);
return R.ok().put("data", storeup);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody StoreupEntity storeup, HttpServletRequest request){
storeup.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(storeup);
storeup.setUserid((Long)request.getSession().getAttribute("userId"));
storeupService.insert(storeup);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody StoreupEntity storeup, HttpServletRequest request){
storeup.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(storeup);
storeup.setUserid((Long)request.getSession().getAttribute("userId"));
storeupService.insert(storeup);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody StoreupEntity storeup, HttpServletRequest request){
//ValidatorUtils.validateEntity(storeup);
storeupService.updateById(storeup);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
storeupService.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<StoreupEntity> wrapper = new EntityWrapper<StoreupEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
wrapper.eq("userid", (Long)request.getSession().getAttribute("userId"));
}
int count = storeupService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,170 @@
package com.controller;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
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.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.TokenEntity;
import com.entity.UserEntity;
import com.service.TokenService;
import com.service.UserService;
import com.utils.CommonUtil;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;
/**
*
*/
@RequestMapping("users")
@RestController
public class UserController{
@Autowired
private UserService userService;
@Autowired
private TokenService tokenService;
/**
*
*/
@IgnoreAuth
@PostMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
if(user==null || !user.getPassword().equals(password)) {
return R.error("账号或密码不正确");
}
String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());
return R.ok().put("token", token);
}
/**
*
*/
@IgnoreAuth
@PostMapping(value = "/register")
public R register(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
return R.error("用户已存在");
}
userService.insert(user);
return R.ok();
}
/**
* 退
*/
@GetMapping(value = "logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}
/**
*
*/
@IgnoreAuth
@RequestMapping(value = "/resetPass")
public R resetPass(String username, HttpServletRequest request){
UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
if(user==null) {
return R.error("账号不存在");
}
user.setPassword("123456");
userService.update(user,null);
return R.ok("密码已重置为123456");
}
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,UserEntity user){
EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list( UserEntity user){
EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
ew.allEq(MPUtil.allEQMapPre( user, "user"));
return R.ok().put("data", userService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
UserEntity user = userService.selectById(id);
return R.ok().put("data", user);
}
/**
* session
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
UserEntity user = userService.selectById(id);
return R.ok().put("data", user);
}
/**
*
*/
@PostMapping("/save")
public R save(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
return R.error("用户已存在");
}
userService.insert(user);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
userService.updateById(user);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
userService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
}

@ -0,0 +1,216 @@
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.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.WeixiuchuliEntity;
import com.entity.view.WeixiuchuliView;
import com.service.WeixiuchuliService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/weixiuchuli")
public class WeixiuchuliController {
@Autowired
private WeixiuchuliService weixiuchuliService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,WeixiuchuliEntity weixiuchuli, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("fangzhu")) {
weixiuchuli.setFangzhuzhanghao((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("yonghu")) {
weixiuchuli.setYonghuming((String)request.getSession().getAttribute("username"));
}
EntityWrapper<WeixiuchuliEntity> ew = new EntityWrapper<WeixiuchuliEntity>();
PageUtils page = weixiuchuliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, weixiuchuli), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,WeixiuchuliEntity weixiuchuli, HttpServletRequest request){
EntityWrapper<WeixiuchuliEntity> ew = new EntityWrapper<WeixiuchuliEntity>();
PageUtils page = weixiuchuliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, weixiuchuli), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( WeixiuchuliEntity weixiuchuli){
EntityWrapper<WeixiuchuliEntity> ew = new EntityWrapper<WeixiuchuliEntity>();
ew.allEq(MPUtil.allEQMapPre( weixiuchuli, "weixiuchuli"));
return R.ok().put("data", weixiuchuliService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(WeixiuchuliEntity weixiuchuli){
EntityWrapper< WeixiuchuliEntity> ew = new EntityWrapper< WeixiuchuliEntity>();
ew.allEq(MPUtil.allEQMapPre( weixiuchuli, "weixiuchuli"));
WeixiuchuliView weixiuchuliView = weixiuchuliService.selectView(ew);
return R.ok("查询维修处理成功").put("data", weixiuchuliView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
WeixiuchuliEntity weixiuchuli = weixiuchuliService.selectById(id);
return R.ok().put("data", weixiuchuli);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
WeixiuchuliEntity weixiuchuli = weixiuchuliService.selectById(id);
return R.ok().put("data", weixiuchuli);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody WeixiuchuliEntity weixiuchuli, HttpServletRequest request){
weixiuchuli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(weixiuchuli);
weixiuchuliService.insert(weixiuchuli);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody WeixiuchuliEntity weixiuchuli, HttpServletRequest request){
weixiuchuli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(weixiuchuli);
weixiuchuliService.insert(weixiuchuli);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody WeixiuchuliEntity weixiuchuli, HttpServletRequest request){
//ValidatorUtils.validateEntity(weixiuchuli);
weixiuchuliService.updateById(weixiuchuli);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
weixiuchuliService.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<WeixiuchuliEntity> wrapper = new EntityWrapper<WeixiuchuliEntity>();
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("fangzhu")) {
wrapper.eq("fangzhuzhanghao", (String)request.getSession().getAttribute("username"));
}
if(tableName.equals("yonghu")) {
wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
}
int count = weixiuchuliService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,212 @@
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.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.WoyaodangfangzhuEntity;
import com.entity.view.WoyaodangfangzhuView;
import com.service.WoyaodangfangzhuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/woyaodangfangzhu")
public class WoyaodangfangzhuController {
@Autowired
private WoyaodangfangzhuService woyaodangfangzhuService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,WoyaodangfangzhuEntity woyaodangfangzhu, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
woyaodangfangzhu.setYonghuming((String)request.getSession().getAttribute("username"));
}
EntityWrapper<WoyaodangfangzhuEntity> ew = new EntityWrapper<WoyaodangfangzhuEntity>();
PageUtils page = woyaodangfangzhuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, woyaodangfangzhu), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,WoyaodangfangzhuEntity woyaodangfangzhu, HttpServletRequest request){
EntityWrapper<WoyaodangfangzhuEntity> ew = new EntityWrapper<WoyaodangfangzhuEntity>();
PageUtils page = woyaodangfangzhuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, woyaodangfangzhu), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( WoyaodangfangzhuEntity woyaodangfangzhu){
EntityWrapper<WoyaodangfangzhuEntity> ew = new EntityWrapper<WoyaodangfangzhuEntity>();
ew.allEq(MPUtil.allEQMapPre( woyaodangfangzhu, "woyaodangfangzhu"));
return R.ok().put("data", woyaodangfangzhuService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(WoyaodangfangzhuEntity woyaodangfangzhu){
EntityWrapper< WoyaodangfangzhuEntity> ew = new EntityWrapper< WoyaodangfangzhuEntity>();
ew.allEq(MPUtil.allEQMapPre( woyaodangfangzhu, "woyaodangfangzhu"));
WoyaodangfangzhuView woyaodangfangzhuView = woyaodangfangzhuService.selectView(ew);
return R.ok("查询我要当房主成功").put("data", woyaodangfangzhuView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
WoyaodangfangzhuEntity woyaodangfangzhu = woyaodangfangzhuService.selectById(id);
return R.ok().put("data", woyaodangfangzhu);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
WoyaodangfangzhuEntity woyaodangfangzhu = woyaodangfangzhuService.selectById(id);
return R.ok().put("data", woyaodangfangzhu);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody WoyaodangfangzhuEntity woyaodangfangzhu, HttpServletRequest request){
woyaodangfangzhu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(woyaodangfangzhu);
woyaodangfangzhuService.insert(woyaodangfangzhu);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody WoyaodangfangzhuEntity woyaodangfangzhu, HttpServletRequest request){
woyaodangfangzhu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(woyaodangfangzhu);
woyaodangfangzhuService.insert(woyaodangfangzhu);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody WoyaodangfangzhuEntity woyaodangfangzhu, HttpServletRequest request){
//ValidatorUtils.validateEntity(woyaodangfangzhu);
woyaodangfangzhuService.updateById(woyaodangfangzhu);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
woyaodangfangzhuService.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<WoyaodangfangzhuEntity> wrapper = new EntityWrapper<WoyaodangfangzhuEntity>();
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("yonghu")) {
wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
}
int count = woyaodangfangzhuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,280 @@
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.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.YonghuEntity;
import com.entity.view.YonghuView;
import com.service.YonghuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/yonghu")
public class YonghuController {
@Autowired
private YonghuService yonghuService;
@Autowired
private TokenService tokenService;
/**
*
*/
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("账号或密码不正确");
}
String token = tokenService.generateToken(user.getId(), username,"yonghu", "用户" );
return R.ok().put("token", token);
}
/**
*
*/
@IgnoreAuth
@RequestMapping("/register")
public R register(@RequestBody YonghuEntity yonghu){
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", yonghu.getYonghuming()));
if(user!=null) {
return R.error("注册用户已存在");
}
Long uId = new Date().getTime();
yonghu.setId(uId);
yonghuService.insert(yonghu);
return R.ok();
}
/**
* 退
*/
@RequestMapping("/logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}
/**
* session
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
YonghuEntity user = yonghuService.selectById(id);
return R.ok().put("data", user);
}
/**
*
*/
@IgnoreAuth
@RequestMapping(value = "/resetPass")
public R resetPass(String username, HttpServletRequest request){
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", username));
if(user==null) {
return R.error("账号不存在");
}
user.setMima("123456");
yonghuService.updateById(user);
return R.ok("密码已重置为123456");
}
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,YonghuEntity yonghu, HttpServletRequest request){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YonghuEntity yonghu, HttpServletRequest request){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( YonghuEntity yonghu){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu"));
return R.ok().put("data", yonghuService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(YonghuEntity yonghu){
EntityWrapper< YonghuEntity> ew = new EntityWrapper< YonghuEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu"));
YonghuView yonghuView = yonghuService.selectView(ew);
return R.ok("查询用户成功").put("data", yonghuView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YonghuEntity yonghu = yonghuService.selectById(id);
return R.ok().put("data", yonghu);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YonghuEntity yonghu = yonghuService.selectById(id);
return R.ok().put("data", yonghu);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", yonghu.getYonghuming()));
if(user!=null) {
return R.error("用户已存在");
}
yonghu.setId(new Date().getTime());
yonghuService.insert(yonghu);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", yonghu.getYonghuming()));
if(user!=null) {
return R.error("用户已存在");
}
yonghu.setId(new Date().getTime());
yonghuService.insert(yonghu);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
//ValidatorUtils.validateEntity(yonghu);
yonghuService.updateById(yonghu);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
yonghuService.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<YonghuEntity> wrapper = new EntityWrapper<YonghuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = yonghuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,200 @@
package com.controller;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.entity.YuyuekanfangEntity;
import com.entity.view.YuyuekanfangView;
import com.service.YuyuekanfangService;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;
/**
*
*
* @author
* @email
*/
@RestController
@RequestMapping("/yuyuekanfang")
public class YuyuekanfangController {
@Autowired
private YuyuekanfangService yuyuekanfangService;
/**
*
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,YuyuekanfangEntity yuyuekanfang, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
yuyuekanfang.setYonghuming((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("fangzhu")) {
yuyuekanfang.setFangzhuzhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<YuyuekanfangEntity> ew = new EntityWrapper<YuyuekanfangEntity>();
PageUtils page = yuyuekanfangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuyuekanfang), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YuyuekanfangEntity yuyuekanfang, HttpServletRequest request){
EntityWrapper<YuyuekanfangEntity> ew = new EntityWrapper<YuyuekanfangEntity>();
PageUtils page = yuyuekanfangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuyuekanfang), params), params));
return R.ok().put("data", page);
}
/**
*
*/
@RequestMapping("/lists")
public R list( YuyuekanfangEntity yuyuekanfang){
EntityWrapper<YuyuekanfangEntity> ew = new EntityWrapper<YuyuekanfangEntity>();
ew.allEq(MPUtil.allEQMapPre( yuyuekanfang, "yuyuekanfang"));
return R.ok().put("data", yuyuekanfangService.selectListView(ew));
}
/**
*
*/
@RequestMapping("/query")
public R query(YuyuekanfangEntity yuyuekanfang){
EntityWrapper< YuyuekanfangEntity> ew = new EntityWrapper< YuyuekanfangEntity>();
ew.allEq(MPUtil.allEQMapPre( yuyuekanfang, "yuyuekanfang"));
YuyuekanfangView yuyuekanfangView = yuyuekanfangService.selectView(ew);
return R.ok("查询预约看房成功").put("data", yuyuekanfangView);
}
/**
*
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YuyuekanfangEntity yuyuekanfang = yuyuekanfangService.selectById(id);
return R.ok().put("data", yuyuekanfang);
}
/**
*
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YuyuekanfangEntity yuyuekanfang = yuyuekanfangService.selectById(id);
return R.ok().put("data", yuyuekanfang);
}
/**
*
*/
@RequestMapping("/save")
public R save(@RequestBody YuyuekanfangEntity yuyuekanfang, HttpServletRequest request){
yuyuekanfang.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuyuekanfang);
yuyuekanfangService.insert(yuyuekanfang);
return R.ok();
}
/**
*
*/
@RequestMapping("/add")
public R add(@RequestBody YuyuekanfangEntity yuyuekanfang, HttpServletRequest request){
yuyuekanfang.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuyuekanfang);
yuyuekanfangService.insert(yuyuekanfang);
return R.ok();
}
/**
*
*/
@RequestMapping("/update")
public R update(@RequestBody YuyuekanfangEntity yuyuekanfang, HttpServletRequest request){
//ValidatorUtils.validateEntity(yuyuekanfang);
yuyuekanfangService.updateById(yuyuekanfang);//全部更新
return R.ok();
}
/**
*
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
yuyuekanfangService.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<YuyuekanfangEntity> wrapper = new EntityWrapper<YuyuekanfangEntity>();
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("yonghu")) {
wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
}
if(tableName.equals("fangzhu")) {
wrapper.eq("fangzhuzhanghao", (String)request.getSession().getAttribute("username"));
}
int count = yuyuekanfangService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

@ -0,0 +1,26 @@
package com.dao;
import java.util.List;
import java.util.Map;
/**
*
*/
public interface CommonDao{
List<String> getOption(Map<String, Object> params);
Map<String, Object> getFollowByOption(Map<String, Object> params);
List<String> getFollowByOption2(Map<String, Object> params);
void sh(Map<String, Object> params);
int remindCount(Map<String, Object> params);
Map<String, Object> selectCal(Map<String, Object> params);
List<Map<String, Object>> selectGroup(Map<String, Object> params);
List<Map<String, Object>> selectValue(Map<String, Object> params);
}

@ -0,0 +1,12 @@
package com.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.entity.ConfigEntity;
/**
*
*/
public interface ConfigDao extends BaseMapper<ConfigEntity> {
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.DiscussfangwuxinxiEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.DiscussfangwuxinxiVO;
import com.entity.view.DiscussfangwuxinxiView;
/**
*
*
* @author
* @email
*/
public interface DiscussfangwuxinxiDao extends BaseMapper<DiscussfangwuxinxiEntity> {
List<DiscussfangwuxinxiVO> selectListVO(@Param("ew") Wrapper<DiscussfangwuxinxiEntity> wrapper);
DiscussfangwuxinxiVO selectVO(@Param("ew") Wrapper<DiscussfangwuxinxiEntity> wrapper);
List<DiscussfangwuxinxiView> selectListView(@Param("ew") Wrapper<DiscussfangwuxinxiEntity> wrapper);
List<DiscussfangwuxinxiView> selectListView(Pagination page,@Param("ew") Wrapper<DiscussfangwuxinxiEntity> wrapper);
DiscussfangwuxinxiView selectView(@Param("ew") Wrapper<DiscussfangwuxinxiEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.DiscusswoyaodangfangzhuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.DiscusswoyaodangfangzhuVO;
import com.entity.view.DiscusswoyaodangfangzhuView;
/**
*
*
* @author
* @email
*/
public interface DiscusswoyaodangfangzhuDao extends BaseMapper<DiscusswoyaodangfangzhuEntity> {
List<DiscusswoyaodangfangzhuVO> selectListVO(@Param("ew") Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
DiscusswoyaodangfangzhuVO selectVO(@Param("ew") Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
List<DiscusswoyaodangfangzhuView> selectListView(@Param("ew") Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
List<DiscusswoyaodangfangzhuView> selectListView(Pagination page,@Param("ew") Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
DiscusswoyaodangfangzhuView selectView(@Param("ew") Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.FangwubaoxiuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.FangwubaoxiuVO;
import com.entity.view.FangwubaoxiuView;
/**
*
*
* @author
* @email
*/
public interface FangwubaoxiuDao extends BaseMapper<FangwubaoxiuEntity> {
List<FangwubaoxiuVO> selectListVO(@Param("ew") Wrapper<FangwubaoxiuEntity> wrapper);
FangwubaoxiuVO selectVO(@Param("ew") Wrapper<FangwubaoxiuEntity> wrapper);
List<FangwubaoxiuView> selectListView(@Param("ew") Wrapper<FangwubaoxiuEntity> wrapper);
List<FangwubaoxiuView> selectListView(Pagination page,@Param("ew") Wrapper<FangwubaoxiuEntity> wrapper);
FangwubaoxiuView selectView(@Param("ew") Wrapper<FangwubaoxiuEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.FangwuleixingEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.FangwuleixingVO;
import com.entity.view.FangwuleixingView;
/**
*
*
* @author
* @email
*/
public interface FangwuleixingDao extends BaseMapper<FangwuleixingEntity> {
List<FangwuleixingVO> selectListVO(@Param("ew") Wrapper<FangwuleixingEntity> wrapper);
FangwuleixingVO selectVO(@Param("ew") Wrapper<FangwuleixingEntity> wrapper);
List<FangwuleixingView> selectListView(@Param("ew") Wrapper<FangwuleixingEntity> wrapper);
List<FangwuleixingView> selectListView(Pagination page,@Param("ew") Wrapper<FangwuleixingEntity> wrapper);
FangwuleixingView selectView(@Param("ew") Wrapper<FangwuleixingEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.FangwupingjiaEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.FangwupingjiaVO;
import com.entity.view.FangwupingjiaView;
/**
*
*
* @author
* @email
*/
public interface FangwupingjiaDao extends BaseMapper<FangwupingjiaEntity> {
List<FangwupingjiaVO> selectListVO(@Param("ew") Wrapper<FangwupingjiaEntity> wrapper);
FangwupingjiaVO selectVO(@Param("ew") Wrapper<FangwupingjiaEntity> wrapper);
List<FangwupingjiaView> selectListView(@Param("ew") Wrapper<FangwupingjiaEntity> wrapper);
List<FangwupingjiaView> selectListView(Pagination page,@Param("ew") Wrapper<FangwupingjiaEntity> wrapper);
FangwupingjiaView selectView(@Param("ew") Wrapper<FangwupingjiaEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.FangwuxinxiEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.FangwuxinxiVO;
import com.entity.view.FangwuxinxiView;
/**
*
*
* @author
* @email
*/
public interface FangwuxinxiDao extends BaseMapper<FangwuxinxiEntity> {
List<FangwuxinxiVO> selectListVO(@Param("ew") Wrapper<FangwuxinxiEntity> wrapper);
FangwuxinxiVO selectVO(@Param("ew") Wrapper<FangwuxinxiEntity> wrapper);
List<FangwuxinxiView> selectListView(@Param("ew") Wrapper<FangwuxinxiEntity> wrapper);
List<FangwuxinxiView> selectListView(Pagination page,@Param("ew") Wrapper<FangwuxinxiEntity> wrapper);
FangwuxinxiView selectView(@Param("ew") Wrapper<FangwuxinxiEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.FangzhuEntity;
import com.entity.view.FangzhuView;
import com.entity.vo.FangzhuVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
*
*
* @author
* @email
*/
public interface FangzhuDao extends BaseMapper<FangzhuEntity> {
List<FangzhuVO> selectListVO(@Param("ew") Wrapper<FangzhuEntity> wrapper);
FangzhuVO selectVO(@Param("ew") Wrapper<FangzhuEntity> wrapper);
List<FangzhuView> selectListView(@Param("ew") Wrapper<FangzhuEntity> wrapper);
List<FangzhuView> selectListView(Pagination page,@Param("ew") Wrapper<FangzhuEntity> wrapper);
FangzhuView selectView(@Param("ew") Wrapper<FangzhuEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.MessagesEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.MessagesVO;
import com.entity.view.MessagesView;
/**
*
*
* @author
* @email
*/
public interface MessagesDao extends BaseMapper<MessagesEntity> {
List<MessagesVO> selectListVO(@Param("ew") Wrapper<MessagesEntity> wrapper);
MessagesVO selectVO(@Param("ew") Wrapper<MessagesEntity> wrapper);
List<MessagesView> selectListView(@Param("ew") Wrapper<MessagesEntity> wrapper);
List<MessagesView> selectListView(Pagination page,@Param("ew") Wrapper<MessagesEntity> wrapper);
MessagesView selectView(@Param("ew") Wrapper<MessagesEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.NewsEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.NewsVO;
import com.entity.view.NewsView;
/**
*
*
* @author
* @email
*/
public interface NewsDao extends BaseMapper<NewsEntity> {
List<NewsVO> selectListVO(@Param("ew") Wrapper<NewsEntity> wrapper);
NewsVO selectVO(@Param("ew") Wrapper<NewsEntity> wrapper);
List<NewsView> selectListView(@Param("ew") Wrapper<NewsEntity> wrapper);
List<NewsView> selectListView(Pagination page,@Param("ew") Wrapper<NewsEntity> wrapper);
NewsView selectView(@Param("ew") Wrapper<NewsEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.StoreupEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.StoreupVO;
import com.entity.view.StoreupView;
/**
*
*
* @author
* @email
*/
public interface StoreupDao extends BaseMapper<StoreupEntity> {
List<StoreupVO> selectListVO(@Param("ew") Wrapper<StoreupEntity> wrapper);
StoreupVO selectVO(@Param("ew") Wrapper<StoreupEntity> wrapper);
List<StoreupView> selectListView(@Param("ew") Wrapper<StoreupEntity> wrapper);
List<StoreupView> selectListView(Pagination page,@Param("ew") Wrapper<StoreupEntity> wrapper);
StoreupView selectView(@Param("ew") Wrapper<StoreupEntity> wrapper);
}

@ -0,0 +1,22 @@
package com.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.TokenEntity;
/**
* token
*/
public interface TokenDao extends BaseMapper<TokenEntity> {
List<TokenEntity> selectListView(@Param("ew") Wrapper<TokenEntity> wrapper);
List<TokenEntity> selectListView(Pagination page,@Param("ew") Wrapper<TokenEntity> wrapper);
}

@ -0,0 +1,22 @@
package com.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.UserEntity;
/**
*
*/
public interface UserDao extends BaseMapper<UserEntity> {
List<UserEntity> selectListView(@Param("ew") Wrapper<UserEntity> wrapper);
List<UserEntity> selectListView(Pagination page,@Param("ew") Wrapper<UserEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.WeixiuchuliEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.WeixiuchuliVO;
import com.entity.view.WeixiuchuliView;
/**
*
*
* @author
* @email
*/
public interface WeixiuchuliDao extends BaseMapper<WeixiuchuliEntity> {
List<WeixiuchuliVO> selectListVO(@Param("ew") Wrapper<WeixiuchuliEntity> wrapper);
WeixiuchuliVO selectVO(@Param("ew") Wrapper<WeixiuchuliEntity> wrapper);
List<WeixiuchuliView> selectListView(@Param("ew") Wrapper<WeixiuchuliEntity> wrapper);
List<WeixiuchuliView> selectListView(Pagination page,@Param("ew") Wrapper<WeixiuchuliEntity> wrapper);
WeixiuchuliView selectView(@Param("ew") Wrapper<WeixiuchuliEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.WoyaodangfangzhuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.WoyaodangfangzhuVO;
import com.entity.view.WoyaodangfangzhuView;
/**
*
*
* @author
* @email
*/
public interface WoyaodangfangzhuDao extends BaseMapper<WoyaodangfangzhuEntity> {
List<WoyaodangfangzhuVO> selectListVO(@Param("ew") Wrapper<WoyaodangfangzhuEntity> wrapper);
WoyaodangfangzhuVO selectVO(@Param("ew") Wrapper<WoyaodangfangzhuEntity> wrapper);
List<WoyaodangfangzhuView> selectListView(@Param("ew") Wrapper<WoyaodangfangzhuEntity> wrapper);
List<WoyaodangfangzhuView> selectListView(Pagination page,@Param("ew") Wrapper<WoyaodangfangzhuEntity> wrapper);
WoyaodangfangzhuView selectView(@Param("ew") Wrapper<WoyaodangfangzhuEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.YonghuVO;
import com.entity.view.YonghuView;
/**
*
*
* @author
* @email
*/
public interface YonghuDao extends BaseMapper<YonghuEntity> {
List<YonghuVO> selectListVO(@Param("ew") Wrapper<YonghuEntity> wrapper);
YonghuVO selectVO(@Param("ew") Wrapper<YonghuEntity> wrapper);
List<YonghuView> selectListView(@Param("ew") Wrapper<YonghuEntity> wrapper);
List<YonghuView> selectListView(Pagination page,@Param("ew") Wrapper<YonghuEntity> wrapper);
YonghuView selectView(@Param("ew") Wrapper<YonghuEntity> wrapper);
}

@ -0,0 +1,32 @@
package com.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.YuyuekanfangEntity;
import com.entity.view.YuyuekanfangView;
import com.entity.vo.YuyuekanfangVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
*
*
* @author
* @email
*/
public interface YuyuekanfangDao extends BaseMapper<YuyuekanfangEntity> {
List<YuyuekanfangVO> selectListVO(@Param("ew") Wrapper<YuyuekanfangEntity> wrapper);
YuyuekanfangVO selectVO(@Param("ew") Wrapper<YuyuekanfangEntity> wrapper);
List<YuyuekanfangView> selectListView(@Param("ew") Wrapper<YuyuekanfangEntity> wrapper);
List<YuyuekanfangView> selectListView(Pagination page,@Param("ew") Wrapper<YuyuekanfangEntity> wrapper);
YuyuekanfangView selectView(@Param("ew") Wrapper<YuyuekanfangEntity> wrapper);
}

@ -0,0 +1,53 @@
package com.entity;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
/**
* :
*/
@TableName("config")
public class ConfigEntity implements Serializable{
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
private Long id;
/**
* key
*/
private String name;
/**
* value
*/
private String value;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}

@ -0,0 +1,145 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("discussfangwuxinxi")
public class DiscussfangwuxinxiEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public DiscussfangwuxinxiEntity() {
}
public DiscussfangwuxinxiEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
* id
*/
private Long refid;
/**
* id
*/
private Long userid;
/**
*
*/
private String content;
/**
*
*/
private String reply;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* id
*/
public void setRefid(Long refid) {
this.refid = refid;
}
/**
* id
*/
public Long getRefid() {
return refid;
}
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -0,0 +1,145 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("discusswoyaodangfangzhu")
public class DiscusswoyaodangfangzhuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public DiscusswoyaodangfangzhuEntity() {
}
public DiscusswoyaodangfangzhuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
* id
*/
private Long refid;
/**
* id
*/
private Long userid;
/**
*
*/
private String content;
/**
*
*/
private String reply;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* id
*/
public void setRefid(Long refid) {
this.refid = refid;
}
/**
* id
*/
public Long getRefid() {
return refid;
}
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -0,0 +1,52 @@
package com.entity;
/**
*
*/
public class EIException extends RuntimeException {
private static final long serialVersionUID = 1L;
private String msg;
private int code = 500;
public EIException(String msg) {
super(msg);
this.msg = msg;
}
public EIException(String msg, Throwable e) {
super(msg, e);
this.msg = msg;
}
public EIException(String msg, int code) {
super(msg);
this.msg = msg;
this.code = code;
}
public EIException(String msg, int code, Throwable e) {
super(msg, e);
this.msg = msg;
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
}

@ -0,0 +1,345 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("fangwubaoxiu")
public class FangwubaoxiuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public FangwubaoxiuEntity() {
}
public FangwubaoxiuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String hetongbianhao;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String baoxiumingcheng;
/**
*
*/
private String leixing;
/**
*
*/
private String baoxiuneirong;
/**
*
*/
private String tupian;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
@DateTimeFormat
private Date baoxiuriqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setHetongbianhao(String hetongbianhao) {
this.hetongbianhao = hetongbianhao;
}
/**
*
*/
public String getHetongbianhao() {
return hetongbianhao;
}
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setBaoxiumingcheng(String baoxiumingcheng) {
this.baoxiumingcheng = baoxiumingcheng;
}
/**
*
*/
public String getBaoxiumingcheng() {
return baoxiumingcheng;
}
/**
*
*/
public void setLeixing(String leixing) {
this.leixing = leixing;
}
/**
*
*/
public String getLeixing() {
return leixing;
}
/**
*
*/
public void setBaoxiuneirong(String baoxiuneirong) {
this.baoxiuneirong = baoxiuneirong;
}
/**
*
*/
public String getBaoxiuneirong() {
return baoxiuneirong;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setBaoxiuriqi(Date baoxiuriqi) {
this.baoxiuriqi = baoxiuriqi;
}
/**
*
*/
public Date getBaoxiuriqi() {
return baoxiuriqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,91 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("fangwuleixing")
public class FangwuleixingEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public FangwuleixingEntity() {
}
public FangwuleixingEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String fangwuleixing;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
}

@ -0,0 +1,291 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("fangwupingjia")
public class FangwupingjiaEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public FangwupingjiaEntity() {
}
public FangwupingjiaEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String hetongbianhao;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String pingfen;
/**
*
*/
private String pingjianeirong;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
@DateTimeFormat
private Date pingjiariqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setHetongbianhao(String hetongbianhao) {
this.hetongbianhao = hetongbianhao;
}
/**
*
*/
public String getHetongbianhao() {
return hetongbianhao;
}
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setPingfen(String pingfen) {
this.pingfen = pingfen;
}
/**
*
*/
public String getPingfen() {
return pingfen;
}
/**
*
*/
public void setPingjianeirong(String pingjianeirong) {
this.pingjianeirong = pingjianeirong;
}
/**
*
*/
public String getPingjianeirong() {
return pingjianeirong;
}
/**
*
*/
public void setPingjiariqi(Date pingjiariqi) {
this.pingjiariqi = pingjiariqi;
}
/**
*
*/
public Date getPingjiariqi() {
return pingjiariqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,363 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("fangwuxinxi")
public class FangwuxinxiEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public FangwuxinxiEntity() {
}
public FangwuxinxiEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String tupian;
/**
*
*/
private String zulinfangshi;
/**
*
*/
private String chaoxianglouceng;
/**
*
*/
private String mianji;
/**
*
*/
private String fangwuzhuangtai;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String xiangxidizhi;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private Integer yajin;
/**
*
*/
private String fangwusheshi;
/**
*
*/
private String fangwuxiangqing;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
@DateTimeFormat
private Date faburiqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setZulinfangshi(String zulinfangshi) {
this.zulinfangshi = zulinfangshi;
}
/**
*
*/
public String getZulinfangshi() {
return zulinfangshi;
}
/**
*
*/
public void setChaoxianglouceng(String chaoxianglouceng) {
this.chaoxianglouceng = chaoxianglouceng;
}
/**
*
*/
public String getChaoxianglouceng() {
return chaoxianglouceng;
}
/**
*
*/
public void setMianji(String mianji) {
this.mianji = mianji;
}
/**
*
*/
public String getMianji() {
return mianji;
}
/**
*
*/
public void setFangwuzhuangtai(String fangwuzhuangtai) {
this.fangwuzhuangtai = fangwuzhuangtai;
}
/**
*
*/
public String getFangwuzhuangtai() {
return fangwuzhuangtai;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setXiangxidizhi(String xiangxidizhi) {
this.xiangxidizhi = xiangxidizhi;
}
/**
*
*/
public String getXiangxidizhi() {
return xiangxidizhi;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setYajin(Integer yajin) {
this.yajin = yajin;
}
/**
*
*/
public Integer getYajin() {
return yajin;
}
/**
*
*/
public void setFangwusheshi(String fangwusheshi) {
this.fangwusheshi = fangwusheshi;
}
/**
*
*/
public String getFangwusheshi() {
return fangwusheshi;
}
/**
*
*/
public void setFangwuxiangqing(String fangwuxiangqing) {
this.fangwuxiangqing = fangwuxiangqing;
}
/**
*
*/
public String getFangwuxiangqing() {
return fangwuxiangqing;
}
/**
*
*/
public void setFaburiqi(Date faburiqi) {
this.faburiqi = faburiqi;
}
/**
*
*/
public Date getFaburiqi() {
return faburiqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
}

@ -0,0 +1,189 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
/**
*
*
* @author
* @email
*/
@TableName("fangzhu")
public class FangzhuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public FangzhuEntity() {
}
public FangzhuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String mima;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String xingbie;
/**
*
*/
private String touxiang;
/**
*
*/
private String shouji;
/**
*
*/
private String shenfenzheng;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
*
*/
public String getMima() {
return mima;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
*
*/
public String getXingbie() {
return xingbie;
}
/**
*
*/
public void setTouxiang(String touxiang) {
this.touxiang = touxiang;
}
/**
*
*/
public String getTouxiang() {
return touxiang;
}
/**
*
*/
public void setShouji(String shouji) {
this.shouji = shouji;
}
/**
*
*/
public String getShouji() {
return shouji;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
}

@ -0,0 +1,145 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("messages")
public class MessagesEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public MessagesEntity() {
}
public MessagesEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
* id
*/
private Long userid;
/**
*
*/
private String username;
/**
*
*/
private String content;
/**
*
*/
private String reply;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
*
*/
public void setUsername(String username) {
this.username = username;
}
/**
*
*/
public String getUsername() {
return username;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -0,0 +1,145 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("news")
public class NewsEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public NewsEntity() {
}
public NewsEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String title;
/**
*
*/
private String introduction;
/**
*
*/
private String picture;
/**
*
*/
private String content;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setTitle(String title) {
this.title = title;
}
/**
*
*/
public String getTitle() {
return title;
}
/**
*
*/
public void setIntroduction(String introduction) {
this.introduction = introduction;
}
/**
*
*/
public String getIntroduction() {
return introduction;
}
/**
*
*/
public void setPicture(String picture) {
this.picture = picture;
}
/**
*
*/
public String getPicture() {
return picture;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
}

@ -0,0 +1,163 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("storeup")
public class StoreupEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public StoreupEntity() {
}
public StoreupEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
* id
*/
private Long userid;
/**
* id
*/
private Long refid;
/**
*
*/
private String tablename;
/**
*
*/
private String name;
/**
*
*/
private String picture;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
* id
*/
public void setRefid(Long refid) {
this.refid = refid;
}
/**
* id
*/
public Long getRefid() {
return refid;
}
/**
*
*/
public void setTablename(String tablename) {
this.tablename = tablename;
}
/**
*
*/
public String getTablename() {
return tablename;
}
/**
*
*/
public void setName(String name) {
this.name = name;
}
/**
*
*/
public String getName() {
return name;
}
/**
*
*/
public void setPicture(String picture) {
this.picture = picture;
}
/**
*
*/
public String getPicture() {
return picture;
}
}

@ -0,0 +1,132 @@
package com.entity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
/**
* token
*/
@TableName("token")
public class TokenEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
private Long id;
/**
* id
*/
private Long userid;
/**
*
*/
private String username;
/**
*
*/
private String tablename;
/**
*
*/
private String role;
/**
* token
*/
private String token;
/**
*
*/
private Date expiratedtime;
/**
*
*/
private Date addtime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserid() {
return userid;
}
public void setUserid(Long userid) {
this.userid = userid;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public String getToken() {
return token;
}
public String getTablename() {
return tablename;
}
public void setTablename(String tablename) {
this.tablename = tablename;
}
public void setToken(String token) {
this.token = token;
}
public Date getExpiratedtime() {
return expiratedtime;
}
public void setExpiratedtime(Date expiratedtime) {
this.expiratedtime = expiratedtime;
}
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public TokenEntity(Long userid, String username, String tablename,String role, String token, Date expiratedtime) {
super();
this.userid = userid;
this.username = username;
this.tablename = tablename;
this.role = role;
this.token = token;
this.expiratedtime = expiratedtime;
}
public TokenEntity() {
}
}

@ -0,0 +1,77 @@
package com.entity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*/
@TableName("users")
public class UserEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
private Long id;
/**
*
*/
private String username;
/**
*
*/
private String password;
/**
*
*/
private String role;
private Date addtime;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}

@ -0,0 +1,291 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("weixiuchuli")
public class WeixiuchuliEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public WeixiuchuliEntity() {
}
public WeixiuchuliEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String baoxiumingcheng;
/**
*
*/
private String leixing;
/**
*
*/
private String baoxiuriqi;
/**
*
*/
private String weixiufankui;
/**
*
*/
private String weixiujindu;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
@DateTimeFormat
private Date gengxinriqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setBaoxiumingcheng(String baoxiumingcheng) {
this.baoxiumingcheng = baoxiumingcheng;
}
/**
*
*/
public String getBaoxiumingcheng() {
return baoxiumingcheng;
}
/**
*
*/
public void setLeixing(String leixing) {
this.leixing = leixing;
}
/**
*
*/
public String getLeixing() {
return leixing;
}
/**
*
*/
public void setBaoxiuriqi(String baoxiuriqi) {
this.baoxiuriqi = baoxiuriqi;
}
/**
*
*/
public String getBaoxiuriqi() {
return baoxiuriqi;
}
/**
*
*/
public void setWeixiufankui(String weixiufankui) {
this.weixiufankui = weixiufankui;
}
/**
*
*/
public String getWeixiufankui() {
return weixiufankui;
}
/**
*
*/
public void setWeixiujindu(String weixiujindu) {
this.weixiujindu = weixiujindu;
}
/**
*
*/
public String getWeixiujindu() {
return weixiujindu;
}
/**
*
*/
public void setGengxinriqi(Date gengxinriqi) {
this.gengxinriqi = gengxinriqi;
}
/**
*
*/
public Date getGengxinriqi() {
return gengxinriqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
}

@ -0,0 +1,327 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("woyaodangfangzhu")
public class WoyaodangfangzhuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public WoyaodangfangzhuEntity() {
}
public WoyaodangfangzhuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String tupian;
/**
*
*/
private String zulinfangshi;
/**
*
*/
private String chaoxianglouceng;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String mianji;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private String fangwuxiangqing;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
@DateTimeFormat
private Date faburiqi;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setZulinfangshi(String zulinfangshi) {
this.zulinfangshi = zulinfangshi;
}
/**
*
*/
public String getZulinfangshi() {
return zulinfangshi;
}
/**
*
*/
public void setChaoxianglouceng(String chaoxianglouceng) {
this.chaoxianglouceng = chaoxianglouceng;
}
/**
*
*/
public String getChaoxianglouceng() {
return chaoxianglouceng;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setMianji(String mianji) {
this.mianji = mianji;
}
/**
*
*/
public String getMianji() {
return mianji;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setFangwuxiangqing(String fangwuxiangqing) {
this.fangwuxiangqing = fangwuxiangqing;
}
/**
*
*/
public String getFangwuxiangqing() {
return fangwuxiangqing;
}
/**
*
*/
public void setFaburiqi(Date faburiqi) {
this.faburiqi = faburiqi;
}
/**
*
*/
public Date getFaburiqi() {
return faburiqi;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,312 @@
package com.entity;
import com.entity.WoyaodangfangzhuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class WoyaodangfangzhuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String tupian;
/**
*
*/
private String zulinfangshi;
/**
*
*/
private String chaoxianglouceng;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String mianji;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private String fangwuxiangqing;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date faburiqi;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setZulinfangshi(String zulinfangshi) {
this.zulinfangshi = zulinfangshi;
}
/**
*
*/
public String getZulinfangshi() {
return zulinfangshi;
}
/**
*
*/
public void setChaoxianglouceng(String chaoxianglouceng) {
this.chaoxianglouceng = chaoxianglouceng;
}
/**
*
*/
public String getChaoxianglouceng() {
return chaoxianglouceng;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setMianji(String mianji) {
this.mianji = mianji;
}
/**
*
*/
public String getMianji() {
return mianji;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setFangwuxiangqing(String fangwuxiangqing) {
this.fangwuxiangqing = fangwuxiangqing;
}
/**
*
*/
public String getFangwuxiangqing() {
return fangwuxiangqing;
}
/**
*
*/
public void setFaburiqi(Date faburiqi) {
this.faburiqi = faburiqi;
}
/**
*
*/
public Date getFaburiqi() {
return faburiqi;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,217 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
*/
@TableName("yonghu")
public class YonghuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public YonghuEntity() {
}
public YonghuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String yonghuming;
/**
*
*/
private String mima;
/**
*
*/
private String xingming;
/**
*
*/
private String touxiang;
/**
*
*/
private String xingbie;
/**
*
*/
private String zhiye;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String shenfenzheng;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
*
*/
public String getMima() {
return mima;
}
/**
*
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
*
*/
public String getXingming() {
return xingming;
}
/**
*
*/
public void setTouxiang(String touxiang) {
this.touxiang = touxiang;
}
/**
*
*/
public String getTouxiang() {
return touxiang;
}
/**
*
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
*
*/
public String getXingbie() {
return xingbie;
}
/**
*
*/
public void setZhiye(String zhiye) {
this.zhiye = zhiye;
}
/**
*
*/
public String getZhiye() {
return zhiye;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
}

@ -0,0 +1,389 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
/**
*
*
* @author
* @email
*/
@TableName("yuyuekanfang")
public class YuyuekanfangEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public YuyuekanfangEntity() {
}
public YuyuekanfangEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String yuyuebianhao;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String fangwuzhuangtai;
/**
*
*/
private String xiaoqu;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private String yajin;
/**
*
*/
private Integer zuyongyueshu;
/**
*
*/
private String zuyongjine;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date yuyueshijian;
/**
*
*/
private String yonghuming;
/**
*
*/
private String xingming;
/**
*
*/
private String shenfenzheng;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setYuyuebianhao(String yuyuebianhao) {
this.yuyuebianhao = yuyuebianhao;
}
/**
*
*/
public String getYuyuebianhao() {
return yuyuebianhao;
}
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setFangwuzhuangtai(String fangwuzhuangtai) {
this.fangwuzhuangtai = fangwuzhuangtai;
}
/**
*
*/
public String getFangwuzhuangtai() {
return fangwuzhuangtai;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setYajin(String yajin) {
this.yajin = yajin;
}
/**
*
*/
public String getYajin() {
return yajin;
}
/**
*
*/
public void setZuyongyueshu(Integer zuyongyueshu) {
this.zuyongyueshu = zuyongyueshu;
}
/**
*
*/
public Integer getZuyongyueshu() {
return zuyongyueshu;
}
/**
*
*/
public void setZuyongjine(String zuyongjine) {
this.zuyongjine = zuyongjine;
}
/**
*
*/
public String getZuyongjine() {
return zuyongjine;
}
/**
*
*/
public void setYuyueshijian(Date yuyueshijian) {
this.yuyueshijian = yuyueshijian;
}
/**
*
*/
public Date getYuyueshijian() {
return yuyueshijian;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
*
*/
public String getXingming() {
return xingming;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,90 @@
package com.entity.model;
import com.entity.DiscussfangwuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class DiscussfangwuxinxiModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long userid;
/**
*
*/
private String content;
/**
*
*/
private String reply;
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -0,0 +1,90 @@
package com.entity.model;
import com.entity.DiscusswoyaodangfangzhuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class DiscusswoyaodangfangzhuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long userid;
/**
*
*/
private String content;
/**
*
*/
private String reply;
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -0,0 +1,334 @@
package com.entity.model;
import com.entity.FangwubaoxiuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class FangwubaoxiuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String baoxiumingcheng;
/**
*
*/
private String leixing;
/**
*
*/
private String baoxiuneirong;
/**
*
*/
private String tupian;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date baoxiuriqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setBaoxiumingcheng(String baoxiumingcheng) {
this.baoxiumingcheng = baoxiumingcheng;
}
/**
*
*/
public String getBaoxiumingcheng() {
return baoxiumingcheng;
}
/**
*
*/
public void setLeixing(String leixing) {
this.leixing = leixing;
}
/**
*
*/
public String getLeixing() {
return leixing;
}
/**
*
*/
public void setBaoxiuneirong(String baoxiuneirong) {
this.baoxiuneirong = baoxiuneirong;
}
/**
*
*/
public String getBaoxiuneirong() {
return baoxiuneirong;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setBaoxiuriqi(Date baoxiuriqi) {
this.baoxiuriqi = baoxiuriqi;
}
/**
*
*/
public Date getBaoxiuriqi() {
return baoxiuriqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,24 @@
package com.entity.model;
import com.entity.FangwuleixingEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class FangwuleixingModel implements Serializable {
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,268 @@
package com.entity.model;
import com.entity.FangwupingjiaEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class FangwupingjiaModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String pingfen;
/**
*
*/
private String pingjianeirong;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date pingjiariqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setPingfen(String pingfen) {
this.pingfen = pingfen;
}
/**
*
*/
public String getPingfen() {
return pingfen;
}
/**
*
*/
public void setPingjianeirong(String pingjianeirong) {
this.pingjianeirong = pingjianeirong;
}
/**
*
*/
public String getPingjianeirong() {
return pingjianeirong;
}
/**
*
*/
public void setPingjiariqi(Date pingjiariqi) {
this.pingjiariqi = pingjiariqi;
}
/**
*
*/
public Date getPingjiariqi() {
return pingjiariqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,356 @@
package com.entity.model;
import com.entity.FangwuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class FangwuxinxiModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String tupian;
/**
*
*/
private String zulinfangshi;
/**
*
*/
private String chaoxianglouceng;
/**
*
*/
private String mianji;
/**
*
*/
private String fangwuzhuangtai;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String xiangxidizhi;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private Integer yajin;
/**
*
*/
private String fangwusheshi;
/**
*
*/
private String fangwuxiangqing;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date faburiqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setZulinfangshi(String zulinfangshi) {
this.zulinfangshi = zulinfangshi;
}
/**
*
*/
public String getZulinfangshi() {
return zulinfangshi;
}
/**
*
*/
public void setChaoxianglouceng(String chaoxianglouceng) {
this.chaoxianglouceng = chaoxianglouceng;
}
/**
*
*/
public String getChaoxianglouceng() {
return chaoxianglouceng;
}
/**
*
*/
public void setMianji(String mianji) {
this.mianji = mianji;
}
/**
*
*/
public String getMianji() {
return mianji;
}
/**
*
*/
public void setFangwuzhuangtai(String fangwuzhuangtai) {
this.fangwuzhuangtai = fangwuzhuangtai;
}
/**
*
*/
public String getFangwuzhuangtai() {
return fangwuzhuangtai;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setXiangxidizhi(String xiangxidizhi) {
this.xiangxidizhi = xiangxidizhi;
}
/**
*
*/
public String getXiangxidizhi() {
return xiangxidizhi;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setYajin(Integer yajin) {
this.yajin = yajin;
}
/**
*
*/
public Integer getYajin() {
return yajin;
}
/**
*
*/
public void setFangwusheshi(String fangwusheshi) {
this.fangwusheshi = fangwusheshi;
}
/**
*
*/
public String getFangwusheshi() {
return fangwusheshi;
}
/**
*
*/
public void setFangwuxiangqing(String fangwuxiangqing) {
this.fangwuxiangqing = fangwuxiangqing;
}
/**
*
*/
public String getFangwuxiangqing() {
return fangwuxiangqing;
}
/**
*
*/
public void setFaburiqi(Date faburiqi) {
this.faburiqi = faburiqi;
}
/**
*
*/
public Date getFaburiqi() {
return faburiqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
}

@ -0,0 +1,149 @@
package com.entity.model;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class FangzhuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String mima;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String xingbie;
/**
*
*/
private String touxiang;
/**
*
*/
private String shouji;
/**
*
*/
private String shenfenzheng;
/**
*
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
*
*/
public String getMima() {
return mima;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
*
*/
public String getXingbie() {
return xingbie;
}
/**
*
*/
public void setTouxiang(String touxiang) {
this.touxiang = touxiang;
}
/**
*
*/
public String getTouxiang() {
return touxiang;
}
/**
*
*/
public void setShouji(String shouji) {
this.shouji = shouji;
}
/**
*
*/
public String getShouji() {
return shouji;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
}

@ -0,0 +1,90 @@
package com.entity.model;
import com.entity.MessagesEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class MessagesModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String username;
/**
*
*/
private String content;
/**
*
*/
private String reply;
/**
*
*/
public void setUsername(String username) {
this.username = username;
}
/**
*
*/
public String getUsername() {
return username;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -0,0 +1,90 @@
package com.entity.model;
import com.entity.NewsEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class NewsModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String introduction;
/**
*
*/
private String picture;
/**
*
*/
private String content;
/**
*
*/
public void setIntroduction(String introduction) {
this.introduction = introduction;
}
/**
*
*/
public String getIntroduction() {
return introduction;
}
/**
*
*/
public void setPicture(String picture) {
this.picture = picture;
}
/**
*
*/
public String getPicture() {
return picture;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
}

@ -0,0 +1,112 @@
package com.entity.model;
import com.entity.StoreupEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class StoreupModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long refid;
/**
*
*/
private String tablename;
/**
*
*/
private String name;
/**
*
*/
private String picture;
/**
* id
*/
public void setRefid(Long refid) {
this.refid = refid;
}
/**
* id
*/
public Long getRefid() {
return refid;
}
/**
*
*/
public void setTablename(String tablename) {
this.tablename = tablename;
}
/**
*
*/
public String getTablename() {
return tablename;
}
/**
*
*/
public void setName(String name) {
this.name = name;
}
/**
*
*/
public String getName() {
return name;
}
/**
*
*/
public void setPicture(String picture) {
this.picture = picture;
}
/**
*
*/
public String getPicture() {
return picture;
}
}

@ -0,0 +1,268 @@
package com.entity.model;
import com.entity.WeixiuchuliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class WeixiuchuliModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String baoxiumingcheng;
/**
*
*/
private String leixing;
/**
*
*/
private String baoxiuriqi;
/**
*
*/
private String weixiufankui;
/**
*
*/
private String weixiujindu;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date gengxinriqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setBaoxiumingcheng(String baoxiumingcheng) {
this.baoxiumingcheng = baoxiumingcheng;
}
/**
*
*/
public String getBaoxiumingcheng() {
return baoxiumingcheng;
}
/**
*
*/
public void setLeixing(String leixing) {
this.leixing = leixing;
}
/**
*
*/
public String getLeixing() {
return leixing;
}
/**
*
*/
public void setBaoxiuriqi(String baoxiuriqi) {
this.baoxiuriqi = baoxiuriqi;
}
/**
*
*/
public String getBaoxiuriqi() {
return baoxiuriqi;
}
/**
*
*/
public void setWeixiufankui(String weixiufankui) {
this.weixiufankui = weixiufankui;
}
/**
*
*/
public String getWeixiufankui() {
return weixiufankui;
}
/**
*
*/
public void setWeixiujindu(String weixiujindu) {
this.weixiujindu = weixiujindu;
}
/**
*
*/
public String getWeixiujindu() {
return weixiujindu;
}
/**
*
*/
public void setGengxinriqi(Date gengxinriqi) {
this.gengxinriqi = gengxinriqi;
}
/**
*
*/
public Date getGengxinriqi() {
return gengxinriqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
}

@ -0,0 +1,309 @@
package com.entity.model;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class WoyaodangfangzhuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String tupian;
/**
*
*/
private String zulinfangshi;
/**
*
*/
private String chaoxianglouceng;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String mianji;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private String fangwuxiangqing;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date faburiqi;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setZulinfangshi(String zulinfangshi) {
this.zulinfangshi = zulinfangshi;
}
/**
*
*/
public String getZulinfangshi() {
return zulinfangshi;
}
/**
*
*/
public void setChaoxianglouceng(String chaoxianglouceng) {
this.chaoxianglouceng = chaoxianglouceng;
}
/**
*
*/
public String getChaoxianglouceng() {
return chaoxianglouceng;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setMianji(String mianji) {
this.mianji = mianji;
}
/**
*
*/
public String getMianji() {
return mianji;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setFangwuxiangqing(String fangwuxiangqing) {
this.fangwuxiangqing = fangwuxiangqing;
}
/**
*
*/
public String getFangwuxiangqing() {
return fangwuxiangqing;
}
/**
*
*/
public void setFaburiqi(Date faburiqi) {
this.faburiqi = faburiqi;
}
/**
*
*/
public Date getFaburiqi() {
return faburiqi;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,179 @@
package com.entity.model;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
* entity
* ModelAndView model
* @author
* @email
*/
public class YonghuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String mima;
/**
*
*/
private String xingming;
/**
*
*/
private String touxiang;
/**
*
*/
private String xingbie;
/**
*
*/
private String zhiye;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String shenfenzheng;
/**
*
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
*
*/
public String getMima() {
return mima;
}
/**
*
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
*
*/
public String getXingming() {
return xingming;
}
/**
*
*/
public void setTouxiang(String touxiang) {
this.touxiang = touxiang;
}
/**
*
*/
public String getTouxiang() {
return touxiang;
}
/**
*
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
*
*/
public String getXingbie() {
return xingbie;
}
/**
*
*/
public void setZhiye(String zhiye) {
this.zhiye = zhiye;
}
/**
*
*/
public String getZhiye() {
return zhiye;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
}

@ -0,0 +1,397 @@
package com.entity.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* ModelAndView model
* @author
* @email
*/
public class YuyuekanfangModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String fangwuzhuangtai;
/**
*
*/
private String xiaoqu;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private String yajin;
/**
*
*/
private Integer zuyongyueshu;
/**
*
*/
private String zuyongjine;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date yuyueshijian;
/**
*
*/
private String yonghuming;
/**
*
*/
private String xingming;
/**
*
*/
private String shenfenzheng;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setFangwuzhuangtai(String fangwuzhuangtai) {
this.fangwuzhuangtai = fangwuzhuangtai;
}
/**
*
*/
public String getFangwuzhuangtai() {
return fangwuzhuangtai;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setYajin(String yajin) {
this.yajin = yajin;
}
/**
*
*/
public String getYajin() {
return yajin;
}
/**
*
*/
public void setZuyongyueshu(Integer zuyongyueshu) {
this.zuyongyueshu = zuyongyueshu;
}
/**
*
*/
public Integer getZuyongyueshu() {
return zuyongyueshu;
}
/**
*
*/
public void setZuyongjine(String zuyongjine) {
this.zuyongjine = zuyongjine;
}
/**
*
*/
public String getZuyongjine() {
return zuyongjine;
}
/**
*
*/
public void setYuyueshijian(Date yuyueshijian) {
this.yuyueshijian = yuyueshijian;
}
/**
*
*/
public Date getYuyueshijian() {
return yuyueshijian;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
*
*/
public String getXingming() {
return xingming;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.DiscussfangwuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("discussfangwuxinxi")
public class DiscussfangwuxinxiView extends DiscussfangwuxinxiEntity implements Serializable {
private static final long serialVersionUID = 1L;
public DiscussfangwuxinxiView(){
}
public DiscussfangwuxinxiView(DiscussfangwuxinxiEntity discussfangwuxinxiEntity){
try {
BeanUtils.copyProperties(this, discussfangwuxinxiEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.DiscusswoyaodangfangzhuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("discusswoyaodangfangzhu")
public class DiscusswoyaodangfangzhuView extends DiscusswoyaodangfangzhuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public DiscusswoyaodangfangzhuView(){
}
public DiscusswoyaodangfangzhuView(DiscusswoyaodangfangzhuEntity discusswoyaodangfangzhuEntity){
try {
BeanUtils.copyProperties(this, discusswoyaodangfangzhuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.FangwubaoxiuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("fangwubaoxiu")
public class FangwubaoxiuView extends FangwubaoxiuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public FangwubaoxiuView(){
}
public FangwubaoxiuView(FangwubaoxiuEntity fangwubaoxiuEntity){
try {
BeanUtils.copyProperties(this, fangwubaoxiuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.FangwuleixingEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("fangwuleixing")
public class FangwuleixingView extends FangwuleixingEntity implements Serializable {
private static final long serialVersionUID = 1L;
public FangwuleixingView(){
}
public FangwuleixingView(FangwuleixingEntity fangwuleixingEntity){
try {
BeanUtils.copyProperties(this, fangwuleixingEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.FangwupingjiaEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("fangwupingjia")
public class FangwupingjiaView extends FangwupingjiaEntity implements Serializable {
private static final long serialVersionUID = 1L;
public FangwupingjiaView(){
}
public FangwupingjiaView(FangwupingjiaEntity fangwupingjiaEntity){
try {
BeanUtils.copyProperties(this, fangwupingjiaEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.FangwuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("fangwuxinxi")
public class FangwuxinxiView extends FangwuxinxiEntity implements Serializable {
private static final long serialVersionUID = 1L;
public FangwuxinxiView(){
}
public FangwuxinxiView(FangwuxinxiEntity fangwuxinxiEntity){
try {
BeanUtils.copyProperties(this, fangwuxinxiEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,34 @@
package com.entity.view;
import com.baomidou.mybatisplus.annotations.TableName;
import com.entity.FangzhuEntity;
import org.apache.commons.beanutils.BeanUtils;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
/**
*
*
* 使
* @author
* @email
*/
@TableName("fangzhu")
public class FangzhuView extends FangzhuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public FangzhuView(){
}
public FangzhuView(FangzhuEntity fangzhuEntity){
try {
BeanUtils.copyProperties(this, fangzhuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.MessagesEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("messages")
public class MessagesView extends MessagesEntity implements Serializable {
private static final long serialVersionUID = 1L;
public MessagesView(){
}
public MessagesView(MessagesEntity messagesEntity){
try {
BeanUtils.copyProperties(this, messagesEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.NewsEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("news")
public class NewsView extends NewsEntity implements Serializable {
private static final long serialVersionUID = 1L;
public NewsView(){
}
public NewsView(NewsEntity newsEntity){
try {
BeanUtils.copyProperties(this, newsEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.StoreupEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("storeup")
public class StoreupView extends StoreupEntity implements Serializable {
private static final long serialVersionUID = 1L;
public StoreupView(){
}
public StoreupView(StoreupEntity storeupEntity){
try {
BeanUtils.copyProperties(this, storeupEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.WeixiuchuliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("weixiuchuli")
public class WeixiuchuliView extends WeixiuchuliEntity implements Serializable {
private static final long serialVersionUID = 1L;
public WeixiuchuliView(){
}
public WeixiuchuliView(WeixiuchuliEntity weixiuchuliEntity){
try {
BeanUtils.copyProperties(this, weixiuchuliEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.WoyaodangfangzhuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("woyaodangfangzhu")
public class WoyaodangfangzhuView extends WoyaodangfangzhuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public WoyaodangfangzhuView(){
}
public WoyaodangfangzhuView(WoyaodangfangzhuEntity woyaodangfangzhuEntity){
try {
BeanUtils.copyProperties(this, woyaodangfangzhuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,35 @@
package com.entity.view;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
*
*
* 使
* @author
* @email
*/
@TableName("yonghu")
public class YonghuView extends YonghuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public YonghuView(){
}
public YonghuView(YonghuEntity yonghuEntity){
try {
BeanUtils.copyProperties(this, yonghuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,34 @@
package com.entity.view;
import com.baomidou.mybatisplus.annotations.TableName;
import com.entity.YuyuekanfangEntity;
import org.apache.commons.beanutils.BeanUtils;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
/**
*
*
* 使
* @author
* @email
*/
@TableName("yuyuekanfang")
public class YuyuekanfangView extends YuyuekanfangEntity implements Serializable {
private static final long serialVersionUID = 1L;
public YuyuekanfangView(){
}
public YuyuekanfangView(YuyuekanfangEntity yuyuekanfangEntity){
try {
BeanUtils.copyProperties(this, yuyuekanfangEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

@ -0,0 +1,90 @@
package com.entity.vo;
import com.entity.DiscussfangwuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class DiscussfangwuxinxiVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long userid;
/**
*
*/
private String content;
/**
*
*/
private String reply;
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -0,0 +1,334 @@
package com.entity.vo;
import com.entity.FangwubaoxiuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class FangwubaoxiuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String baoxiumingcheng;
/**
*
*/
private String leixing;
/**
*
*/
private String baoxiuneirong;
/**
*
*/
private String tupian;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date baoxiuriqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setBaoxiumingcheng(String baoxiumingcheng) {
this.baoxiumingcheng = baoxiumingcheng;
}
/**
*
*/
public String getBaoxiumingcheng() {
return baoxiumingcheng;
}
/**
*
*/
public void setLeixing(String leixing) {
this.leixing = leixing;
}
/**
*
*/
public String getLeixing() {
return leixing;
}
/**
*
*/
public void setBaoxiuneirong(String baoxiuneirong) {
this.baoxiuneirong = baoxiuneirong;
}
/**
*
*/
public String getBaoxiuneirong() {
return baoxiuneirong;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setBaoxiuriqi(Date baoxiuriqi) {
this.baoxiuriqi = baoxiuriqi;
}
/**
*
*/
public Date getBaoxiuriqi() {
return baoxiuriqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,24 @@
package com.entity.vo;
import com.entity.FangwuleixingEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class FangwuleixingVO implements Serializable {
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,268 @@
package com.entity.vo;
import com.entity.FangwupingjiaEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class FangwupingjiaVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String pingfen;
/**
*
*/
private String pingjianeirong;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date pingjiariqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setPingfen(String pingfen) {
this.pingfen = pingfen;
}
/**
*
*/
public String getPingfen() {
return pingfen;
}
/**
*
*/
public void setPingjianeirong(String pingjianeirong) {
this.pingjianeirong = pingjianeirong;
}
/**
*
*/
public String getPingjianeirong() {
return pingjianeirong;
}
/**
*
*/
public void setPingjiariqi(Date pingjiariqi) {
this.pingjiariqi = pingjiariqi;
}
/**
*
*/
public Date getPingjiariqi() {
return pingjiariqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,356 @@
package com.entity.vo;
import com.entity.FangwuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class FangwuxinxiVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String tupian;
/**
*
*/
private String zulinfangshi;
/**
*
*/
private String chaoxianglouceng;
/**
*
*/
private String mianji;
/**
*
*/
private String fangwuzhuangtai;
/**
*
*/
private String xiaoqu;
/**
*
*/
private String xiangxidizhi;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private Integer yajin;
/**
*
*/
private String fangwusheshi;
/**
*
*/
private String fangwuxiangqing;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date faburiqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setZulinfangshi(String zulinfangshi) {
this.zulinfangshi = zulinfangshi;
}
/**
*
*/
public String getZulinfangshi() {
return zulinfangshi;
}
/**
*
*/
public void setChaoxianglouceng(String chaoxianglouceng) {
this.chaoxianglouceng = chaoxianglouceng;
}
/**
*
*/
public String getChaoxianglouceng() {
return chaoxianglouceng;
}
/**
*
*/
public void setMianji(String mianji) {
this.mianji = mianji;
}
/**
*
*/
public String getMianji() {
return mianji;
}
/**
*
*/
public void setFangwuzhuangtai(String fangwuzhuangtai) {
this.fangwuzhuangtai = fangwuzhuangtai;
}
/**
*
*/
public String getFangwuzhuangtai() {
return fangwuzhuangtai;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setXiangxidizhi(String xiangxidizhi) {
this.xiangxidizhi = xiangxidizhi;
}
/**
*
*/
public String getXiangxidizhi() {
return xiangxidizhi;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setYajin(Integer yajin) {
this.yajin = yajin;
}
/**
*
*/
public Integer getYajin() {
return yajin;
}
/**
*
*/
public void setFangwusheshi(String fangwusheshi) {
this.fangwusheshi = fangwusheshi;
}
/**
*
*/
public String getFangwusheshi() {
return fangwusheshi;
}
/**
*
*/
public void setFangwuxiangqing(String fangwuxiangqing) {
this.fangwuxiangqing = fangwuxiangqing;
}
/**
*
*/
public String getFangwuxiangqing() {
return fangwuxiangqing;
}
/**
*
*/
public void setFaburiqi(Date faburiqi) {
this.faburiqi = faburiqi;
}
/**
*
*/
public Date getFaburiqi() {
return faburiqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
}

@ -0,0 +1,149 @@
package com.entity.vo;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class FangzhuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String mima;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String xingbie;
/**
*
*/
private String touxiang;
/**
*
*/
private String shouji;
/**
*
*/
private String shenfenzheng;
/**
*
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
*
*/
public String getMima() {
return mima;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
*
*/
public String getXingbie() {
return xingbie;
}
/**
*
*/
public void setTouxiang(String touxiang) {
this.touxiang = touxiang;
}
/**
*
*/
public String getTouxiang() {
return touxiang;
}
/**
*
*/
public void setShouji(String shouji) {
this.shouji = shouji;
}
/**
*
*/
public String getShouji() {
return shouji;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
}

@ -0,0 +1,90 @@
package com.entity.vo;
import com.entity.MessagesEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class MessagesVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String username;
/**
*
*/
private String content;
/**
*
*/
private String reply;
/**
*
*/
public void setUsername(String username) {
this.username = username;
}
/**
*
*/
public String getUsername() {
return username;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -0,0 +1,90 @@
package com.entity.vo;
import com.entity.NewsEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class NewsVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String introduction;
/**
*
*/
private String picture;
/**
*
*/
private String content;
/**
*
*/
public void setIntroduction(String introduction) {
this.introduction = introduction;
}
/**
*
*/
public String getIntroduction() {
return introduction;
}
/**
*
*/
public void setPicture(String picture) {
this.picture = picture;
}
/**
*
*/
public String getPicture() {
return picture;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
}

@ -0,0 +1,112 @@
package com.entity.vo;
import com.entity.StoreupEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class StoreupVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long refid;
/**
*
*/
private String tablename;
/**
*
*/
private String name;
/**
*
*/
private String picture;
/**
* id
*/
public void setRefid(Long refid) {
this.refid = refid;
}
/**
* id
*/
public Long getRefid() {
return refid;
}
/**
*
*/
public void setTablename(String tablename) {
this.tablename = tablename;
}
/**
*
*/
public String getTablename() {
return tablename;
}
/**
*
*/
public void setName(String name) {
this.name = name;
}
/**
*
*/
public String getName() {
return name;
}
/**
*
*/
public void setPicture(String picture) {
this.picture = picture;
}
/**
*
*/
public String getPicture() {
return picture;
}
}

@ -0,0 +1,268 @@
package com.entity.vo;
import com.entity.WeixiuchuliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class WeixiuchuliVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String baoxiumingcheng;
/**
*
*/
private String leixing;
/**
*
*/
private String baoxiuriqi;
/**
*
*/
private String weixiufankui;
/**
*
*/
private String weixiujindu;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date gengxinriqi;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String yonghuming;
/**
*
*/
private String lianxidianhua;
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setBaoxiumingcheng(String baoxiumingcheng) {
this.baoxiumingcheng = baoxiumingcheng;
}
/**
*
*/
public String getBaoxiumingcheng() {
return baoxiumingcheng;
}
/**
*
*/
public void setLeixing(String leixing) {
this.leixing = leixing;
}
/**
*
*/
public String getLeixing() {
return leixing;
}
/**
*
*/
public void setBaoxiuriqi(String baoxiuriqi) {
this.baoxiuriqi = baoxiuriqi;
}
/**
*
*/
public String getBaoxiuriqi() {
return baoxiuriqi;
}
/**
*
*/
public void setWeixiufankui(String weixiufankui) {
this.weixiufankui = weixiufankui;
}
/**
*
*/
public String getWeixiufankui() {
return weixiufankui;
}
/**
*
*/
public void setWeixiujindu(String weixiujindu) {
this.weixiujindu = weixiujindu;
}
/**
*
*/
public String getWeixiujindu() {
return weixiujindu;
}
/**
*
*/
public void setGengxinriqi(Date gengxinriqi) {
this.gengxinriqi = gengxinriqi;
}
/**
*
*/
public Date getGengxinriqi() {
return gengxinriqi;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
}

@ -0,0 +1,178 @@
package com.entity.vo;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
* @author
* @email
*/
public class YonghuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String mima;
/**
*
*/
private String xingming;
/**
*
*/
private String touxiang;
/**
*
*/
private String xingbie;
/**
*
*/
private String zhiye;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String shenfenzheng;
/**
*
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
*
*/
public String getMima() {
return mima;
}
/**
*
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
*
*/
public String getXingming() {
return xingming;
}
/**
*
*/
public void setTouxiang(String touxiang) {
this.touxiang = touxiang;
}
/**
*
*/
public String getTouxiang() {
return touxiang;
}
/**
*
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
*
*/
public String getXingbie() {
return xingbie;
}
/**
*
*/
public void setZhiye(String zhiye) {
this.zhiye = zhiye;
}
/**
*
*/
public String getZhiye() {
return zhiye;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
}

@ -0,0 +1,397 @@
package com.entity.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
*
*
*
* @author
* @email
*/
public class YuyuekanfangVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
private String fangwumingcheng;
/**
*
*/
private String fangwuleixing;
/**
*
*/
private String fangwuzhuangtai;
/**
*
*/
private String xiaoqu;
/**
*
*/
private Integer yuezujiage;
/**
*
*/
private String yajin;
/**
*
*/
private Integer zuyongyueshu;
/**
*
*/
private String zuyongjine;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date yuyueshijian;
/**
*
*/
private String yonghuming;
/**
*
*/
private String xingming;
/**
*
*/
private String shenfenzheng;
/**
*
*/
private String lianxidianhua;
/**
*
*/
private String fangzhuzhanghao;
/**
*
*/
private String fangzhuxingming;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
public void setFangwumingcheng(String fangwumingcheng) {
this.fangwumingcheng = fangwumingcheng;
}
/**
*
*/
public String getFangwumingcheng() {
return fangwumingcheng;
}
/**
*
*/
public void setFangwuleixing(String fangwuleixing) {
this.fangwuleixing = fangwuleixing;
}
/**
*
*/
public String getFangwuleixing() {
return fangwuleixing;
}
/**
*
*/
public void setFangwuzhuangtai(String fangwuzhuangtai) {
this.fangwuzhuangtai = fangwuzhuangtai;
}
/**
*
*/
public String getFangwuzhuangtai() {
return fangwuzhuangtai;
}
/**
*
*/
public void setXiaoqu(String xiaoqu) {
this.xiaoqu = xiaoqu;
}
/**
*
*/
public String getXiaoqu() {
return xiaoqu;
}
/**
*
*/
public void setYuezujiage(Integer yuezujiage) {
this.yuezujiage = yuezujiage;
}
/**
*
*/
public Integer getYuezujiage() {
return yuezujiage;
}
/**
*
*/
public void setYajin(String yajin) {
this.yajin = yajin;
}
/**
*
*/
public String getYajin() {
return yajin;
}
/**
*
*/
public void setZuyongyueshu(Integer zuyongyueshu) {
this.zuyongyueshu = zuyongyueshu;
}
/**
*
*/
public Integer getZuyongyueshu() {
return zuyongyueshu;
}
/**
*
*/
public void setZuyongjine(String zuyongjine) {
this.zuyongjine = zuyongjine;
}
/**
*
*/
public String getZuyongjine() {
return zuyongjine;
}
/**
*
*/
public void setYuyueshijian(Date yuyueshijian) {
this.yuyueshijian = yuyueshijian;
}
/**
*
*/
public Date getYuyueshijian() {
return yuyueshijian;
}
/**
*
*/
public void setYonghuming(String yonghuming) {
this.yonghuming = yonghuming;
}
/**
*
*/
public String getYonghuming() {
return yonghuming;
}
/**
*
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
*
*/
public String getXingming() {
return xingming;
}
/**
*
*/
public void setShenfenzheng(String shenfenzheng) {
this.shenfenzheng = shenfenzheng;
}
/**
*
*/
public String getShenfenzheng() {
return shenfenzheng;
}
/**
*
*/
public void setLianxidianhua(String lianxidianhua) {
this.lianxidianhua = lianxidianhua;
}
/**
*
*/
public String getLianxidianhua() {
return lianxidianhua;
}
/**
*
*/
public void setFangzhuzhanghao(String fangzhuzhanghao) {
this.fangzhuzhanghao = fangzhuzhanghao;
}
/**
*
*/
public String getFangzhuzhanghao() {
return fangzhuzhanghao;
}
/**
*
*/
public void setFangzhuxingming(String fangzhuxingming) {
this.fangzhuxingming = fangzhuxingming;
}
/**
*
*/
public String getFangzhuxingming() {
return fangzhuxingming;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -0,0 +1,20 @@
package com.service;
import java.util.List;
import java.util.Map;
public interface CommonService {
List<String> getOption(Map<String, Object> params);
Map<String, Object> getFollowByOption(Map<String, Object> params);
void sh(Map<String, Object> params);
int remindCount(Map<String, Object> params);
Map<String, Object> selectCal(Map<String, Object> params);
List<Map<String, Object>> selectGroup(Map<String, Object> params);
List<Map<String, Object>> selectValue(Map<String, Object> params);
}

@ -0,0 +1,16 @@
package com.service;
import java.util.Map;
import com.baomidou.mybatisplus.service.IService;
import com.entity.ConfigEntity;
import com.utils.PageUtils;
/**
*
*/
public interface ConfigService extends IService<ConfigEntity> {
PageUtils queryPage(Map<String, Object> params);
}

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.DiscussfangwuxinxiEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.DiscussfangwuxinxiVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.DiscussfangwuxinxiView;
/**
*
*
* @author
* @email
* @date 2021-03-04 18:46:21
*/
public interface DiscussfangwuxinxiService extends IService<DiscussfangwuxinxiEntity> {
PageUtils queryPage(Map<String, Object> params);
List<DiscussfangwuxinxiVO> selectListVO(Wrapper<DiscussfangwuxinxiEntity> wrapper);
DiscussfangwuxinxiVO selectVO(@Param("ew") Wrapper<DiscussfangwuxinxiEntity> wrapper);
List<DiscussfangwuxinxiView> selectListView(Wrapper<DiscussfangwuxinxiEntity> wrapper);
DiscussfangwuxinxiView selectView(@Param("ew") Wrapper<DiscussfangwuxinxiEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<DiscussfangwuxinxiEntity> wrapper);
}

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.DiscusswoyaodangfangzhuEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.DiscusswoyaodangfangzhuVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.DiscusswoyaodangfangzhuView;
/**
*
*
* @author
* @email
* @date 2021-03-04 18:46:21
*/
public interface DiscusswoyaodangfangzhuService extends IService<DiscusswoyaodangfangzhuEntity> {
PageUtils queryPage(Map<String, Object> params);
List<DiscusswoyaodangfangzhuVO> selectListVO(Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
DiscusswoyaodangfangzhuVO selectVO(@Param("ew") Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
List<DiscusswoyaodangfangzhuView> selectListView(Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
DiscusswoyaodangfangzhuView selectView(@Param("ew") Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<DiscusswoyaodangfangzhuEntity> wrapper);
}

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.FangwubaoxiuEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.FangwubaoxiuVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.FangwubaoxiuView;
/**
*
*
* @author
* @email
* @date 2021-03-04 18:46:21
*/
public interface FangwubaoxiuService extends IService<FangwubaoxiuEntity> {
PageUtils queryPage(Map<String, Object> params);
List<FangwubaoxiuVO> selectListVO(Wrapper<FangwubaoxiuEntity> wrapper);
FangwubaoxiuVO selectVO(@Param("ew") Wrapper<FangwubaoxiuEntity> wrapper);
List<FangwubaoxiuView> selectListView(Wrapper<FangwubaoxiuEntity> wrapper);
FangwubaoxiuView selectView(@Param("ew") Wrapper<FangwubaoxiuEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<FangwubaoxiuEntity> wrapper);
}

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.FangwuleixingEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.FangwuleixingVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.FangwuleixingView;
/**
*
*
* @author
* @email
* @date 2021-03-04 18:46:21
*/
public interface FangwuleixingService extends IService<FangwuleixingEntity> {
PageUtils queryPage(Map<String, Object> params);
List<FangwuleixingVO> selectListVO(Wrapper<FangwuleixingEntity> wrapper);
FangwuleixingVO selectVO(@Param("ew") Wrapper<FangwuleixingEntity> wrapper);
List<FangwuleixingView> selectListView(Wrapper<FangwuleixingEntity> wrapper);
FangwuleixingView selectView(@Param("ew") Wrapper<FangwuleixingEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<FangwuleixingEntity> wrapper);
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save