Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
|
194c3ed71e | 1 year ago |
@ -1 +0,0 @@
|
||||
getdyList
|
@ -0,0 +1,12 @@
|
||||
//package com.shxy.xymanager_admin;
|
||||
//
|
||||
//import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
//import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
//
|
||||
//public class SpringBootStartApplication extends SpringBootServletInitializer {
|
||||
// @Override
|
||||
// protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
||||
// // 注意这里要指向原先用main方法执行的Application启动类
|
||||
// return builder.sources(XymanagerAdminApplication.class);
|
||||
// }
|
||||
//}
|
@ -1,66 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.MntnActivities;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.ActivitiesService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"活动相关接口"})
|
||||
@RequestMapping("activity")
|
||||
@Slf4j
|
||||
public class ActivityController extends BaseController {
|
||||
|
||||
@Resource
|
||||
ActivitiesService service;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询全部列表")
|
||||
@Log(title = "查询活动全部列表", type = "查询")
|
||||
public ResponseReult<List<MntnActivities>> listAll(@RequestParam(value = "simple", required = false) String simple) {
|
||||
List<MntnActivities> result = service.listAll(null, simple);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("add")
|
||||
@ApiOperation("新增")
|
||||
@Log(title = "新增活动", type = "新增")
|
||||
public ResponseReult<String> add(@Validated @RequestBody MntnActivities item) throws Exception {
|
||||
service.add(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("update")
|
||||
@ApiOperation("修改")
|
||||
@Log(title = "修改活动", type = "修改")
|
||||
public ResponseReult<String> update(@Validated @RequestBody MntnActivities item) throws Exception {
|
||||
if (item.getId() == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.update(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除活动", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.CameraSchedule;
|
||||
import com.shxy.xymanager_service.service.CameraScheduleService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"装置的拍照时间表接口"})
|
||||
@RequestMapping("schedule")
|
||||
@Slf4j
|
||||
public class CameraScheduleController extends BaseController {
|
||||
|
||||
@Resource
|
||||
CameraScheduleService service;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询")
|
||||
@Log(title = "查询", type = "查询")
|
||||
public ResponseReult<List<CameraSchedule>> list(@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
|
||||
List<CameraSchedule> result = service.list(termId);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("getOne")
|
||||
@ApiOperation("查询")
|
||||
@Log(title = "查询", type = "查询")
|
||||
public ResponseReult<CameraSchedule> getOne(@RequestParam(value = "termId", required = true) Integer termId,
|
||||
@RequestParam(value = "channel", required = true) Integer channel) throws Exception {
|
||||
CameraSchedule result = service.getOne(termId, channel);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
}
|
@ -1,88 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.MntnCmdHistory;
|
||||
import com.shxy.xymanager_common.entity.MntnCmds;
|
||||
import com.shxy.xymanager_common.model.ActionModel;
|
||||
import com.shxy.xymanager_common.model.CmdModel;
|
||||
import com.shxy.xymanager_service.service.CmdService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"命令相关接口"})
|
||||
@RequestMapping("cmd")
|
||||
@Slf4j
|
||||
public class CmdController extends BaseController {
|
||||
|
||||
@Resource
|
||||
CmdService cmdsService;
|
||||
|
||||
@GetMapping("listAction")
|
||||
@ApiOperation("命令类型列表")
|
||||
@Log(title = "查询命令类型", type = "查询")
|
||||
public ResponseReult<List<ActionModel>> listAction() {
|
||||
List<ActionModel> list = new ArrayList<>();
|
||||
list.add(new ActionModel(1, "yw_cmd_android_reboot", "重启设备"));
|
||||
list.add(new ActionModel(2, "yw_cmd_mcu_reboot", "MCU单片机重启"));
|
||||
list.add(new ActionModel(3, "i1_cmd_set_i1_server_ip_port", "设置I1服务器"));
|
||||
// list.add(new ActionModel(4, "i1_cmd_set_xy_yw_ip_port", "设置运维服务器"));
|
||||
list.add(new ActionModel(5, "i1_cmd_set_i1_heart_beat_time", "设置心跳周期"));
|
||||
list.add(new ActionModel(6, "yw_cmd_upload_i1_zip_log", "上传日志"));
|
||||
list.add(new ActionModel(7, "upgrade", "升级"));
|
||||
list.add(new ActionModel(8, "yw_cmd_start_frpc", "开启frpc"));
|
||||
list.add(new ActionModel(9, "yw_cmd_stop_frpc", "停止frpc"));
|
||||
list.add(new ActionModel(10, "i1_cmd_stop_aging_test", "停止老化测试"));
|
||||
list.add(new ActionModel(11, "yw_upd_ota", "升级Ota"));
|
||||
list.add(new ActionModel(12, "del_file", "删除文件"));
|
||||
list.add(new ActionModel(13, "pull_files", "拉取文件"));
|
||||
list.add(new ActionModel(14, "push_file", "推送文件"));
|
||||
list.add(new ActionModel(15, "upd_cfg", "修改配置文件"));
|
||||
list.add(new ActionModel(16, "list_files", "列出目录下的文件名"));
|
||||
list.add(new ActionModel(17, "yw_app_upd_ota", "App增量更新"));
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@PostMapping("send")
|
||||
@ApiOperation("下达命令")
|
||||
@Log(title = "下达命令", type = "新增")
|
||||
public ResponseReult<String> send(@RequestBody CmdModel model) throws Exception {
|
||||
cmdsService.send(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询")
|
||||
@Log(title = "查询命令", type = "查询")
|
||||
public ResponseReult<PageInfo<MntnCmds>> list(String cmdid, String action,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<MntnCmds> result = cmdsService.list(cmdid, action,
|
||||
pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listHistory")
|
||||
@ApiOperation("查询历史")
|
||||
@Log(title = "查询历史命令", type = "查询")
|
||||
public ResponseReult<PageInfo<MntnCmdHistory>> listHistory(String cmdid, String action,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<MntnCmdHistory> result = cmdsService.listHistory(cmdid, action,
|
||||
pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.DevType;
|
||||
import com.shxy.xymanager_common.entity.DevTypeExample;
|
||||
import com.shxy.xymanager_dao.dao.DevTypeDao;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"设备类型相关接口"})
|
||||
@RequestMapping("devtype")
|
||||
@Slf4j
|
||||
public class DevTypeController extends BaseController {
|
||||
|
||||
@Resource
|
||||
DevTypeDao devTypeDao;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询列表")
|
||||
public ResponseReult<List<DevType>> list() {
|
||||
DevTypeExample example = new DevTypeExample();
|
||||
example.createCriteria();
|
||||
List<DevType> list = devTypeDao.selectByExample(example);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_common.entity.DyLevel;
|
||||
import com.shxy.xymanager_common.model.DyLineTreeListModel;
|
||||
import com.shxy.xymanager_common.model.TerminalPhotosModel;
|
||||
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
|
||||
import com.shxy.xymanager_common.vo.DyListVo;
|
||||
import com.shxy.xymanager_common.vo.DyTreeListVo;
|
||||
import com.shxy.xymanager_common.vo.LastTowerVo;
|
||||
import com.shxy.xymanager_service.service.DyLevelService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestHeader;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Api(value = "电压等级接口", tags = "电压等级接口描述")
|
||||
@RestController
|
||||
@Slf4j
|
||||
public class DyTreeController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
DyLevelService dyLevelService;
|
||||
|
||||
@ApiOperation(value = "获取电压等级树状列表接口", notes = "获取电压等级树状列表接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getdyTreeList")
|
||||
@Log(title = "获取电压等级树状列表接口", type = "查询")
|
||||
public ResponseReult<DyLineTreeListModel> getdyTreeList(@RequestBody @Validated DyTreeListVo vo) {
|
||||
ServiceBody<DyLineTreeListModel> serviceBody = dyLevelService.getdyTreeList(vo);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "郑州测试获取电压等级树状列表接口", notes = "郑州测试获取电压等级树状列表接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getzzdyTreeList")
|
||||
@Log(title = "郑州测试获取电压等级树状列表接口", type = "查询")
|
||||
public ResponseReult<DyLineTreeListModel> getzzdyTreeList(@RequestBody @Validated DyListVo vo) {
|
||||
ServiceBody<DyLineTreeListModel> serviceBody = dyLevelService.getzzdyTreeList(vo.getType(), vo.getLineid());
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取电压等级列表", notes = "获取电压等级列表", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getdyList")
|
||||
@Log(title = "获取电压等级列表", type = "查询")
|
||||
public ResponseReult<List<DyLevel>> getdyList() {
|
||||
ServiceBody<List<DyLevel>> serviceBody = dyLevelService.getdyList();
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "根据电压或者线路获取所有杆塔和最新照片", notes = "根据电压或者线路获取所有杆塔和最新照片", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getTowerAndPhotoList")
|
||||
@Log(title = "根据电压或者线路获取所有杆塔和最新照片", type = "查询")
|
||||
public ResponseReult<TerminalPhotosModel> getLastTowerList(@RequestHeader HttpHeaders headers, @RequestBody LastTowerVo vo) {
|
||||
String requestIp = HeaderUtil.getRequestIp(headers);
|
||||
ServiceBody<TerminalPhotosModel> serviceBody = dyLevelService.getLastTowerList(requestIp, vo);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.google.code.kaptcha.Constants;
|
||||
import com.google.code.kaptcha.Producer;
|
||||
import com.shxy.xymanager_common.kaptcha.KaptchaCache;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
@RestController
|
||||
@Slf4j
|
||||
@Api(value = "生成验证码", description = "生成验证码")
|
||||
public class KaptchaController {
|
||||
@Autowired
|
||||
private Producer captchaProducer;
|
||||
|
||||
@ApiOperation("生成验证码")
|
||||
@GetMapping("/kaptcha")
|
||||
public void getKaptchaImage(HttpServletRequest request, HttpServletResponse response){
|
||||
HttpSession session = request.getSession();
|
||||
response.setDateHeader("Expires", 0);
|
||||
// Set standard HTTP/1.1 no-cache headers.
|
||||
response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
|
||||
// Set IE extended HTTP/1.1 no-cache headers (use addHeader).
|
||||
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
|
||||
// Set standard HTTP/1.0 no-cache header.
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
// return a jpeg
|
||||
response.setContentType("image/jpeg");
|
||||
// create the text for the image
|
||||
String capText = captchaProducer.createText();
|
||||
log.info("登录验证码:{}",capText);
|
||||
// store the text in the session
|
||||
session.setAttribute(Constants.KAPTCHA_SESSION_KEY, capText);
|
||||
KaptchaCache.getInstance().put(capText.toLowerCase(), capText);
|
||||
// KaptchaCache.getInstance().put(capText.toLowerCase());
|
||||
// create the image with the text
|
||||
BufferedImage bi = captchaProducer.createImage(capText);
|
||||
ServletOutputStream out;
|
||||
try {
|
||||
out = response.getOutputStream();
|
||||
// write the data out
|
||||
ImageIO.write(bi, "jpg", out);
|
||||
|
||||
out.flush();
|
||||
response.flushBuffer();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,112 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.LeadPulls;
|
||||
import com.shxy.xymanager_common.model.StatLeadPull;
|
||||
import com.shxy.xymanager_common.util.EasyExcelUtil;
|
||||
import com.shxy.xymanager_service.service.LeadPullsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"拉力相关接口"})
|
||||
@RequestMapping("leadpulls")
|
||||
@Slf4j
|
||||
public class LeadPullsController extends BaseController {
|
||||
|
||||
@Resource
|
||||
LeadPullsService service;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询列表")
|
||||
@Log(title = "查询拉力列表", type = "查询")
|
||||
public ResponseReult<PageInfo<LeadPulls>> list(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listStat")
|
||||
@ApiOperation("查询统计")
|
||||
@Log(title = "查询拉力统计", type = "查询")
|
||||
public ResponseReult<List<StatLeadPull>> listStat(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
pageNum = 1;
|
||||
pageSize = 100000;
|
||||
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
List<StatLeadPull> list = this.buildStat(result.getList());
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
private List<StatLeadPull> buildStat(List<LeadPulls> list) {
|
||||
List<StatLeadPull> result = new ArrayList<>();
|
||||
if (list != null) {
|
||||
for (LeadPulls item : list) {
|
||||
StatLeadPull term = this.findStatTerm(result, item);
|
||||
term.addLeadPull(item);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private StatLeadPull findStatTerm(List<StatLeadPull> list, LeadPulls leadPulls) {
|
||||
StatLeadPull the = null;
|
||||
for (StatLeadPull item : list) {
|
||||
if (item.getTermId() == leadPulls.getTermId()) {
|
||||
the = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (the == null) {
|
||||
the = new StatLeadPull();
|
||||
the.setTermId(leadPulls.getTermId());
|
||||
the.setCmdid(leadPulls.getCmdid());
|
||||
list.add(the);
|
||||
}
|
||||
return the;
|
||||
}
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
@Log(title = "导出拉力", type = "导出")
|
||||
public void export(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize,
|
||||
HttpServletResponse response) throws Exception {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
EasyExcelUtil.createExcel(response, "覆冰数据", result.getList(), LeadPulls.class);
|
||||
}
|
||||
|
||||
}
|
@ -1,81 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_common.util.DingTalkPushUtil;
|
||||
import com.shxy.xymanager_common.util.HttpRequestUtil;
|
||||
import com.shxy.xymanager_common.util.JSONUtil;
|
||||
import com.shxy.xymanager_common.util.StringUtils;
|
||||
import com.shxy.xymanager_framework.timeTask.ClearCacheTask;
|
||||
import com.shxy.xymanager_service.service.MntnService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"设备接入接口"})
|
||||
@RequestMapping("mntn")
|
||||
@Slf4j
|
||||
public class MntnController extends BaseController {
|
||||
|
||||
@Resource
|
||||
MntnService service;
|
||||
|
||||
@PostMapping("")
|
||||
@ApiOperation("上传心跳并返回命令")
|
||||
public HashMap<String, Object> sync(@RequestBody String data,
|
||||
HttpServletRequest req, HttpServletResponse resp) {
|
||||
String ip = HttpRequestUtil.getRemoteIp(req);
|
||||
String url = req.getRequestURI();
|
||||
try {
|
||||
String multi = req.getHeader("Accept-Cmds");
|
||||
Map<String, Object> map = JSONUtil.json2Object(data, Map.class);
|
||||
String cmdid = (String) map.get("id");
|
||||
if (StringUtils.isBlank(cmdid)) {
|
||||
cmdid = (String) map.get("oid");
|
||||
if (StringUtils.isBlank(cmdid)) {
|
||||
throw new ApiException("id不能为空");
|
||||
}
|
||||
}
|
||||
HashMap<String, Object> result = service.sync(cmdid, ip, multi, data);
|
||||
resp.setHeader("ResSyncTime", String.valueOf(System.currentTimeMillis()));
|
||||
return result;
|
||||
} catch (Exception ex) {
|
||||
if (!ClearCacheTask.heartbeatMap.containsKey(ip)) {
|
||||
ClearCacheTask.heartbeatMap.put(ip, 1L);
|
||||
String str = ex.getMessage() + ", ip=" + ip + ", url=" + url + ", " + data;
|
||||
if (ex instanceof ApiException) {
|
||||
log.error("上传心跳异常, " + str);
|
||||
} else {
|
||||
log.error("上传心跳异常.", ex);
|
||||
}
|
||||
// DingTalkPushUtil.pushText("运维心跳", str);
|
||||
}
|
||||
HashMap<String, Object> result = new HashMap<>();
|
||||
result.put("code", "400");
|
||||
result.put("msg", ex.getMessage());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("status")
|
||||
@ApiOperation("上传命令结果")
|
||||
public ResponseReult status(@RequestParam("cid") Long cid,
|
||||
@RequestParam("res") Integer res,
|
||||
@RequestParam("content") String content) {
|
||||
service.result(cid, res, content);
|
||||
ResponseReult resp = new ResponseReult();
|
||||
resp.setCode(0);
|
||||
return resp;
|
||||
}
|
||||
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.MntnUploads;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.MntnUploadService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"运维上传日志相关接口"})
|
||||
@RequestMapping("upload")
|
||||
@Slf4j
|
||||
public class MntnUploadController extends BaseController {
|
||||
|
||||
@Resource
|
||||
MntnUploadService service;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询日志全部列表")
|
||||
@Log(title = "查询日志全部列表", type = "查询")
|
||||
public ResponseReult<List<MntnUploads>> listAll(Integer type, String cmdid) {
|
||||
List<MntnUploads> result = service.listAll(type, cmdid);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除日志", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("uploadLog")
|
||||
@ApiOperation("上传日志")
|
||||
@Log(title = "上传日志", type = "新增")
|
||||
public ResponseReult uploadLog(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
|
||||
if (termId == null) {
|
||||
termId = 0;
|
||||
}
|
||||
service.uploadLog(termId, file);
|
||||
ResponseReult result = new ResponseReult();
|
||||
result.setCode(0);
|
||||
return result;
|
||||
}
|
||||
|
||||
@PostMapping("uploadFile")
|
||||
@ApiOperation("上传文件")
|
||||
@Log(title = "上传文件", type = "新增")
|
||||
public ResponseReult uploadFile(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
|
||||
if (termId == null) {
|
||||
termId = 0;
|
||||
}
|
||||
service.uploadFile(termId, file);
|
||||
ResponseReult result = new ResponseReult();
|
||||
result.setCode(0);
|
||||
return result;
|
||||
}
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.model.mqtt.MessageSend;
|
||||
import com.shxy.xymanager_service.mqtt.MqttPublisherService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
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.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"mqtt相关接口"})
|
||||
@RequestMapping("mqtt")
|
||||
@Slf4j
|
||||
public class MqttController extends BaseController {
|
||||
|
||||
@Resource
|
||||
MqttPublisherService mqttPublisherService;
|
||||
|
||||
@PostMapping("send")
|
||||
@ApiOperation("下达命令")
|
||||
@Log(title = "下达命令", type = "下达")
|
||||
public ResponseReult<String> send(@RequestBody MessageSend msg) throws Exception {
|
||||
mqttPublisherService.publish(msg, "N938XY12345678901");
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.Lines;
|
||||
import com.shxy.xymanager_common.vo.*;
|
||||
import com.shxy.xymanager_service.service.LineService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
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.RestController;
|
||||
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"线路新接口"})
|
||||
@RequestMapping("line")
|
||||
@Slf4j
|
||||
public class NewLineController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
LineService lineService;
|
||||
|
||||
@ApiOperation(value = "查询线路全量列表")
|
||||
@PostMapping("listFull")
|
||||
@Log(title = "获取线路列表", type = "查询")
|
||||
public ResponseReult<PageInfo<Lines>> listFull(@RequestBody @Validated SelectVo vo) {
|
||||
PageInfo<Lines> list = lineService.listFull(vo);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询线路超量列表")
|
||||
@PostMapping("listOver")
|
||||
@Log(title = "获取线路列表", type = "查询")
|
||||
public ResponseReult<PageInfo<Lines>> listOver(@RequestBody @Validated SelectVo vo) {
|
||||
PageInfo<Lines> list = lineService.listOver(vo);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
}
|
@ -1,80 +1,80 @@
|
||||
//package com.shxy.xymanager_admin.controller;
|
||||
//
|
||||
//import cn.hutool.json.JSONObject;
|
||||
//import com.shxy.xymanager_common.annotation.Log;
|
||||
//import com.shxy.xymanager_common.base.BaseController;
|
||||
//import com.shxy.xymanager_common.base.ResponseReult;
|
||||
//import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
//import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
//import com.shxy.xymanager_common.model.*;
|
||||
//import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
|
||||
//import com.shxy.xymanager_common.vo.*;
|
||||
//import com.shxy.xymanager_service.service.OpenService;
|
||||
//import com.shxy.xymanager_service.service.TerminalPhotoService;
|
||||
//import io.swagger.annotations.Api;
|
||||
//import io.swagger.annotations.ApiOperation;
|
||||
//import io.swagger.annotations.ApiResponse;
|
||||
//import io.swagger.annotations.ApiResponses;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.http.HttpHeaders;
|
||||
//import org.springframework.validation.annotation.Validated;
|
||||
//import org.springframework.web.bind.annotation.RequestBody;
|
||||
//import org.springframework.web.bind.annotation.RequestHeader;
|
||||
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||
//import org.springframework.web.bind.annotation.RestController;
|
||||
//
|
||||
//
|
||||
//@Api(value = "精益化平台接口", tags = "精益化平台相关")
|
||||
//@RestController
|
||||
//@Slf4j
|
||||
//public class OpenController extends BaseController {
|
||||
//
|
||||
// @Autowired
|
||||
// TerminalPhotoService terminalPhotoService;
|
||||
//
|
||||
// @Autowired
|
||||
// OpenService openService;
|
||||
//
|
||||
//
|
||||
// @ApiOperation(value = "对外图片查询", notes = "对外图片查询", httpMethod = "POST")
|
||||
// @ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
// @RequestMapping("/getPhotoListForOpen")
|
||||
// @Log(title = "对外图片查询", type = "查询")
|
||||
// public ResponseReult<TerminalPhotoListForOpenModel> getPhotoListForOpen(@RequestHeader HttpHeaders headers, @RequestBody @Validated OpenTerminalAndTimeVo vo) {
|
||||
// String requestIp = HeaderUtil.getRequestIp(headers);
|
||||
// ServiceBody<TerminalPhotoListForOpenModel> serviceBody = terminalPhotoService.getPhotoListForOpen(requestIp,vo);
|
||||
// if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
// return ResponseReult.success(serviceBody.getData());
|
||||
// } else {
|
||||
// return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @ApiOperation(value = "第三方登录认证接口", notes = "第三方登录认证接口", httpMethod = "POST")
|
||||
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
// @RequestMapping("/cmaUserLogin")
|
||||
// @Log(title = "第三方登录认证接口", type = "查询")
|
||||
// public JSONObject cmaUserLogin(@RequestBody @Validated UserLoginVo vo) {
|
||||
// JSONObject serviceBody = openService.cmaUserLogin(vo);
|
||||
// return serviceBody;
|
||||
// }
|
||||
//
|
||||
// @ApiOperation(value = "远程拍照(短视频)控制", notes = "远程拍照(短视频)控制接口", httpMethod = "POST")
|
||||
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
// @RequestMapping("/ctrlCmaDeviceCapture")
|
||||
// @Log(title = "远程拍照(短视频)控制", type = "查询")
|
||||
// public JSONObject ctrlCmaDeviceCapture(@RequestBody @Validated OpenDeviceCaptureVo vo) {
|
||||
// JSONObject serviceBody = openService.ctrlCmaDeviceCapture(vo);
|
||||
// return serviceBody;
|
||||
// }
|
||||
//
|
||||
// @ApiOperation(value = "查询装置状态", notes = "查询装置状态接口", httpMethod = "POST")
|
||||
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
// @RequestMapping("/cmaDeviceStatus")
|
||||
// @Log(title = "查询装置状态接口", type = "查询")
|
||||
// public JSONObject cmaDeviceStatus(@RequestBody @Validated OpenCmdidVo vo) {
|
||||
// JSONObject serviceBody = openService.cmaDeviceStatus(vo);
|
||||
// return serviceBody;
|
||||
// }
|
||||
//}
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_common.model.*;
|
||||
import com.shxy.xymanager_common.util.HeaderUtil;
|
||||
import com.shxy.xymanager_common.vo.*;
|
||||
import com.shxy.xymanager_service.service.OpenService;
|
||||
import com.shxy.xymanager_service.service.TerminalPhotoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestHeader;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
||||
@Api(value = "精益化平台接口", tags = "精益化平台相关")
|
||||
@RestController
|
||||
@Slf4j
|
||||
public class OpenController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
TerminalPhotoService terminalPhotoService;
|
||||
|
||||
@Autowired
|
||||
OpenService openService;
|
||||
|
||||
|
||||
@ApiOperation(value = "对外图片查询", notes = "对外图片查询", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getPhotoListForOpen")
|
||||
@Log(title = "对外图片查询", type = "查询")
|
||||
public ResponseReult<TerminalPhotoListForOpenModel> getPhotoListForOpen(@RequestHeader HttpHeaders headers, @RequestBody @Validated OpenTerminalAndTimeVo vo) {
|
||||
String requestIp = HeaderUtil.getRequestIp(headers);
|
||||
ServiceBody<TerminalPhotoListForOpenModel> serviceBody = terminalPhotoService.getPhotoListForOpen(requestIp,vo);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "第三方登录认证接口", notes = "第三方登录认证接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
@RequestMapping("/cmaUserLogin")
|
||||
@Log(title = "第三方登录认证接口", type = "查询")
|
||||
public JSONObject cmaUserLogin(@RequestBody @Validated UserLoginVo vo) {
|
||||
JSONObject serviceBody = openService.cmaUserLogin(vo);
|
||||
return serviceBody;
|
||||
}
|
||||
|
||||
@ApiOperation(value = "远程拍照(短视频)控制", notes = "远程拍照(短视频)控制接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
@RequestMapping("/ctrlCmaDeviceCapture")
|
||||
@Log(title = "远程拍照(短视频)控制", type = "查询")
|
||||
public JSONObject ctrlCmaDeviceCapture(@RequestBody @Validated OpenDeviceCaptureVo vo) {
|
||||
JSONObject serviceBody = openService.ctrlCmaDeviceCapture(vo);
|
||||
return serviceBody;
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询装置状态", notes = "查询装置状态接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
@RequestMapping("/cmaDeviceStatus")
|
||||
@Log(title = "查询装置状态接口", type = "查询")
|
||||
public JSONObject cmaDeviceStatus(@RequestBody @Validated OpenCmdidVo vo) {
|
||||
JSONObject serviceBody = openService.cmaDeviceStatus(vo);
|
||||
return serviceBody;
|
||||
}
|
||||
}
|
||||
|
@ -1,66 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.TbResource;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.ResourceService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"资源相关接口"})
|
||||
@RequestMapping("resource")
|
||||
@Slf4j
|
||||
public class ResourceController extends BaseController {
|
||||
|
||||
@Resource
|
||||
ResourceService service;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询全部列表")
|
||||
@Log(title = "查询资源全部列表", type = "查询")
|
||||
public ResponseReult<List<TbResource>> listAll() {
|
||||
List<TbResource> result = service.listAll();
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("add")
|
||||
@ApiOperation("新增")
|
||||
@Log(title = "新增资源", type = "新增")
|
||||
public ResponseReult<String> add(@Validated @RequestBody TbResource item) throws Exception {
|
||||
service.add(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("update")
|
||||
@ApiOperation("修改")
|
||||
@Log(title = "修改资源", type = "修改")
|
||||
public ResponseReult<String> update(@Validated @RequestBody TbResource item) throws Exception {
|
||||
if (item.getId() == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.update(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除资源", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -1,87 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.TbRole;
|
||||
import com.shxy.xymanager_common.entity.TbRoleResource;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_common.model.RolePermissionModel;
|
||||
import com.shxy.xymanager_service.service.RolePermissionService;
|
||||
import com.shxy.xymanager_service.service.RoleService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"角色权限相关接口"})
|
||||
@RequestMapping("role")
|
||||
@Slf4j
|
||||
public class RoleController extends BaseController {
|
||||
|
||||
@Resource
|
||||
RoleService service;
|
||||
@Resource
|
||||
RolePermissionService permissionService;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询角色全部列表")
|
||||
@Log(title = "查询角色全部列表", type = "查询")
|
||||
public ResponseReult<List<TbRole>> listAll() {
|
||||
List<TbRole> result = service.listAll();
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("add")
|
||||
@ApiOperation("新增")
|
||||
@Log(title = "新增角色", type = "新增")
|
||||
public ResponseReult<String> add(@Validated @RequestBody TbRole item) throws Exception {
|
||||
service.add(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("update")
|
||||
@ApiOperation("修改")
|
||||
@Log(title = "修改角色", type = "修改")
|
||||
public ResponseReult<String> update(@Validated @RequestBody TbRole item) throws Exception {
|
||||
if (item.getId() == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.update(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除角色", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("getPermission")
|
||||
@ApiOperation("查询权限")
|
||||
public ResponseReult<List<TbRoleResource>> getPermission(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
List<TbRoleResource> result = permissionService.getPermission(id);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("changePermission")
|
||||
@ApiOperation("修改角色权限")
|
||||
@Log(title = "修改角色权限", type = "修改")
|
||||
public ResponseReult<String> changePermission(@Validated @RequestBody RolePermissionModel item) throws Exception {
|
||||
permissionService.changePermission(item.getRoleId(), item.getList());
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -1,83 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.constant.Constants;
|
||||
import com.shxy.xymanager_common.entity.SimInfo;
|
||||
import com.shxy.xymanager_service.excel.*;
|
||||
import com.shxy.xymanager_service.service.SimService;
|
||||
import com.shxy.xymanager_service.service.TerminalSimcardService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"sim卡相关接口"})
|
||||
@RequestMapping("sim")
|
||||
@Slf4j
|
||||
public class SimController extends BaseController {
|
||||
|
||||
@Resource
|
||||
SimService service;
|
||||
@Resource
|
||||
TerminalSimcardService simcardService;
|
||||
|
||||
@PostMapping("importSim")
|
||||
@ApiOperation("导入sim")
|
||||
public ResponseReult<String> importSim(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "type", required = true) Integer type) throws Exception {
|
||||
if (file != null && file.getInputStream() != null) {
|
||||
if (type == Constants.NetType_Dahan) {
|
||||
DahanExcelListener listener = new DahanExcelListener(service);
|
||||
EasyExcel.read(file.getInputStream(), DahanLine.class, listener)
|
||||
.sheet(0)
|
||||
.doRead();
|
||||
} else if (type == Constants.NetType_LWWLKJ) {
|
||||
LwwlkjExcelListener listener = new LwwlkjExcelListener(service);
|
||||
EasyExcel.read(file.getInputStream(), LwwlkjLine.class, listener)
|
||||
.sheet(0)
|
||||
.doRead();
|
||||
} else if (type == Constants.NetType_M2M10086) {
|
||||
M2mExcelListener listener = new M2mExcelListener(service);
|
||||
EasyExcel.read(file.getInputStream(), M2mLine.class, listener)
|
||||
.sheet(0)
|
||||
.doRead();
|
||||
} else if (type == Constants.NetType_Rabchaser) {
|
||||
RabchaserExcelListener listener = new RabchaserExcelListener(service);
|
||||
EasyExcel.read(file.getInputStream(), RabchaserLine.class, listener)
|
||||
.sheet(0)
|
||||
.doRead();
|
||||
} else {
|
||||
return ResponseReult.fail("type不正确");
|
||||
}
|
||||
return ResponseReult.success("OK");
|
||||
} else {
|
||||
return ResponseReult.fail("缺少上传文件");
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询sim卡")
|
||||
@Log(title = "查询sim卡", type = "查询")
|
||||
public ResponseReult<PageInfo<SimInfo>> list(Integer type, Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<SimInfo> result = service.list(type, pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("syncAll")
|
||||
@ApiOperation("同步所有sim卡数据")
|
||||
public ResponseReult<String> syncAll() {
|
||||
simcardService.syncAll();
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -1,85 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.model.SmsModel;
|
||||
import com.shxy.xymanager_common.model.SmsReturn;
|
||||
import com.shxy.xymanager_common.sms.dahan.DahanWeb;
|
||||
import com.shxy.xymanager_common.sms.lwwlkj.LwwlkjWeb;
|
||||
import com.shxy.xymanager_common.sms.m2m.M2m10086Web;
|
||||
import com.shxy.xymanager_common.sms.rabchaser.RabchaserWeb;
|
||||
import com.shxy.xymanager_service.service.SmsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"短信相关接口"})
|
||||
@RequestMapping("sms")
|
||||
@Slf4j
|
||||
public class SmsController extends BaseController {
|
||||
|
||||
@Resource
|
||||
SmsService service;
|
||||
|
||||
@PostMapping("send")
|
||||
@ApiOperation("发送短信")
|
||||
@Log(title = "发送短信", type = "发送")
|
||||
public ResponseReult<String> send(@Validated @RequestBody SmsModel model) {
|
||||
service.sendSms(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询短信")
|
||||
@Log(title = "查询短信", type = "查询")
|
||||
public ResponseReult<SmsReturn> list(Integer termId) {
|
||||
SmsReturn obj = service.listSms(termId);
|
||||
return ResponseReult.success(obj);
|
||||
}
|
||||
|
||||
@PostMapping("netDown")
|
||||
@ApiOperation("断网")
|
||||
@Log(title = "断网", type = "断网")
|
||||
public ResponseReult<String> netDown(@RequestBody SmsModel model) {
|
||||
service.netDown(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("netUp")
|
||||
@ApiOperation("恢复上网")
|
||||
@Log(title = "恢复上网", type = "恢复上网")
|
||||
public ResponseReult<String> netUp(@RequestBody SmsModel model) {
|
||||
service.netUp(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("getAuth")
|
||||
@ApiOperation("查询授权")
|
||||
public ResponseReult<HashMap<String, String>> getAuth() {
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("dahan", DahanWeb.cookie);
|
||||
map.put("rabchaser", RabchaserWeb.authorization);
|
||||
map.put("m2m10086", M2m10086Web.cookie);
|
||||
map.put("lwwlkj", LwwlkjWeb.cookie);
|
||||
return ResponseReult.success(map);
|
||||
}
|
||||
|
||||
@PostMapping("updateAuth")
|
||||
@ApiOperation("更新授权")
|
||||
public ResponseReult<String> updateAuth(@RequestBody HashMap<String, String> map) {
|
||||
DahanWeb.cookie = map.get("dahan");
|
||||
RabchaserWeb.authorization = map.get("rabchaser");
|
||||
M2m10086Web.cookie = map.get("m2m10086");
|
||||
LwwlkjWeb.cookie = map.get("lwwlkj");
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,439 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_common.entity.*;
|
||||
import com.shxy.xymanager_common.excel.TerminalExcel;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_common.model.*;
|
||||
import com.shxy.xymanager_common.util.EasyExcelUtil;
|
||||
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
|
||||
import com.shxy.xymanager_common.vo.TerminalPhotoSelectVo;
|
||||
import com.shxy.xymanager_common.vo.TerminalSelectVo;
|
||||
import com.shxy.xymanager_dao.dao.TerminalPositionsMapper;
|
||||
import com.shxy.xymanager_dao.dao.TerminalStatusDao;
|
||||
import com.shxy.xymanager_framework.timeTask.ClearCacheTask;
|
||||
import com.shxy.xymanager_service.service.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"装置附带额外信息接口"})
|
||||
@RequestMapping("terminal")
|
||||
@Slf4j
|
||||
@Validated
|
||||
public class TerminalExtController extends BaseController {
|
||||
|
||||
@Resource
|
||||
TerminalGpsService gpsService;
|
||||
@Resource
|
||||
WeatherService weatherService;
|
||||
@Resource
|
||||
LeadPullsService leadPullsService;
|
||||
@Resource
|
||||
TerminalPhotoService photoService;
|
||||
@Resource
|
||||
TerminalStatusDao terminalStatusDao;
|
||||
@Resource
|
||||
TerminalPositionsMapper terminalPositionsMapper;
|
||||
@Resource
|
||||
TerminalBasicInfoHistoryService infoHistoryService;
|
||||
@Resource
|
||||
HeartbeatService heartbeatService;
|
||||
@Resource
|
||||
TerminalExtService terminalExtService;
|
||||
@Resource
|
||||
TerminalSimcardService simcardService;
|
||||
@Resource
|
||||
CameraScheduleService cameraScheduleService;
|
||||
@Resource
|
||||
ClearCacheTask clearCacheTask;
|
||||
|
||||
@GetMapping("clearCache")
|
||||
@ApiOperation("清空缓存")
|
||||
public ResponseReult<String> clearCache() {
|
||||
clearCacheTask.clearAllCache();
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("batchUpdate")
|
||||
@ApiOperation("批量修改装置")
|
||||
@Log(title = "批量修改装置", type = "修改")
|
||||
public ResponseReult<String> batchUpdate(@RequestBody BatchUpdateModel model) throws Exception {
|
||||
if (model.getNewLineId() == null) {
|
||||
throw new ApiException("newLineId不能为空");
|
||||
}
|
||||
if (CollectionUtils.isEmpty(model.getTermIds())) {
|
||||
throw new ApiException("termIds不能为空");
|
||||
}
|
||||
terminalExtService.batchUpdate(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("importTerminal")
|
||||
@ApiOperation("导入装置")
|
||||
@Log(title = "导入装置", type = "导入")
|
||||
public ResponseReult<String> importTerminal(@Validated @RequestBody UploadModel model) throws Exception {
|
||||
terminalExtService.importTerminal(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("updateComment")
|
||||
@ApiOperation("修改备注")
|
||||
@Log(title = "修改备注", type = "修改")
|
||||
public ResponseReult<String> updateComment(@RequestBody MntnStatus model) throws Exception {
|
||||
terminalExtService.updateComment(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("listReport")
|
||||
@ApiOperation("查询运维数据历史")
|
||||
@Log(title = "查询运维数据历史", type = "查询")
|
||||
public ResponseReult<PageInfo<MntnRawReports>> listReport(Integer termId, Integer pageNum, Integer pageSize) {
|
||||
if (termId == null) {
|
||||
throw new ApiException("termId不能为空");
|
||||
}
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<MntnRawReports> result = terminalExtService.listReport(termId, pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listForMaintain")
|
||||
@ApiOperation("运维查询装置")
|
||||
@Log(title = "运维查询装置", type = "查询")
|
||||
public ResponseReult<List<View_Dy_Line_Tower_Terminals>> listForMaintain(TerminalSelectVo vo) {
|
||||
vo.setPageindex(1);
|
||||
vo.setPagesize(10000);
|
||||
List<View_Dy_Line_Tower_Terminals> result = terminalExtService.getExtTerminalList(vo);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("exportForMaintain")
|
||||
@ApiOperation("导出运维")
|
||||
@Log(title = "导出运维", type = "导出")
|
||||
public void exportForMaintain(TerminalSelectVo vo, HttpServletResponse response) throws Exception {
|
||||
vo.setPageindex(1);
|
||||
vo.setPagesize(10000);
|
||||
List<View_Dy_Line_Tower_Terminals> result = terminalExtService.getExtTerminalList(vo);
|
||||
List<TerminalExcel> list = new ArrayList<>();
|
||||
for (View_Dy_Line_Tower_Terminals term : result) {
|
||||
TerminalExcel item = TerminalExcel.from(term);
|
||||
list.add(item);
|
||||
}
|
||||
EasyExcelUtil.createExcel(response, "运维数据", list, TerminalExcel.class);
|
||||
}
|
||||
|
||||
@PostMapping("statMaintain")
|
||||
@ApiOperation("运维统计")
|
||||
@Log(title = "运维统计", type = "统计")
|
||||
public ResponseReult<List<StatMaintain>> statMaintain(StatModel model) throws Exception {
|
||||
if (model.getStart() == null) {
|
||||
throw new ApiException("start不能为空");
|
||||
}
|
||||
if (model.getEnd() == null) {
|
||||
throw new ApiException("end不能为空");
|
||||
}
|
||||
if (model.getLineIds() == null) {
|
||||
throw new ApiException("lineIds不能为空");
|
||||
}
|
||||
List<StatMaintain> result = terminalExtService.statMaintain(model);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listWithAll")
|
||||
@ApiOperation("查询附带全部额外信息")
|
||||
@Log(title = "装置查询附带全部额外信息", type = "查询")
|
||||
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithAll(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
|
||||
Integer isonline, Integer protocol, Integer devType, String cmdid,
|
||||
Long start, Long end,
|
||||
Integer channelId, Integer activityId, String dataFlag,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
if (dataFlag == null) {
|
||||
dataFlag = "";
|
||||
}
|
||||
long cost = System.currentTimeMillis();
|
||||
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
|
||||
search, cmdid,
|
||||
isonline, protocol, devType, activityId,
|
||||
pageNum, pageSize);
|
||||
cost = System.currentTimeMillis() - cost;
|
||||
log.info("getTerminalList cost=" + cost);
|
||||
if (!CollectionUtils.isEmpty(result.getList())) {
|
||||
cost = System.currentTimeMillis();
|
||||
List<Integer> terminalIds = new ArrayList<>();
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
terminalIds.add(terminal.getId());
|
||||
if (dataFlag.contains("P")) {
|
||||
PhotoDayModel photoInfo = photoService.getDayModel(terminal.getId(), channelId, start, end);
|
||||
terminal.setPhotoInfo(photoInfo);
|
||||
}
|
||||
if (dataFlag.contains("C")) {
|
||||
long rebootCount = infoHistoryService.count(terminal.getId(), start, end);
|
||||
terminal.setRebootCount(rebootCount);
|
||||
}
|
||||
if (dataFlag.contains("B")) {
|
||||
TerminalBasicInfoHistory info = infoHistoryService.getLast(terminal.getId());
|
||||
terminal.setLastInfo(info);
|
||||
}
|
||||
}
|
||||
|
||||
if (dataFlag.contains("S")) {
|
||||
TerminalStatusExample example = new TerminalStatusExample();
|
||||
TerminalStatusExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andTermIdIn(terminalIds);
|
||||
List<TerminalStatus> terminalStatuses = terminalStatusDao.selectByExample(example);
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
for (TerminalStatus terminalStatus : terminalStatuses) {
|
||||
if (terminal.getId().intValue() == terminalStatus.getTermId().intValue()) {
|
||||
terminal.setWorkingStatus(terminalStatus);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dataFlag.contains("O")) {
|
||||
TerminalPositionsExample example = new TerminalPositionsExample();
|
||||
TerminalPositionsExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andTermIdIn(terminalIds);
|
||||
List<TerminalPositions> terminalPositions = terminalPositionsMapper.selectByExample(example);
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
for (TerminalPositions terminalPosition : terminalPositions) {
|
||||
if (terminal.getId().intValue() == terminalPosition.getTermId().intValue()) {
|
||||
terminal.setPositions(terminalPosition);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cost = System.currentTimeMillis() - cost;
|
||||
log.info("listWithAll cost=" + cost);
|
||||
}
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("listWithWeather")
|
||||
@ApiOperation("查询附带天气")
|
||||
@Log(title = "覆冰查询附带天气", type = "查询")
|
||||
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithWeather(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
|
||||
Integer isonline, Integer protocol, Integer devType,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
|
||||
search, null,
|
||||
isonline, protocol, devType, null,
|
||||
pageNum, pageSize);
|
||||
if (!CollectionUtils.isEmpty(result.getList())) {
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
Weathers last = weatherService.getLast(terminal.getId());
|
||||
if (last != null) {
|
||||
last.setCmdid(terminal.getCmdid());
|
||||
last.setPhase(terminal.getPhase());
|
||||
terminal.setLastWeathers(last);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listWithLeadPull")
|
||||
@ApiOperation("查询附带拉力")
|
||||
@Log(title = "覆冰查询附带拉力", type = "查询")
|
||||
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithLeadPull(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
|
||||
Integer isonline, Integer protocol, Integer devType,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
|
||||
search, null,
|
||||
isonline, protocol, devType, null,
|
||||
pageNum, pageSize);
|
||||
if (!CollectionUtils.isEmpty(result.getList())) {
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
LeadPulls last = leadPullsService.getLast(terminal.getId());
|
||||
if (last != null) {
|
||||
last.setCmdid(terminal.getCmdid());
|
||||
last.setPhase(terminal.getPhase());
|
||||
terminal.setLastLeadPulls(last);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("heartbeat")
|
||||
@ApiOperation("心跳历史")
|
||||
@Log(title = "查询心跳历史", type = "查询")
|
||||
public ResponseReult<PageInfo<TerminalHeartbeatHistory>> heartbeat(Integer termId, Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<TerminalHeartbeatHistory> list = heartbeatService.listAll(termId, pageNum, pageSize);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@GetMapping("getSimcard")
|
||||
@ApiOperation("查询Simcard数据")
|
||||
@Log(title = "查询Simcard数据", type = "查询")
|
||||
public ResponseReult<TerminalSimcard> getSimcard(Integer termId) {
|
||||
if (termId == null) {
|
||||
throw new ApiException("termId不能为空");
|
||||
}
|
||||
TerminalSimcard simcard = simcardService.getSimcard(termId);
|
||||
return ResponseReult.success(simcard);
|
||||
}
|
||||
|
||||
@PostMapping("updateSimcard")
|
||||
@ApiOperation("修改Simcard数据")
|
||||
@Log(title = "修改Simcard数据", type = "修改")
|
||||
public ResponseReult<String> updateSimcard(@RequestBody TerminalSimcard model) throws Exception {
|
||||
simcardService.updateSimcard(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("importIccidForMaintain")
|
||||
@ApiOperation("比对运维后导入iccid")
|
||||
@Log(title = "比对运维后导入iccid", type = "导入")
|
||||
public ResponseReult<String> importIccidForMaintain(@Validated @RequestBody IccidModel model) throws Exception {
|
||||
TerminalSelectVo vo = new TerminalSelectVo();
|
||||
vo.setPageindex(1);
|
||||
vo.setPagesize(10000);
|
||||
List<View_Dy_Line_Tower_Terminals> list = terminalExtService.getExtTerminalList(vo);
|
||||
for (View_Dy_Line_Tower_Terminals item : list) {
|
||||
MntnStatus mntnStatus = item.getMntnStatus();
|
||||
if (mntnStatus != null && mntnStatus.getReportMap() != null) {
|
||||
HashMap<String, Object> reportMap = mntnStatus.getReportMap();
|
||||
String iccid1 = (String) reportMap.get("simcard1");
|
||||
String iccid2 = (String) reportMap.get("simcard2");
|
||||
if (iccid2 != null && model.getIccidList().contains(iccid2)) {
|
||||
TerminalSimcard simcard = new TerminalSimcard();
|
||||
simcard.setTermId(item.getId());
|
||||
simcard.setIccid2(iccid2);
|
||||
simcard.setType2(model.getType());
|
||||
simcardService.updateSimcard(simcard);
|
||||
} else if (iccid1 != null && model.getIccidList().contains(iccid1)) {
|
||||
TerminalSimcard simcard = new TerminalSimcard();
|
||||
simcard.setTermId(item.getId());
|
||||
simcard.setIccid2(iccid1);
|
||||
simcard.setType2(model.getType());
|
||||
simcardService.updateSimcard(simcard);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "图片覆冰天气的按时间表统计", notes = "图片覆冰天气的按时间表统计接口", httpMethod = "POST")
|
||||
@RequestMapping("/getScheduleStat")
|
||||
@Log(title = "图片覆冰天气的按时间表统计", type = "统计")
|
||||
public ResponseReult<List<StatTerm>> getScheduleStat(@RequestHeader HttpHeaders headers, @RequestBody @Validated TerminalPhotoSelectVo vo) throws Exception {
|
||||
String requestIp = HeaderUtil.getRequestIp(headers);
|
||||
vo.setPageindex(1);
|
||||
vo.setPagesize(100000);
|
||||
if (vo.getInterval() == null) {
|
||||
vo.setInterval(10);
|
||||
}
|
||||
List<StatTerm> termList = new ArrayList<>();
|
||||
ServiceBody<TerminalPhotoSelectListModel> serviceBody = photoService.getPhotoList(requestIp, vo, termList);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
TerminalPhotoSelectListModel model = serviceBody.getData();
|
||||
List<Integer> idList = new ArrayList<>();
|
||||
for (StatTerm st : termList) {
|
||||
idList.add(st.getTermId());
|
||||
}
|
||||
if (idList.size() < 1) {
|
||||
idList.add(-1);
|
||||
}
|
||||
|
||||
this.buildPhotoStat(termList, idList, model.getList(), vo);
|
||||
|
||||
PageInfo<Weathers> weatherPage = weatherService.list(null, null, idList,
|
||||
vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000, 1, 100000);
|
||||
if (!CollectionUtils.isEmpty(weatherPage.getList())) {
|
||||
for (Weathers weather : weatherPage.getList()) {
|
||||
StatTerm term = this.findStatTerm(termList, weather.getTermId(), weather.getCmdid());
|
||||
term.addWeather(weather);
|
||||
}
|
||||
}
|
||||
PageInfo<LeadPulls> pullPage = leadPullsService.list(null, null, idList,
|
||||
vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000, 1, 100000);
|
||||
if (!CollectionUtils.isEmpty(pullPage.getList())) {
|
||||
for (LeadPulls pull : pullPage.getList()) {
|
||||
StatTerm term = this.findStatTerm(termList, pull.getTermId(), pull.getCmdid());
|
||||
term.addLeadPulls(pull);
|
||||
}
|
||||
}
|
||||
return ResponseReult.success(termList);
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
private void buildPhotoStat(List<StatTerm> termList, List<Integer> idList,
|
||||
List<TerminalPhotoSelectListModel.PhotoBean> list, TerminalPhotoSelectVo vo) throws Exception {
|
||||
for (StatTerm statTerm : termList) {
|
||||
List<CameraSchedule> scheduleList = cameraScheduleService.list(statTerm.getTermId());
|
||||
statTerm.initScheduleList(scheduleList, vo.getStarttime().getTime(), vo.getEndtime().getTime(), vo.getInterval());
|
||||
|
||||
long rebootCount = infoHistoryService.count(statTerm.getTermId(), vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000);
|
||||
statTerm.setRebootCount(rebootCount);
|
||||
TerminalBasicInfoHistory info = infoHistoryService.getLast(statTerm.getTermId());
|
||||
statTerm.setLastInfo(info);
|
||||
}
|
||||
TerminalStatusExample example = new TerminalStatusExample();
|
||||
TerminalStatusExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andTermIdIn(idList);
|
||||
List<TerminalStatus> terminalStatuses = terminalStatusDao.selectByExample(example);
|
||||
for (StatTerm item : termList) {
|
||||
for (TerminalStatus terminalStatus : terminalStatuses) {
|
||||
if (item.getTermId() == terminalStatus.getTermId().intValue()) {
|
||||
item.setWorkingStatus(terminalStatus);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (list != null) {
|
||||
for (TerminalPhotoSelectListModel.PhotoBean photo : list) {
|
||||
StatTerm term = this.findStatTerm(termList, photo.getTermid(), photo.getCmdid());
|
||||
term.addPhoto(photo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private StatTerm findStatTerm(List<StatTerm> list, Integer termId, String cmdid) {
|
||||
StatTerm the = null;
|
||||
for (StatTerm item : list) {
|
||||
if (item.getTermId() == termId) {
|
||||
the = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (the == null) {
|
||||
the = new StatTerm();
|
||||
the.setTermId(termId);
|
||||
the.setCmdid(cmdid);
|
||||
list.add(the);
|
||||
}
|
||||
return the;
|
||||
}
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.TerminalPresets;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.TerminalPresetsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"装置预置位相关接口"})
|
||||
@RequestMapping("preset")
|
||||
@Slf4j
|
||||
public class TerminalPresetController extends BaseController {
|
||||
|
||||
@Resource
|
||||
TerminalPresetsService service;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询列表")
|
||||
@Log(title = "查询装置预置位列表", type = "查询")
|
||||
public ResponseReult<List<TerminalPresets>> list(@RequestParam(value = "termId", required = true) Integer termId) {
|
||||
List<TerminalPresets> result = service.list(termId);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("save")
|
||||
@ApiOperation("保存")
|
||||
@Log(title = "保存装置预置位", type = "保存")
|
||||
public ResponseReult<String> save(@Validated @RequestBody TerminalPresets item) throws Exception {
|
||||
service.save(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除装置预置位", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "termId不能为空!") Integer termId,
|
||||
@Validated @NotNull(message = "presetNo不能为空!") Integer presetNo) throws Exception {
|
||||
if (termId == null) {
|
||||
throw new ApiException("termId不能为空!");
|
||||
}
|
||||
if (presetNo == null) {
|
||||
throw new ApiException("presetNo不能为空!");
|
||||
}
|
||||
service.delete(termId, presetNo);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -1,36 +1,57 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_framework.socket.WebSocketServer;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"测试接口"})
|
||||
@RequestMapping("test")
|
||||
@Api(value = "测试接口", tags = "测试接口tags")
|
||||
@Controller
|
||||
@Slf4j
|
||||
public class TestController extends BaseController {
|
||||
|
||||
@Resource
|
||||
WebSocketServer webSocketServer;
|
||||
public class TestController {
|
||||
|
||||
@GetMapping("sendMsg")
|
||||
@ApiOperation("发送消息")
|
||||
public void sendMsg(String msg) {
|
||||
webSocketServer.sendNotice(null, msg);
|
||||
@ApiOperation(value = "测试", notes = "测试notes", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/user/login")
|
||||
@Log(title = "测试", type = "查询")
|
||||
public String gettest() {
|
||||
log.info("有一个沙雕点了链接");
|
||||
return "/api/index2";
|
||||
}
|
||||
|
||||
@GetMapping("test")
|
||||
@ApiOperation("test")
|
||||
public ResponseReult<String> test() {
|
||||
return ResponseReult.success("OK");
|
||||
@GetMapping("/user/logins")
|
||||
@Log(title = "测试", type = "查询")
|
||||
public String hhtest() {
|
||||
log.info("有一个沙雕点了链接");
|
||||
return "/api/index2.html";
|
||||
}
|
||||
|
||||
// @ApiOperation(value = "登录", notes = "登录", httpMethod = "POST")
|
||||
//// @ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
// @RequestMapping("/login")
|
||||
// @Log(title = "登录", type = "查询")
|
||||
// public String login(String username, String password) {
|
||||
// //获取主题对象
|
||||
// Subject subject = SecurityUtils.getSubject();
|
||||
// try {
|
||||
// subject.login(new UsernamePasswordToken(username,password));
|
||||
// System.out.println("登录成功!!!");
|
||||
// return "登录成功";
|
||||
// } catch (UnknownAccountException e) {
|
||||
// e.printStackTrace();
|
||||
// System.out.println("用户错误!!!");
|
||||
// } catch (IncorrectCredentialsException e) {
|
||||
// System.out.println("密码错误!!!");
|
||||
// }
|
||||
// return "登录失败";
|
||||
// }
|
||||
|
||||
}
|
||||
|
@ -1,45 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_service.service.TerminalPhotoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
@Api(value = "补图片", tags = "补图片相关")
|
||||
@RestController
|
||||
@Slf4j
|
||||
public class UpPhotoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
TerminalPhotoService terminalPhotoService;
|
||||
|
||||
@PostMapping("upload")
|
||||
@ApiOperation("处理icd文件")
|
||||
public ResponseReult<String> upload(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "termid",required = false) Integer termid,
|
||||
@RequestParam(value = "cmdid",required = false) String cmdid,
|
||||
@RequestParam(value = "channel",required = false) Integer channel,
|
||||
@RequestParam(value = "phototime",required = false) BigInteger phototime) throws Exception {
|
||||
//保存在服务器中
|
||||
ServiceBody<String> serviceBody = terminalPhotoService.uploadPhoto(file, termid, cmdid, channel, phototime);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.MntnUpgrades;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.UpgradeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"升级相关接口"})
|
||||
@RequestMapping("upgrade")
|
||||
@Slf4j
|
||||
public class UpgradeController extends BaseController {
|
||||
|
||||
@Resource
|
||||
UpgradeService service;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询全部列表")
|
||||
public ResponseReult<List<MntnUpgrades>> listAll(Integer type) {
|
||||
List<MntnUpgrades> result = service.listAll(type);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("upload")
|
||||
@ApiOperation("上传")
|
||||
public ResponseReult<String> upload(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "title", required = false) String title,
|
||||
@RequestParam(value = "type", required = true) Integer type) throws Exception {
|
||||
if (file == null) {
|
||||
throw new ApiException("缺少上传的文件");
|
||||
}
|
||||
if (StringUtils.isBlank(file.getOriginalFilename())) {
|
||||
throw new ApiException("文件格式不正确");
|
||||
}
|
||||
MntnUpgrades record = new MntnUpgrades();
|
||||
record.setTitle(title);
|
||||
record.setType(type);
|
||||
service.upload(record, file);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("updateTitle")
|
||||
@ApiOperation("修改")
|
||||
public ResponseReult<String> updateTitle(@Validated @RequestBody MntnUpgrades item) throws Exception {
|
||||
if (item.getId() == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.updateTitle(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
}
|
@ -1,82 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.PermissionDetail;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_common.entity.DyLevel;
|
||||
import com.shxy.xymanager_common.entity.SysUser;
|
||||
import com.shxy.xymanager_common.entity.TbPermission;
|
||||
import com.shxy.xymanager_common.model.PermissionModel;
|
||||
import com.shxy.xymanager_common.threadlocal.UserContextHolder;
|
||||
import com.shxy.xymanager_service.service.NewCacheService;
|
||||
import com.shxy.xymanager_service.service.PermissionService;
|
||||
import com.shxy.xymanager_service.service.UserService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"用户权限相关接口"})
|
||||
@RequestMapping("user")
|
||||
@Slf4j
|
||||
public class UserController extends BaseController {
|
||||
|
||||
@Resource
|
||||
UserService service;
|
||||
@Resource
|
||||
PermissionService permissionService;
|
||||
@Resource
|
||||
NewCacheService cacheService;
|
||||
|
||||
|
||||
@GetMapping("getFullTree")
|
||||
@ApiOperation("查询数据全量树")
|
||||
public ResponseReult<List<DyLevel>> getFullTree() {
|
||||
List<DyLevel> list = cacheService.getFullTree();
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@GetMapping("getPermission")
|
||||
@ApiOperation("查询权限")
|
||||
public ResponseReult<List<TbPermission>> getPermission(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
List<TbPermission> result = permissionService.getPermission(id);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("changePermission")
|
||||
@ApiOperation("修改权限")
|
||||
public ResponseReult<String> changePermission(@Validated @RequestBody PermissionModel item) throws Exception {
|
||||
permissionService.changePermission(item.getUserId(), item.getList());
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param
|
||||
* @return ResponseReult
|
||||
* @Description 获取当前用户
|
||||
*/
|
||||
@ApiOperation(value = "获取当前用户", notes = "获取当前用户", httpMethod = "GET")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/currentUser")
|
||||
public ResponseReult<SysUser> currentUser() throws Exception {
|
||||
SysUser user = UserContextHolder.currentUserInfo();
|
||||
if (user != null) {
|
||||
user.setPassword("");
|
||||
PermissionDetail permission = cacheService.getPermissionDetailFull(user.getUid());
|
||||
user.setPermission(permission);
|
||||
return ResponseReult.success(user);
|
||||
} else {
|
||||
return ResponseReult.error(ServiceStatus.ERROR, "未获取到当前用户信息");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,110 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.Weathers;
|
||||
import com.shxy.xymanager_common.model.StatWeather;
|
||||
import com.shxy.xymanager_common.util.EasyExcelUtil;
|
||||
import com.shxy.xymanager_service.service.WeatherService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"气象相关接口"})
|
||||
@RequestMapping("weather")
|
||||
@Slf4j
|
||||
public class WeatherController extends BaseController {
|
||||
|
||||
@Resource
|
||||
WeatherService service;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询列表")
|
||||
@Log(title = "查询气象列表", type = "查询")
|
||||
public ResponseReult<PageInfo<Weathers>> list(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listStat")
|
||||
@ApiOperation("查询统计")
|
||||
@Log(title = "查询气象统计", type = "查询")
|
||||
public ResponseReult<List<StatWeather>> listStat(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
pageNum = 1;
|
||||
pageSize = 100000;
|
||||
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
List<StatWeather> list = this.buildStat(result.getList());
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
private List<StatWeather> buildStat(List<Weathers> list) {
|
||||
List<StatWeather> result = new ArrayList<>();
|
||||
if (list != null) {
|
||||
for (Weathers item : list) {
|
||||
StatWeather term = this.findStatTerm(result, item);
|
||||
term.addWeather(item);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private StatWeather findStatTerm(List<StatWeather> list, Weathers weathers) {
|
||||
StatWeather the = null;
|
||||
for (StatWeather item : list) {
|
||||
if (item.getTermId() == weathers.getTermId()) {
|
||||
the = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (the == null) {
|
||||
the = new StatWeather();
|
||||
the.setTermId(weathers.getTermId());
|
||||
the.setCmdid(weathers.getCmdid());
|
||||
list.add(the);
|
||||
}
|
||||
return the;
|
||||
}
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
@Log(title = "导出气象", type = "导出")
|
||||
public void export(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize,
|
||||
HttpServletResponse response) throws Exception {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
EasyExcelUtil.createExcel(response, "覆冰数据", result.getList(), Weathers.class);
|
||||
}
|
||||
|
||||
}
|
@ -1,318 +0,0 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.*;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_common.util.*;
|
||||
import com.shxy.xymanager_common.zhiping.*;
|
||||
import com.shxy.xymanager_service.service.HenanService;
|
||||
import com.shxy.xymanager_service.service.LeadPullsService;
|
||||
import com.shxy.xymanager_service.service.WeatherService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"微气象监测数据同步接口"})
|
||||
@RequestMapping("henan")
|
||||
@Slf4j
|
||||
public class ZhipingController extends BaseController {
|
||||
|
||||
String accountName = "admin";
|
||||
String secretKey = "SHxy@2024";
|
||||
@Resource
|
||||
LeadPullsService leadPullsService;
|
||||
@Resource
|
||||
WeatherService weatherService;
|
||||
@Autowired
|
||||
TokenUtil tokenUtil;
|
||||
@Resource
|
||||
HenanService henanService;
|
||||
|
||||
@PostMapping("addWeather")
|
||||
@ApiOperation("新增天气装置")
|
||||
public ResponseReult<String> addWeather(@RequestBody TerminalWeather item) throws Exception {
|
||||
henanService.addWeather(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("addPoint")
|
||||
@ApiOperation("新增拉力装置")
|
||||
public ResponseReult<String> addPoint(@RequestBody TerminalPoint item) throws Exception {
|
||||
henanService.addPoint(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delWeather")
|
||||
@ApiOperation("删除天气装置")
|
||||
public ResponseReult<String> delWeather(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
henanService.delWeather(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delPoint")
|
||||
@ApiOperation("删除拉力装置")
|
||||
public ResponseReult<String> delPoint(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
henanService.delPoint(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("getWeatherList")
|
||||
@ApiOperation("查询天气装置列表")
|
||||
public ResponseReult<List<TerminalWeather>> getWeatherList() {
|
||||
List<TerminalWeather> result = henanService.getWeatherList();
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("getPointList")
|
||||
@ApiOperation("查询拉力装置点表")
|
||||
public ResponseReult<List<TerminalPoint>> getPointList() {
|
||||
List<TerminalPoint> result = henanService.getPointList();
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("query")
|
||||
@ApiOperation("查询")
|
||||
@Log(title = "微气象监测数据同步查询", type = "查询")
|
||||
public ZhipingReult<List<OutModel>> query(String actiontype, String timestamp,
|
||||
String beginTime, String endTime) throws Exception {
|
||||
ZhipingReult result = new ZhipingReult();
|
||||
result.setCode("0");
|
||||
|
||||
if (StringUtils.isBlank(beginTime)) {
|
||||
result.setCode("400");
|
||||
result.setMsg("beginTime不能为空");
|
||||
} else if (StringUtils.isBlank(endTime)) {
|
||||
result.setCode("400");
|
||||
result.setMsg("endTime不能为空");
|
||||
} else if (StringUtils.isBlank(timestamp)) {
|
||||
result.setCode("400");
|
||||
result.setMsg("timestamp不能为空");
|
||||
} else if (!timestamp.contains("9186B579774441C58FB0867FF05C8CE2")) {
|
||||
result.setCode("400");
|
||||
result.setMsg("私钥不正确");
|
||||
} else {
|
||||
Date start = DateUtil.parse(beginTime);
|
||||
Date end = DateUtil.parse(endTime);
|
||||
if ("meteo".equals(actiontype)) {
|
||||
PageInfo<Weathers> page = weatherService.list(null, null, null,
|
||||
start.getTime() / 1000, end.getTime() / 1000, 1, 10000);
|
||||
if (!CollectionUtils.isEmpty(page.getList())) {
|
||||
List<OutModel> list = new ArrayList<>();
|
||||
for (Weathers weather : page.getList()) {
|
||||
OutModel item = new OutModel();
|
||||
item.setCmonitorCode(weather.getCmdid());
|
||||
item.setCupdateTime(DateUtil.format(weather.getUpdateDate()));
|
||||
item.setCtemperature(String.valueOf(weather.getAirTemperature()));
|
||||
item.setChumidity(String.valueOf(weather.getHumidity()));
|
||||
item.setCwindSpeed(String.valueOf(weather.getStandardWindSpeed()));
|
||||
item.setCwindDirection(String.valueOf(weather.getAvgWindDir10min()));
|
||||
item.setCsunshine(String.valueOf(weather.getRadiationIntensity()));
|
||||
item.setCrainAmount(String.valueOf(weather.getPrecipitation()));
|
||||
list.add(item);
|
||||
}
|
||||
result.setDataCount(String.valueOf(list.size()));
|
||||
result.setDataList(list);
|
||||
}
|
||||
} else if ("ice_weight".equals(actiontype)) {
|
||||
PageInfo<LeadPulls> page = leadPullsService.list(null, null, null,
|
||||
start.getTime() / 1000, end.getTime() / 1000, 1, 10000);
|
||||
if (!CollectionUtils.isEmpty(page.getList())) {
|
||||
List<OutModel> list = new ArrayList<>();
|
||||
for (LeadPulls pull : page.getList()) {
|
||||
OutModel item = new OutModel();
|
||||
item.setCmonitorCode(pull.getCmdid());
|
||||
item.setCupdateTime(DateUtil.format(pull.getUpdateDate()));
|
||||
item.setCwindAngle(String.valueOf(pull.getWindSpeed()));
|
||||
item.setCice(String.valueOf(0));
|
||||
Float x = (pull.getMaxpullPull() + pull.getMinpullPull()) / 2;
|
||||
item.setCpull(String.valueOf(pull.getMaxpullPull()));
|
||||
item.setCpullAngle(String.valueOf(x));
|
||||
list.add(item);
|
||||
}
|
||||
result.setDataCount(String.valueOf(list.size()));
|
||||
result.setDataList(list);
|
||||
}
|
||||
} else {
|
||||
result.setCode("400");
|
||||
result.setMsg("actiontype不正确");
|
||||
}
|
||||
}
|
||||
|
||||
result.setRTime(DateUtil.format(new Date()));
|
||||
return result;
|
||||
}
|
||||
|
||||
@PostMapping("login")
|
||||
@ApiOperation("同步登入")
|
||||
@Log(title = "同步登入", type = "登入")
|
||||
public SdqjResult login(@RequestBody LoginModel model) throws Exception {
|
||||
SdqjResult result = new SdqjResult();
|
||||
String account = DigestUtils.md5(accountName);
|
||||
String key = DigestUtils.md5(secretKey);
|
||||
if (account.equals(model.getAccountName()) &&
|
||||
key.equals(model.getSecretKey())) {
|
||||
result.setCode("200");
|
||||
result.setMessage("认证成功");
|
||||
Long time = System.currentTimeMillis() / 1000;
|
||||
String token = tokenUtil.generateToken(time.intValue());
|
||||
result.setToken(token);
|
||||
} else {
|
||||
result.setCode("-1");
|
||||
result.setMessage("认证失败");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@PostMapping("queryMicromes")
|
||||
@ApiOperation("天气数据同步查询")
|
||||
@Log(title = "天气数据同步查询", type = "查询")
|
||||
public SdqjResult queryMicromes(String token,
|
||||
String startTime, String endTime) throws Exception {
|
||||
|
||||
if (StringUtils.isBlank(token)) {
|
||||
return SdqjResult.error("token不能为空");
|
||||
}
|
||||
if (StringUtils.isBlank(startTime)) {
|
||||
return SdqjResult.error("startTime不能为空");
|
||||
}
|
||||
if (StringUtils.isBlank(endTime)) {
|
||||
return SdqjResult.error("endTime不能为空");
|
||||
}
|
||||
try {
|
||||
String str = tokenUtil.getUserId(token);
|
||||
long time = Long.valueOf(str);
|
||||
time = System.currentTimeMillis() / 1000 - time;
|
||||
if (time >= 0 && time <= 30 * 60) {
|
||||
|
||||
} else {
|
||||
return SdqjResult.error("token已过期");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return SdqjResult.error("token无效");
|
||||
}
|
||||
|
||||
Date start = DateUtil.parse(startTime);
|
||||
Date end = DateUtil.parse(endTime);
|
||||
List<WeatherModel> result = new ArrayList<>();
|
||||
List<Weathers> list = henanService.queryMicromes(start, end);
|
||||
if (!CollectionUtils.isEmpty(list)) {
|
||||
for (Weathers weather : list) {
|
||||
WeatherModel item = new WeatherModel();
|
||||
item.setCollTime(DateUtil.format(weather.getUpdateDate()));
|
||||
item.setWindAvg(String.valueOf(weather.getAvgWindSpeed10min()));
|
||||
item.setWindAngle(String.valueOf(weather.getAvgWindDir10min()));
|
||||
item.setMaxWind(String.valueOf(weather.getMaxWindSpeed()));
|
||||
if (weather.getExtremeWindSpeed() == null) {
|
||||
item.setExtrWind("0");
|
||||
} else {
|
||||
item.setExtrWind(String.valueOf(weather.getExtremeWindSpeed()));
|
||||
}
|
||||
item.setStandWind(String.valueOf(weather.getStandardWindSpeed()));
|
||||
item.setTemperature(String.valueOf(weather.getAirTemperature()));
|
||||
item.setHumidity(String.valueOf(weather.getHumidity()));
|
||||
item.setPressure(String.valueOf(weather.getAirPressure()));
|
||||
item.setPrecipitation(String.valueOf(weather.getPrecipitation()));
|
||||
if (weather.getPrecipitationIntensity() == null) {
|
||||
item.setPrecipInten("0");
|
||||
} else {
|
||||
item.setPrecipInten(String.valueOf(weather.getPrecipitationIntensity()));
|
||||
}
|
||||
item.setRadiaInten(String.valueOf(weather.getRadiationIntensity()));
|
||||
item.setIce("0");
|
||||
item.setPull("0");
|
||||
item.setTiltAngle("0");
|
||||
item.setEquipId(weather.getCmdid());
|
||||
result.add(item);
|
||||
}
|
||||
} else {
|
||||
String str = "从" + startTime + "到" + endTime + "无天气数据";
|
||||
String key = "weather";
|
||||
if (!PulliceModel.fubinDoneMap.containsKey(key)) {
|
||||
PulliceModel.fubinDoneMap.put(key, "");
|
||||
DingTalkPushUtil.alertFB1.add(str);
|
||||
}
|
||||
}
|
||||
return SdqjResult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("queryPullIces")
|
||||
@ApiOperation("覆冰拉力数据同步查询")
|
||||
@Log(title = "覆冰拉力数据同步查询", type = "查询")
|
||||
public SdqjResult queryPullIces(String token,
|
||||
String startTime, String endTime) throws Exception {
|
||||
|
||||
if (StringUtils.isBlank(token)) {
|
||||
return SdqjResult.error("token不能为空");
|
||||
}
|
||||
if (StringUtils.isBlank(startTime)) {
|
||||
return SdqjResult.error("startTime不能为空");
|
||||
}
|
||||
if (StringUtils.isBlank(endTime)) {
|
||||
return SdqjResult.error("endTime不能为空");
|
||||
}
|
||||
try {
|
||||
String str = tokenUtil.getUserId(token);
|
||||
long time = Long.valueOf(str);
|
||||
time = System.currentTimeMillis() / 1000 - time;
|
||||
if (time >= 0 && time <= 30 * 60) {
|
||||
|
||||
} else {
|
||||
return SdqjResult.error("token已过期");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return SdqjResult.error("token无效");
|
||||
}
|
||||
|
||||
Date start = DateUtil.parse(startTime);
|
||||
Date end = DateUtil.parse(endTime);
|
||||
List<PulliceModel> result = new ArrayList<>();
|
||||
List<LeadPulls> list = henanService.queryPullIces(start, end);
|
||||
if (!CollectionUtils.isEmpty(list)) {
|
||||
for (LeadPulls pull : list) {
|
||||
PulliceModel item = new PulliceModel();
|
||||
item.setCollTime(DateUtil.format(pull.getUpdateDate()));
|
||||
item.setPull(String.valueOf(pull.getMaxpullPull()));
|
||||
item.setCrosswiseAngle(String.valueOf(pull.getMaxpullWind()));
|
||||
item.setForwardTiltAngle(String.valueOf(pull.getMaxpullTilt()));
|
||||
item.setAirTemper("0");
|
||||
item.setHumidity("0");
|
||||
item.setWindSpeed("0");
|
||||
item.setWAngle("0");
|
||||
item.setCcll(String.valueOf(pull.getCcll()));
|
||||
item.setEquipId(pull.getCmdid());
|
||||
item.setPointId(pull.getCmdid() + "_" + pull.getPhase());
|
||||
item.setT_Sensor_Num(String.valueOf(pull.getCount()));
|
||||
item.calculate();
|
||||
result.add(item);
|
||||
}
|
||||
} else {
|
||||
String str = "从" + startTime + "到" + endTime + "无覆冰拉力数据";
|
||||
String key = "pull";
|
||||
if (!PulliceModel.fubinDoneMap.containsKey(key)) {
|
||||
PulliceModel.fubinDoneMap.put(key, "");
|
||||
DingTalkPushUtil.alertFB1.add(str);
|
||||
}
|
||||
}
|
||||
return SdqjResult.success(result);
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,62 +0,0 @@
|
||||
package com.shxy.xymanager_common.bean;
|
||||
|
||||
import com.shxy.xymanager_common.enums.CommonStatus;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 权限列表返回
|
||||
*
|
||||
* @author jingjing
|
||||
*/
|
||||
@Data
|
||||
public class PermissionDetail implements Serializable {
|
||||
|
||||
private List<Integer> dypList = new ArrayList<>();
|
||||
|
||||
private List<Integer> linepList = new ArrayList<>();
|
||||
|
||||
private List<Integer> towerpList = new ArrayList<>();
|
||||
|
||||
private List<Integer> termpList = new ArrayList<>();
|
||||
|
||||
private Integer isSuper = CommonStatus.DELETE.value();
|
||||
|
||||
private Integer uid;
|
||||
|
||||
|
||||
public boolean hasDyId(Integer id) {
|
||||
if (dypList.contains(id)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasLineId(Integer id) {
|
||||
if (linepList.contains(id)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasTowerId(Integer id) {
|
||||
if (towerpList.contains(id)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasTermId(Integer id) {
|
||||
if (termpList.contains(id)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
package com.shxy.xymanager_common.config;
|
||||
|
||||
import com.google.code.kaptcha.Constants;
|
||||
import com.google.code.kaptcha.impl.DefaultKaptcha;
|
||||
import com.google.code.kaptcha.util.Config;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
|
||||
@Configuration
|
||||
public class CaptchaConfig {
|
||||
|
||||
@Bean(name = "captchaProducer")
|
||||
public DefaultKaptcha getKaptchaBean() {
|
||||
DefaultKaptcha defaultKaptcha = new DefaultKaptcha();
|
||||
Properties properties = new Properties();
|
||||
|
||||
properties.setProperty(Constants.KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial, Helvetica");
|
||||
properties.setProperty(Constants.KAPTCHA_BORDER, "no");
|
||||
properties.setProperty(Constants.KAPTCHA_BORDER_COLOR, "0,0,0");
|
||||
properties.setProperty("kaptcha.textproducer.font.color", "36,114,180");
|
||||
properties.setProperty("kaptcha.textproducer.font.size", "40");
|
||||
properties.setProperty("kaptcha.image.width", "160");
|
||||
properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.WaterRipple");
|
||||
properties.setProperty("kaptcha.textproducer.char.length", "4");
|
||||
properties.setProperty("kaptcha.textproducer.char.string", "zxcvbnmasdfghjkqwertyupZXCVBNMASDFGHJKLQWERTYUP23456789");
|
||||
properties.setProperty("kaptcha.word.impl", "com.google.code.kaptcha.text.impl.DefaultWordRenderer");
|
||||
properties.setProperty("kaptcha.textproducer.impl", "com.google.code.kaptcha.text.impl.DefaultTextCreator");
|
||||
properties.setProperty("kaptcha.background.clear.from", "255,255,255");
|
||||
properties.setProperty("kaptcha.background.clear.to", "255,255,255");
|
||||
properties.setProperty("kaptcha.noise.impl", "com.google.code.kaptcha.impl.NoNoise");
|
||||
Config config = new Config(properties);
|
||||
defaultKaptcha.setConfig(config);
|
||||
return defaultKaptcha;
|
||||
}
|
||||
}
|
@ -1,92 +0,0 @@
|
||||
package com.shxy.xymanager_common.config;
|
||||
|
||||
import com.fasterxml.jackson.core.StreamReadConstraints;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Sets;
|
||||
import lombok.Data;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
@Configuration
|
||||
@Data
|
||||
@Slf4j
|
||||
public class SecurityConfig {
|
||||
|
||||
private String jwtPwd = "x11d11ddf@!dddd12efwefwefwd1111ff1111qefeffeefffdfdfdfa1d";
|
||||
|
||||
private String jwtHeader = "Authorization";
|
||||
|
||||
private String jwtPrefix = "Bearer";
|
||||
|
||||
// default 7 days
|
||||
private Integer jwtExpiration = 7 * 24 * 60 * 60;
|
||||
|
||||
private List<String> urlWhiteList = Lists.newArrayList();
|
||||
|
||||
|
||||
/**
|
||||
* 是否开启权限认证
|
||||
*/
|
||||
private Boolean enable = true;
|
||||
/**
|
||||
* 系统用户默认密码
|
||||
*/
|
||||
private String defaultPwd = "Aa12345678";
|
||||
/**
|
||||
* 默认的静态资源过滤
|
||||
*/
|
||||
private String staticResource = ".jpg,.jpeg,.js,.css,.png,.bmp,.gif,.ico,.mp3,.mp4,.svg";
|
||||
|
||||
private Set<String> resourceSuffix = Sets.newHashSet();
|
||||
|
||||
private List<String> swagger = Lists.newArrayList("/swagger**", "/webjars/**",
|
||||
"/v2/api-docs/**", "/v3/api-docs/**", "/swagger-resources/**");
|
||||
|
||||
@PostConstruct
|
||||
private void init() {
|
||||
if (StringUtils.isNotBlank(staticResource)) {
|
||||
this.resourceSuffix = Sets.newHashSet(staticResource.split(","));
|
||||
}
|
||||
urlWhiteList.addAll(swagger);
|
||||
urlWhiteList.add("/api/login");
|
||||
urlWhiteList.add("/xymanager/login");
|
||||
urlWhiteList.add("/login");
|
||||
urlWhiteList.add("/xymanager/doc.html");
|
||||
urlWhiteList.add("/xymanager/swagger-ui.html");
|
||||
urlWhiteList.add("/xymanager/swagger-resources/**");
|
||||
urlWhiteList.add("/xymanager/*/api-docs");
|
||||
urlWhiteList.add("/xymanager/websocket/**");
|
||||
urlWhiteList.add("/test/**");
|
||||
urlWhiteList.add("/error");
|
||||
urlWhiteList.add("/xymanager/getPhotoListForOpen");
|
||||
urlWhiteList.add("/xymanager/ctrlCmaDeviceCapture");
|
||||
urlWhiteList.add("/xymanager/cmaDeviceStatus");
|
||||
urlWhiteList.add("/xymanager/cmaUserLogin");
|
||||
urlWhiteList.add("/xymanager/leadpulls/export");
|
||||
urlWhiteList.add("/xymanager/weather/export");
|
||||
urlWhiteList.add("/xymanager/upload/upload**");
|
||||
urlWhiteList.add("/xymanager/henan/**");
|
||||
urlWhiteList.add("/xymanager/kaptcha");
|
||||
urlWhiteList.add("/xymanager/test/**");
|
||||
urlWhiteList.add("/xymanager/mntn/**");
|
||||
urlWhiteList.add("/xymanager/uploadPhoto");
|
||||
urlWhiteList.add("/xymanager/uploadPatch");
|
||||
|
||||
StreamReadConstraints streamReadConstraints = StreamReadConstraints
|
||||
.builder()
|
||||
.maxStringLength(200000000)
|
||||
.build();
|
||||
objectMapper.getFactory().setStreamReadConstraints(streamReadConstraints);
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private ObjectMapper objectMapper;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DyLineAndTerminalWithHeartDto {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer dyValue;
|
||||
|
||||
private List<LineAndTerminalWithHeartDto> list;
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
public class DyLineAndTowertDto {
|
||||
|
||||
private Integer dyId;
|
||||
|
||||
private String dyName;
|
||||
|
||||
private Integer dyValue;
|
||||
|
||||
private Integer lineId;
|
||||
|
||||
private String lineName;
|
||||
|
||||
private String bsManufacturer;
|
||||
|
||||
private Integer dyLevelId;
|
||||
|
||||
private Integer towerId;
|
||||
|
||||
private String towerName;
|
||||
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
|
||||
@Data
|
||||
public class GroupAlarmType implements Serializable {
|
||||
|
||||
private BigInteger num;
|
||||
|
||||
private Integer label;
|
||||
|
||||
private String name;
|
||||
|
||||
private String enname;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class LastPicTimeDto implements Serializable {
|
||||
|
||||
private BigInteger photoTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 线路和电压等级名称对象
|
||||
*/
|
||||
@Data
|
||||
public class LineAndDyNameDto {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String bsManufacturer;
|
||||
|
||||
private Integer dyLevelId;
|
||||
|
||||
private String dyLevelName;
|
||||
|
||||
private Integer status;
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class LineAndTerminalWithHeartDto {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String bsManufacturer;
|
||||
|
||||
private Integer dyLevel;
|
||||
|
||||
private List<TerminalsWithHeart> list;
|
||||
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PhotoMarkDto {
|
||||
|
||||
private Integer markId;
|
||||
|
||||
private Integer termId;
|
||||
|
||||
private Integer channelId;
|
||||
|
||||
private Integer width;
|
||||
|
||||
private Integer height;
|
||||
|
||||
private String color;
|
||||
|
||||
private String path;
|
||||
|
||||
private Short boderWidth;
|
||||
|
||||
private List<TermChannelCoordinateDto> list;
|
||||
|
||||
}
|
@ -1,70 +1,23 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.shxy.xymanager_common.util.DateUtil;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.sql.Time;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@Data
|
||||
public class ScheduleDetailsDto implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer scheduleId;
|
||||
|
||||
private Integer hour;
|
||||
|
||||
private Integer minute;
|
||||
|
||||
private Integer preset;
|
||||
private String day;
|
||||
private Integer before = 0;
|
||||
private Integer delay = 0;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
List<Date> timeList = new ArrayList<>();
|
||||
|
||||
public void initMinute(int min) {
|
||||
hour = min / 60;
|
||||
minute = min - hour * 60;
|
||||
if (hour >= 24) {
|
||||
hour = hour - 24;
|
||||
}
|
||||
}
|
||||
|
||||
public int calMinute() {
|
||||
return hour * 60 + minute;
|
||||
}
|
||||
|
||||
public boolean match(String day, int min) {
|
||||
if (day.equals(this.day)) {
|
||||
int cal = this.calMinute();
|
||||
if (cal >= min) {
|
||||
if (cal - min <= before) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (min - cal <= delay) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isWrong() {
|
||||
if (timeList.size() == 1) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,15 +1,16 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class Protocols implements Serializable {
|
||||
private Integer id;
|
||||
public class TerminalApkInfoDto implements Serializable {
|
||||
|
||||
private String name;
|
||||
|
||||
private String path;
|
||||
|
||||
private String version;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
@ -1,59 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
|
||||
@Data
|
||||
public class TerminalImgAlarmsAndPhotoDto implements Serializable {
|
||||
|
||||
private BigInteger id;
|
||||
|
||||
private Integer termId;
|
||||
|
||||
private Integer channelId;
|
||||
|
||||
private Integer presetId;
|
||||
|
||||
private BigInteger photoOrgId;
|
||||
|
||||
private BigInteger alarmTime;
|
||||
|
||||
private Integer label;
|
||||
|
||||
private String name;
|
||||
|
||||
private String enname;
|
||||
|
||||
private Float prob;
|
||||
|
||||
private Float x;
|
||||
|
||||
private Float y;
|
||||
|
||||
private Float width;
|
||||
|
||||
private Float height;
|
||||
|
||||
private Integer isread;
|
||||
|
||||
private Integer mediaType;
|
||||
|
||||
private Integer photowidth;
|
||||
|
||||
private Integer photoheight;
|
||||
|
||||
private Integer fileSize;
|
||||
|
||||
private BigInteger photoTime;
|
||||
|
||||
private BigInteger recvTime;
|
||||
|
||||
private String path;
|
||||
|
||||
private String thumb;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class TerminalsAndPositionDto implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer towerId;
|
||||
|
||||
private String cmdId;
|
||||
|
||||
private Double latitude;
|
||||
|
||||
private Double longitude;
|
||||
|
||||
private Integer radius;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class TerminalsWithHeart implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer lineid;
|
||||
|
||||
private Integer towerid;
|
||||
|
||||
private String name;
|
||||
|
||||
private String cmdid;
|
||||
|
||||
private Short orgId;
|
||||
|
||||
private String equipname;
|
||||
|
||||
private String displayname;
|
||||
|
||||
private String model;
|
||||
|
||||
private String essentialInfoVersion;
|
||||
|
||||
private Byte hasPan;
|
||||
|
||||
private String bsManufacturer;
|
||||
|
||||
private Date bsProductionDate;
|
||||
|
||||
private String bsIdentifier;
|
||||
|
||||
private Double latitude;
|
||||
|
||||
private Double longitude;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private BigInteger lastheartbeat;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,183 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import com.shxy.xymanager_common.dto.ScheduleDetailsDto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class CameraSchedule {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.channel_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer channelId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.protocol
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer protocol;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.data
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String data;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.id
|
||||
*
|
||||
* @return the value of camera_schedule.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.id
|
||||
*
|
||||
* @param id the value for camera_schedule.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.term_id
|
||||
*
|
||||
* @return the value of camera_schedule.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.term_id
|
||||
*
|
||||
* @param termId the value for camera_schedule.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.channel_id
|
||||
*
|
||||
* @return the value of camera_schedule.channel_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getChannelId() {
|
||||
return channelId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.channel_id
|
||||
*
|
||||
* @param channelId the value for camera_schedule.channel_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setChannelId(Integer channelId) {
|
||||
this.channelId = channelId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.protocol
|
||||
*
|
||||
* @return the value of camera_schedule.protocol
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getProtocol() {
|
||||
return protocol;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.protocol
|
||||
*
|
||||
* @param protocol the value for camera_schedule.protocol
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setProtocol(Integer protocol) {
|
||||
this.protocol = protocol;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.data
|
||||
*
|
||||
* @return the value of camera_schedule.data
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.data
|
||||
*
|
||||
* @param data the value for camera_schedule.data
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
private List<ScheduleDetailsDto> list;
|
||||
|
||||
public List<ScheduleDetailsDto> getList() {
|
||||
return list;
|
||||
}
|
||||
|
||||
public void setList(List<ScheduleDetailsDto> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
}
|
@ -1,541 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class CameraScheduleExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public CameraScheduleExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdIsNull() {
|
||||
addCriterion("channel_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdIsNotNull() {
|
||||
addCriterion("channel_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdEqualTo(Integer value) {
|
||||
addCriterion("channel_id =", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdNotEqualTo(Integer value) {
|
||||
addCriterion("channel_id <>", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdGreaterThan(Integer value) {
|
||||
addCriterion("channel_id >", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("channel_id >=", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdLessThan(Integer value) {
|
||||
addCriterion("channel_id <", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("channel_id <=", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdIn(List<Integer> values) {
|
||||
addCriterion("channel_id in", values, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdNotIn(List<Integer> values) {
|
||||
addCriterion("channel_id not in", values, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("channel_id between", value1, value2, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("channel_id not between", value1, value2, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolIsNull() {
|
||||
addCriterion("protocol is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolIsNotNull() {
|
||||
addCriterion("protocol is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolEqualTo(Integer value) {
|
||||
addCriterion("protocol =", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolNotEqualTo(Integer value) {
|
||||
addCriterion("protocol <>", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolGreaterThan(Integer value) {
|
||||
addCriterion("protocol >", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("protocol >=", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolLessThan(Integer value) {
|
||||
addCriterion("protocol <", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("protocol <=", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolIn(List<Integer> values) {
|
||||
addCriterion("protocol in", values, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolNotIn(List<Integer> values) {
|
||||
addCriterion("protocol not in", values, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolBetween(Integer value1, Integer value2) {
|
||||
addCriterion("protocol between", value1, value2, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("protocol not between", value1, value2, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class DevType implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,451 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class DevTypeExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public DevTypeExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,62 +1,24 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "电压", description = "电压")
|
||||
public class DyLevel implements Serializable {
|
||||
@ApiModelProperty(value = "电压编号", example = "123456")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "电压名称", example = "AAAA")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "电压大小", example = "AAAA")
|
||||
private Integer dyValue;
|
||||
|
||||
@ApiModelProperty(value = "电压状态", example = "AAAA")
|
||||
private Integer status;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
@ApiModelProperty(value = "线路列表", example = "[]")
|
||||
public List<Lines> list = new ArrayList<>();
|
||||
|
||||
private boolean checked;
|
||||
|
||||
public void setCheck(boolean check) {
|
||||
checked = check;
|
||||
if (checked) {
|
||||
for (Lines item : list) {
|
||||
item.setCheck(checked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean checkInclude() {
|
||||
if (checked) {
|
||||
return true;
|
||||
} else {
|
||||
for (Lines item : list) {
|
||||
if (item.checkInclude()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,571 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class DyLevelExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public DyLevelExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueIsNull() {
|
||||
addCriterion("dy_value is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueIsNotNull() {
|
||||
addCriterion("dy_value is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueEqualTo(Integer value) {
|
||||
addCriterion("dy_value =", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueNotEqualTo(Integer value) {
|
||||
addCriterion("dy_value <>", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueGreaterThan(Integer value) {
|
||||
addCriterion("dy_value >", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("dy_value >=", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueLessThan(Integer value) {
|
||||
addCriterion("dy_value <", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("dy_value <=", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueIn(List<Integer> values) {
|
||||
addCriterion("dy_value in", values, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueNotIn(List<Integer> values) {
|
||||
addCriterion("dy_value not in", values, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dy_value between", value1, value2, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dy_value not between", value1, value2, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("status is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("status is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Integer value) {
|
||||
addCriterion("status =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Integer value) {
|
||||
addCriterion("status <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Integer value) {
|
||||
addCriterion("status >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("status >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Integer value) {
|
||||
addCriterion("status <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("status <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Integer> values) {
|
||||
addCriterion("status in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Integer> values) {
|
||||
addCriterion("status not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,75 +1,21 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "线路", description = "线路")
|
||||
public class Lines implements Serializable {
|
||||
|
||||
private Integer onlinenum;
|
||||
|
||||
private Integer totalnum;
|
||||
|
||||
@ApiModelProperty(value = "线路编号", example = "123456")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "线路名称", example = "AAAA")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "单位", example = "123456")
|
||||
private String bsManufacturer;
|
||||
|
||||
private Integer dyLevelId;
|
||||
|
||||
@ApiModelProperty(value = "线路状态", example = "AAAA")
|
||||
private Integer status;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private String photoCount;
|
||||
|
||||
private String photoRate;
|
||||
|
||||
@ApiModelProperty(value = "电压等级名称", example = "123456")
|
||||
private String dyLevelName;
|
||||
|
||||
@ApiModelProperty(value = "杆塔信息", example = "123456")
|
||||
private List<Towers> list = new ArrayList<>();
|
||||
|
||||
private boolean checked;
|
||||
|
||||
public void setCheck(boolean check) {
|
||||
checked = check;
|
||||
if (checked) {
|
||||
for (Towers item : list) {
|
||||
item.setCheck(checked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean checkInclude() {
|
||||
if (checked) {
|
||||
return true;
|
||||
} else {
|
||||
for (Towers item : list) {
|
||||
if (item.checkInclude()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,701 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class LinesExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public LinesExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerIsNull() {
|
||||
addCriterion("bs_manufacturer is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerIsNotNull() {
|
||||
addCriterion("bs_manufacturer is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerEqualTo(String value) {
|
||||
addCriterion("bs_manufacturer =", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerNotEqualTo(String value) {
|
||||
addCriterion("bs_manufacturer <>", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerGreaterThan(String value) {
|
||||
addCriterion("bs_manufacturer >", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("bs_manufacturer >=", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerLessThan(String value) {
|
||||
addCriterion("bs_manufacturer <", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerLessThanOrEqualTo(String value) {
|
||||
addCriterion("bs_manufacturer <=", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerLike(String value) {
|
||||
addCriterion("bs_manufacturer like", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerNotLike(String value) {
|
||||
addCriterion("bs_manufacturer not like", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerIn(List<String> values) {
|
||||
addCriterion("bs_manufacturer in", values, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerNotIn(List<String> values) {
|
||||
addCriterion("bs_manufacturer not in", values, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerBetween(String value1, String value2) {
|
||||
addCriterion("bs_manufacturer between", value1, value2, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerNotBetween(String value1, String value2) {
|
||||
addCriterion("bs_manufacturer not between", value1, value2, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdIsNull() {
|
||||
addCriterion("dy_level_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdIsNotNull() {
|
||||
addCriterion("dy_level_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdEqualTo(Integer value) {
|
||||
addCriterion("dy_level_id =", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdNotEqualTo(Integer value) {
|
||||
addCriterion("dy_level_id <>", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdGreaterThan(Integer value) {
|
||||
addCriterion("dy_level_id >", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("dy_level_id >=", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdLessThan(Integer value) {
|
||||
addCriterion("dy_level_id <", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("dy_level_id <=", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdIn(List<Integer> values) {
|
||||
addCriterion("dy_level_id in", values, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdNotIn(List<Integer> values) {
|
||||
addCriterion("dy_level_id not in", values, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dy_level_id between", value1, value2, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dy_level_id not between", value1, value2, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("status is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("status is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Integer value) {
|
||||
addCriterion("status =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Integer value) {
|
||||
addCriterion("status <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Integer value) {
|
||||
addCriterion("status >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("status >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Integer value) {
|
||||
addCriterion("status <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("status <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Integer> values) {
|
||||
addCriterion("status in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Integer> values) {
|
||||
addCriterion("status not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesIsNull() {
|
||||
addCriterion("tes is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesIsNotNull() {
|
||||
addCriterion("tes is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesEqualTo(Float value) {
|
||||
addCriterion("tes =", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesNotEqualTo(Float value) {
|
||||
addCriterion("tes <>", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesGreaterThan(Float value) {
|
||||
addCriterion("tes >", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesGreaterThanOrEqualTo(Float value) {
|
||||
addCriterion("tes >=", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesLessThan(Float value) {
|
||||
addCriterion("tes <", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesLessThanOrEqualTo(Float value) {
|
||||
addCriterion("tes <=", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesIn(List<Float> values) {
|
||||
addCriterion("tes in", values, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesNotIn(List<Float> values) {
|
||||
addCriterion("tes not in", values, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesBetween(Float value1, Float value2) {
|
||||
addCriterion("tes between", value1, value2, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesNotBetween(Float value1, Float value2) {
|
||||
addCriterion("tes not between", value1, value2, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,247 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnActivities {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.title
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.term_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termCount;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.lost_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer lostCount;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Byte status;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.update_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.id
|
||||
*
|
||||
* @return the value of mntn_activities.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.id
|
||||
*
|
||||
* @param id the value for mntn_activities.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.title
|
||||
*
|
||||
* @return the value of mntn_activities.title
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.title
|
||||
*
|
||||
* @param title the value for mntn_activities.title
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.term_count
|
||||
*
|
||||
* @return the value of mntn_activities.term_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermCount() {
|
||||
return termCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.term_count
|
||||
*
|
||||
* @param termCount the value for mntn_activities.term_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermCount(Integer termCount) {
|
||||
this.termCount = termCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.lost_count
|
||||
*
|
||||
* @return the value of mntn_activities.lost_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getLostCount() {
|
||||
return lostCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.lost_count
|
||||
*
|
||||
* @param lostCount the value for mntn_activities.lost_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setLostCount(Integer lostCount) {
|
||||
this.lostCount = lostCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.status
|
||||
*
|
||||
* @return the value of mntn_activities.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Byte getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.status
|
||||
*
|
||||
* @param status the value for mntn_activities.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setStatus(Byte status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.create_time
|
||||
*
|
||||
* @return the value of mntn_activities.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_activities.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.update_time
|
||||
*
|
||||
* @return the value of mntn_activities.update_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.update_time
|
||||
*
|
||||
* @param updateTime the value for mntn_activities.update_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
private List<Terminals> terms;
|
||||
|
||||
public List<Terminals> getTerms() {
|
||||
return terms;
|
||||
}
|
||||
|
||||
public void setTerms(List<Terminals> terms) {
|
||||
this.terms = terms;
|
||||
}
|
||||
}
|
@ -1,732 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnActivitiesExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnActivitiesExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIsNull() {
|
||||
addCriterion("title is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIsNotNull() {
|
||||
addCriterion("title is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleEqualTo(String value) {
|
||||
addCriterion("title =", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotEqualTo(String value) {
|
||||
addCriterion("title <>", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleGreaterThan(String value) {
|
||||
addCriterion("title >", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("title >=", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLessThan(String value) {
|
||||
addCriterion("title <", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLessThanOrEqualTo(String value) {
|
||||
addCriterion("title <=", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLike(String value) {
|
||||
addCriterion("title like", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotLike(String value) {
|
||||
addCriterion("title not like", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIn(List<String> values) {
|
||||
addCriterion("title in", values, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotIn(List<String> values) {
|
||||
addCriterion("title not in", values, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleBetween(String value1, String value2) {
|
||||
addCriterion("title between", value1, value2, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotBetween(String value1, String value2) {
|
||||
addCriterion("title not between", value1, value2, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountIsNull() {
|
||||
addCriterion("term_count is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountIsNotNull() {
|
||||
addCriterion("term_count is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountEqualTo(Integer value) {
|
||||
addCriterion("term_count =", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountNotEqualTo(Integer value) {
|
||||
addCriterion("term_count <>", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountGreaterThan(Integer value) {
|
||||
addCriterion("term_count >", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_count >=", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountLessThan(Integer value) {
|
||||
addCriterion("term_count <", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_count <=", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountIn(List<Integer> values) {
|
||||
addCriterion("term_count in", values, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountNotIn(List<Integer> values) {
|
||||
addCriterion("term_count not in", values, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_count between", value1, value2, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_count not between", value1, value2, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountIsNull() {
|
||||
addCriterion("lost_count is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountIsNotNull() {
|
||||
addCriterion("lost_count is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountEqualTo(Integer value) {
|
||||
addCriterion("lost_count =", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountNotEqualTo(Integer value) {
|
||||
addCriterion("lost_count <>", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountGreaterThan(Integer value) {
|
||||
addCriterion("lost_count >", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("lost_count >=", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountLessThan(Integer value) {
|
||||
addCriterion("lost_count <", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("lost_count <=", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountIn(List<Integer> values) {
|
||||
addCriterion("lost_count in", values, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountNotIn(List<Integer> values) {
|
||||
addCriterion("lost_count not in", values, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountBetween(Integer value1, Integer value2) {
|
||||
addCriterion("lost_count between", value1, value2, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("lost_count not between", value1, value2, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("`status` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("`status` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Byte value) {
|
||||
addCriterion("`status` =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Byte value) {
|
||||
addCriterion("`status` <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Byte value) {
|
||||
addCriterion("`status` >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
|
||||
addCriterion("`status` >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Byte value) {
|
||||
addCriterion("`status` <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Byte value) {
|
||||
addCriterion("`status` <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Byte> values) {
|
||||
addCriterion("`status` in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Byte> values) {
|
||||
addCriterion("`status` not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Byte value1, Byte value2) {
|
||||
addCriterion("`status` between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
|
||||
addCriterion("`status` not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class MntnActivityTerminals extends MntnActivityTerminalsKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activity_terminals.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activity_terminals.create_time
|
||||
*
|
||||
* @return the value of mntn_activity_terminals.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activity_terminals.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_activity_terminals.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
@ -1,482 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnActivityTerminalsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnActivityTerminalsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andActivityIdIsNull() {
|
||||
addCriterion("activity_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdIsNotNull() {
|
||||
addCriterion("activity_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdEqualTo(Integer value) {
|
||||
addCriterion("activity_id =", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdNotEqualTo(Integer value) {
|
||||
addCriterion("activity_id <>", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdGreaterThan(Integer value) {
|
||||
addCriterion("activity_id >", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("activity_id >=", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdLessThan(Integer value) {
|
||||
addCriterion("activity_id <", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("activity_id <=", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdIn(List<Integer> values) {
|
||||
addCriterion("activity_id in", values, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdNotIn(List<Integer> values) {
|
||||
addCriterion("activity_id not in", values, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("activity_id between", value1, value2, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("activity_id not between", value1, value2, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
public class MntnActivityTerminalsKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer activityId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activity_terminals.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @return the value of mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @param activityId the value for mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setActivityId(Integer activityId) {
|
||||
this.activityId = activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activity_terminals.term_id
|
||||
*
|
||||
* @return the value of mntn_activity_terminals.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activity_terminals.term_id
|
||||
*
|
||||
* @param termId the value for mntn_activity_terminals.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
}
|
@ -1,389 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MntnCmdHistory {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String cmd;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String desc;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.publish_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date publishTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer result;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.res_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date resTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.id
|
||||
*
|
||||
* @return the value of mntn_cmd_history.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.id
|
||||
*
|
||||
* @param id the value for mntn_cmd_history.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.term_id
|
||||
*
|
||||
* @return the value of mntn_cmd_history.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.term_id
|
||||
*
|
||||
* @param termId the value for mntn_cmd_history.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.name
|
||||
*
|
||||
* @return the value of mntn_cmd_history.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.name
|
||||
*
|
||||
* @param name the value for mntn_cmd_history.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.cmd
|
||||
*
|
||||
* @return the value of mntn_cmd_history.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getCmd() {
|
||||
return cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.cmd
|
||||
*
|
||||
* @param cmd the value for mntn_cmd_history.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCmd(String cmd) {
|
||||
this.cmd = cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.desc
|
||||
*
|
||||
* @return the value of mntn_cmd_history.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.desc
|
||||
*
|
||||
* @param desc the value for mntn_cmd_history.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.status
|
||||
*
|
||||
* @return the value of mntn_cmd_history.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.status
|
||||
*
|
||||
* @param status the value for mntn_cmd_history.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.create_time
|
||||
*
|
||||
* @return the value of mntn_cmd_history.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_cmd_history.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.publish_time
|
||||
*
|
||||
* @return the value of mntn_cmd_history.publish_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getPublishTime() {
|
||||
return publishTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.publish_time
|
||||
*
|
||||
* @param publishTime the value for mntn_cmd_history.publish_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setPublishTime(Date publishTime) {
|
||||
this.publishTime = publishTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.result
|
||||
*
|
||||
* @return the value of mntn_cmd_history.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.result
|
||||
*
|
||||
* @param result the value for mntn_cmd_history.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setResult(Integer result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.res_time
|
||||
*
|
||||
* @return the value of mntn_cmd_history.res_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getResTime() {
|
||||
return resTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.res_time
|
||||
*
|
||||
* @param resTime the value for mntn_cmd_history.res_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setResTime(Date resTime) {
|
||||
this.resTime = resTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.content
|
||||
*
|
||||
* @return the value of mntn_cmd_history.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.content
|
||||
*
|
||||
* @param content the value for mntn_cmd_history.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
private Terminals terminal;
|
||||
|
||||
public Terminals getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminals terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
private HashMap<String, Object> cmdMap;
|
||||
|
||||
public HashMap<String, Object> getCmdMap() {
|
||||
return cmdMap;
|
||||
}
|
||||
|
||||
public void setCmdMap(HashMap<String, Object> cmdMap) {
|
||||
this.cmdMap = cmdMap;
|
||||
}
|
||||
}
|
@ -1,932 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnCmdHistoryExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnCmdHistoryExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("`name` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("`name` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("`name` =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("`name` <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("`name` >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`name` >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("`name` <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("`name` <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("`name` like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("`name` not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("`name` in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("`name` not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("`name` between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("`name` not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIsNull() {
|
||||
addCriterion("cmd is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIsNotNull() {
|
||||
addCriterion("cmd is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdEqualTo(String value) {
|
||||
addCriterion("cmd =", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotEqualTo(String value) {
|
||||
addCriterion("cmd <>", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdGreaterThan(String value) {
|
||||
addCriterion("cmd >", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("cmd >=", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLessThan(String value) {
|
||||
addCriterion("cmd <", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLessThanOrEqualTo(String value) {
|
||||
addCriterion("cmd <=", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLike(String value) {
|
||||
addCriterion("cmd like", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotLike(String value) {
|
||||
addCriterion("cmd not like", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIn(List<String> values) {
|
||||
addCriterion("cmd in", values, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotIn(List<String> values) {
|
||||
addCriterion("cmd not in", values, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdBetween(String value1, String value2) {
|
||||
addCriterion("cmd between", value1, value2, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotBetween(String value1, String value2) {
|
||||
addCriterion("cmd not between", value1, value2, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIsNull() {
|
||||
addCriterion("`desc` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIsNotNull() {
|
||||
addCriterion("`desc` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescEqualTo(String value) {
|
||||
addCriterion("`desc` =", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotEqualTo(String value) {
|
||||
addCriterion("`desc` <>", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescGreaterThan(String value) {
|
||||
addCriterion("`desc` >", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`desc` >=", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLessThan(String value) {
|
||||
addCriterion("`desc` <", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLessThanOrEqualTo(String value) {
|
||||
addCriterion("`desc` <=", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLike(String value) {
|
||||
addCriterion("`desc` like", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotLike(String value) {
|
||||
addCriterion("`desc` not like", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIn(List<String> values) {
|
||||
addCriterion("`desc` in", values, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotIn(List<String> values) {
|
||||
addCriterion("`desc` not in", values, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescBetween(String value1, String value2) {
|
||||
addCriterion("`desc` between", value1, value2, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotBetween(String value1, String value2) {
|
||||
addCriterion("`desc` not between", value1, value2, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("`status` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("`status` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Integer value) {
|
||||
addCriterion("`status` =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Integer value) {
|
||||
addCriterion("`status` <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Integer value) {
|
||||
addCriterion("`status` >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("`status` >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Integer value) {
|
||||
addCriterion("`status` <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("`status` <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Integer> values) {
|
||||
addCriterion("`status` in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Integer> values) {
|
||||
addCriterion("`status` not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`status` between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`status` not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeIsNull() {
|
||||
addCriterion("publish_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeIsNotNull() {
|
||||
addCriterion("publish_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeEqualTo(Date value) {
|
||||
addCriterion("publish_time =", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeNotEqualTo(Date value) {
|
||||
addCriterion("publish_time <>", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeGreaterThan(Date value) {
|
||||
addCriterion("publish_time >", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("publish_time >=", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeLessThan(Date value) {
|
||||
addCriterion("publish_time <", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("publish_time <=", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeIn(List<Date> values) {
|
||||
addCriterion("publish_time in", values, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeNotIn(List<Date> values) {
|
||||
addCriterion("publish_time not in", values, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("publish_time between", value1, value2, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("publish_time not between", value1, value2, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIsNull() {
|
||||
addCriterion("`result` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIsNotNull() {
|
||||
addCriterion("`result` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultEqualTo(Integer value) {
|
||||
addCriterion("`result` =", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotEqualTo(Integer value) {
|
||||
addCriterion("`result` <>", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultGreaterThan(Integer value) {
|
||||
addCriterion("`result` >", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("`result` >=", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultLessThan(Integer value) {
|
||||
addCriterion("`result` <", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("`result` <=", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIn(List<Integer> values) {
|
||||
addCriterion("`result` in", values, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotIn(List<Integer> values) {
|
||||
addCriterion("`result` not in", values, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`result` between", value1, value2, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`result` not between", value1, value2, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeIsNull() {
|
||||
addCriterion("res_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeIsNotNull() {
|
||||
addCriterion("res_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeEqualTo(Date value) {
|
||||
addCriterion("res_time =", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeNotEqualTo(Date value) {
|
||||
addCriterion("res_time <>", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeGreaterThan(Date value) {
|
||||
addCriterion("res_time >", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("res_time >=", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeLessThan(Date value) {
|
||||
addCriterion("res_time <", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("res_time <=", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeIn(List<Date> values) {
|
||||
addCriterion("res_time in", values, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeNotIn(List<Date> values) {
|
||||
addCriterion("res_time not in", values, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("res_time between", value1, value2, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("res_time not between", value1, value2, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,137 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class MntnCmdResults {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_results.cid
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer cid;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_results.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer result;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_results.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_results.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_results.cid
|
||||
*
|
||||
* @return the value of mntn_cmd_results.cid
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getCid() {
|
||||
return cid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_results.cid
|
||||
*
|
||||
* @param cid the value for mntn_cmd_results.cid
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCid(Integer cid) {
|
||||
this.cid = cid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_results.result
|
||||
*
|
||||
* @return the value of mntn_cmd_results.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_results.result
|
||||
*
|
||||
* @param result the value for mntn_cmd_results.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setResult(Integer result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_results.create_time
|
||||
*
|
||||
* @return the value of mntn_cmd_results.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_results.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_cmd_results.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_results.content
|
||||
*
|
||||
* @return the value of mntn_cmd_results.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_results.content
|
||||
*
|
||||
* @param content the value for mntn_cmd_results.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
}
|
@ -1,482 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnCmdResultsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnCmdResultsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andCidIsNull() {
|
||||
addCriterion("cid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidIsNotNull() {
|
||||
addCriterion("cid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidEqualTo(Integer value) {
|
||||
addCriterion("cid =", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidNotEqualTo(Integer value) {
|
||||
addCriterion("cid <>", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidGreaterThan(Integer value) {
|
||||
addCriterion("cid >", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("cid >=", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidLessThan(Integer value) {
|
||||
addCriterion("cid <", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("cid <=", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidIn(List<Integer> values) {
|
||||
addCriterion("cid in", values, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidNotIn(List<Integer> values) {
|
||||
addCriterion("cid not in", values, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("cid between", value1, value2, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("cid not between", value1, value2, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIsNull() {
|
||||
addCriterion("`result` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIsNotNull() {
|
||||
addCriterion("`result` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultEqualTo(Integer value) {
|
||||
addCriterion("`result` =", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotEqualTo(Integer value) {
|
||||
addCriterion("`result` <>", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultGreaterThan(Integer value) {
|
||||
addCriterion("`result` >", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("`result` >=", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultLessThan(Integer value) {
|
||||
addCriterion("`result` <", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("`result` <=", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIn(List<Integer> values) {
|
||||
addCriterion("`result` in", values, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotIn(List<Integer> values) {
|
||||
addCriterion("`result` not in", values, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`result` between", value1, value2, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`result` not between", value1, value2, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,241 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MntnCmds {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String cmd;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String desc;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.id
|
||||
*
|
||||
* @return the value of mntn_cmds.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.id
|
||||
*
|
||||
* @param id the value for mntn_cmds.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.term_id
|
||||
*
|
||||
* @return the value of mntn_cmds.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.term_id
|
||||
*
|
||||
* @param termId the value for mntn_cmds.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.name
|
||||
*
|
||||
* @return the value of mntn_cmds.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.name
|
||||
*
|
||||
* @param name the value for mntn_cmds.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.cmd
|
||||
*
|
||||
* @return the value of mntn_cmds.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getCmd() {
|
||||
return cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.cmd
|
||||
*
|
||||
* @param cmd the value for mntn_cmds.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCmd(String cmd) {
|
||||
this.cmd = cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.desc
|
||||
*
|
||||
* @return the value of mntn_cmds.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.desc
|
||||
*
|
||||
* @param desc the value for mntn_cmds.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.create_time
|
||||
*
|
||||
* @return the value of mntn_cmds.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_cmds.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
private Terminals terminal;
|
||||
private HashMap<String, Object> cmdMap;
|
||||
private Long prevReportTime;
|
||||
private Long estimatedPublishTime;
|
||||
|
||||
public Terminals getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminals terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
public HashMap<String, Object> getCmdMap() {
|
||||
return cmdMap;
|
||||
}
|
||||
|
||||
public void setCmdMap(HashMap<String, Object> cmdMap) {
|
||||
this.cmdMap = cmdMap;
|
||||
}
|
||||
|
||||
public Long getPrevReportTime() {
|
||||
return prevReportTime;
|
||||
}
|
||||
|
||||
public void setPrevReportTime(Long prevReportTime) {
|
||||
this.prevReportTime = prevReportTime;
|
||||
}
|
||||
|
||||
public Long getEstimatedPublishTime() {
|
||||
return estimatedPublishTime;
|
||||
}
|
||||
|
||||
public void setEstimatedPublishTime(Long estimatedPublishTime) {
|
||||
this.estimatedPublishTime = estimatedPublishTime;
|
||||
}
|
||||
}
|
@ -1,692 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnCmdsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnCmdsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("`name` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("`name` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("`name` =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("`name` <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("`name` >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`name` >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("`name` <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("`name` <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("`name` like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("`name` not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("`name` in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("`name` not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("`name` between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("`name` not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIsNull() {
|
||||
addCriterion("cmd is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIsNotNull() {
|
||||
addCriterion("cmd is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdEqualTo(String value) {
|
||||
addCriterion("cmd =", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotEqualTo(String value) {
|
||||
addCriterion("cmd <>", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdGreaterThan(String value) {
|
||||
addCriterion("cmd >", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("cmd >=", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLessThan(String value) {
|
||||
addCriterion("cmd <", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLessThanOrEqualTo(String value) {
|
||||
addCriterion("cmd <=", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLike(String value) {
|
||||
addCriterion("cmd like", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotLike(String value) {
|
||||
addCriterion("cmd not like", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIn(List<String> values) {
|
||||
addCriterion("cmd in", values, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotIn(List<String> values) {
|
||||
addCriterion("cmd not in", values, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdBetween(String value1, String value2) {
|
||||
addCriterion("cmd between", value1, value2, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotBetween(String value1, String value2) {
|
||||
addCriterion("cmd not between", value1, value2, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIsNull() {
|
||||
addCriterion("`desc` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIsNotNull() {
|
||||
addCriterion("`desc` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescEqualTo(String value) {
|
||||
addCriterion("`desc` =", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotEqualTo(String value) {
|
||||
addCriterion("`desc` <>", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescGreaterThan(String value) {
|
||||
addCriterion("`desc` >", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`desc` >=", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLessThan(String value) {
|
||||
addCriterion("`desc` <", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLessThanOrEqualTo(String value) {
|
||||
addCriterion("`desc` <=", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLike(String value) {
|
||||
addCriterion("`desc` like", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotLike(String value) {
|
||||
addCriterion("`desc` not like", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIn(List<String> values) {
|
||||
addCriterion("`desc` in", values, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotIn(List<String> values) {
|
||||
addCriterion("`desc` not in", values, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescBetween(String value1, String value2) {
|
||||
addCriterion("`desc` between", value1, value2, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotBetween(String value1, String value2) {
|
||||
addCriterion("`desc` not between", value1, value2, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
public class MntnDayStat extends MntnDayStatKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_day_stat.uploads
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String uploads;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_day_stat.uploads
|
||||
*
|
||||
* @return the value of mntn_day_stat.uploads
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getUploads() {
|
||||
return uploads;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_day_stat.uploads
|
||||
*
|
||||
* @param uploads the value for mntn_day_stat.uploads
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setUploads(String uploads) {
|
||||
this.uploads = uploads;
|
||||
}
|
||||
}
|
@ -1,501 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnDayStatExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnDayStatExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateIsNull() {
|
||||
addCriterion("`date` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateIsNotNull() {
|
||||
addCriterion("`date` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateEqualTo(String value) {
|
||||
addCriterion("`date` =", value, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateNotEqualTo(String value) {
|
||||
addCriterion("`date` <>", value, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateGreaterThan(String value) {
|
||||
addCriterion("`date` >", value, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`date` >=", value, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateLessThan(String value) {
|
||||
addCriterion("`date` <", value, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateLessThanOrEqualTo(String value) {
|
||||
addCriterion("`date` <=", value, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateLike(String value) {
|
||||
addCriterion("`date` like", value, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateNotLike(String value) {
|
||||
addCriterion("`date` not like", value, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateIn(List<String> values) {
|
||||
addCriterion("`date` in", values, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateNotIn(List<String> values) {
|
||||
addCriterion("`date` not in", values, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateBetween(String value1, String value2) {
|
||||
addCriterion("`date` between", value1, value2, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateNotBetween(String value1, String value2) {
|
||||
addCriterion("`date` not between", value1, value2, "date");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsIsNull() {
|
||||
addCriterion("uploads is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsIsNotNull() {
|
||||
addCriterion("uploads is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsEqualTo(String value) {
|
||||
addCriterion("uploads =", value, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsNotEqualTo(String value) {
|
||||
addCriterion("uploads <>", value, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsGreaterThan(String value) {
|
||||
addCriterion("uploads >", value, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("uploads >=", value, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsLessThan(String value) {
|
||||
addCriterion("uploads <", value, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsLessThanOrEqualTo(String value) {
|
||||
addCriterion("uploads <=", value, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsLike(String value) {
|
||||
addCriterion("uploads like", value, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsNotLike(String value) {
|
||||
addCriterion("uploads not like", value, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsIn(List<String> values) {
|
||||
addCriterion("uploads in", values, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsNotIn(List<String> values) {
|
||||
addCriterion("uploads not in", values, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsBetween(String value1, String value2) {
|
||||
addCriterion("uploads between", value1, value2, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadsNotBetween(String value1, String value2) {
|
||||
addCriterion("uploads not between", value1, value2, "uploads");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_day_stat
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
public class MntnDayStatKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_day_stat.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_day_stat.date
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String date;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_day_stat.term_id
|
||||
*
|
||||
* @return the value of mntn_day_stat.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_day_stat.term_id
|
||||
*
|
||||
* @param termId the value for mntn_day_stat.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_day_stat.date
|
||||
*
|
||||
* @return the value of mntn_day_stat.date
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_day_stat.date
|
||||
*
|
||||
* @param date the value for mntn_day_stat.date
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDate(String date) {
|
||||
this.date = date;
|
||||
}
|
||||
}
|
@ -1,189 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import com.alibaba.excel.util.StringUtils;
|
||||
import com.shxy.xymanager_common.util.RawReportUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MntnRawReports {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_raw_reports.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_raw_reports.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_raw_reports.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_raw_reports.ip
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_raw_reports.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Long createTime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_raw_reports.id
|
||||
*
|
||||
* @return the value of mntn_raw_reports.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_raw_reports.id
|
||||
*
|
||||
* @param id the value for mntn_raw_reports.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_raw_reports.term_id
|
||||
*
|
||||
* @return the value of mntn_raw_reports.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_raw_reports.term_id
|
||||
*
|
||||
* @param termId the value for mntn_raw_reports.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_raw_reports.content
|
||||
*
|
||||
* @return the value of mntn_raw_reports.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_raw_reports.content
|
||||
*
|
||||
* @param content the value for mntn_raw_reports.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_raw_reports.ip
|
||||
*
|
||||
* @return the value of mntn_raw_reports.ip
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_raw_reports.ip
|
||||
*
|
||||
* @param ip the value for mntn_raw_reports.ip
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_raw_reports.create_time
|
||||
*
|
||||
* @return the value of mntn_raw_reports.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_raw_reports.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_raw_reports.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
private HashMap<String, Object> reportMap;
|
||||
|
||||
public HashMap<String, Object> getReportMap() {
|
||||
return reportMap;
|
||||
}
|
||||
|
||||
public void setReportMap(HashMap<String, Object> reportMap) {
|
||||
this.reportMap = reportMap;
|
||||
}
|
||||
|
||||
public void makeRawReport() {
|
||||
if (StringUtils.isNotBlank(content)) {
|
||||
reportMap = RawReportUtil.buildRawReportMap(content);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,621 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnRawReportsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnRawReportsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentIsNull() {
|
||||
addCriterion("content is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentIsNotNull() {
|
||||
addCriterion("content is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentEqualTo(String value) {
|
||||
addCriterion("content =", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentNotEqualTo(String value) {
|
||||
addCriterion("content <>", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentGreaterThan(String value) {
|
||||
addCriterion("content >", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("content >=", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentLessThan(String value) {
|
||||
addCriterion("content <", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentLessThanOrEqualTo(String value) {
|
||||
addCriterion("content <=", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentLike(String value) {
|
||||
addCriterion("content like", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentNotLike(String value) {
|
||||
addCriterion("content not like", value, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentIn(List<String> values) {
|
||||
addCriterion("content in", values, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentNotIn(List<String> values) {
|
||||
addCriterion("content not in", values, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentBetween(String value1, String value2) {
|
||||
addCriterion("content between", value1, value2, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentNotBetween(String value1, String value2) {
|
||||
addCriterion("content not between", value1, value2, "content");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpIsNull() {
|
||||
addCriterion("ip is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpIsNotNull() {
|
||||
addCriterion("ip is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpEqualTo(String value) {
|
||||
addCriterion("ip =", value, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpNotEqualTo(String value) {
|
||||
addCriterion("ip <>", value, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpGreaterThan(String value) {
|
||||
addCriterion("ip >", value, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("ip >=", value, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpLessThan(String value) {
|
||||
addCriterion("ip <", value, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpLessThanOrEqualTo(String value) {
|
||||
addCriterion("ip <=", value, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpLike(String value) {
|
||||
addCriterion("ip like", value, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpNotLike(String value) {
|
||||
addCriterion("ip not like", value, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpIn(List<String> values) {
|
||||
addCriterion("ip in", values, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpNotIn(List<String> values) {
|
||||
addCriterion("ip not in", values, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpBetween(String value1, String value2) {
|
||||
addCriterion("ip between", value1, value2, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIpNotBetween(String value1, String value2) {
|
||||
addCriterion("ip not between", value1, value2, "ip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Long value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Long value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Long value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Long value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Long> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Long> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Long value1, Long value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_raw_reports
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,453 +0,0 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import cn.hutool.core.date.DateUnit;
|
||||
import com.alibaba.excel.util.StringUtils;
|
||||
import com.shxy.xymanager_common.util.MyDateUtils;
|
||||
import com.shxy.xymanager_common.util.RawReportUtil;
|
||||
import com.shxy.xymanager_common.util.xinyin.TerminalUtils;
|
||||
import com.shxy.xymanager_common.vo.TerminalSelectVo;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
|
||||
public class MntnStatus {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.in_maintain
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer inMaintain;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.quick_hb
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer quickHb;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.mode_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Long modeTime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.last_ip
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String lastIp;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.raw_report_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Long rawReportTime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.comment
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String comment;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.update_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_status.last_raw_report
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String lastRawReport;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.term_id
|
||||
*
|
||||
* @return the value of mntn_status.term_id
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.term_id
|
||||
*
|
||||
* @param termId the value for mntn_status.term_id
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.in_maintain
|
||||
*
|
||||
* @return the value of mntn_status.in_maintain
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getInMaintain() {
|
||||
return inMaintain;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.in_maintain
|
||||
*
|
||||
* @param inMaintain the value for mntn_status.in_maintain
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setInMaintain(Integer inMaintain) {
|
||||
this.inMaintain = inMaintain;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.quick_hb
|
||||
*
|
||||
* @return the value of mntn_status.quick_hb
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getQuickHb() {
|
||||
return quickHb;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.quick_hb
|
||||
*
|
||||
* @param quickHb the value for mntn_status.quick_hb
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setQuickHb(Integer quickHb) {
|
||||
this.quickHb = quickHb;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.mode_time
|
||||
*
|
||||
* @return the value of mntn_status.mode_time
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Long getModeTime() {
|
||||
return modeTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.mode_time
|
||||
*
|
||||
* @param modeTime the value for mntn_status.mode_time
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setModeTime(Long modeTime) {
|
||||
this.modeTime = modeTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.last_ip
|
||||
*
|
||||
* @return the value of mntn_status.last_ip
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getLastIp() {
|
||||
return lastIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.last_ip
|
||||
*
|
||||
* @param lastIp the value for mntn_status.last_ip
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setLastIp(String lastIp) {
|
||||
this.lastIp = lastIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.raw_report_time
|
||||
*
|
||||
* @return the value of mntn_status.raw_report_time
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Long getRawReportTime() {
|
||||
return rawReportTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.raw_report_time
|
||||
*
|
||||
* @param rawReportTime the value for mntn_status.raw_report_time
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setRawReportTime(Long rawReportTime) {
|
||||
this.rawReportTime = rawReportTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.comment
|
||||
*
|
||||
* @return the value of mntn_status.comment
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.comment
|
||||
*
|
||||
* @param comment the value for mntn_status.comment
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setComment(String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.create_time
|
||||
*
|
||||
* @return the value of mntn_status.create_time
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_status.create_time
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.update_time
|
||||
*
|
||||
* @return the value of mntn_status.update_time
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.update_time
|
||||
*
|
||||
* @param updateTime the value for mntn_status.update_time
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_status.last_raw_report
|
||||
*
|
||||
* @return the value of mntn_status.last_raw_report
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getLastRawReport() {
|
||||
return lastRawReport;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_status.last_raw_report
|
||||
*
|
||||
* @param lastRawReport the value for mntn_status.last_raw_report
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setLastRawReport(String lastRawReport) {
|
||||
this.lastRawReport = lastRawReport;
|
||||
}
|
||||
|
||||
private HashMap<String, Object> reportMap = new HashMap<>();
|
||||
|
||||
public HashMap<String, Object> getReportMap() {
|
||||
return reportMap;
|
||||
}
|
||||
|
||||
public void setReportMap(HashMap<String, Object> reportMap) {
|
||||
this.reportMap = reportMap;
|
||||
}
|
||||
|
||||
public void makeRawReport() {
|
||||
if (StringUtils.isNotBlank(lastRawReport)) {
|
||||
reportMap = RawReportUtil.buildRawReportMap(lastRawReport);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean match(TerminalSelectVo vo) {
|
||||
if (this.matchVersion(vo) && this.matchCma(vo) &&
|
||||
this.matchOid(vo) && this.matchOnline(vo)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean matchVersion(TerminalSelectVo vo) {
|
||||
if (StringUtils.isNotBlank(vo.getVersion())) {
|
||||
int v = 0;
|
||||
Iterator<String> it = reportMap.keySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
String key = it.next();
|
||||
Object value = reportMap.get(key);
|
||||
if (key.toLowerCase().contains("version") || "firmware".equalsIgnoreCase(key)) {
|
||||
if (value != null && value.toString().contains(vo.getVersion())) {
|
||||
v = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (vo.getVersionExclude()) {
|
||||
if (v == 0) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (v == 1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean matchCma(TerminalSelectVo vo) {
|
||||
if (StringUtils.isNotBlank(vo.getCma())) {
|
||||
int c = 0;
|
||||
Iterator<String> it = reportMap.keySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
String key = it.next();
|
||||
Object value = reportMap.get(key);
|
||||
if (key.toLowerCase().contains("cma")) {
|
||||
if (value != null && value.toString().contains(vo.getCma())) {
|
||||
c = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (vo.getCmaExclude()) {
|
||||
if (c == 0) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (c == 1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean matchOid(TerminalSelectVo vo) {
|
||||
if (StringUtils.isNotBlank(vo.getOid())) {
|
||||
int d = 0;
|
||||
Iterator<String> it = reportMap.keySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
String key = it.next();
|
||||
Object value = reportMap.get(key);
|
||||
if (key.toLowerCase().contains("oid")) {
|
||||
if (value != null && value.toString().contains(vo.getOid())) {
|
||||
d = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (vo.getOidExclude()) {
|
||||
if (d == 0) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (d == 1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean matchOnline(TerminalSelectVo vo) {
|
||||
if (vo.getIsonline() != null) {
|
||||
if (vo.getIsonline().equals(this.getOnlinestatus())) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getOnlinestatus() {
|
||||
if (rawReportTime == null) {
|
||||
return 0;
|
||||
}
|
||||
long time = MyDateUtils.TimeSecond2MillSecond(rawReportTime);
|
||||
DateTime date = MyDateUtils.date(time);
|
||||
long between = MyDateUtils.between(MyDateUtils.getNowDate(), date, DateUnit.MINUTE);
|
||||
if (between > TerminalUtils.hearttime) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue