需求清单
parent
9dfe3b5f0a
commit
0201c71a56
|
|
@ -0,0 +1,104 @@
|
|||
package com.agri.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.agri.common.annotation.Log;
|
||||
import com.agri.common.core.controller.BaseController;
|
||||
import com.agri.common.core.domain.AjaxResult;
|
||||
import com.agri.common.enums.BusinessType;
|
||||
import com.agri.system.domain.SysRequireList;
|
||||
import com.agri.system.service.ISysRequireListService;
|
||||
import com.agri.common.utils.poi.ExcelUtil;
|
||||
import com.agri.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 需求清单Controller
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/require")
|
||||
public class SysRequireListController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISysRequireListService sysRequireListService;
|
||||
|
||||
/**
|
||||
* 查询需求清单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:require:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysRequireList sysRequireList)
|
||||
{
|
||||
startPage();
|
||||
List<SysRequireList> list = sysRequireListService.selectSysRequireListList(sysRequireList);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出需求清单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:require:export')")
|
||||
@Log(title = "需求清单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysRequireList sysRequireList)
|
||||
{
|
||||
List<SysRequireList> list = sysRequireListService.selectSysRequireListList(sysRequireList);
|
||||
ExcelUtil<SysRequireList> util = new ExcelUtil<SysRequireList>(SysRequireList.class);
|
||||
util.exportExcel(response, list, "需求清单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取需求清单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:require:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(sysRequireListService.selectSysRequireListById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增需求清单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:require:add')")
|
||||
@Log(title = "需求清单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SysRequireList sysRequireList)
|
||||
{
|
||||
return toAjax(sysRequireListService.insertSysRequireList(sysRequireList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改需求清单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:require:edit')")
|
||||
@Log(title = "需求清单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SysRequireList sysRequireList)
|
||||
{
|
||||
return toAjax(sysRequireListService.updateSysRequireList(sysRequireList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除需求清单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:require:remove')")
|
||||
@Log(title = "需求清单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(sysRequireListService.deleteSysRequireListByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
package com.agri.system.controller;
|
||||
|
||||
import com.agri.common.annotation.Log;
|
||||
import com.agri.common.core.controller.BaseController;
|
||||
import com.agri.common.core.domain.AjaxResult;
|
||||
import com.agri.common.core.page.TableDataInfo;
|
||||
import com.agri.common.enums.BusinessType;
|
||||
import com.agri.common.utils.poi.ExcelUtil;
|
||||
import com.agri.system.domain.SysSpecialDtuData;
|
||||
import com.agri.system.service.ISysSpecialDtuDataService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 无线传输线管数据Controller
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/data/specialData")
|
||||
public class SysSpecialDtuDataController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISysSpecialDtuDataService sysSpecialDtuDataService;
|
||||
|
||||
/**
|
||||
* 查询无线传输线管数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('data:specialData:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysSpecialDtuData sysSpecialDtuData)
|
||||
{
|
||||
startPage();
|
||||
List<SysSpecialDtuData> list = sysSpecialDtuDataService.selectSysSpecialDtuDataList(sysSpecialDtuData);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('data:specialData:list')")
|
||||
@GetMapping("/getNewSpecialData")
|
||||
public AjaxResult getNewSpecialData()
|
||||
{
|
||||
SysSpecialDtuData specialDtuData = sysSpecialDtuDataService
|
||||
.lambdaQuery().orderByDesc(SysSpecialDtuData::getTs).last("limit 1").one();
|
||||
return AjaxResult.success(specialDtuData);
|
||||
}
|
||||
/**
|
||||
* 导出无线传输线管数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('data:specialData:export')")
|
||||
@Log(title = "无线传输线管数据", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysSpecialDtuData sysSpecialDtuData)
|
||||
{
|
||||
List<SysSpecialDtuData> list = sysSpecialDtuDataService.selectSysSpecialDtuDataList(sysSpecialDtuData);
|
||||
ExcelUtil<SysSpecialDtuData> util = new ExcelUtil<SysSpecialDtuData>(SysSpecialDtuData.class);
|
||||
util.exportExcel(response, list, "无线传输线管数据数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取无线传输线管数据详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('data:specialData:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(sysSpecialDtuDataService.selectSysSpecialDtuDataById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增无线传输线管数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('data:specialData:add')")
|
||||
@Log(title = "无线传输线管数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SysSpecialDtuData sysSpecialDtuData)
|
||||
{
|
||||
return toAjax(sysSpecialDtuDataService.insertSysSpecialDtuData(sysSpecialDtuData));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改无线传输线管数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('data:specialData:edit')")
|
||||
@Log(title = "无线传输线管数据", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SysSpecialDtuData sysSpecialDtuData)
|
||||
{
|
||||
return toAjax(sysSpecialDtuDataService.updateSysSpecialDtuData(sysSpecialDtuData));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除无线传输线管数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('data:specialData:remove')")
|
||||
@Log(title = "无线传输线管数据", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(sysSpecialDtuDataService.deleteSysSpecialDtuDataByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,166 @@
|
|||
package com.agri.system.domain;
|
||||
|
||||
import com.agri.common.annotation.Excel;
|
||||
import com.agri.common.core.domain.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.Version;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 需求清单对象 sys_require_list
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
@TableName("sys_require_list")
|
||||
public class SysRequireList extends BaseEntity
|
||||
{
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 需求标题 */
|
||||
@Excel(name = "需求标题")
|
||||
private String title;
|
||||
|
||||
/** 需求详情(支持长文本) */
|
||||
@Excel(name = "需求详情", readConverterExp = "支=持长文本")
|
||||
private String detail;
|
||||
|
||||
/** 优先级:1-高,2-中,3-低(默认中优先级) */
|
||||
@Excel(name = "优先级:1-高,2-中,3-低", readConverterExp = "默=认中优先级")
|
||||
private Long priority;
|
||||
|
||||
/** 进度:0-未开始,1-已完成,2-进行中 */
|
||||
@Excel(name = "进度:0-未开始,1-已完成,2-进行中")
|
||||
private Long progress;
|
||||
|
||||
/** 需求类型:1-功能需求,2-优化需求,3-BUG修复(可选扩展) */
|
||||
@Excel(name = "需求类型:1-功能需求,2-优化需求,3-BUG修复", readConverterExp = "可=选扩展")
|
||||
private Long reqType;
|
||||
|
||||
/** 经办人ID(关联用户表,可选) */
|
||||
@Excel(name = "经办人ID", readConverterExp = "关=联用户表,可选")
|
||||
private Long assigneeId;
|
||||
|
||||
/** 经办人名称(冗余存储,可选) */
|
||||
@Excel(name = "经办人名称", readConverterExp = "冗=余存储,可选")
|
||||
private String assigneeName;
|
||||
|
||||
/** 需求版本号:初始为1,每修改核心内容递增1 */
|
||||
@Version
|
||||
private Long version;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setDetail(String detail)
|
||||
{
|
||||
this.detail = detail;
|
||||
}
|
||||
|
||||
public String getDetail()
|
||||
{
|
||||
return detail;
|
||||
}
|
||||
|
||||
public void setPriority(Long priority)
|
||||
{
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public Long getPriority()
|
||||
{
|
||||
return priority;
|
||||
}
|
||||
|
||||
public void setProgress(Long progress)
|
||||
{
|
||||
this.progress = progress;
|
||||
}
|
||||
|
||||
public Long getProgress()
|
||||
{
|
||||
return progress;
|
||||
}
|
||||
|
||||
public void setReqType(Long reqType)
|
||||
{
|
||||
this.reqType = reqType;
|
||||
}
|
||||
|
||||
public Long getReqType()
|
||||
{
|
||||
return reqType;
|
||||
}
|
||||
|
||||
public void setAssigneeId(Long assigneeId)
|
||||
{
|
||||
this.assigneeId = assigneeId;
|
||||
}
|
||||
|
||||
public Long getAssigneeId()
|
||||
{
|
||||
return assigneeId;
|
||||
}
|
||||
|
||||
public void setAssigneeName(String assigneeName)
|
||||
{
|
||||
this.assigneeName = assigneeName;
|
||||
}
|
||||
|
||||
public String getAssigneeName()
|
||||
{
|
||||
return assigneeName;
|
||||
}
|
||||
|
||||
public void setVersion(Long version)
|
||||
{
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Long getVersion()
|
||||
{
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("detail", getDetail())
|
||||
.append("priority", getPriority())
|
||||
.append("progress", getProgress())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("reqType", getReqType())
|
||||
.append("assigneeId", getAssigneeId())
|
||||
.append("assigneeName", getAssigneeName())
|
||||
.append("version", getVersion())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,465 @@
|
|||
package com.agri.system.domain;
|
||||
|
||||
import com.agri.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 无线传输线管数据对象 sys_special_dtu_data
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
@TableName("sys_special_dtu_data")
|
||||
public class SysSpecialDtuData
|
||||
{
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 设备唯一标识(IMEI/DeviceId) */
|
||||
@Excel(name = "设备唯一标识(IMEI/DeviceId)")
|
||||
private String imei;
|
||||
|
||||
/** 设备上报时间戳(ms或s,建议统一ms) */
|
||||
@Excel(name = "设备上报时间戳(ms或s,建议统一ms)")
|
||||
private Long ts;
|
||||
|
||||
/** ts转换后的正常时间(由服务端转换入库) */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@Excel(name = "ts转换后的正常时间(由服务端转换入库)", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date time;
|
||||
|
||||
/** 温度1(℃) */
|
||||
@Excel(name = "温度1(℃)")
|
||||
private BigDecimal temp1;
|
||||
|
||||
/** 湿度1(%RH) */
|
||||
@Excel(name = "湿度1(%RH)")
|
||||
private BigDecimal humi1;
|
||||
|
||||
/** 温度2(℃) */
|
||||
@Excel(name = "温度2(℃)")
|
||||
private BigDecimal temp2;
|
||||
|
||||
/** 湿度2(%RH) */
|
||||
@Excel(name = "湿度2(%RH)")
|
||||
private BigDecimal humi2;
|
||||
|
||||
/** 温度3(℃) */
|
||||
@Excel(name = "温度3(℃)")
|
||||
private BigDecimal temp3;
|
||||
|
||||
/** 湿度3(%RH) */
|
||||
@Excel(name = "湿度3(%RH)")
|
||||
private BigDecimal humi3;
|
||||
|
||||
/** 温度4(℃) */
|
||||
@Excel(name = "温度4(℃)")
|
||||
private BigDecimal temp4;
|
||||
|
||||
/** 湿度4(%RH) */
|
||||
@Excel(name = "湿度4(%RH)")
|
||||
private BigDecimal humi4;
|
||||
|
||||
/** 温度5(℃) */
|
||||
@Excel(name = "温度5(℃)")
|
||||
private BigDecimal temp5;
|
||||
|
||||
/** 湿度5(%RH) */
|
||||
@Excel(name = "湿度5(%RH)")
|
||||
private BigDecimal humi5;
|
||||
|
||||
/** 温度6(℃) */
|
||||
@Excel(name = "温度6(℃)")
|
||||
private BigDecimal temp6;
|
||||
|
||||
/** 湿度6(%RH) */
|
||||
@Excel(name = "湿度6(%RH)")
|
||||
private BigDecimal humi6;
|
||||
|
||||
/** 温度7(℃) */
|
||||
@Excel(name = "温度7(℃)")
|
||||
private BigDecimal temp7;
|
||||
|
||||
/** 湿度7(%RH) */
|
||||
@Excel(name = "湿度7(%RH)")
|
||||
private BigDecimal humi7;
|
||||
|
||||
/** 温度8(℃) */
|
||||
@Excel(name = "温度8(℃)")
|
||||
private BigDecimal temp8;
|
||||
|
||||
/** 湿度8(%RH) */
|
||||
@Excel(name = "湿度8(%RH)")
|
||||
private BigDecimal humi8;
|
||||
|
||||
/** 温度9(℃) */
|
||||
@Excel(name = "温度9(℃)")
|
||||
private BigDecimal temp9;
|
||||
|
||||
/** 湿度9(%RH) */
|
||||
@Excel(name = "湿度9(%RH)")
|
||||
private BigDecimal humi9;
|
||||
|
||||
/** 温度10(℃) */
|
||||
@Excel(name = "温度10(℃)")
|
||||
private BigDecimal temp10;
|
||||
|
||||
/** 湿度10(%RH) */
|
||||
@Excel(name = "湿度10(%RH)")
|
||||
private BigDecimal humi10;
|
||||
|
||||
/** 温度11(℃) */
|
||||
@Excel(name = "温度11(℃)")
|
||||
private BigDecimal temp11;
|
||||
|
||||
/** 湿度11(%RH) */
|
||||
@Excel(name = "湿度11(%RH)")
|
||||
private BigDecimal humi11;
|
||||
|
||||
/** 温度12(℃) */
|
||||
@Excel(name = "温度12(℃)")
|
||||
private BigDecimal temp12;
|
||||
|
||||
/** 湿度12(%RH) */
|
||||
@Excel(name = "湿度12(%RH)")
|
||||
private BigDecimal humi12;
|
||||
|
||||
/** 原始JSON元信息(原始上报码/额外字段) */
|
||||
@Excel(name = "原始JSON元信息(原始上报码/额外字段)")
|
||||
private String raw;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setImei(String imei)
|
||||
{
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
public String getImei()
|
||||
{
|
||||
return imei;
|
||||
}
|
||||
|
||||
public void setTs(Long ts)
|
||||
{
|
||||
this.ts = ts;
|
||||
}
|
||||
|
||||
public Long getTs()
|
||||
{
|
||||
return ts;
|
||||
}
|
||||
|
||||
public void setTime(Date time)
|
||||
{
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public Date getTime()
|
||||
{
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTemp1(BigDecimal temp1)
|
||||
{
|
||||
this.temp1 = temp1;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp1()
|
||||
{
|
||||
return temp1;
|
||||
}
|
||||
|
||||
public void setHumi1(BigDecimal humi1)
|
||||
{
|
||||
this.humi1 = humi1;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi1()
|
||||
{
|
||||
return humi1;
|
||||
}
|
||||
|
||||
public void setTemp2(BigDecimal temp2)
|
||||
{
|
||||
this.temp2 = temp2;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp2()
|
||||
{
|
||||
return temp2;
|
||||
}
|
||||
|
||||
public void setHumi2(BigDecimal humi2)
|
||||
{
|
||||
this.humi2 = humi2;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi2()
|
||||
{
|
||||
return humi2;
|
||||
}
|
||||
|
||||
public void setTemp3(BigDecimal temp3)
|
||||
{
|
||||
this.temp3 = temp3;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp3()
|
||||
{
|
||||
return temp3;
|
||||
}
|
||||
|
||||
public void setHumi3(BigDecimal humi3)
|
||||
{
|
||||
this.humi3 = humi3;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi3()
|
||||
{
|
||||
return humi3;
|
||||
}
|
||||
|
||||
public void setTemp4(BigDecimal temp4)
|
||||
{
|
||||
this.temp4 = temp4;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp4()
|
||||
{
|
||||
return temp4;
|
||||
}
|
||||
|
||||
public void setHumi4(BigDecimal humi4)
|
||||
{
|
||||
this.humi4 = humi4;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi4()
|
||||
{
|
||||
return humi4;
|
||||
}
|
||||
|
||||
public void setTemp5(BigDecimal temp5)
|
||||
{
|
||||
this.temp5 = temp5;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp5()
|
||||
{
|
||||
return temp5;
|
||||
}
|
||||
|
||||
public void setHumi5(BigDecimal humi5)
|
||||
{
|
||||
this.humi5 = humi5;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi5()
|
||||
{
|
||||
return humi5;
|
||||
}
|
||||
|
||||
public void setTemp6(BigDecimal temp6)
|
||||
{
|
||||
this.temp6 = temp6;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp6()
|
||||
{
|
||||
return temp6;
|
||||
}
|
||||
|
||||
public void setHumi6(BigDecimal humi6)
|
||||
{
|
||||
this.humi6 = humi6;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi6()
|
||||
{
|
||||
return humi6;
|
||||
}
|
||||
|
||||
public void setTemp7(BigDecimal temp7)
|
||||
{
|
||||
this.temp7 = temp7;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp7()
|
||||
{
|
||||
return temp7;
|
||||
}
|
||||
|
||||
public void setHumi7(BigDecimal humi7)
|
||||
{
|
||||
this.humi7 = humi7;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi7()
|
||||
{
|
||||
return humi7;
|
||||
}
|
||||
|
||||
public void setTemp8(BigDecimal temp8)
|
||||
{
|
||||
this.temp8 = temp8;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp8()
|
||||
{
|
||||
return temp8;
|
||||
}
|
||||
|
||||
public void setHumi8(BigDecimal humi8)
|
||||
{
|
||||
this.humi8 = humi8;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi8()
|
||||
{
|
||||
return humi8;
|
||||
}
|
||||
|
||||
public void setTemp9(BigDecimal temp9)
|
||||
{
|
||||
this.temp9 = temp9;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp9()
|
||||
{
|
||||
return temp9;
|
||||
}
|
||||
|
||||
public void setHumi9(BigDecimal humi9)
|
||||
{
|
||||
this.humi9 = humi9;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi9()
|
||||
{
|
||||
return humi9;
|
||||
}
|
||||
|
||||
public void setTemp10(BigDecimal temp10)
|
||||
{
|
||||
this.temp10 = temp10;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp10()
|
||||
{
|
||||
return temp10;
|
||||
}
|
||||
|
||||
public void setHumi10(BigDecimal humi10)
|
||||
{
|
||||
this.humi10 = humi10;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi10()
|
||||
{
|
||||
return humi10;
|
||||
}
|
||||
|
||||
public void setTemp11(BigDecimal temp11)
|
||||
{
|
||||
this.temp11 = temp11;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp11()
|
||||
{
|
||||
return temp11;
|
||||
}
|
||||
|
||||
public void setHumi11(BigDecimal humi11)
|
||||
{
|
||||
this.humi11 = humi11;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi11()
|
||||
{
|
||||
return humi11;
|
||||
}
|
||||
|
||||
public void setTemp12(BigDecimal temp12)
|
||||
{
|
||||
this.temp12 = temp12;
|
||||
}
|
||||
|
||||
public BigDecimal getTemp12()
|
||||
{
|
||||
return temp12;
|
||||
}
|
||||
|
||||
public void setHumi12(BigDecimal humi12)
|
||||
{
|
||||
this.humi12 = humi12;
|
||||
}
|
||||
|
||||
public BigDecimal getHumi12()
|
||||
{
|
||||
return humi12;
|
||||
}
|
||||
|
||||
public void setRaw(String raw)
|
||||
{
|
||||
this.raw = raw;
|
||||
}
|
||||
|
||||
public String getRaw()
|
||||
{
|
||||
return raw;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("imei", getImei())
|
||||
.append("ts", getTs())
|
||||
.append("time", getTime())
|
||||
.append("temp1", getTemp1())
|
||||
.append("humi1", getHumi1())
|
||||
.append("temp2", getTemp2())
|
||||
.append("humi2", getHumi2())
|
||||
.append("temp3", getTemp3())
|
||||
.append("humi3", getHumi3())
|
||||
.append("temp4", getTemp4())
|
||||
.append("humi4", getHumi4())
|
||||
.append("temp5", getTemp5())
|
||||
.append("humi5", getHumi5())
|
||||
.append("temp6", getTemp6())
|
||||
.append("humi6", getHumi6())
|
||||
.append("temp7", getTemp7())
|
||||
.append("humi7", getHumi7())
|
||||
.append("temp8", getTemp8())
|
||||
.append("humi8", getHumi8())
|
||||
.append("temp9", getTemp9())
|
||||
.append("humi9", getHumi9())
|
||||
.append("temp10", getTemp10())
|
||||
.append("humi10", getHumi10())
|
||||
.append("temp11", getTemp11())
|
||||
.append("humi11", getHumi11())
|
||||
.append("temp12", getTemp12())
|
||||
.append("humi12", getHumi12())
|
||||
.append("raw", getRaw())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.agri.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.agri.system.domain.SysRequireList;
|
||||
|
||||
/**
|
||||
* 需求清单Mapper接口
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
public interface SysRequireListMapper extends BaseMapper<SysRequireList>
|
||||
{
|
||||
/**
|
||||
* 查询需求清单
|
||||
*
|
||||
* @param id 需求清单主键
|
||||
* @return 需求清单
|
||||
*/
|
||||
public SysRequireList selectSysRequireListById(Long id);
|
||||
|
||||
/**
|
||||
* 查询需求清单列表
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 需求清单集合
|
||||
*/
|
||||
public List<SysRequireList> selectSysRequireListList(SysRequireList sysRequireList);
|
||||
|
||||
/**
|
||||
* 新增需求清单
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysRequireList(SysRequireList sysRequireList);
|
||||
|
||||
/**
|
||||
* 修改需求清单
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysRequireList(SysRequireList sysRequireList);
|
||||
|
||||
/**
|
||||
* 删除需求清单
|
||||
*
|
||||
* @param id 需求清单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysRequireListById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除需求清单
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysRequireListByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.agri.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.agri.system.domain.SysSpecialDtuData;
|
||||
|
||||
/**
|
||||
* 无线传输线管数据Mapper接口
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
public interface SysSpecialDtuDataMapper extends BaseMapper<SysSpecialDtuData>
|
||||
{
|
||||
/**
|
||||
* 查询无线传输线管数据
|
||||
*
|
||||
* @param id 无线传输线管数据主键
|
||||
* @return 无线传输线管数据
|
||||
*/
|
||||
public SysSpecialDtuData selectSysSpecialDtuDataById(Long id);
|
||||
|
||||
/**
|
||||
* 查询无线传输线管数据列表
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 无线传输线管数据集合
|
||||
*/
|
||||
public List<SysSpecialDtuData> selectSysSpecialDtuDataList(SysSpecialDtuData sysSpecialDtuData);
|
||||
|
||||
/**
|
||||
* 新增无线传输线管数据
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysSpecialDtuData(SysSpecialDtuData sysSpecialDtuData);
|
||||
|
||||
/**
|
||||
* 修改无线传输线管数据
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysSpecialDtuData(SysSpecialDtuData sysSpecialDtuData);
|
||||
|
||||
/**
|
||||
* 删除无线传输线管数据
|
||||
*
|
||||
* @param id 无线传输线管数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysSpecialDtuDataById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除无线传输线管数据
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysSpecialDtuDataByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.agri.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.agri.system.domain.SysRequireList;
|
||||
|
||||
/**
|
||||
* 需求清单Service接口
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
public interface ISysRequireListService extends IService<SysRequireList> {
|
||||
/**
|
||||
* 查询需求清单
|
||||
*
|
||||
* @param id 需求清单主键
|
||||
* @return 需求清单
|
||||
*/
|
||||
public SysRequireList selectSysRequireListById(Long id);
|
||||
|
||||
/**
|
||||
* 查询需求清单列表
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 需求清单集合
|
||||
*/
|
||||
public List<SysRequireList> selectSysRequireListList(SysRequireList sysRequireList);
|
||||
|
||||
/**
|
||||
* 新增需求清单
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysRequireList(SysRequireList sysRequireList);
|
||||
|
||||
/**
|
||||
* 修改需求清单
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysRequireList(SysRequireList sysRequireList);
|
||||
|
||||
/**
|
||||
* 批量删除需求清单
|
||||
*
|
||||
* @param ids 需要删除的需求清单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysRequireListByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除需求清单信息
|
||||
*
|
||||
* @param id 需求清单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysRequireListById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.agri.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.agri.system.domain.SysSpecialDtuData;
|
||||
|
||||
/**
|
||||
* 无线传输线管数据Service接口
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
public interface ISysSpecialDtuDataService extends IService<SysSpecialDtuData> {
|
||||
/**
|
||||
* 查询无线传输线管数据
|
||||
*
|
||||
* @param id 无线传输线管数据主键
|
||||
* @return 无线传输线管数据
|
||||
*/
|
||||
public SysSpecialDtuData selectSysSpecialDtuDataById(Long id);
|
||||
|
||||
/**
|
||||
* 查询无线传输线管数据列表
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 无线传输线管数据集合
|
||||
*/
|
||||
public List<SysSpecialDtuData> selectSysSpecialDtuDataList(SysSpecialDtuData sysSpecialDtuData);
|
||||
|
||||
/**
|
||||
* 新增无线传输线管数据
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysSpecialDtuData(SysSpecialDtuData sysSpecialDtuData);
|
||||
|
||||
/**
|
||||
* 修改无线传输线管数据
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysSpecialDtuData(SysSpecialDtuData sysSpecialDtuData);
|
||||
|
||||
/**
|
||||
* 批量删除无线传输线管数据
|
||||
*
|
||||
* @param ids 需要删除的无线传输线管数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysSpecialDtuDataByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除无线传输线管数据信息
|
||||
*
|
||||
* @param id 无线传输线管数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysSpecialDtuDataById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
package com.agri.system.service.impl;
|
||||
|
||||
import com.agri.common.utils.DateUtils;
|
||||
import com.agri.system.domain.SysRequireList;
|
||||
import com.agri.system.mapper.SysRequireListMapper;
|
||||
import com.agri.system.service.ISysRequireListService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 需求清单Service业务层处理
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
@Service
|
||||
public class SysRequireListServiceImpl extends ServiceImpl<SysRequireListMapper, SysRequireList> implements ISysRequireListService
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询需求清单
|
||||
*
|
||||
* @param id 需求清单主键
|
||||
* @return 需求清单
|
||||
*/
|
||||
@Override
|
||||
public SysRequireList selectSysRequireListById(Long id)
|
||||
{
|
||||
return baseMapper.selectSysRequireListById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询需求清单列表
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 需求清单
|
||||
*/
|
||||
@Override
|
||||
public List<SysRequireList> selectSysRequireListList(SysRequireList sysRequireList)
|
||||
{
|
||||
return baseMapper.selectSysRequireListList(sysRequireList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增需求清单
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysRequireList(SysRequireList sysRequireList)
|
||||
{
|
||||
sysRequireList.setCreateTime(DateUtils.getNowDate());
|
||||
return baseMapper.insertSysRequireList(sysRequireList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改需求清单
|
||||
*
|
||||
* @param sysRequireList 需求清单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysRequireList(SysRequireList sysRequireList)
|
||||
{
|
||||
sysRequireList.setUpdateTime(DateUtils.getNowDate());
|
||||
return baseMapper.updateSysRequireList(sysRequireList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除需求清单
|
||||
*
|
||||
* @param ids 需要删除的需求清单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysRequireListByIds(Long[] ids)
|
||||
{
|
||||
return baseMapper.deleteSysRequireListByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除需求清单信息
|
||||
*
|
||||
* @param id 需求清单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysRequireListById(Long id)
|
||||
{
|
||||
return baseMapper.deleteSysRequireListById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
package com.agri.system.service.impl;
|
||||
|
||||
import com.agri.system.domain.SysSpecialDtuData;
|
||||
import com.agri.system.mapper.SysSpecialDtuDataMapper;
|
||||
import com.agri.system.service.ISysSpecialDtuDataService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 无线传输线管数据Service业务层处理
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-01-11
|
||||
*/
|
||||
@Service
|
||||
public class SysSpecialDtuDataServiceImpl extends ServiceImpl<SysSpecialDtuDataMapper, SysSpecialDtuData> implements ISysSpecialDtuDataService
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询无线传输线管数据
|
||||
*
|
||||
* @param id 无线传输线管数据主键
|
||||
* @return 无线传输线管数据
|
||||
*/
|
||||
@Override
|
||||
public SysSpecialDtuData selectSysSpecialDtuDataById(Long id)
|
||||
{
|
||||
return baseMapper.selectSysSpecialDtuDataById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询无线传输线管数据列表
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 无线传输线管数据
|
||||
*/
|
||||
@Override
|
||||
public List<SysSpecialDtuData> selectSysSpecialDtuDataList(SysSpecialDtuData sysSpecialDtuData)
|
||||
{
|
||||
return baseMapper.selectSysSpecialDtuDataList(sysSpecialDtuData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增无线传输线管数据
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysSpecialDtuData(SysSpecialDtuData sysSpecialDtuData)
|
||||
{
|
||||
return baseMapper.insertSysSpecialDtuData(sysSpecialDtuData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改无线传输线管数据
|
||||
*
|
||||
* @param sysSpecialDtuData 无线传输线管数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysSpecialDtuData(SysSpecialDtuData sysSpecialDtuData)
|
||||
{
|
||||
return baseMapper.updateSysSpecialDtuData(sysSpecialDtuData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除无线传输线管数据
|
||||
*
|
||||
* @param ids 需要删除的无线传输线管数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysSpecialDtuDataByIds(Long[] ids)
|
||||
{
|
||||
return baseMapper.deleteSysSpecialDtuDataByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除无线传输线管数据信息
|
||||
*
|
||||
* @param id 无线传输线管数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysSpecialDtuDataById(Long id)
|
||||
{
|
||||
return baseMapper.deleteSysSpecialDtuDataById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
<?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.agri.system.mapper.SysRequireListMapper">
|
||||
|
||||
<resultMap type="SysRequireList" id="SysRequireListResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="detail" column="detail" />
|
||||
<result property="priority" column="priority" />
|
||||
<result property="progress" column="progress" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="reqType" column="req_type" />
|
||||
<result property="assigneeId" column="assignee_id" />
|
||||
<result property="assigneeName" column="assignee_name" />
|
||||
<result property="version" column="version" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysRequireListVo">
|
||||
select id, title, detail, priority, progress, create_by, create_time, update_by, update_time, req_type, assignee_id, assignee_name, version from sys_require_list
|
||||
</sql>
|
||||
|
||||
<select id="selectSysRequireListList" parameterType="SysRequireList" resultMap="SysRequireListResult">
|
||||
<include refid="selectSysRequireListVo"/>
|
||||
<where>
|
||||
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||
<if test="detail != null and detail != ''"> and detail = #{detail}</if>
|
||||
<if test="priority != null "> and priority = #{priority}</if>
|
||||
<if test="progress != null "> and progress = #{progress}</if>
|
||||
<if test="reqType != null "> and req_type = #{reqType}</if>
|
||||
<if test="assigneeId != null "> and assignee_id = #{assigneeId}</if>
|
||||
<if test="assigneeName != null and assigneeName != ''"> and assignee_name like concat('%', #{assigneeName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysRequireListById" parameterType="Long" resultMap="SysRequireListResult">
|
||||
<include refid="selectSysRequireListVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysRequireList" parameterType="SysRequireList" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sys_require_list
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="title != null and title != ''">title,</if>
|
||||
<if test="detail != null and detail != ''">detail,</if>
|
||||
<if test="priority != null">priority,</if>
|
||||
<if test="progress != null">progress,</if>
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time,
|
||||
<if test="reqType != null">req_type,</if>
|
||||
<if test="assigneeId != null">assignee_id,</if>
|
||||
<if test="assigneeName != null">assignee_name,</if>
|
||||
<if test="version != null">version,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="title != null and title != ''">#{title},</if>
|
||||
<if test="detail != null and detail != ''">#{detail},</if>
|
||||
<if test="priority != null">#{priority},</if>
|
||||
<if test="progress != null">#{progress},</if>
|
||||
#{createBy},
|
||||
#{createTime},
|
||||
#{updateBy},
|
||||
#{updateTime},
|
||||
<if test="reqType != null">#{reqType},</if>
|
||||
<if test="assigneeId != null">#{assigneeId},</if>
|
||||
<if test="assigneeName != null">#{assigneeName},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysRequireList" parameterType="SysRequireList">
|
||||
update sys_require_list
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="title != null and title != ''">title = #{title},</if>
|
||||
<if test="detail != null and detail != ''">detail = #{detail},</if>
|
||||
<if test="priority != null">priority = #{priority},</if>
|
||||
<if test="progress != null">progress = #{progress},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="reqType != null">req_type = #{reqType},</if>
|
||||
<if test="assigneeId != null">assignee_id = #{assigneeId},</if>
|
||||
<if test="assigneeName != null">assignee_name = #{assigneeName},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysRequireListById" parameterType="Long">
|
||||
delete from sys_require_list where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysRequireListByIds" parameterType="String">
|
||||
delete from sys_require_list where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,173 @@
|
|||
<?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.agri.system.mapper.SysSpecialDtuDataMapper">
|
||||
|
||||
<resultMap type="SysSpecialDtuData" id="SysSpecialDtuDataResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="imei" column="imei" />
|
||||
<result property="ts" column="ts" />
|
||||
<result property="time" column="time" />
|
||||
<result property="temp1" column="temp1" />
|
||||
<result property="humi1" column="humi1" />
|
||||
<result property="temp2" column="temp2" />
|
||||
<result property="humi2" column="humi2" />
|
||||
<result property="temp3" column="temp3" />
|
||||
<result property="humi3" column="humi3" />
|
||||
<result property="temp4" column="temp4" />
|
||||
<result property="humi4" column="humi4" />
|
||||
<result property="temp5" column="temp5" />
|
||||
<result property="humi5" column="humi5" />
|
||||
<result property="temp6" column="temp6" />
|
||||
<result property="humi6" column="humi6" />
|
||||
<result property="temp7" column="temp7" />
|
||||
<result property="humi7" column="humi7" />
|
||||
<result property="temp8" column="temp8" />
|
||||
<result property="humi8" column="humi8" />
|
||||
<result property="temp9" column="temp9" />
|
||||
<result property="humi9" column="humi9" />
|
||||
<result property="temp10" column="temp10" />
|
||||
<result property="humi10" column="humi10" />
|
||||
<result property="temp11" column="temp11" />
|
||||
<result property="humi11" column="humi11" />
|
||||
<result property="temp12" column="temp12" />
|
||||
<result property="humi12" column="humi12" />
|
||||
<result property="raw" column="raw" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysSpecialDtuDataVo">
|
||||
select id, imei, ts, time, temp1, humi1, temp2, humi2, temp3, humi3, temp4, humi4, temp5, humi5, temp6, humi6, temp7, humi7, temp8, humi8, temp9, humi9, temp10, humi10, temp11, humi11, temp12, humi12, raw, create_by, create_time from sys_special_dtu_data
|
||||
</sql>
|
||||
|
||||
<select id="selectSysSpecialDtuDataList" parameterType="SysSpecialDtuData" resultMap="SysSpecialDtuDataResult">
|
||||
<include refid="selectSysSpecialDtuDataVo"/>
|
||||
<where>
|
||||
<if test="imei != null and imei != ''"> and imei = #{imei}</if>
|
||||
<if test="ts != null "> and ts = #{ts}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysSpecialDtuDataById" parameterType="Long" resultMap="SysSpecialDtuDataResult">
|
||||
<include refid="selectSysSpecialDtuDataVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysSpecialDtuData" parameterType="SysSpecialDtuData" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sys_special_dtu_data
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="imei != null and imei != ''">imei,</if>
|
||||
<if test="ts != null">ts,</if>
|
||||
<if test="time != null">time,</if>
|
||||
<if test="temp1 != null">temp1,</if>
|
||||
<if test="humi1 != null">humi1,</if>
|
||||
<if test="temp2 != null">temp2,</if>
|
||||
<if test="humi2 != null">humi2,</if>
|
||||
<if test="temp3 != null">temp3,</if>
|
||||
<if test="humi3 != null">humi3,</if>
|
||||
<if test="temp4 != null">temp4,</if>
|
||||
<if test="humi4 != null">humi4,</if>
|
||||
<if test="temp5 != null">temp5,</if>
|
||||
<if test="humi5 != null">humi5,</if>
|
||||
<if test="temp6 != null">temp6,</if>
|
||||
<if test="humi6 != null">humi6,</if>
|
||||
<if test="temp7 != null">temp7,</if>
|
||||
<if test="humi7 != null">humi7,</if>
|
||||
<if test="temp8 != null">temp8,</if>
|
||||
<if test="humi8 != null">humi8,</if>
|
||||
<if test="temp9 != null">temp9,</if>
|
||||
<if test="humi9 != null">humi9,</if>
|
||||
<if test="temp10 != null">temp10,</if>
|
||||
<if test="humi10 != null">humi10,</if>
|
||||
<if test="temp11 != null">temp11,</if>
|
||||
<if test="humi11 != null">humi11,</if>
|
||||
<if test="temp12 != null">temp12,</if>
|
||||
<if test="humi12 != null">humi12,</if>
|
||||
<if test="raw != null">raw,</if>
|
||||
create_by,
|
||||
create_time,
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="imei != null and imei != ''">#{imei},</if>
|
||||
<if test="ts != null">#{ts},</if>
|
||||
<if test="time != null">#{time},</if>
|
||||
<if test="temp1 != null">#{temp1},</if>
|
||||
<if test="humi1 != null">#{humi1},</if>
|
||||
<if test="temp2 != null">#{temp2},</if>
|
||||
<if test="humi2 != null">#{humi2},</if>
|
||||
<if test="temp3 != null">#{temp3},</if>
|
||||
<if test="humi3 != null">#{humi3},</if>
|
||||
<if test="temp4 != null">#{temp4},</if>
|
||||
<if test="humi4 != null">#{humi4},</if>
|
||||
<if test="temp5 != null">#{temp5},</if>
|
||||
<if test="humi5 != null">#{humi5},</if>
|
||||
<if test="temp6 != null">#{temp6},</if>
|
||||
<if test="humi6 != null">#{humi6},</if>
|
||||
<if test="temp7 != null">#{temp7},</if>
|
||||
<if test="humi7 != null">#{humi7},</if>
|
||||
<if test="temp8 != null">#{temp8},</if>
|
||||
<if test="humi8 != null">#{humi8},</if>
|
||||
<if test="temp9 != null">#{temp9},</if>
|
||||
<if test="humi9 != null">#{humi9},</if>
|
||||
<if test="temp10 != null">#{temp10},</if>
|
||||
<if test="humi10 != null">#{humi10},</if>
|
||||
<if test="temp11 != null">#{temp11},</if>
|
||||
<if test="humi11 != null">#{humi11},</if>
|
||||
<if test="temp12 != null">#{temp12},</if>
|
||||
<if test="humi12 != null">#{humi12},</if>
|
||||
<if test="raw != null">#{raw},</if>
|
||||
#{createBy},
|
||||
#{createTime},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysSpecialDtuData" parameterType="SysSpecialDtuData">
|
||||
update sys_special_dtu_data
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="imei != null and imei != ''">imei = #{imei},</if>
|
||||
<if test="ts != null">ts = #{ts},</if>
|
||||
<if test="time != null">time = #{time},</if>
|
||||
<if test="temp1 != null">temp1 = #{temp1},</if>
|
||||
<if test="humi1 != null">humi1 = #{humi1},</if>
|
||||
<if test="temp2 != null">temp2 = #{temp2},</if>
|
||||
<if test="humi2 != null">humi2 = #{humi2},</if>
|
||||
<if test="temp3 != null">temp3 = #{temp3},</if>
|
||||
<if test="humi3 != null">humi3 = #{humi3},</if>
|
||||
<if test="temp4 != null">temp4 = #{temp4},</if>
|
||||
<if test="humi4 != null">humi4 = #{humi4},</if>
|
||||
<if test="temp5 != null">temp5 = #{temp5},</if>
|
||||
<if test="humi5 != null">humi5 = #{humi5},</if>
|
||||
<if test="temp6 != null">temp6 = #{temp6},</if>
|
||||
<if test="humi6 != null">humi6 = #{humi6},</if>
|
||||
<if test="temp7 != null">temp7 = #{temp7},</if>
|
||||
<if test="humi7 != null">humi7 = #{humi7},</if>
|
||||
<if test="temp8 != null">temp8 = #{temp8},</if>
|
||||
<if test="humi8 != null">humi8 = #{humi8},</if>
|
||||
<if test="temp9 != null">temp9 = #{temp9},</if>
|
||||
<if test="humi9 != null">humi9 = #{humi9},</if>
|
||||
<if test="temp10 != null">temp10 = #{temp10},</if>
|
||||
<if test="humi10 != null">humi10 = #{humi10},</if>
|
||||
<if test="temp11 != null">temp11 = #{temp11},</if>
|
||||
<if test="humi11 != null">humi11 = #{humi11},</if>
|
||||
<if test="temp12 != null">temp12 = #{temp12},</if>
|
||||
<if test="humi12 != null">humi12 = #{humi12},</if>
|
||||
<if test="raw != null">raw = #{raw},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysSpecialDtuDataById" parameterType="Long">
|
||||
delete from sys_special_dtu_data where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysSpecialDtuDataByIds" parameterType="String">
|
||||
delete from sys_special_dtu_data where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue