Merge branch 'schedule' of http://dev.xinyingpower.com:8080/git/xymp/backend into schedule
commit
e236fdd87f
@ -0,0 +1,76 @@
|
|||||||
|
package com.shxy.xymanager_admin.controller;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
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.entity.View_Dy_Line_Tower_Terminals;
|
||||||
|
import com.shxy.xymanager_common.page.TableDataInfo;
|
||||||
|
import com.shxy.xymanager_common.util.EasyExcelUtil;
|
||||||
|
import com.shxy.xymanager_common.vo.TerminalSelectVo;
|
||||||
|
import com.shxy.xymanager_service.service.LeadPullsService;
|
||||||
|
import com.shxy.xymanager_service.service.TerminalService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
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;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@Api(tags = {"拉力相关接口"})
|
||||||
|
@RequestMapping("leadpulls")
|
||||||
|
@Slf4j
|
||||||
|
public class LeadPullsController extends BaseController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
LeadPullsService service;
|
||||||
|
@Resource
|
||||||
|
TerminalService terminalService;
|
||||||
|
|
||||||
|
@GetMapping("list")
|
||||||
|
@ApiOperation("查询列表")
|
||||||
|
public ResponseReult<PageInfo<LeadPulls>> list(Integer lineId, Integer towerId, Integer termId,
|
||||||
|
Long start, Long end,
|
||||||
|
Integer pageNum, Integer pageSize) {
|
||||||
|
PageInfo<LeadPulls> result = service.list(lineId, towerId, termId,
|
||||||
|
start, end, pageNum, pageSize);
|
||||||
|
return ResponseReult.success(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("export")
|
||||||
|
@ApiOperation("导出")
|
||||||
|
public void export(Integer lineId, Integer towerId, Integer termId,
|
||||||
|
Long start, Long end,
|
||||||
|
Integer pageNum, Integer pageSize,
|
||||||
|
HttpServletResponse response) throws Exception {
|
||||||
|
PageInfo<LeadPulls> result = service.list(lineId, towerId, termId,
|
||||||
|
start, end, pageNum, pageSize);
|
||||||
|
EasyExcelUtil.createExcel(response, "覆冰数据", result.getList(), LeadPulls.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("latest")
|
||||||
|
@ApiOperation("查询最新的")
|
||||||
|
public ResponseReult<TableDataInfo<View_Dy_Line_Tower_Terminals>> latest(Integer dyId, Integer lineId, Integer towerId,
|
||||||
|
int pageNum, int pageSize) {
|
||||||
|
TerminalSelectVo vo = new TerminalSelectVo();
|
||||||
|
vo.setDyId(dyId);
|
||||||
|
vo.setLineId(lineId);
|
||||||
|
vo.setTowerId(towerId);
|
||||||
|
vo.setPageindex(pageNum);
|
||||||
|
vo.setPagesize(pageSize);
|
||||||
|
TableDataInfo<View_Dy_Line_Tower_Terminals> result = terminalService.getTerminalList(vo).getData();
|
||||||
|
if (!CollectionUtils.isEmpty(result.getList())) {
|
||||||
|
for (View_Dy_Line_Tower_Terminals terminals : result.getList()) {
|
||||||
|
LeadPulls last = service.getLast(terminals.getId());
|
||||||
|
terminals.setLastLeadPulls(last);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ResponseReult.success(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.shxy.xymanager_admin.controller;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.shxy.xymanager_common.base.BaseController;
|
||||||
|
import com.shxy.xymanager_common.base.ResponseReult;
|
||||||
|
import com.shxy.xymanager_common.entity.View_Dy_Line_Tower_Terminals;
|
||||||
|
import com.shxy.xymanager_common.entity.Weathers;
|
||||||
|
import com.shxy.xymanager_common.page.TableDataInfo;
|
||||||
|
import com.shxy.xymanager_common.vo.TerminalSelectVo;
|
||||||
|
import com.shxy.xymanager_service.service.TerminalService;
|
||||||
|
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.util.CollectionUtils;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@Api(tags = {"气象相关接口"})
|
||||||
|
@RequestMapping("weather")
|
||||||
|
@Slf4j
|
||||||
|
public class WeatherController extends BaseController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
WeatherService service;
|
||||||
|
@Resource
|
||||||
|
TerminalService terminalService;
|
||||||
|
|
||||||
|
@GetMapping("list")
|
||||||
|
@ApiOperation("查询列表")
|
||||||
|
public ResponseReult<PageInfo<Weathers>> list(Integer lineId, Integer towerId, Integer termId,
|
||||||
|
Long start, Long end,
|
||||||
|
Integer pageNum, Integer pageSize) {
|
||||||
|
PageInfo<Weathers> result = service.list(lineId, towerId, termId,
|
||||||
|
start, end, pageNum, pageSize);
|
||||||
|
return ResponseReult.success(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("latest")
|
||||||
|
@ApiOperation("查询最新的")
|
||||||
|
public ResponseReult<TableDataInfo<View_Dy_Line_Tower_Terminals>> latest(Integer dyId, Integer lineId, Integer towerId,
|
||||||
|
int pageNum, int pageSize) {
|
||||||
|
TerminalSelectVo vo = new TerminalSelectVo();
|
||||||
|
vo.setDyId(dyId);
|
||||||
|
vo.setLineId(lineId);
|
||||||
|
vo.setTowerId(towerId);
|
||||||
|
vo.setPageindex(pageNum);
|
||||||
|
vo.setPagesize(pageSize);
|
||||||
|
TableDataInfo<View_Dy_Line_Tower_Terminals> result = terminalService.getTerminalList(vo).getData();
|
||||||
|
if (!CollectionUtils.isEmpty(result.getList())) {
|
||||||
|
for (View_Dy_Line_Tower_Terminals terminals : result.getList()) {
|
||||||
|
Weathers last = service.getLast(terminals.getId());
|
||||||
|
terminals.setLastWeathers(last);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ResponseReult.success(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,704 @@
|
|||||||
|
package com.shxy.xymanager_common.entity;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class LeadPulls {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ExcelIgnore
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.term_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ExcelIgnore
|
||||||
|
private Integer termId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ExcelIgnore
|
||||||
|
private Long updateTime;
|
||||||
|
@ColumnWidth(20)
|
||||||
|
@ExcelProperty(value = "时间", order = 2)
|
||||||
|
|
||||||
|
private Date updateDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.func_code
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(16)
|
||||||
|
@ExcelProperty(value = "功能单元识别码", order = 3)
|
||||||
|
private Integer funcCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.maxpull_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(14)
|
||||||
|
@ExcelProperty(value = "最大拉力(Kg)", order = 4)
|
||||||
|
private Integer maxpullPull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.maxpull_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(20)
|
||||||
|
@ExcelProperty(value = "最大拉力时风偏角(°)", order = 5)
|
||||||
|
private Float maxpullWind;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.maxpull_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(20)
|
||||||
|
@ExcelProperty(value = "最大拉力时倾斜角(°)", order = 6)
|
||||||
|
private Float maxpullTilt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.minpull_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(14)
|
||||||
|
@ExcelProperty(value = "最小拉力(Kg)", order = 7)
|
||||||
|
private Integer minpullPull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.minpull_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(20)
|
||||||
|
@ExcelProperty(value = "最小拉力时风偏角(°)", order = 8)
|
||||||
|
private Float minpullWind;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.minpull_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(20)
|
||||||
|
@ExcelProperty(value = "最小拉力时倾斜角(°)", order = 9)
|
||||||
|
private Float minpullTilt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.maxwind_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(21)
|
||||||
|
@ExcelProperty(value = "最大风偏角时拉力(Kg)", order = 10)
|
||||||
|
private Integer maxwindPull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.maxwind_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(14)
|
||||||
|
@ExcelProperty(value = "最大风偏角(°)", order = 11)
|
||||||
|
private Float maxwindWind;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.maxwind_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(22)
|
||||||
|
@ExcelProperty(value = "最大风偏角时倾斜角(°)", order = 12)
|
||||||
|
private Float maxwindTilt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.minwind_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(21)
|
||||||
|
@ExcelProperty(value = "最小风偏角时拉力(Kg)", order = 13)
|
||||||
|
private Integer minwindPull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.minwind_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(14)
|
||||||
|
@ExcelProperty(value = "最小风偏角(°)", order = 14)
|
||||||
|
private Float minwindWind;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.minwind_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ColumnWidth(22)
|
||||||
|
@ExcelProperty(value = "最小风偏角时倾斜角(°)", order = 15)
|
||||||
|
private Float minwindTilt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.wid
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ExcelIgnore
|
||||||
|
private Long wid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ExcelIgnore
|
||||||
|
private Float windSpeed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column lead_pulls.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
@ExcelIgnore
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.id
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.id
|
||||||
|
*
|
||||||
|
* @param id the value for lead_pulls.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 lead_pulls.term_id
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.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 lead_pulls.term_id
|
||||||
|
*
|
||||||
|
* @param termId the value for lead_pulls.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 lead_pulls.update_time
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Long getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.update_time
|
||||||
|
*
|
||||||
|
* @param updateTime the value for lead_pulls.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setUpdateTime(Long updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
this.updateDate = new Date(updateTime*1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.func_code
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.func_code
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Integer getFuncCode() {
|
||||||
|
return funcCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.func_code
|
||||||
|
*
|
||||||
|
* @param funcCode the value for lead_pulls.func_code
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setFuncCode(Integer funcCode) {
|
||||||
|
this.funcCode = funcCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.maxpull_pull
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.maxpull_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Integer getMaxpullPull() {
|
||||||
|
return maxpullPull;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.maxpull_pull
|
||||||
|
*
|
||||||
|
* @param maxpullPull the value for lead_pulls.maxpull_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMaxpullPull(Integer maxpullPull) {
|
||||||
|
this.maxpullPull = maxpullPull;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.maxpull_wind
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.maxpull_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMaxpullWind() {
|
||||||
|
return maxpullWind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.maxpull_wind
|
||||||
|
*
|
||||||
|
* @param maxpullWind the value for lead_pulls.maxpull_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMaxpullWind(Float maxpullWind) {
|
||||||
|
this.maxpullWind = maxpullWind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.maxpull_tilt
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.maxpull_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMaxpullTilt() {
|
||||||
|
return maxpullTilt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.maxpull_tilt
|
||||||
|
*
|
||||||
|
* @param maxpullTilt the value for lead_pulls.maxpull_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMaxpullTilt(Float maxpullTilt) {
|
||||||
|
this.maxpullTilt = maxpullTilt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.minpull_pull
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.minpull_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Integer getMinpullPull() {
|
||||||
|
return minpullPull;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.minpull_pull
|
||||||
|
*
|
||||||
|
* @param minpullPull the value for lead_pulls.minpull_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMinpullPull(Integer minpullPull) {
|
||||||
|
this.minpullPull = minpullPull;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.minpull_wind
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.minpull_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMinpullWind() {
|
||||||
|
return minpullWind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.minpull_wind
|
||||||
|
*
|
||||||
|
* @param minpullWind the value for lead_pulls.minpull_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMinpullWind(Float minpullWind) {
|
||||||
|
this.minpullWind = minpullWind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.minpull_tilt
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.minpull_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMinpullTilt() {
|
||||||
|
return minpullTilt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.minpull_tilt
|
||||||
|
*
|
||||||
|
* @param minpullTilt the value for lead_pulls.minpull_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMinpullTilt(Float minpullTilt) {
|
||||||
|
this.minpullTilt = minpullTilt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.maxwind_pull
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.maxwind_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Integer getMaxwindPull() {
|
||||||
|
return maxwindPull;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.maxwind_pull
|
||||||
|
*
|
||||||
|
* @param maxwindPull the value for lead_pulls.maxwind_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMaxwindPull(Integer maxwindPull) {
|
||||||
|
this.maxwindPull = maxwindPull;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.maxwind_wind
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.maxwind_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMaxwindWind() {
|
||||||
|
return maxwindWind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.maxwind_wind
|
||||||
|
*
|
||||||
|
* @param maxwindWind the value for lead_pulls.maxwind_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMaxwindWind(Float maxwindWind) {
|
||||||
|
this.maxwindWind = maxwindWind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.maxwind_tilt
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.maxwind_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMaxwindTilt() {
|
||||||
|
return maxwindTilt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.maxwind_tilt
|
||||||
|
*
|
||||||
|
* @param maxwindTilt the value for lead_pulls.maxwind_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMaxwindTilt(Float maxwindTilt) {
|
||||||
|
this.maxwindTilt = maxwindTilt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.minwind_pull
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.minwind_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Integer getMinwindPull() {
|
||||||
|
return minwindPull;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.minwind_pull
|
||||||
|
*
|
||||||
|
* @param minwindPull the value for lead_pulls.minwind_pull
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMinwindPull(Integer minwindPull) {
|
||||||
|
this.minwindPull = minwindPull;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.minwind_wind
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.minwind_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMinwindWind() {
|
||||||
|
return minwindWind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.minwind_wind
|
||||||
|
*
|
||||||
|
* @param minwindWind the value for lead_pulls.minwind_wind
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMinwindWind(Float minwindWind) {
|
||||||
|
this.minwindWind = minwindWind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.minwind_tilt
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.minwind_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMinwindTilt() {
|
||||||
|
return minwindTilt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.minwind_tilt
|
||||||
|
*
|
||||||
|
* @param minwindTilt the value for lead_pulls.minwind_tilt
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMinwindTilt(Float minwindTilt) {
|
||||||
|
this.minwindTilt = minwindTilt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.wid
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.wid
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Long getWid() {
|
||||||
|
return wid;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.wid
|
||||||
|
*
|
||||||
|
* @param wid the value for lead_pulls.wid
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setWid(Long wid) {
|
||||||
|
this.wid = wid;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.wind_speed
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getWindSpeed() {
|
||||||
|
return windSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column lead_pulls.wind_speed
|
||||||
|
*
|
||||||
|
* @param windSpeed the value for lead_pulls.wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setWindSpeed(Float windSpeed) {
|
||||||
|
this.windSpeed = windSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column lead_pulls.create_time
|
||||||
|
*
|
||||||
|
* @return the value of lead_pulls.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 lead_pulls.create_time
|
||||||
|
*
|
||||||
|
* @param createTime the value for lead_pulls.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ColumnWidth(15)
|
||||||
|
@ExcelProperty(value = "监测终端编号", order = 1)
|
||||||
|
private String cmdid;
|
||||||
|
|
||||||
|
@ExcelIgnore
|
||||||
|
private String phase;
|
||||||
|
|
||||||
|
public String getCmdid() {
|
||||||
|
return cmdid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmdid(String cmdid) {
|
||||||
|
this.cmdid = cmdid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPhase() {
|
||||||
|
return phase;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPhase(String phase) {
|
||||||
|
this.phase = phase;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateDate() {
|
||||||
|
return updateDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateDate(Date updateDate) {
|
||||||
|
this.updateDate = updateDate;
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,616 @@
|
|||||||
|
package com.shxy.xymanager_common.entity;
|
||||||
|
|
||||||
|
public class Weathers {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.term_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer termId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.comp_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String compId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.avg_wind_speed_10min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float avgWindSpeed10min;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.avg_wind_dir_10min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer avgWindDir10min;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.avg_wind_speed_1min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float avgWindSpeed1min;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.avg_wind_dir_1min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float avgWindDir1min;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.max_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float maxWindSpeed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.extreme_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float extremeWindSpeed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.standard_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float standardWindSpeed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.wind_direction
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float windDirection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.air_temperature
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float airTemperature;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.humidity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer humidity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.air_pressure
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float airPressure;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.precipitation
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float precipitation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.precipitation_Intensity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Float precipitationIntensity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column weathers.radiation_Intensity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer radiationIntensity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.id
|
||||||
|
*
|
||||||
|
* @return the value of weathers.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.id
|
||||||
|
*
|
||||||
|
* @param id the value for weathers.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 weathers.term_id
|
||||||
|
*
|
||||||
|
* @return the value of weathers.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 weathers.term_id
|
||||||
|
*
|
||||||
|
* @param termId the value for weathers.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 weathers.update_time
|
||||||
|
*
|
||||||
|
* @return the value of weathers.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Long getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.update_time
|
||||||
|
*
|
||||||
|
* @param updateTime the value for weathers.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setUpdateTime(Long updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.comp_id
|
||||||
|
*
|
||||||
|
* @return the value of weathers.comp_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public String getCompId() {
|
||||||
|
return compId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.comp_id
|
||||||
|
*
|
||||||
|
* @param compId the value for weathers.comp_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setCompId(String compId) {
|
||||||
|
this.compId = compId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.avg_wind_speed_10min
|
||||||
|
*
|
||||||
|
* @return the value of weathers.avg_wind_speed_10min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getAvgWindSpeed10min() {
|
||||||
|
return avgWindSpeed10min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.avg_wind_speed_10min
|
||||||
|
*
|
||||||
|
* @param avgWindSpeed10min the value for weathers.avg_wind_speed_10min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setAvgWindSpeed10min(Float avgWindSpeed10min) {
|
||||||
|
this.avgWindSpeed10min = avgWindSpeed10min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.avg_wind_dir_10min
|
||||||
|
*
|
||||||
|
* @return the value of weathers.avg_wind_dir_10min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Integer getAvgWindDir10min() {
|
||||||
|
return avgWindDir10min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.avg_wind_dir_10min
|
||||||
|
*
|
||||||
|
* @param avgWindDir10min the value for weathers.avg_wind_dir_10min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setAvgWindDir10min(Integer avgWindDir10min) {
|
||||||
|
this.avgWindDir10min = avgWindDir10min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.avg_wind_speed_1min
|
||||||
|
*
|
||||||
|
* @return the value of weathers.avg_wind_speed_1min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getAvgWindSpeed1min() {
|
||||||
|
return avgWindSpeed1min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.avg_wind_speed_1min
|
||||||
|
*
|
||||||
|
* @param avgWindSpeed1min the value for weathers.avg_wind_speed_1min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setAvgWindSpeed1min(Float avgWindSpeed1min) {
|
||||||
|
this.avgWindSpeed1min = avgWindSpeed1min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.avg_wind_dir_1min
|
||||||
|
*
|
||||||
|
* @return the value of weathers.avg_wind_dir_1min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getAvgWindDir1min() {
|
||||||
|
return avgWindDir1min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.avg_wind_dir_1min
|
||||||
|
*
|
||||||
|
* @param avgWindDir1min the value for weathers.avg_wind_dir_1min
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setAvgWindDir1min(Float avgWindDir1min) {
|
||||||
|
this.avgWindDir1min = avgWindDir1min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.max_wind_speed
|
||||||
|
*
|
||||||
|
* @return the value of weathers.max_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getMaxWindSpeed() {
|
||||||
|
return maxWindSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.max_wind_speed
|
||||||
|
*
|
||||||
|
* @param maxWindSpeed the value for weathers.max_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setMaxWindSpeed(Float maxWindSpeed) {
|
||||||
|
this.maxWindSpeed = maxWindSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.extreme_wind_speed
|
||||||
|
*
|
||||||
|
* @return the value of weathers.extreme_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getExtremeWindSpeed() {
|
||||||
|
return extremeWindSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.extreme_wind_speed
|
||||||
|
*
|
||||||
|
* @param extremeWindSpeed the value for weathers.extreme_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setExtremeWindSpeed(Float extremeWindSpeed) {
|
||||||
|
this.extremeWindSpeed = extremeWindSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.standard_wind_speed
|
||||||
|
*
|
||||||
|
* @return the value of weathers.standard_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getStandardWindSpeed() {
|
||||||
|
return standardWindSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.standard_wind_speed
|
||||||
|
*
|
||||||
|
* @param standardWindSpeed the value for weathers.standard_wind_speed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setStandardWindSpeed(Float standardWindSpeed) {
|
||||||
|
this.standardWindSpeed = standardWindSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.wind_direction
|
||||||
|
*
|
||||||
|
* @return the value of weathers.wind_direction
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getWindDirection() {
|
||||||
|
return windDirection;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.wind_direction
|
||||||
|
*
|
||||||
|
* @param windDirection the value for weathers.wind_direction
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setWindDirection(Float windDirection) {
|
||||||
|
this.windDirection = windDirection;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.air_temperature
|
||||||
|
*
|
||||||
|
* @return the value of weathers.air_temperature
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getAirTemperature() {
|
||||||
|
return airTemperature;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.air_temperature
|
||||||
|
*
|
||||||
|
* @param airTemperature the value for weathers.air_temperature
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setAirTemperature(Float airTemperature) {
|
||||||
|
this.airTemperature = airTemperature;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.humidity
|
||||||
|
*
|
||||||
|
* @return the value of weathers.humidity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Integer getHumidity() {
|
||||||
|
return humidity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.humidity
|
||||||
|
*
|
||||||
|
* @param humidity the value for weathers.humidity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setHumidity(Integer humidity) {
|
||||||
|
this.humidity = humidity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.air_pressure
|
||||||
|
*
|
||||||
|
* @return the value of weathers.air_pressure
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getAirPressure() {
|
||||||
|
return airPressure;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.air_pressure
|
||||||
|
*
|
||||||
|
* @param airPressure the value for weathers.air_pressure
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setAirPressure(Float airPressure) {
|
||||||
|
this.airPressure = airPressure;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.precipitation
|
||||||
|
*
|
||||||
|
* @return the value of weathers.precipitation
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getPrecipitation() {
|
||||||
|
return precipitation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.precipitation
|
||||||
|
*
|
||||||
|
* @param precipitation the value for weathers.precipitation
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setPrecipitation(Float precipitation) {
|
||||||
|
this.precipitation = precipitation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.precipitation_Intensity
|
||||||
|
*
|
||||||
|
* @return the value of weathers.precipitation_Intensity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Float getPrecipitationIntensity() {
|
||||||
|
return precipitationIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.precipitation_Intensity
|
||||||
|
*
|
||||||
|
* @param precipitationIntensity the value for weathers.precipitation_Intensity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setPrecipitationIntensity(Float precipitationIntensity) {
|
||||||
|
this.precipitationIntensity = precipitationIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column weathers.radiation_Intensity
|
||||||
|
*
|
||||||
|
* @return the value of weathers.radiation_Intensity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Integer getRadiationIntensity() {
|
||||||
|
return radiationIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column weathers.radiation_Intensity
|
||||||
|
*
|
||||||
|
* @param radiationIntensity the value for weathers.radiation_Intensity
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setRadiationIntensity(Integer radiationIntensity) {
|
||||||
|
this.radiationIntensity = radiationIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String cmdid;
|
||||||
|
private String phase;
|
||||||
|
|
||||||
|
public String getCmdid() {
|
||||||
|
return cmdid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmdid(String cmdid) {
|
||||||
|
this.cmdid = cmdid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPhase() {
|
||||||
|
return phase;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPhase(String phase) {
|
||||||
|
this.phase = phase;
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,97 @@
|
|||||||
|
package com.shxy.xymanager_dao.dao;
|
||||||
|
|
||||||
|
import com.shxy.xymanager_common.entity.LeadPulls;
|
||||||
|
import com.shxy.xymanager_common.entity.LeadPullsExample;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface LeadPullsMapper {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(LeadPullsExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(LeadPullsExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(LeadPulls row);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(LeadPulls row);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<LeadPulls> selectByExample(LeadPullsExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
LeadPulls selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("row") LeadPulls row, @Param("example") LeadPullsExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("row") LeadPulls row, @Param("example") LeadPullsExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(LeadPulls row);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table lead_pulls
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(LeadPulls row);
|
||||||
|
}
|
@ -0,0 +1,97 @@
|
|||||||
|
package com.shxy.xymanager_dao.dao;
|
||||||
|
|
||||||
|
import com.shxy.xymanager_common.entity.Weathers;
|
||||||
|
import com.shxy.xymanager_common.entity.WeathersExample;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface WeathersMapper {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(WeathersExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(WeathersExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(Weathers row);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(Weathers row);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<Weathers> selectByExample(WeathersExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
Weathers selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("row") Weathers row, @Param("example") WeathersExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("row") Weathers row, @Param("example") WeathersExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(Weathers row);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table weathers
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(Weathers row);
|
||||||
|
}
|
@ -0,0 +1,493 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.shxy.xymanager_dao.dao.LeadPullsMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.LeadPulls">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="term_id" jdbcType="INTEGER" property="termId" />
|
||||||
|
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
|
||||||
|
<result column="func_code" jdbcType="INTEGER" property="funcCode" />
|
||||||
|
<result column="maxpull_pull" jdbcType="INTEGER" property="maxpullPull" />
|
||||||
|
<result column="maxpull_wind" jdbcType="REAL" property="maxpullWind" />
|
||||||
|
<result column="maxpull_tilt" jdbcType="REAL" property="maxpullTilt" />
|
||||||
|
<result column="minpull_pull" jdbcType="INTEGER" property="minpullPull" />
|
||||||
|
<result column="minpull_wind" jdbcType="REAL" property="minpullWind" />
|
||||||
|
<result column="minpull_tilt" jdbcType="REAL" property="minpullTilt" />
|
||||||
|
<result column="maxwind_pull" jdbcType="INTEGER" property="maxwindPull" />
|
||||||
|
<result column="maxwind_wind" jdbcType="REAL" property="maxwindWind" />
|
||||||
|
<result column="maxwind_tilt" jdbcType="REAL" property="maxwindTilt" />
|
||||||
|
<result column="minwind_pull" jdbcType="INTEGER" property="minwindPull" />
|
||||||
|
<result column="minwind_wind" jdbcType="REAL" property="minwindWind" />
|
||||||
|
<result column="minwind_tilt" jdbcType="REAL" property="minwindTilt" />
|
||||||
|
<result column="wid" jdbcType="BIGINT" property="wid" />
|
||||||
|
<result column="wind_speed" jdbcType="REAL" property="windSpeed" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, term_id, update_time, func_code, maxpull_pull, maxpull_wind, maxpull_tilt, minpull_pull,
|
||||||
|
minpull_wind, minpull_tilt, maxwind_pull, maxwind_wind, maxwind_tilt, minwind_pull,
|
||||||
|
minwind_wind, minwind_tilt, wid, wind_speed, create_time
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.LeadPullsExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from lead_pulls
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from lead_pulls
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from lead_pulls
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.LeadPullsExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from lead_pulls
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.LeadPulls">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into lead_pulls (term_id, update_time, func_code,
|
||||||
|
maxpull_pull, maxpull_wind, maxpull_tilt,
|
||||||
|
minpull_pull, minpull_wind, minpull_tilt,
|
||||||
|
maxwind_pull, maxwind_wind, maxwind_tilt,
|
||||||
|
minwind_pull, minwind_wind, minwind_tilt,
|
||||||
|
wid, wind_speed, create_time
|
||||||
|
)
|
||||||
|
values (#{termId,jdbcType=INTEGER}, #{updateTime,jdbcType=BIGINT}, #{funcCode,jdbcType=INTEGER},
|
||||||
|
#{maxpullPull,jdbcType=INTEGER}, #{maxpullWind,jdbcType=REAL}, #{maxpullTilt,jdbcType=REAL},
|
||||||
|
#{minpullPull,jdbcType=INTEGER}, #{minpullWind,jdbcType=REAL}, #{minpullTilt,jdbcType=REAL},
|
||||||
|
#{maxwindPull,jdbcType=INTEGER}, #{maxwindWind,jdbcType=REAL}, #{maxwindTilt,jdbcType=REAL},
|
||||||
|
#{minwindPull,jdbcType=INTEGER}, #{minwindWind,jdbcType=REAL}, #{minwindTilt,jdbcType=REAL},
|
||||||
|
#{wid,jdbcType=BIGINT}, #{windSpeed,jdbcType=REAL}, #{createTime,jdbcType=TIMESTAMP}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.LeadPulls">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into lead_pulls
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="termId != null">
|
||||||
|
term_id,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="funcCode != null">
|
||||||
|
func_code,
|
||||||
|
</if>
|
||||||
|
<if test="maxpullPull != null">
|
||||||
|
maxpull_pull,
|
||||||
|
</if>
|
||||||
|
<if test="maxpullWind != null">
|
||||||
|
maxpull_wind,
|
||||||
|
</if>
|
||||||
|
<if test="maxpullTilt != null">
|
||||||
|
maxpull_tilt,
|
||||||
|
</if>
|
||||||
|
<if test="minpullPull != null">
|
||||||
|
minpull_pull,
|
||||||
|
</if>
|
||||||
|
<if test="minpullWind != null">
|
||||||
|
minpull_wind,
|
||||||
|
</if>
|
||||||
|
<if test="minpullTilt != null">
|
||||||
|
minpull_tilt,
|
||||||
|
</if>
|
||||||
|
<if test="maxwindPull != null">
|
||||||
|
maxwind_pull,
|
||||||
|
</if>
|
||||||
|
<if test="maxwindWind != null">
|
||||||
|
maxwind_wind,
|
||||||
|
</if>
|
||||||
|
<if test="maxwindTilt != null">
|
||||||
|
maxwind_tilt,
|
||||||
|
</if>
|
||||||
|
<if test="minwindPull != null">
|
||||||
|
minwind_pull,
|
||||||
|
</if>
|
||||||
|
<if test="minwindWind != null">
|
||||||
|
minwind_wind,
|
||||||
|
</if>
|
||||||
|
<if test="minwindTilt != null">
|
||||||
|
minwind_tilt,
|
||||||
|
</if>
|
||||||
|
<if test="wid != null">
|
||||||
|
wid,
|
||||||
|
</if>
|
||||||
|
<if test="windSpeed != null">
|
||||||
|
wind_speed,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="termId != null">
|
||||||
|
#{termId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="funcCode != null">
|
||||||
|
#{funcCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="maxpullPull != null">
|
||||||
|
#{maxpullPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="maxpullWind != null">
|
||||||
|
#{maxpullWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="maxpullTilt != null">
|
||||||
|
#{maxpullTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="minpullPull != null">
|
||||||
|
#{minpullPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="minpullWind != null">
|
||||||
|
#{minpullWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="minpullTilt != null">
|
||||||
|
#{minpullTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="maxwindPull != null">
|
||||||
|
#{maxwindPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="maxwindWind != null">
|
||||||
|
#{maxwindWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="maxwindTilt != null">
|
||||||
|
#{maxwindTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="minwindPull != null">
|
||||||
|
#{minwindPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="minwindWind != null">
|
||||||
|
#{minwindWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="minwindTilt != null">
|
||||||
|
#{minwindTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="wid != null">
|
||||||
|
#{wid,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="windSpeed != null">
|
||||||
|
#{windSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.LeadPullsExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from lead_pulls
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update lead_pulls
|
||||||
|
<set>
|
||||||
|
<if test="row.id != null">
|
||||||
|
id = #{row.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="row.termId != null">
|
||||||
|
term_id = #{row.termId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.updateTime != null">
|
||||||
|
update_time = #{row.updateTime,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="row.funcCode != null">
|
||||||
|
func_code = #{row.funcCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.maxpullPull != null">
|
||||||
|
maxpull_pull = #{row.maxpullPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.maxpullWind != null">
|
||||||
|
maxpull_wind = #{row.maxpullWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.maxpullTilt != null">
|
||||||
|
maxpull_tilt = #{row.maxpullTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.minpullPull != null">
|
||||||
|
minpull_pull = #{row.minpullPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.minpullWind != null">
|
||||||
|
minpull_wind = #{row.minpullWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.minpullTilt != null">
|
||||||
|
minpull_tilt = #{row.minpullTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.maxwindPull != null">
|
||||||
|
maxwind_pull = #{row.maxwindPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.maxwindWind != null">
|
||||||
|
maxwind_wind = #{row.maxwindWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.maxwindTilt != null">
|
||||||
|
maxwind_tilt = #{row.maxwindTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.minwindPull != null">
|
||||||
|
minwind_pull = #{row.minwindPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.minwindWind != null">
|
||||||
|
minwind_wind = #{row.minwindWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.minwindTilt != null">
|
||||||
|
minwind_tilt = #{row.minwindTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.wid != null">
|
||||||
|
wid = #{row.wid,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="row.windSpeed != null">
|
||||||
|
wind_speed = #{row.windSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.createTime != null">
|
||||||
|
create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update lead_pulls
|
||||||
|
set id = #{row.id,jdbcType=BIGINT},
|
||||||
|
term_id = #{row.termId,jdbcType=INTEGER},
|
||||||
|
update_time = #{row.updateTime,jdbcType=BIGINT},
|
||||||
|
func_code = #{row.funcCode,jdbcType=INTEGER},
|
||||||
|
maxpull_pull = #{row.maxpullPull,jdbcType=INTEGER},
|
||||||
|
maxpull_wind = #{row.maxpullWind,jdbcType=REAL},
|
||||||
|
maxpull_tilt = #{row.maxpullTilt,jdbcType=REAL},
|
||||||
|
minpull_pull = #{row.minpullPull,jdbcType=INTEGER},
|
||||||
|
minpull_wind = #{row.minpullWind,jdbcType=REAL},
|
||||||
|
minpull_tilt = #{row.minpullTilt,jdbcType=REAL},
|
||||||
|
maxwind_pull = #{row.maxwindPull,jdbcType=INTEGER},
|
||||||
|
maxwind_wind = #{row.maxwindWind,jdbcType=REAL},
|
||||||
|
maxwind_tilt = #{row.maxwindTilt,jdbcType=REAL},
|
||||||
|
minwind_pull = #{row.minwindPull,jdbcType=INTEGER},
|
||||||
|
minwind_wind = #{row.minwindWind,jdbcType=REAL},
|
||||||
|
minwind_tilt = #{row.minwindTilt,jdbcType=REAL},
|
||||||
|
wid = #{row.wid,jdbcType=BIGINT},
|
||||||
|
wind_speed = #{row.windSpeed,jdbcType=REAL},
|
||||||
|
create_time = #{row.createTime,jdbcType=TIMESTAMP}
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.LeadPulls">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update lead_pulls
|
||||||
|
<set>
|
||||||
|
<if test="termId != null">
|
||||||
|
term_id = #{termId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="funcCode != null">
|
||||||
|
func_code = #{funcCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="maxpullPull != null">
|
||||||
|
maxpull_pull = #{maxpullPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="maxpullWind != null">
|
||||||
|
maxpull_wind = #{maxpullWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="maxpullTilt != null">
|
||||||
|
maxpull_tilt = #{maxpullTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="minpullPull != null">
|
||||||
|
minpull_pull = #{minpullPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="minpullWind != null">
|
||||||
|
minpull_wind = #{minpullWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="minpullTilt != null">
|
||||||
|
minpull_tilt = #{minpullTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="maxwindPull != null">
|
||||||
|
maxwind_pull = #{maxwindPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="maxwindWind != null">
|
||||||
|
maxwind_wind = #{maxwindWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="maxwindTilt != null">
|
||||||
|
maxwind_tilt = #{maxwindTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="minwindPull != null">
|
||||||
|
minwind_pull = #{minwindPull,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="minwindWind != null">
|
||||||
|
minwind_wind = #{minwindWind,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="minwindTilt != null">
|
||||||
|
minwind_tilt = #{minwindTilt,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="wid != null">
|
||||||
|
wid = #{wid,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="windSpeed != null">
|
||||||
|
wind_speed = #{windSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.LeadPulls">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update lead_pulls
|
||||||
|
set term_id = #{termId,jdbcType=INTEGER},
|
||||||
|
update_time = #{updateTime,jdbcType=BIGINT},
|
||||||
|
func_code = #{funcCode,jdbcType=INTEGER},
|
||||||
|
maxpull_pull = #{maxpullPull,jdbcType=INTEGER},
|
||||||
|
maxpull_wind = #{maxpullWind,jdbcType=REAL},
|
||||||
|
maxpull_tilt = #{maxpullTilt,jdbcType=REAL},
|
||||||
|
minpull_pull = #{minpullPull,jdbcType=INTEGER},
|
||||||
|
minpull_wind = #{minpullWind,jdbcType=REAL},
|
||||||
|
minpull_tilt = #{minpullTilt,jdbcType=REAL},
|
||||||
|
maxwind_pull = #{maxwindPull,jdbcType=INTEGER},
|
||||||
|
maxwind_wind = #{maxwindWind,jdbcType=REAL},
|
||||||
|
maxwind_tilt = #{maxwindTilt,jdbcType=REAL},
|
||||||
|
minwind_pull = #{minwindPull,jdbcType=INTEGER},
|
||||||
|
minwind_wind = #{minwindWind,jdbcType=REAL},
|
||||||
|
minwind_tilt = #{minwindTilt,jdbcType=REAL},
|
||||||
|
wid = #{wid,jdbcType=BIGINT},
|
||||||
|
wind_speed = #{windSpeed,jdbcType=REAL},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
@ -0,0 +1,479 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.shxy.xymanager_dao.dao.WeathersMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.Weathers">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="term_id" jdbcType="INTEGER" property="termId" />
|
||||||
|
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
|
||||||
|
<result column="comp_id" jdbcType="VARCHAR" property="compId" />
|
||||||
|
<result column="avg_wind_speed_10min" jdbcType="REAL" property="avgWindSpeed10min" />
|
||||||
|
<result column="avg_wind_dir_10min" jdbcType="INTEGER" property="avgWindDir10min" />
|
||||||
|
<result column="avg_wind_speed_1min" jdbcType="REAL" property="avgWindSpeed1min" />
|
||||||
|
<result column="avg_wind_dir_1min" jdbcType="REAL" property="avgWindDir1min" />
|
||||||
|
<result column="max_wind_speed" jdbcType="REAL" property="maxWindSpeed" />
|
||||||
|
<result column="extreme_wind_speed" jdbcType="REAL" property="extremeWindSpeed" />
|
||||||
|
<result column="standard_wind_speed" jdbcType="REAL" property="standardWindSpeed" />
|
||||||
|
<result column="wind_direction" jdbcType="REAL" property="windDirection" />
|
||||||
|
<result column="air_temperature" jdbcType="REAL" property="airTemperature" />
|
||||||
|
<result column="humidity" jdbcType="INTEGER" property="humidity" />
|
||||||
|
<result column="air_pressure" jdbcType="REAL" property="airPressure" />
|
||||||
|
<result column="precipitation" jdbcType="REAL" property="precipitation" />
|
||||||
|
<result column="precipitation_Intensity" jdbcType="REAL" property="precipitationIntensity" />
|
||||||
|
<result column="radiation_Intensity" jdbcType="INTEGER" property="radiationIntensity" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, term_id, update_time, comp_id, avg_wind_speed_10min, avg_wind_dir_10min, avg_wind_speed_1min,
|
||||||
|
avg_wind_dir_1min, max_wind_speed, extreme_wind_speed, standard_wind_speed, wind_direction,
|
||||||
|
air_temperature, humidity, air_pressure, precipitation, precipitation_Intensity,
|
||||||
|
radiation_Intensity
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from weathers
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from weathers
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from weathers
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from weathers
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.Weathers">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into weathers (term_id, update_time, comp_id,
|
||||||
|
avg_wind_speed_10min, avg_wind_dir_10min, avg_wind_speed_1min,
|
||||||
|
avg_wind_dir_1min, max_wind_speed, extreme_wind_speed,
|
||||||
|
standard_wind_speed, wind_direction, air_temperature,
|
||||||
|
humidity, air_pressure, precipitation,
|
||||||
|
precipitation_Intensity, radiation_Intensity
|
||||||
|
)
|
||||||
|
values (#{termId,jdbcType=INTEGER}, #{updateTime,jdbcType=BIGINT}, #{compId,jdbcType=VARCHAR},
|
||||||
|
#{avgWindSpeed10min,jdbcType=REAL}, #{avgWindDir10min,jdbcType=INTEGER}, #{avgWindSpeed1min,jdbcType=REAL},
|
||||||
|
#{avgWindDir1min,jdbcType=REAL}, #{maxWindSpeed,jdbcType=REAL}, #{extremeWindSpeed,jdbcType=REAL},
|
||||||
|
#{standardWindSpeed,jdbcType=REAL}, #{windDirection,jdbcType=REAL}, #{airTemperature,jdbcType=REAL},
|
||||||
|
#{humidity,jdbcType=INTEGER}, #{airPressure,jdbcType=REAL}, #{precipitation,jdbcType=REAL},
|
||||||
|
#{precipitationIntensity,jdbcType=REAL}, #{radiationIntensity,jdbcType=INTEGER}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.Weathers">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into weathers
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="termId != null">
|
||||||
|
term_id,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="compId != null">
|
||||||
|
comp_id,
|
||||||
|
</if>
|
||||||
|
<if test="avgWindSpeed10min != null">
|
||||||
|
avg_wind_speed_10min,
|
||||||
|
</if>
|
||||||
|
<if test="avgWindDir10min != null">
|
||||||
|
avg_wind_dir_10min,
|
||||||
|
</if>
|
||||||
|
<if test="avgWindSpeed1min != null">
|
||||||
|
avg_wind_speed_1min,
|
||||||
|
</if>
|
||||||
|
<if test="avgWindDir1min != null">
|
||||||
|
avg_wind_dir_1min,
|
||||||
|
</if>
|
||||||
|
<if test="maxWindSpeed != null">
|
||||||
|
max_wind_speed,
|
||||||
|
</if>
|
||||||
|
<if test="extremeWindSpeed != null">
|
||||||
|
extreme_wind_speed,
|
||||||
|
</if>
|
||||||
|
<if test="standardWindSpeed != null">
|
||||||
|
standard_wind_speed,
|
||||||
|
</if>
|
||||||
|
<if test="windDirection != null">
|
||||||
|
wind_direction,
|
||||||
|
</if>
|
||||||
|
<if test="airTemperature != null">
|
||||||
|
air_temperature,
|
||||||
|
</if>
|
||||||
|
<if test="humidity != null">
|
||||||
|
humidity,
|
||||||
|
</if>
|
||||||
|
<if test="airPressure != null">
|
||||||
|
air_pressure,
|
||||||
|
</if>
|
||||||
|
<if test="precipitation != null">
|
||||||
|
precipitation,
|
||||||
|
</if>
|
||||||
|
<if test="precipitationIntensity != null">
|
||||||
|
precipitation_Intensity,
|
||||||
|
</if>
|
||||||
|
<if test="radiationIntensity != null">
|
||||||
|
radiation_Intensity,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="termId != null">
|
||||||
|
#{termId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="compId != null">
|
||||||
|
#{compId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="avgWindSpeed10min != null">
|
||||||
|
#{avgWindSpeed10min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="avgWindDir10min != null">
|
||||||
|
#{avgWindDir10min,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="avgWindSpeed1min != null">
|
||||||
|
#{avgWindSpeed1min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="avgWindDir1min != null">
|
||||||
|
#{avgWindDir1min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="maxWindSpeed != null">
|
||||||
|
#{maxWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="extremeWindSpeed != null">
|
||||||
|
#{extremeWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="standardWindSpeed != null">
|
||||||
|
#{standardWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="windDirection != null">
|
||||||
|
#{windDirection,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="airTemperature != null">
|
||||||
|
#{airTemperature,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="humidity != null">
|
||||||
|
#{humidity,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="airPressure != null">
|
||||||
|
#{airPressure,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="precipitation != null">
|
||||||
|
#{precipitation,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="precipitationIntensity != null">
|
||||||
|
#{precipitationIntensity,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="radiationIntensity != null">
|
||||||
|
#{radiationIntensity,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from weathers
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update weathers
|
||||||
|
<set>
|
||||||
|
<if test="row.id != null">
|
||||||
|
id = #{row.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="row.termId != null">
|
||||||
|
term_id = #{row.termId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.updateTime != null">
|
||||||
|
update_time = #{row.updateTime,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="row.compId != null">
|
||||||
|
comp_id = #{row.compId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="row.avgWindSpeed10min != null">
|
||||||
|
avg_wind_speed_10min = #{row.avgWindSpeed10min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.avgWindDir10min != null">
|
||||||
|
avg_wind_dir_10min = #{row.avgWindDir10min,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.avgWindSpeed1min != null">
|
||||||
|
avg_wind_speed_1min = #{row.avgWindSpeed1min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.avgWindDir1min != null">
|
||||||
|
avg_wind_dir_1min = #{row.avgWindDir1min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.maxWindSpeed != null">
|
||||||
|
max_wind_speed = #{row.maxWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.extremeWindSpeed != null">
|
||||||
|
extreme_wind_speed = #{row.extremeWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.standardWindSpeed != null">
|
||||||
|
standard_wind_speed = #{row.standardWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.windDirection != null">
|
||||||
|
wind_direction = #{row.windDirection,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.airTemperature != null">
|
||||||
|
air_temperature = #{row.airTemperature,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.humidity != null">
|
||||||
|
humidity = #{row.humidity,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="row.airPressure != null">
|
||||||
|
air_pressure = #{row.airPressure,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.precipitation != null">
|
||||||
|
precipitation = #{row.precipitation,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.precipitationIntensity != null">
|
||||||
|
precipitation_Intensity = #{row.precipitationIntensity,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="row.radiationIntensity != null">
|
||||||
|
radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update weathers
|
||||||
|
set id = #{row.id,jdbcType=BIGINT},
|
||||||
|
term_id = #{row.termId,jdbcType=INTEGER},
|
||||||
|
update_time = #{row.updateTime,jdbcType=BIGINT},
|
||||||
|
comp_id = #{row.compId,jdbcType=VARCHAR},
|
||||||
|
avg_wind_speed_10min = #{row.avgWindSpeed10min,jdbcType=REAL},
|
||||||
|
avg_wind_dir_10min = #{row.avgWindDir10min,jdbcType=INTEGER},
|
||||||
|
avg_wind_speed_1min = #{row.avgWindSpeed1min,jdbcType=REAL},
|
||||||
|
avg_wind_dir_1min = #{row.avgWindDir1min,jdbcType=REAL},
|
||||||
|
max_wind_speed = #{row.maxWindSpeed,jdbcType=REAL},
|
||||||
|
extreme_wind_speed = #{row.extremeWindSpeed,jdbcType=REAL},
|
||||||
|
standard_wind_speed = #{row.standardWindSpeed,jdbcType=REAL},
|
||||||
|
wind_direction = #{row.windDirection,jdbcType=REAL},
|
||||||
|
air_temperature = #{row.airTemperature,jdbcType=REAL},
|
||||||
|
humidity = #{row.humidity,jdbcType=INTEGER},
|
||||||
|
air_pressure = #{row.airPressure,jdbcType=REAL},
|
||||||
|
precipitation = #{row.precipitation,jdbcType=REAL},
|
||||||
|
precipitation_Intensity = #{row.precipitationIntensity,jdbcType=REAL},
|
||||||
|
radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER}
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.Weathers">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update weathers
|
||||||
|
<set>
|
||||||
|
<if test="termId != null">
|
||||||
|
term_id = #{termId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="compId != null">
|
||||||
|
comp_id = #{compId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="avgWindSpeed10min != null">
|
||||||
|
avg_wind_speed_10min = #{avgWindSpeed10min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="avgWindDir10min != null">
|
||||||
|
avg_wind_dir_10min = #{avgWindDir10min,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="avgWindSpeed1min != null">
|
||||||
|
avg_wind_speed_1min = #{avgWindSpeed1min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="avgWindDir1min != null">
|
||||||
|
avg_wind_dir_1min = #{avgWindDir1min,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="maxWindSpeed != null">
|
||||||
|
max_wind_speed = #{maxWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="extremeWindSpeed != null">
|
||||||
|
extreme_wind_speed = #{extremeWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="standardWindSpeed != null">
|
||||||
|
standard_wind_speed = #{standardWindSpeed,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="windDirection != null">
|
||||||
|
wind_direction = #{windDirection,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="airTemperature != null">
|
||||||
|
air_temperature = #{airTemperature,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="humidity != null">
|
||||||
|
humidity = #{humidity,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="airPressure != null">
|
||||||
|
air_pressure = #{airPressure,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="precipitation != null">
|
||||||
|
precipitation = #{precipitation,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="precipitationIntensity != null">
|
||||||
|
precipitation_Intensity = #{precipitationIntensity,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="radiationIntensity != null">
|
||||||
|
radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.Weathers">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update weathers
|
||||||
|
set term_id = #{termId,jdbcType=INTEGER},
|
||||||
|
update_time = #{updateTime,jdbcType=BIGINT},
|
||||||
|
comp_id = #{compId,jdbcType=VARCHAR},
|
||||||
|
avg_wind_speed_10min = #{avgWindSpeed10min,jdbcType=REAL},
|
||||||
|
avg_wind_dir_10min = #{avgWindDir10min,jdbcType=INTEGER},
|
||||||
|
avg_wind_speed_1min = #{avgWindSpeed1min,jdbcType=REAL},
|
||||||
|
avg_wind_dir_1min = #{avgWindDir1min,jdbcType=REAL},
|
||||||
|
max_wind_speed = #{maxWindSpeed,jdbcType=REAL},
|
||||||
|
extreme_wind_speed = #{extremeWindSpeed,jdbcType=REAL},
|
||||||
|
standard_wind_speed = #{standardWindSpeed,jdbcType=REAL},
|
||||||
|
wind_direction = #{windDirection,jdbcType=REAL},
|
||||||
|
air_temperature = #{airTemperature,jdbcType=REAL},
|
||||||
|
humidity = #{humidity,jdbcType=INTEGER},
|
||||||
|
air_pressure = #{airPressure,jdbcType=REAL},
|
||||||
|
precipitation = #{precipitation,jdbcType=REAL},
|
||||||
|
precipitation_Intensity = #{precipitationIntensity,jdbcType=REAL},
|
||||||
|
radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
@ -0,0 +1,83 @@
|
|||||||
|
package com.shxy.xymanager_service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.shxy.xymanager_common.entity.LeadPulls;
|
||||||
|
import com.shxy.xymanager_common.entity.LeadPullsExample;
|
||||||
|
import com.shxy.xymanager_common.entity.Terminals;
|
||||||
|
import com.shxy.xymanager_dao.dao.LeadPullsMapper;
|
||||||
|
import com.shxy.xymanager_service.service.LeadPullsService;
|
||||||
|
import com.shxy.xymanager_service.service.TerminalService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class LeadPullsServiceImpl implements LeadPullsService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
LeadPullsMapper mapper;
|
||||||
|
@Resource
|
||||||
|
TerminalService terminalService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageInfo<LeadPulls> list(Integer lineId, Integer towerId, Integer termId,
|
||||||
|
Long start, Long end, Integer pageNum, Integer pageSize) {
|
||||||
|
List<Terminals> terminalsList = terminalService.getByLineAndTower(lineId, towerId);
|
||||||
|
List<Integer> idList = new ArrayList<>();
|
||||||
|
for (Terminals terminals : terminalsList) {
|
||||||
|
idList.add(terminals.getId());
|
||||||
|
}
|
||||||
|
if (termId != null) {
|
||||||
|
idList.add(termId);
|
||||||
|
}
|
||||||
|
|
||||||
|
LeadPullsExample example = new LeadPullsExample();
|
||||||
|
LeadPullsExample.Criteria criteria = example.createCriteria();
|
||||||
|
if (start != null) {
|
||||||
|
criteria.andUpdateTimeGreaterThanOrEqualTo(start);
|
||||||
|
}
|
||||||
|
if (end != null) {
|
||||||
|
criteria.andUpdateTimeLessThanOrEqualTo(end);
|
||||||
|
}
|
||||||
|
criteria.andTermIdIn(idList);
|
||||||
|
example.setOrderByClause("update_time desc");
|
||||||
|
|
||||||
|
if (pageNum != null && pageSize != null) {
|
||||||
|
PageHelper.startPage(pageNum, pageSize);
|
||||||
|
}
|
||||||
|
List<LeadPulls> list = mapper.selectByExample(example);
|
||||||
|
for (LeadPulls leadPull : list) {
|
||||||
|
for (Terminals terminals : terminalsList) {
|
||||||
|
if (leadPull.getTermId().equals(terminals.getId())) {
|
||||||
|
leadPull.setCmdid(terminals.getCmdid());
|
||||||
|
leadPull.setPhase(terminals.getPhase());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return new PageInfo<>(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LeadPulls getLast(Integer termId) {
|
||||||
|
PageHelper.startPage(1, 1);
|
||||||
|
LeadPullsExample example = new LeadPullsExample();
|
||||||
|
LeadPullsExample.Criteria criteria = example.createCriteria();
|
||||||
|
criteria.andTermIdEqualTo(termId);
|
||||||
|
|
||||||
|
List<LeadPulls> list = mapper.selectByExample(example);
|
||||||
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
|
return null;
|
||||||
|
} else {
|
||||||
|
return list.get(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,81 @@
|
|||||||
|
package com.shxy.xymanager_service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.shxy.xymanager_common.entity.*;
|
||||||
|
import com.shxy.xymanager_dao.dao.WeathersMapper;
|
||||||
|
import com.shxy.xymanager_service.service.TerminalService;
|
||||||
|
import com.shxy.xymanager_service.service.WeatherService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class WeatherServiceImpl implements WeatherService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
WeathersMapper mapper;
|
||||||
|
@Resource
|
||||||
|
TerminalService terminalService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageInfo<Weathers> list(Integer lineId, Integer towerId, Integer termId,
|
||||||
|
Long start, Long end, Integer pageNum, Integer pageSize) {
|
||||||
|
List<Terminals> terminalsList = terminalService.getByLineAndTower(lineId, towerId);
|
||||||
|
List<Integer> idList = new ArrayList<>();
|
||||||
|
for (Terminals terminals : terminalsList) {
|
||||||
|
idList.add(terminals.getId());
|
||||||
|
}
|
||||||
|
if (termId != null) {
|
||||||
|
idList.add(termId);
|
||||||
|
}
|
||||||
|
|
||||||
|
WeathersExample example = new WeathersExample();
|
||||||
|
WeathersExample.Criteria criteria = example.createCriteria();
|
||||||
|
if (start != null) {
|
||||||
|
criteria.andUpdateTimeGreaterThanOrEqualTo(start);
|
||||||
|
}
|
||||||
|
if (end != null) {
|
||||||
|
criteria.andUpdateTimeLessThanOrEqualTo(end);
|
||||||
|
}
|
||||||
|
criteria.andTermIdIn(idList);
|
||||||
|
example.setOrderByClause("update_time desc");
|
||||||
|
|
||||||
|
if (pageNum != null && pageSize != null) {
|
||||||
|
PageHelper.startPage(pageNum, pageSize);
|
||||||
|
}
|
||||||
|
List<Weathers> list = mapper.selectByExample(example);
|
||||||
|
for (Weathers weather : list) {
|
||||||
|
for (Terminals terminals : terminalsList) {
|
||||||
|
if (weather.getTermId().equals(terminals.getId())) {
|
||||||
|
weather.setCmdid(terminals.getCmdid());
|
||||||
|
weather.setPhase(terminals.getPhase());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return new PageInfo<>(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Weathers getLast(Integer termId) {
|
||||||
|
PageHelper.startPage(1, 1);
|
||||||
|
WeathersExample example = new WeathersExample();
|
||||||
|
WeathersExample.Criteria criteria = example.createCriteria();
|
||||||
|
criteria.andTermIdEqualTo(termId);
|
||||||
|
|
||||||
|
List<Weathers> list = mapper.selectByExample(example);
|
||||||
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
|
return null;
|
||||||
|
} else {
|
||||||
|
return list.get(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.shxy.xymanager_service.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.shxy.xymanager_common.entity.LeadPulls;
|
||||||
|
|
||||||
|
public interface LeadPullsService {
|
||||||
|
|
||||||
|
PageInfo<LeadPulls> list(Integer lineId, Integer towerId, Integer termId,
|
||||||
|
Long start, Long end,
|
||||||
|
Integer pageNum, Integer pageSize);
|
||||||
|
|
||||||
|
LeadPulls getLast(Integer termId);
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.shxy.xymanager_service.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.shxy.xymanager_common.entity.Weathers;
|
||||||
|
|
||||||
|
public interface WeatherService {
|
||||||
|
|
||||||
|
PageInfo<Weathers> list(Integer lineId, Integer towerId, Integer termId,
|
||||||
|
Long start, Long end,
|
||||||
|
Integer pageNum, Integer pageSize);
|
||||||
|
|
||||||
|
Weathers getLast(Integer termId);
|
||||||
|
}
|
Loading…
Reference in New Issue