设备信息树后端
parent
0358650d0d
commit
71d171bf38
@ -0,0 +1,83 @@
|
||||
package com.aucma.base.domain;
|
||||
|
||||
import com.aucma.common.core.domain.entity.SysDept;
|
||||
import com.aucma.common.core.domain.entity.SysMenu;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* Treeselect树结构实体类
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class TreeSelects implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 节点ID */
|
||||
private Long id;
|
||||
|
||||
/** 节点名称 */
|
||||
private String label;
|
||||
|
||||
/** 子节点 */
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<TreeSelects> children;
|
||||
|
||||
public TreeSelects()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public TreeSelects(SysDept dept)
|
||||
{
|
||||
this.id = dept.getDeptId();
|
||||
this.label = dept.getDeptName();
|
||||
this.children = dept.getChildren().stream().map(TreeSelects::new).collect(Collectors.toList());
|
||||
}
|
||||
public TreeSelects(BaseMonitorInfo baseMonitorInfo){
|
||||
this.id = baseMonitorInfo.getObjId();
|
||||
this.label = baseMonitorInfo.getMonitorName();
|
||||
this.children = baseMonitorInfo.getChildren().stream().map(TreeSelects::new).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public TreeSelects(SysMenu menu)
|
||||
{
|
||||
this.id = menu.getMenuId();
|
||||
this.label = menu.getMenuName();
|
||||
this.children = menu.getChildren().stream().map(TreeSelects::new).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getLabel()
|
||||
{
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label)
|
||||
{
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public List<TreeSelects> getChildren()
|
||||
{
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<TreeSelects> children)
|
||||
{
|
||||
this.children = children;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,103 @@
|
||||
package com.aucma.report.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.aucma.common.utils.DateUtils;
|
||||
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.aucma.common.annotation.Log;
|
||||
import com.aucma.common.core.controller.BaseController;
|
||||
import com.aucma.common.core.domain.AjaxResult;
|
||||
import com.aucma.common.enums.BusinessType;
|
||||
import com.aucma.report.domain.ReportDayDnb;
|
||||
import com.aucma.report.service.IReportDayDnbService;
|
||||
import com.aucma.common.utils.poi.ExcelUtil;
|
||||
import com.aucma.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 电日耗报Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/report/DayDnb" )
|
||||
public class ReportDayDnbController extends BaseController {
|
||||
@Autowired
|
||||
private IReportDayDnbService reportDayDnbService;
|
||||
|
||||
/**
|
||||
* 查询电日耗报列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:DayDnb:list')" )
|
||||
@GetMapping("/list" )
|
||||
public TableDataInfo list(ReportDayDnb reportDayDnb) {
|
||||
startPage();
|
||||
List<ReportDayDnb> list = reportDayDnbService.selectReportDayDnbList(reportDayDnb);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出电日耗报列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:DayDnb:export')" )
|
||||
@Log(title = "电日耗报" , businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export" )
|
||||
public void export(HttpServletResponse response, ReportDayDnb reportDayDnb) {
|
||||
List<ReportDayDnb> list = reportDayDnbService.selectReportDayDnbList(reportDayDnb);
|
||||
ExcelUtil<ReportDayDnb> util = new ExcelUtil<ReportDayDnb>(ReportDayDnb. class);
|
||||
util.exportExcel(response, list, "电日耗报数据" );
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电日耗报详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:DayDnb:query')" )
|
||||
@GetMapping(value = "/{objId}" )
|
||||
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
|
||||
return success(reportDayDnbService.selectReportDayDnbByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电日耗报
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:DayDnb:add')" )
|
||||
@Log(title = "电日耗报" , businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ReportDayDnb reportDayDnb) {
|
||||
reportDayDnb.setCreatedBy(getUsername());
|
||||
reportDayDnb.setCreatedTime(DateUtils.getNowDate());
|
||||
return toAjax(reportDayDnbService.insertReportDayDnb(reportDayDnb));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电日耗报
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:DayDnb:edit')" )
|
||||
@Log(title = "电日耗报" , businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ReportDayDnb reportDayDnb) {
|
||||
reportDayDnb.setUpdatedBy(getUsername());
|
||||
reportDayDnb.setUpdatedTime(DateUtils.getNowDate());
|
||||
return toAjax(reportDayDnbService.updateReportDayDnb(reportDayDnb));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电日耗报
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:DayDnb:remove')" )
|
||||
@Log(title = "电日耗报" , businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}" )
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(reportDayDnbService.deleteReportDayDnbByObjIds(objIds));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
package com.aucma.report.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.aucma.common.utils.DateUtils;
|
||||
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.aucma.common.annotation.Log;
|
||||
import com.aucma.common.core.controller.BaseController;
|
||||
import com.aucma.common.core.domain.AjaxResult;
|
||||
import com.aucma.common.enums.BusinessType;
|
||||
import com.aucma.report.domain.ReportPointDnb;
|
||||
import com.aucma.report.service.IReportPointDnbService;
|
||||
import com.aucma.common.utils.poi.ExcelUtil;
|
||||
import com.aucma.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 电整点耗量报表Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/report/pointDnb" )
|
||||
public class ReportPointDnbController extends BaseController {
|
||||
@Autowired
|
||||
private IReportPointDnbService reportPointDnbService;
|
||||
|
||||
/**
|
||||
* 查询电整点耗量报表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:pointDnb:list')" )
|
||||
@GetMapping("/list" )
|
||||
public TableDataInfo list(ReportPointDnb reportPointDnb) {
|
||||
startPage();
|
||||
List<ReportPointDnb> list = reportPointDnbService.selectReportPointDnbList(reportPointDnb);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出电整点耗量报表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:pointDnb:export')" )
|
||||
@Log(title = "电整点耗量报表" , businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export" )
|
||||
public void export(HttpServletResponse response, ReportPointDnb reportPointDnb) {
|
||||
List<ReportPointDnb> list = reportPointDnbService.selectReportPointDnbList(reportPointDnb);
|
||||
ExcelUtil<ReportPointDnb> util = new ExcelUtil<ReportPointDnb>(ReportPointDnb. class);
|
||||
util.exportExcel(response, list, "电整点耗量报表数据" );
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电整点耗量报表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:pointDnb:query')" )
|
||||
@GetMapping(value = "/{objId}" )
|
||||
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
|
||||
return success(reportPointDnbService.selectReportPointDnbByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电整点耗量报表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:pointDnb:add')" )
|
||||
@Log(title = "电整点耗量报表" , businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ReportPointDnb reportPointDnb) {
|
||||
reportPointDnb.setCreatedBy(getUsername());
|
||||
reportPointDnb.setCreatedTime(DateUtils.getNowDate());
|
||||
return toAjax(reportPointDnbService.insertReportPointDnb(reportPointDnb));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电整点耗量报表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:pointDnb:edit')" )
|
||||
@Log(title = "电整点耗量报表" , businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ReportPointDnb reportPointDnb) {
|
||||
reportPointDnb.setUpdatedBy(getUsername());
|
||||
reportPointDnb.setUpdatedTime(DateUtils.getNowDate());
|
||||
return toAjax(reportPointDnbService.updateReportPointDnb(reportPointDnb));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电整点耗量报表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:pointDnb:remove')" )
|
||||
@Log(title = "电整点耗量报表" , businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}" )
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(reportPointDnbService.deleteReportPointDnbByObjIds(objIds));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,195 @@
|
||||
package com.aucma.report.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.aucma.common.annotation.Excel;
|
||||
import com.aucma.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 电日耗报对象 report_day_dnb
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
public class ReportDayDnb extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键标识 */
|
||||
private Long objId;
|
||||
|
||||
/** 计量设备编号 */
|
||||
@Excel(name = "计量设备编号")
|
||||
private String monitorCode;
|
||||
|
||||
/** 仪表值 */
|
||||
@Excel(name = "仪表值")
|
||||
private Long instrumentValue;
|
||||
|
||||
/** 耗量 */
|
||||
@Excel(name = "耗量")
|
||||
private Long expend;
|
||||
|
||||
/** 报表日期 */
|
||||
@Excel(name = "报表日期")
|
||||
private String reportDate;
|
||||
|
||||
/** 开始时间 */
|
||||
@Excel(name = "开始时间")
|
||||
private String beginTime;
|
||||
|
||||
/** 结束时间 */
|
||||
@Excel(name = "结束时间")
|
||||
private String endTime;
|
||||
|
||||
/** 是否标识 */
|
||||
@Excel(name = "是否标识")
|
||||
private Long isFlag;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createdBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdTime;
|
||||
|
||||
/** 更新人 */
|
||||
@Excel(name = "更新人")
|
||||
private String updatedBy;
|
||||
|
||||
/** 更新时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedTime;
|
||||
|
||||
public void setObjId(Long objId)
|
||||
{
|
||||
this.objId = objId;
|
||||
}
|
||||
|
||||
public Long getObjId()
|
||||
{
|
||||
return objId;
|
||||
}
|
||||
public void setMonitorCode(String monitorCode)
|
||||
{
|
||||
this.monitorCode = monitorCode;
|
||||
}
|
||||
|
||||
public String getMonitorCode()
|
||||
{
|
||||
return monitorCode;
|
||||
}
|
||||
public void setInstrumentValue(Long instrumentValue)
|
||||
{
|
||||
this.instrumentValue = instrumentValue;
|
||||
}
|
||||
|
||||
public Long getInstrumentValue()
|
||||
{
|
||||
return instrumentValue;
|
||||
}
|
||||
public void setExpend(Long expend)
|
||||
{
|
||||
this.expend = expend;
|
||||
}
|
||||
|
||||
public Long getExpend()
|
||||
{
|
||||
return expend;
|
||||
}
|
||||
public void setReportDate(String reportDate)
|
||||
{
|
||||
this.reportDate = reportDate;
|
||||
}
|
||||
|
||||
public String getReportDate()
|
||||
{
|
||||
return reportDate;
|
||||
}
|
||||
public void setBeginTime(String beginTime)
|
||||
{
|
||||
this.beginTime = beginTime;
|
||||
}
|
||||
|
||||
public String getBeginTime()
|
||||
{
|
||||
return beginTime;
|
||||
}
|
||||
public void setEndTime(String endTime)
|
||||
{
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getEndTime()
|
||||
{
|
||||
return endTime;
|
||||
}
|
||||
public void setIsFlag(Long isFlag)
|
||||
{
|
||||
this.isFlag = isFlag;
|
||||
}
|
||||
|
||||
public Long getIsFlag()
|
||||
{
|
||||
return isFlag;
|
||||
}
|
||||
public void setCreatedBy(String createdBy)
|
||||
{
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getCreatedBy()
|
||||
{
|
||||
return createdBy;
|
||||
}
|
||||
public void setCreatedTime(Date createdTime)
|
||||
{
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
public Date getCreatedTime()
|
||||
{
|
||||
return createdTime;
|
||||
}
|
||||
public void setUpdatedBy(String updatedBy)
|
||||
{
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
|
||||
public String getUpdatedBy()
|
||||
{
|
||||
return updatedBy;
|
||||
}
|
||||
public void setUpdatedTime(Date updatedTime)
|
||||
{
|
||||
this.updatedTime = updatedTime;
|
||||
}
|
||||
|
||||
public Date getUpdatedTime()
|
||||
{
|
||||
return updatedTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("objId",getObjId())
|
||||
.append("monitorCode",getMonitorCode())
|
||||
.append("instrumentValue",getInstrumentValue())
|
||||
.append("expend",getExpend())
|
||||
.append("reportDate",getReportDate())
|
||||
.append("beginTime",getBeginTime())
|
||||
.append("endTime",getEndTime())
|
||||
.append("isFlag",getIsFlag())
|
||||
.append("createdBy",getCreatedBy())
|
||||
.append("createdTime",getCreatedTime())
|
||||
.append("updatedBy",getUpdatedBy())
|
||||
.append("updatedTime",getUpdatedTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,207 @@
|
||||
package com.aucma.report.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.aucma.common.annotation.Excel;
|
||||
import com.aucma.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 电整点耗量报表对象 report_point_dnb
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
public class ReportPointDnb extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键标识
|
||||
*/
|
||||
@Excel(name = "主键标识")
|
||||
private Long objId;
|
||||
|
||||
/**
|
||||
* 计量设备编号
|
||||
*/
|
||||
@Excel(name = "计量设备编号")
|
||||
private String monitorCode;
|
||||
|
||||
/**
|
||||
* 仪表值
|
||||
*/
|
||||
@Excel(name = "仪表值")
|
||||
private Long instrumentValue;
|
||||
|
||||
/**
|
||||
* 耗量
|
||||
*/
|
||||
@Excel(name = "耗量")
|
||||
private Long expend;
|
||||
|
||||
/**
|
||||
* 记录时间
|
||||
*/
|
||||
@Excel(name = "记录时间")
|
||||
private String recordTime;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@Excel(name = "开始时间")
|
||||
private String beginTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@Excel(name = "结束时间")
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
* 是否标识
|
||||
*/
|
||||
@Excel(name = "是否标识")
|
||||
private Long isFlag;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Excel(name = "更新人")
|
||||
private String updatedBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedTime;
|
||||
|
||||
public void setObjId(Long objId) {
|
||||
this.objId = objId;
|
||||
}
|
||||
|
||||
public Long getObjId() {
|
||||
return objId;
|
||||
}
|
||||
|
||||
public void setMonitorCode(String monitorCode) {
|
||||
this.monitorCode = monitorCode;
|
||||
}
|
||||
|
||||
public String getMonitorCode() {
|
||||
return monitorCode;
|
||||
}
|
||||
|
||||
public void setInstrumentValue(Long instrumentValue) {
|
||||
this.instrumentValue = instrumentValue;
|
||||
}
|
||||
|
||||
public Long getInstrumentValue() {
|
||||
return instrumentValue;
|
||||
}
|
||||
|
||||
public void setExpend(Long expend) {
|
||||
this.expend = expend;
|
||||
}
|
||||
|
||||
public Long getExpend() {
|
||||
return expend;
|
||||
}
|
||||
|
||||
public void setRecordTime(String recordTime) {
|
||||
this.recordTime = recordTime;
|
||||
}
|
||||
|
||||
public String getRecordTime() {
|
||||
return recordTime;
|
||||
}
|
||||
|
||||
public void setBeginTime(String beginTime) {
|
||||
this.beginTime = beginTime;
|
||||
}
|
||||
|
||||
public String getBeginTime() {
|
||||
return beginTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setIsFlag(Long isFlag) {
|
||||
this.isFlag = isFlag;
|
||||
}
|
||||
|
||||
public Long getIsFlag() {
|
||||
return isFlag;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedTime(Date createdTime) {
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
public Date getCreatedTime() {
|
||||
return createdTime;
|
||||
}
|
||||
|
||||
public void setUpdatedBy(String updatedBy) {
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
|
||||
public String getUpdatedBy() {
|
||||
return updatedBy;
|
||||
}
|
||||
|
||||
public void setUpdatedTime(Date updatedTime) {
|
||||
this.updatedTime = updatedTime;
|
||||
}
|
||||
|
||||
public Date getUpdatedTime() {
|
||||
return updatedTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("objId", getObjId())
|
||||
.append("monitorCode", getMonitorCode())
|
||||
.append("instrumentValue", getInstrumentValue())
|
||||
.append("expend", getExpend())
|
||||
.append("recordTime", getRecordTime())
|
||||
.append("beginTime", getBeginTime())
|
||||
.append("endTime", getEndTime())
|
||||
.append("isFlag", getIsFlag())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("updatedBy", getUpdatedBy())
|
||||
.append("updatedTime", getUpdatedTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.ReportDayDnb;
|
||||
|
||||
/**
|
||||
* 电日耗报Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
public interface ReportDayDnbMapper
|
||||
{
|
||||
/**
|
||||
* 查询电日耗报
|
||||
*
|
||||
* @param objId 电日耗报主键
|
||||
* @return 电日耗报
|
||||
*/
|
||||
public ReportDayDnb selectReportDayDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询电日耗报列表
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 电日耗报集合
|
||||
*/
|
||||
public List<ReportDayDnb> selectReportDayDnbList(ReportDayDnb reportDayDnb);
|
||||
|
||||
/**
|
||||
* 新增电日耗报
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertReportDayDnb(ReportDayDnb reportDayDnb);
|
||||
|
||||
/**
|
||||
* 修改电日耗报
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateReportDayDnb(ReportDayDnb reportDayDnb);
|
||||
|
||||
/**
|
||||
* 删除电日耗报
|
||||
*
|
||||
* @param objId 电日耗报主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportDayDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除电日耗报
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportDayDnbByObjIds(Long[] objIds);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.ReportPointDnb;
|
||||
|
||||
/**
|
||||
* 电整点耗量报表Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
public interface ReportPointDnbMapper
|
||||
{
|
||||
/**
|
||||
* 查询电整点耗量报表
|
||||
*
|
||||
* @param objId 电整点耗量报表主键
|
||||
* @return 电整点耗量报表
|
||||
*/
|
||||
public ReportPointDnb selectReportPointDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询电整点耗量报表列表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 电整点耗量报表集合
|
||||
*/
|
||||
public List<ReportPointDnb> selectReportPointDnbList(ReportPointDnb reportPointDnb);
|
||||
|
||||
/**
|
||||
* 新增电整点耗量报表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertReportPointDnb(ReportPointDnb reportPointDnb);
|
||||
|
||||
/**
|
||||
* 修改电整点耗量报表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateReportPointDnb(ReportPointDnb reportPointDnb);
|
||||
|
||||
/**
|
||||
* 删除电整点耗量报表
|
||||
*
|
||||
* @param objId 电整点耗量报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportPointDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除电整点耗量报表
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportPointDnbByObjIds(Long[] objIds);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.ReportDayDnb;
|
||||
|
||||
/**
|
||||
* 电日耗报Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
public interface IReportDayDnbService
|
||||
{
|
||||
/**
|
||||
* 查询电日耗报
|
||||
*
|
||||
* @param objId 电日耗报主键
|
||||
* @return 电日耗报
|
||||
*/
|
||||
public ReportDayDnb selectReportDayDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询电日耗报列表
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 电日耗报集合
|
||||
*/
|
||||
public List<ReportDayDnb> selectReportDayDnbList(ReportDayDnb reportDayDnb);
|
||||
|
||||
/**
|
||||
* 新增电日耗报
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertReportDayDnb(ReportDayDnb reportDayDnb);
|
||||
|
||||
/**
|
||||
* 修改电日耗报
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateReportDayDnb(ReportDayDnb reportDayDnb);
|
||||
|
||||
/**
|
||||
* 批量删除电日耗报
|
||||
*
|
||||
* @param objIds 需要删除的电日耗报主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportDayDnbByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除电日耗报信息
|
||||
*
|
||||
* @param objId 电日耗报主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportDayDnbByObjId(Long objId);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.ReportPointDnb;
|
||||
|
||||
/**
|
||||
* 电整点耗量报表Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
public interface IReportPointDnbService
|
||||
{
|
||||
/**
|
||||
* 查询电整点耗量报表
|
||||
*
|
||||
* @param objId 电整点耗量报表主键
|
||||
* @return 电整点耗量报表
|
||||
*/
|
||||
public ReportPointDnb selectReportPointDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询电整点耗量报表列表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 电整点耗量报表集合
|
||||
*/
|
||||
public List<ReportPointDnb> selectReportPointDnbList(ReportPointDnb reportPointDnb);
|
||||
|
||||
/**
|
||||
* 新增电整点耗量报表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertReportPointDnb(ReportPointDnb reportPointDnb);
|
||||
|
||||
/**
|
||||
* 修改电整点耗量报表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateReportPointDnb(ReportPointDnb reportPointDnb);
|
||||
|
||||
/**
|
||||
* 批量删除电整点耗量报表
|
||||
*
|
||||
* @param objIds 需要删除的电整点耗量报表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportPointDnbByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除电整点耗量报表信息
|
||||
*
|
||||
* @param objId 电整点耗量报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportPointDnbByObjId(Long objId);
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.aucma.report.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.aucma.report.mapper.ReportDayDnbMapper;
|
||||
import com.aucma.report.domain.ReportDayDnb;
|
||||
import com.aucma.report.service.IReportDayDnbService;
|
||||
|
||||
/**
|
||||
* 电日耗报Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
@Service
|
||||
public class ReportDayDnbServiceImpl implements IReportDayDnbService
|
||||
{
|
||||
@Autowired
|
||||
private ReportDayDnbMapper reportDayDnbMapper;
|
||||
|
||||
/**
|
||||
* 查询电日耗报
|
||||
*
|
||||
* @param objId 电日耗报主键
|
||||
* @return 电日耗报
|
||||
*/
|
||||
@Override
|
||||
public ReportDayDnb selectReportDayDnbByObjId(Long objId)
|
||||
{
|
||||
return reportDayDnbMapper.selectReportDayDnbByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电日耗报列表
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 电日耗报
|
||||
*/
|
||||
@Override
|
||||
public List<ReportDayDnb> selectReportDayDnbList(ReportDayDnb reportDayDnb)
|
||||
{
|
||||
return reportDayDnbMapper.selectReportDayDnbList(reportDayDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电日耗报
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertReportDayDnb(ReportDayDnb reportDayDnb)
|
||||
{
|
||||
return reportDayDnbMapper.insertReportDayDnb(reportDayDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电日耗报
|
||||
*
|
||||
* @param reportDayDnb 电日耗报
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateReportDayDnb(ReportDayDnb reportDayDnb)
|
||||
{
|
||||
return reportDayDnbMapper.updateReportDayDnb(reportDayDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除电日耗报
|
||||
*
|
||||
* @param objIds 需要删除的电日耗报主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteReportDayDnbByObjIds(Long[] objIds)
|
||||
{
|
||||
return reportDayDnbMapper.deleteReportDayDnbByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电日耗报信息
|
||||
*
|
||||
* @param objId 电日耗报主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteReportDayDnbByObjId(Long objId)
|
||||
{
|
||||
return reportDayDnbMapper.deleteReportDayDnbByObjId(objId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.aucma.report.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.aucma.report.mapper.ReportPointDnbMapper;
|
||||
import com.aucma.report.domain.ReportPointDnb;
|
||||
import com.aucma.report.service.IReportPointDnbService;
|
||||
|
||||
/**
|
||||
* 电整点耗量报表Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
@Service
|
||||
public class ReportPointDnbServiceImpl implements IReportPointDnbService
|
||||
{
|
||||
@Autowired
|
||||
private ReportPointDnbMapper reportPointDnbMapper;
|
||||
|
||||
/**
|
||||
* 查询电整点耗量报表
|
||||
*
|
||||
* @param objId 电整点耗量报表主键
|
||||
* @return 电整点耗量报表
|
||||
*/
|
||||
@Override
|
||||
public ReportPointDnb selectReportPointDnbByObjId(Long objId)
|
||||
{
|
||||
return reportPointDnbMapper.selectReportPointDnbByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电整点耗量报表列表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 电整点耗量报表
|
||||
*/
|
||||
@Override
|
||||
public List<ReportPointDnb> selectReportPointDnbList(ReportPointDnb reportPointDnb)
|
||||
{
|
||||
return reportPointDnbMapper.selectReportPointDnbList(reportPointDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电整点耗量报表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertReportPointDnb(ReportPointDnb reportPointDnb)
|
||||
{
|
||||
return reportPointDnbMapper.insertReportPointDnb(reportPointDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电整点耗量报表
|
||||
*
|
||||
* @param reportPointDnb 电整点耗量报表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateReportPointDnb(ReportPointDnb reportPointDnb)
|
||||
{
|
||||
return reportPointDnbMapper.updateReportPointDnb(reportPointDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除电整点耗量报表
|
||||
*
|
||||
* @param objIds 需要删除的电整点耗量报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteReportPointDnbByObjIds(Long[] objIds)
|
||||
{
|
||||
return reportPointDnbMapper.deleteReportPointDnbByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电整点耗量报表信息
|
||||
*
|
||||
* @param objId 电整点耗量报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteReportPointDnbByObjId(Long objId)
|
||||
{
|
||||
return reportPointDnbMapper.deleteReportPointDnbByObjId(objId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
<?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.aucma.report.mapper.ReportDayDnbMapper">
|
||||
|
||||
<resultMap type="ReportDayDnb" id="ReportDayDnbResult">
|
||||
<result property="objId" column="obj_id" />
|
||||
<result property="monitorCode" column="monitor_code" />
|
||||
<result property="instrumentValue" column="instrument_value" />
|
||||
<result property="expend" column="expend" />
|
||||
<result property="reportDate" column="report_date" />
|
||||
<result property="beginTime" column="begin_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="isFlag" column="is_flag" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="updatedBy" column="updated_by" />
|
||||
<result property="updatedTime" column="updated_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectReportDayDnbVo">
|
||||
select obj_id, monitor_code, instrument_value, expend, report_date, begin_time, end_time, is_flag, created_by, created_time, updated_by, updated_time from report_day_dnb
|
||||
</sql>
|
||||
|
||||
<select id="selectReportDayDnbList" parameterType="ReportDayDnb" resultMap="ReportDayDnbResult">
|
||||
<include refid="selectReportDayDnbVo"/>
|
||||
<where>
|
||||
<if test="monitorCode != null and monitorCode != ''"> and monitor_code = #{monitorCode}</if>
|
||||
<if test="instrumentValue != null "> and instrument_value = #{instrumentValue}</if>
|
||||
<if test="expend != null "> and expend = #{expend}</if>
|
||||
<if test="reportDate != null and reportDate != ''"> and report_date = #{reportDate}</if>
|
||||
<if test="beginTime != null and beginTime != ''"> and begin_time = #{beginTime}</if>
|
||||
<if test="endTime != null and endTime != ''"> and end_time = #{endTime}</if>
|
||||
<if test="isFlag != null "> and is_flag = #{isFlag}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="updatedBy != null and updatedBy != ''"> and updated_by = #{updatedBy}</if>
|
||||
<if test="updatedTime != null "> and updated_time = #{updatedTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectReportDayDnbByObjId" parameterType="Long" resultMap="ReportDayDnbResult">
|
||||
<include refid="selectReportDayDnbVo"/>
|
||||
where obj_id = #{objId}
|
||||
</select>
|
||||
|
||||
<insert id="insertReportDayDnb" parameterType="ReportDayDnb">
|
||||
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
||||
SELECT seq_report_day_dnb.NEXTVAL as objId FROM DUAL
|
||||
</selectKey>
|
||||
insert into report_day_dnb
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">obj_id,</if>
|
||||
<if test="monitorCode != null">monitor_code,</if>
|
||||
<if test="instrumentValue != null">instrument_value,</if>
|
||||
<if test="expend != null">expend,</if>
|
||||
<if test="reportDate != null">report_date,</if>
|
||||
<if test="beginTime != null">begin_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="isFlag != null">is_flag,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="updatedBy != null">updated_by,</if>
|
||||
<if test="updatedTime != null">updated_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">#{objId},</if>
|
||||
<if test="monitorCode != null">#{monitorCode},</if>
|
||||
<if test="instrumentValue != null">#{instrumentValue},</if>
|
||||
<if test="expend != null">#{expend},</if>
|
||||
<if test="reportDate != null">#{reportDate},</if>
|
||||
<if test="beginTime != null">#{beginTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="isFlag != null">#{isFlag},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="updatedBy != null">#{updatedBy},</if>
|
||||
<if test="updatedTime != null">#{updatedTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateReportDayDnb" parameterType="ReportDayDnb">
|
||||
update report_day_dnb
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="monitorCode != null">monitor_code = #{monitorCode},</if>
|
||||
<if test="instrumentValue != null">instrument_value = #{instrumentValue},</if>
|
||||
<if test="expend != null">expend = #{expend},</if>
|
||||
<if test="reportDate != null">report_date = #{reportDate},</if>
|
||||
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="isFlag != null">is_flag = #{isFlag},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
|
||||
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
|
||||
</trim>
|
||||
where obj_id = #{objId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteReportDayDnbByObjId" parameterType="Long">
|
||||
delete from report_day_dnb where obj_id = #{objId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteReportDayDnbByObjIds" parameterType="String">
|
||||
delete from report_day_dnb where obj_id in
|
||||
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||
#{objId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,113 @@
|
||||
<?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.aucma.report.mapper.ReportPointDnbMapper">
|
||||
|
||||
<resultMap type="ReportPointDnb" id="ReportPointDnbResult">
|
||||
<result property="objId" column="obj_id" />
|
||||
<result property="monitorCode" column="monitor_code" />
|
||||
<result property="instrumentValue" column="instrument_value" />
|
||||
<result property="expend" column="expend" />
|
||||
<result property="recordTime" column="record_time" />
|
||||
<result property="beginTime" column="begin_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="isFlag" column="is_flag" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="updatedBy" column="updated_by" />
|
||||
<result property="updatedTime" column="updated_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectReportPointDnbVo">
|
||||
select obj_id, monitor_code, instrument_value, expend, record_time, begin_time, end_time, is_flag, created_by, created_time, updated_by, updated_time from report_point_dnb
|
||||
</sql>
|
||||
|
||||
<select id="selectReportPointDnbList" parameterType="ReportPointDnb" resultMap="ReportPointDnbResult">
|
||||
<include refid="selectReportPointDnbVo"/>
|
||||
<where>
|
||||
<if test="objId != null "> and obj_id = #{objId}</if>
|
||||
<if test="monitorCode != null and monitorCode != ''"> and monitor_code = #{monitorCode}</if>
|
||||
<if test="instrumentValue != null "> and instrument_value = #{instrumentValue}</if>
|
||||
<if test="expend != null "> and expend = #{expend}</if>
|
||||
<if test="recordTime != null and recordTime != ''"> and record_time = #{recordTime}</if>
|
||||
<if test="beginTime != null and beginTime != ''"> and begin_time = #{beginTime}</if>
|
||||
<if test="endTime != null and endTime != ''"> and end_time = #{endTime}</if>
|
||||
<if test="isFlag != null "> and is_flag = #{isFlag}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="updatedBy != null and updatedBy != ''"> and updated_by = #{updatedBy}</if>
|
||||
<if test="updatedTime != null "> and updated_time = #{updatedTime}</if>
|
||||
</where>
|
||||
order by OBJ_ID
|
||||
</select>
|
||||
|
||||
<select id="selectReportPointDnbByObjId" parameterType="Long" resultMap="ReportPointDnbResult">
|
||||
<include refid="selectReportPointDnbVo"/>
|
||||
where obj_id = #{objId}
|
||||
</select>
|
||||
|
||||
<insert id="insertReportPointDnb" parameterType="ReportPointDnb">
|
||||
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
||||
SELECT seq_base_deviceledger.NEXTVAL as objId FROM DUAL
|
||||
</selectKey>
|
||||
insert into report_point_dnb
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">obj_id,</if>
|
||||
<if test="monitorCode != null">monitor_code,</if>
|
||||
<if test="instrumentValue != null">instrument_value,</if>
|
||||
<if test="expend != null">expend,</if>
|
||||
<if test="recordTime != null">record_time,</if>
|
||||
<if test="beginTime != null">begin_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="isFlag != null">is_flag,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="updatedBy != null">updated_by,</if>
|
||||
<if test="updatedTime != null">updated_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">#{objId},</if>
|
||||
<if test="monitorCode != null">#{monitorCode},</if>
|
||||
<if test="instrumentValue != null">#{instrumentValue},</if>
|
||||
<if test="expend != null">#{expend},</if>
|
||||
<if test="recordTime != null">#{recordTime},</if>
|
||||
<if test="beginTime != null">#{beginTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="isFlag != null">#{isFlag},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="updatedBy != null">#{updatedBy},</if>
|
||||
<if test="updatedTime != null">#{updatedTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateReportPointDnb" parameterType="ReportPointDnb">
|
||||
update report_point_dnb
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="monitorCode != null">monitor_code = #{monitorCode},</if>
|
||||
<if test="instrumentValue != null">instrument_value = #{instrumentValue},</if>
|
||||
<if test="expend != null">expend = #{expend},</if>
|
||||
<if test="recordTime != null">record_time = #{recordTime},</if>
|
||||
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="isFlag != null">is_flag = #{isFlag},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
|
||||
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
|
||||
</trim>
|
||||
where obj_id = #{objId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteReportPointDnbByObjId" parameterType="Long">
|
||||
delete from report_point_dnb where obj_id = #{objId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteReportPointDnbByObjIds" parameterType="String">
|
||||
delete from report_point_dnb where obj_id in
|
||||
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||
#{objId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue