learshaw 2 месяцев назад
Родитель
Сommit
c4947b3545

+ 0 - 107
ems/ems-cloud/ems-server/src/main/java/com/ruoyi/ems/controller/AdmOpAlarmPolicyController.java

@@ -1,107 +0,0 @@
-package com.ruoyi.ems.controller;
-
-import com.huashe.common.domain.AjaxResult;
-import com.ruoyi.common.core.utils.poi.ExcelUtil;
-import com.ruoyi.common.core.web.controller.BaseController;
-import com.ruoyi.common.core.web.page.TableDataInfo;
-import com.ruoyi.common.log.annotation.Log;
-import com.ruoyi.common.log.enums.BusinessType;
-import com.ruoyi.common.security.annotation.RequiresPermissions;
-import com.ruoyi.ems.domain.AdmOpAlarmPolicy;
-import com.ruoyi.ems.service.IAdmOpAlarmPolicyService;
-import io.swagger.annotations.Api;
-import org.springframework.beans.factory.annotation.Autowired;
-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 ruoyi
- * @date 2024-08-26
- */
-@RestController
-@RequestMapping("/alarm")
-@Api(value = "AdmOpAlarmPolicyController", description = "能源设施告警策略")
-public class AdmOpAlarmPolicyController extends BaseController
-{
-    @Autowired
-    private IAdmOpAlarmPolicyService opAlarmPolicyService;
-
-    /**
-     * 查询能源设施告警策略列表
-     */
-    @RequiresPermissions("ems:alarm-strategy:list")
-    @GetMapping("/list")
-    public TableDataInfo list(AdmOpAlarmPolicy opAlarmPolicy)
-    {
-        startPage();
-        List<AdmOpAlarmPolicy> list = opAlarmPolicyService.selectAdmOpAlarmPolicyList(opAlarmPolicy);
-        return getDataTable(list);
-    }
-
-    /**
-     * 导出能源设施告警策略列表
-     */
-    @RequiresPermissions("ems:alarm-strategy:export")
-    @Log(title = "能源设施告警策略", businessType = BusinessType.EXPORT)
-    @PostMapping("/export")
-    public void export(HttpServletResponse response, AdmOpAlarmPolicy opAlarmPolicy)
-    {
-        List<AdmOpAlarmPolicy> list = opAlarmPolicyService.selectAdmOpAlarmPolicyList(opAlarmPolicy);
-        ExcelUtil<AdmOpAlarmPolicy> util = new ExcelUtil<AdmOpAlarmPolicy>(AdmOpAlarmPolicy.class);
-        util.exportExcel(response, list, "能源设施告警策略数据");
-    }
-
-    /**
-     * 获取能源设施告警策略详细信息
-     */
-    @RequiresPermissions("ems:alarm-strategy:query")
-    @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
-        return success(opAlarmPolicyService.selectAdmOpAlarmPolicyById(id));
-    }
-
-    /**
-     * 新增能源设施告警策略
-     */
-    @RequiresPermissions("ems:alarm-strategy:add")
-    @Log(title = "能源设施告警策略", businessType = BusinessType.INSERT)
-    @PostMapping
-    public AjaxResult add(@RequestBody AdmOpAlarmPolicy opAlarmPolicy)
-    {
-        return toAjax(opAlarmPolicyService.insertAdmOpAlarmPolicy(opAlarmPolicy));
-    }
-
-    /**
-     * 修改能源设施告警策略
-     */
-    @RequiresPermissions("ems:alarm-strategy:edit")
-    @Log(title = "能源设施告警策略", businessType = BusinessType.UPDATE)
-    @PutMapping
-    public AjaxResult edit(@RequestBody AdmOpAlarmPolicy opAlarmPolicy)
-    {
-        return toAjax(opAlarmPolicyService.updateAdmOpAlarmPolicy(opAlarmPolicy));
-    }
-
-    /**
-     * 删除能源设施告警策略
-     */
-    @RequiresPermissions("ems:alarm-strategy:remove")
-    @Log(title = "能源设施告警策略", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
-        return toAjax(opAlarmPolicyService.deleteAdmOpAlarmPolicyByIds(ids));
-    }
-}

+ 0 - 107
ems/ems-cloud/ems-server/src/main/java/com/ruoyi/ems/controller/EmsDeviceRbookController.java

@@ -1,107 +0,0 @@
-package com.ruoyi.ems.controller;
-
-import com.huashe.common.domain.AjaxResult;
-import com.ruoyi.common.core.utils.poi.ExcelUtil;
-import com.ruoyi.common.core.web.controller.BaseController;
-import com.ruoyi.common.core.web.page.TableDataInfo;
-import com.ruoyi.common.log.annotation.Log;
-import com.ruoyi.common.log.enums.BusinessType;
-import com.ruoyi.common.security.annotation.RequiresPermissions;
-import com.ruoyi.ems.domain.EmsDeviceRbook;
-import com.ruoyi.ems.service.IEmsDeviceRbookService;
-import io.swagger.annotations.Api;
-import org.springframework.beans.factory.annotation.Autowired;
-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 ruoyi
- * @date 2024-09-10
- */
-@RestController
-@RequestMapping("/device/rbook")
-@Api(value = "EmsDeviceRbookController", description = "设备台账")
-public class EmsDeviceRbookController extends BaseController
-{
-    @Autowired
-    private IEmsDeviceRbookService admEmsDeviceRbookService;
-
-    /**
-     * 查询设备台账列表
-     */
-    @RequiresPermissions("ems:rbook:list")
-    @GetMapping("/list")
-    public TableDataInfo list(EmsDeviceRbook rbook)
-    {
-        startPage();
-        List<EmsDeviceRbook> list = admEmsDeviceRbookService.selectDeviceRbookList(rbook);
-        return getDataTable(list);
-    }
-
-    /**
-     * 导出设备台账列表
-     */
-    @RequiresPermissions("ems:rbook:export")
-    @Log(title = "设备台账", businessType = BusinessType.EXPORT)
-    @PostMapping("/export")
-    public void export(HttpServletResponse response, EmsDeviceRbook rbook)
-    {
-        List<EmsDeviceRbook> list = admEmsDeviceRbookService.selectDeviceRbookList(rbook);
-        ExcelUtil<EmsDeviceRbook> util = new ExcelUtil<EmsDeviceRbook>(EmsDeviceRbook.class);
-        util.exportExcel(response, list, "设备台账数据");
-    }
-
-    /**
-     * 获取设备台账详细信息
-     */
-    @RequiresPermissions("ems:rbook:query")
-    @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
-        return success(admEmsDeviceRbookService.selectDeviceRbookById(id));
-    }
-
-    /**
-     * 新增设备台账
-     */
-    @RequiresPermissions("ems:rbook:add")
-    @Log(title = "设备台账", businessType = BusinessType.INSERT)
-    @PostMapping
-    public AjaxResult add(@RequestBody EmsDeviceRbook rbook)
-    {
-        return toAjax(admEmsDeviceRbookService.insertDeviceRbook(rbook));
-    }
-
-    /**
-     * 修改设备台账
-     */
-    @RequiresPermissions("ems:rbook:edit")
-    @Log(title = "设备台账", businessType = BusinessType.UPDATE)
-    @PutMapping
-    public AjaxResult edit(@RequestBody EmsDeviceRbook rbook)
-    {
-        return toAjax(admEmsDeviceRbookService.updateDeviceRbook(rbook));
-    }
-
-    /**
-     * 删除设备台账
-     */
-    @RequiresPermissions("ems:rbook:remove")
-    @Log(title = "设备台账", businessType = BusinessType.DELETE)
-    @DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
-        return toAjax(admEmsDeviceRbookService.deleteDeviceRbookByIds(ids));
-    }
-}

+ 0 - 185
ems/ems-core/src/main/java/com/ruoyi/ems/domain/AdmOpAlarmPolicy.java

@@ -1,185 +0,0 @@
-package com.ruoyi.ems.domain;
-
-import com.huashe.common.annotation.Excel;
-import com.huashe.common.domain.BaseEntity;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-
-/**
- * 能源设施告警策略对象 adm_op_alarm_policy
- * 
- * @author ruoyi
- * @date 2024-08-26
- */
-public class AdmOpAlarmPolicy extends BaseEntity
-{
-    private static final long serialVersionUID = 1L;
-
-    /** 序号 */
-    private Long id;
-
-    private String areaCode;
-
-    @Excel(name = "对象名称")
-    private String areaName;
-
-    /** 策略代码 */
-    @Excel(name = "策略代码")
-    private String policyCode;
-
-    /** 策略名称 */
-    @Excel(name = "策略名称")
-    private String policyName;
-
-    /** 告警对象类型 */
-    @Excel(name = "告警对象类型")
-    private Integer alarmObjType;
-
-    /** 告警对象指标 */
-    @Excel(name = "告警对象指标")
-    private String alarmObjIndex;
-
-    /** 告警规则 */
-    @Excel(name = "告警规则")
-    private Integer alarmRuleType;
-
-    /** 告警阈值 */
-    @Excel(name = "告警阈值")
-    private Double alarmThresholdValue;
-
-    /** 告警代码 */
-    @Excel(name = "告警代码")
-    private String alarmCode;
-
-    /** 告警描述 */
-    @Excel(name = "告警描述")
-    private String alarmMsg;
-
-    /** 告警类型 */
-    @Excel(name = "告警类型")
-    private Integer alarmType;
-
-    public void setId(Long id) 
-    {
-        this.id = id;
-    }
-
-    public Long getId() 
-    {
-        return id;
-    }
-
-    public String getAreaCode() {
-        return areaCode;
-    }
-
-    public void setAreaCode(String areaCode) {
-        this.areaCode = areaCode;
-    }
-
-    public String getAreaName() {
-        return areaName;
-    }
-
-    public void setAreaName(String areaName) {
-        this.areaName = areaName;
-    }
-
-    public void setPolicyCode(String policyCode)
-    {
-        this.policyCode = policyCode;
-    }
-
-    public String getPolicyCode() 
-    {
-        return policyCode;
-    }
-    public void setPolicyName(String policyName) 
-    {
-        this.policyName = policyName;
-    }
-
-    public String getPolicyName() 
-    {
-        return policyName;
-    }
-    public void setAlarmObjType(Integer alarmObjType) 
-    {
-        this.alarmObjType = alarmObjType;
-    }
-
-    public Integer getAlarmObjType() 
-    {
-        return alarmObjType;
-    }
-    public void setAlarmObjIndex(String alarmObjIndex) 
-    {
-        this.alarmObjIndex = alarmObjIndex;
-    }
-
-    public String getAlarmObjIndex() 
-    {
-        return alarmObjIndex;
-    }
-    public void setAlarmRuleType(Integer alarmRuleType) 
-    {
-        this.alarmRuleType = alarmRuleType;
-    }
-
-    public Integer getAlarmRuleType() 
-    {
-        return alarmRuleType;
-    }
-    public void setAlarmThresholdValue(Double alarmThresholdValue) 
-    {
-        this.alarmThresholdValue = alarmThresholdValue;
-    }
-
-    public Double getAlarmThresholdValue() 
-    {
-        return alarmThresholdValue;
-    }
-    public void setAlarmCode(String alarmCode) 
-    {
-        this.alarmCode = alarmCode;
-    }
-
-    public String getAlarmCode() 
-    {
-        return alarmCode;
-    }
-    public void setAlarmMsg(String alarmMsg) 
-    {
-        this.alarmMsg = alarmMsg;
-    }
-
-    public String getAlarmMsg() 
-    {
-        return alarmMsg;
-    }
-    public void setAlarmType(Integer alarmType) 
-    {
-        this.alarmType = alarmType;
-    }
-
-    public Integer getAlarmType() 
-    {
-        return alarmType;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("policyCode", getPolicyCode())
-            .append("policyName", getPolicyName())
-            .append("alarmObjType", getAlarmObjType())
-            .append("alarmObjIndex", getAlarmObjIndex())
-            .append("alarmRuleType", getAlarmRuleType())
-            .append("alarmThresholdValue", getAlarmThresholdValue())
-            .append("alarmCode", getAlarmCode())
-            .append("alarmMsg", getAlarmMsg())
-            .append("alarmType", getAlarmType())
-            .toString();
-    }
-}

+ 0 - 192
ems/ems-core/src/main/java/com/ruoyi/ems/domain/EmsDeviceRbook.java

@@ -1,192 +0,0 @@
-package com.ruoyi.ems.domain;
-
-import com.fasterxml.jackson.annotation.JsonFormat;
-import com.huashe.common.annotation.Excel;
-import com.huashe.common.domain.BaseEntity;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-
-import java.util.Date;
-
-/**
- * 设备台账对象 adm_ems_device_rbook
- *
- * @author ruoyi
- * @date 2024-09-10
- */
-public class EmsDeviceRbook extends BaseEntity
-{
-    private static final long serialVersionUID = 1L;
-
-    /** 序号 */
-    private Long id;
-
-    /** 记录编号 */
-    @Excel(name = "记录编号")
-    private String recordCode;
-
-    /** 区域编号 */
-    private String areaCode;
-
-    @Excel(name = "对象名称")
-    private String areaName;
-
-    /** 对象类型 1:设施 2:设备 */
-    @Excel(name = "对象类型 1:设施 2:设备")
-    private Long objType;
-
-    /** 对象代码 */
-    @Excel(name = "对象代码")
-    private String objCode;
-
-    /** 对象名称 */
-    @Excel(name = "对象名称")
-    private String objName;
-
-    /** 日期 yyyy-MM-dd HH:mm:ss */
-    @JsonFormat(pattern = "yyyy-MM-dd")
-    @Excel(name = "日期 yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
-    private Date recordTime;
-
-    /** 安装位置 */
-    @Excel(name = "安装位置")
-    private String insLocation;
-
-    /** 维护标题 */
-    @Excel(name = "维护标题")
-    private String maintainTitle;
-
-    /** 维护内容 */
-    @Excel(name = "维护内容")
-    private String maintainContent;
-
-    /** 维护人 */
-    @Excel(name = "维护人")
-    private String maintainPerson;
-
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public Long getId()
-    {
-        return id;
-    }
-    public void setRecordCode(String recordCode)
-    {
-        this.recordCode = recordCode;
-    }
-
-    public String getRecordCode()
-    {
-        return recordCode;
-    }
-
-    public String getAreaCode() {
-        return areaCode;
-    }
-
-    public void setAreaCode(String areaCode) {
-        this.areaCode = areaCode;
-    }
-
-    public String getAreaName() {
-        return areaName;
-    }
-
-    public void setAreaName(String areaName) {
-        this.areaName = areaName;
-    }
-
-    public void setObjType(Long objType)
-    {
-        this.objType = objType;
-    }
-
-    public Long getObjType()
-    {
-        return objType;
-    }
-    public void setObjCode(String objCode)
-    {
-        this.objCode = objCode;
-    }
-
-    public String getObjCode()
-    {
-        return objCode;
-    }
-    public void setObjName(String objName)
-    {
-        this.objName = objName;
-    }
-
-    public String getObjName()
-    {
-        return objName;
-    }
-    public void setRecordTime(Date recordTime)
-    {
-        this.recordTime = recordTime;
-    }
-
-    public Date getRecordTime()
-    {
-        return recordTime;
-    }
-    public void setInsLocation(String insLocation)
-    {
-        this.insLocation = insLocation;
-    }
-
-    public String getInsLocation()
-    {
-        return insLocation;
-    }
-    public void setMaintainTitle(String maintainTitle)
-    {
-        this.maintainTitle = maintainTitle;
-    }
-
-    public String getMaintainTitle()
-    {
-        return maintainTitle;
-    }
-    public void setMaintainContent(String maintainContent)
-    {
-        this.maintainContent = maintainContent;
-    }
-
-    public String getMaintainContent()
-    {
-        return maintainContent;
-    }
-    public void setMaintainPerson(String maintainPerson)
-    {
-        this.maintainPerson = maintainPerson;
-    }
-
-    public String getMaintainPerson()
-    {
-        return maintainPerson;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-                .append("id", getId())
-                .append("recordCode", getRecordCode())
-                .append("objType", getObjType())
-                .append("objCode", getObjCode())
-                .append("objName", getObjName())
-                .append("recordTime", getRecordTime())
-                .append("insLocation", getInsLocation())
-                .append("maintainTitle", getMaintainTitle())
-                .append("maintainContent", getMaintainContent())
-                .append("maintainPerson", getMaintainPerson())
-                .append("createTime", getCreateTime())
-                .append("updateTime", getUpdateTime())
-                .toString();
-    }
-}

+ 0 - 61
ems/ems-core/src/main/java/com/ruoyi/ems/mapper/EmsDeviceRbookMapper.java

@@ -1,61 +0,0 @@
-package com.ruoyi.ems.mapper;
-
-import com.ruoyi.ems.domain.EmsDeviceRbook;
-
-import java.util.List;
-
-/**
- * 设备台账Mapper接口
- *
- * @author ruoyi
- * @date 2024-09-10
- */
-public interface EmsDeviceRbookMapper {
-    /**
-     * 查询设备台账
-     *
-     * @param id 设备台账主键
-     * @return 设备台账
-     */
-    EmsDeviceRbook selectDeviceRbookById(Long id);
-
-    /**
-     * 查询设备台账列表
-     *
-     * @param deviceRbook 设备台账
-     * @return 设备台账集合
-     */
-    List<EmsDeviceRbook> selectDeviceRbookList(EmsDeviceRbook deviceRbook);
-
-    /**
-     * 新增设备台账
-     *
-     * @param deviceRbook 设备台账
-     * @return 结果
-     */
-    int insertDeviceRbook(EmsDeviceRbook deviceRbook);
-
-    /**
-     * 修改设备台账
-     *
-     * @param deviceRbook 设备台账
-     * @return 结果
-     */
-    int updateDeviceRbook(EmsDeviceRbook deviceRbook);
-
-    /**
-     * 删除设备台账
-     *
-     * @param id 设备台账主键
-     * @return 结果
-     */
-    int deleteDeviceRbookById(Long id);
-
-    /**
-     * 批量删除设备台账
-     *
-     * @param ids 需要删除的数据主键集合
-     * @return 结果
-     */
-    int deleteDeviceRbookByIds(Long[] ids);
-}

+ 0 - 61
ems/ems-core/src/main/java/com/ruoyi/ems/service/IEmsDeviceRbookService.java

@@ -1,61 +0,0 @@
-package com.ruoyi.ems.service;
-
-import com.ruoyi.ems.domain.EmsDeviceRbook;
-
-import java.util.List;
-
-/**
- * 设备台账Service接口
- *
- * @author ruoyi
- * @date 2024-09-10
- */
-public interface IEmsDeviceRbookService {
-    /**
-     * 查询设备台账
-     *
-     * @param id 设备台账主键
-     * @return 设备台账
-     */
-    EmsDeviceRbook selectDeviceRbookById(Long id);
-
-    /**
-     * 查询设备台账列表
-     *
-     * @param deviceRbook 设备台账
-     * @return 设备台账集合
-     */
-    List<EmsDeviceRbook> selectDeviceRbookList(EmsDeviceRbook deviceRbook);
-
-    /**
-     * 新增设备台账
-     *
-     * @param deviceRbook 设备台账
-     * @return 结果
-     */
-    int insertDeviceRbook(EmsDeviceRbook deviceRbook);
-
-    /**
-     * 修改设备台账
-     *
-     * @param deviceRbook 设备台账
-     * @return 结果
-     */
-    int updateDeviceRbook(EmsDeviceRbook deviceRbook);
-
-    /**
-     * 批量删除设备台账
-     *
-     * @param ids 需要删除的设备台账主键集合
-     * @return 结果
-     */
-    int deleteDeviceRbookByIds(Long[] ids);
-
-    /**
-     * 删除设备台账信息
-     *
-     * @param id 设备台账主键
-     * @return 结果
-     */
-    int deleteDeviceRbookById(Long id);
-}

+ 0 - 87
ems/ems-core/src/main/java/com/ruoyi/ems/service/impl/EmsDeviceRbookServiceImpl.java

@@ -1,87 +0,0 @@
-package com.ruoyi.ems.service.impl;
-
-import com.ruoyi.ems.domain.EmsDeviceRbook;
-import com.ruoyi.ems.mapper.EmsDeviceRbookMapper;
-import com.ruoyi.ems.service.IEmsDeviceRbookService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-/**
- * 设备台账Service业务层处理
- *
- * @author ruoyi
- * @date 2024-09-10
- */
-@Service
-public class EmsDeviceRbookServiceImpl implements IEmsDeviceRbookService {
-    @Autowired
-    private EmsDeviceRbookMapper deviceRbookMapper;
-
-    /**
-     * 查询设备台账
-     *
-     * @param id 设备台账主键
-     * @return 设备台账
-     */
-    @Override
-    public EmsDeviceRbook selectDeviceRbookById(Long id) {
-        return deviceRbookMapper.selectDeviceRbookById(id);
-    }
-
-    /**
-     * 查询设备台账列表
-     *
-     * @param deviceRbook 设备台账
-     * @return 设备台账
-     */
-    @Override
-    public List<EmsDeviceRbook> selectDeviceRbookList(EmsDeviceRbook deviceRbook) {
-        return deviceRbookMapper.selectDeviceRbookList(deviceRbook);
-    }
-
-    /**
-     * 新增设备台账
-     *
-     * @param deviceRbook 设备台账
-     * @return 结果
-     */
-    @Override
-    public int insertDeviceRbook(EmsDeviceRbook deviceRbook) {
-        return deviceRbookMapper.insertDeviceRbook(deviceRbook);
-    }
-
-    /**
-     * 修改设备台账
-     *
-     * @param deviceRbook 设备台账
-     * @return 结果
-     */
-    @Override
-    public int updateDeviceRbook(EmsDeviceRbook deviceRbook) {
-        return deviceRbookMapper.updateDeviceRbook(deviceRbook);
-    }
-
-    /**
-     * 批量删除设备台账
-     *
-     * @param ids 需要删除的设备台账主键
-     * @return 结果
-     */
-    @Override
-    public int deleteDeviceRbookByIds(Long[] ids) {
-        return deviceRbookMapper.deleteDeviceRbookByIds(ids);
-    }
-
-    /**
-     * 删除设备台账信息
-     *
-     * @param id 设备台账主键
-     * @return 结果
-     */
-    @Override
-    public int deleteDeviceRbookById(Long id) {
-        return deviceRbookMapper.deleteDeviceRbookById(id);
-    }
-}

+ 0 - 113
ems/ems-core/src/main/resources/mapper/ems/EmsDeviceRbookMapper.xml

@@ -1,113 +0,0 @@
-<?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.ruoyi.ems.mapper.EmsDeviceRbookMapper">
-    <resultMap type="com.ruoyi.ems.domain.EmsDeviceRbook" id="deviceRbookResult">
-        <result property="id" column="id"/>
-        <result property="recordCode" column="record_code"/>
-        <result property="areaCode" column="area_code"/>
-        <result property="areaName" column="area_name"/>
-        <result property="objType" column="obj_type"/>
-        <result property="objCode" column="obj_code"/>
-        <result property="objName" column="obj_name"/>
-        <result property="recordTime" column="record_time"/>
-        <result property="insLocation" column="ins_location"/>
-        <result property="maintainTitle" column="maintain_title"/>
-        <result property="maintainContent" column="maintain_content"/>
-        <result property="maintainPerson" column="maintain_person"/>
-        <result property="createTime" column="create_time"/>
-        <result property="updateTime" column="update_time"/>
-    </resultMap>
-    <sql id="selectDeviceRbookVo">
-        select id,
-               record_code,
-               area_code,
-               obj_type,
-               obj_code,
-               obj_name,
-               record_time,
-               ins_location,
-               maintain_title,
-               maintain_content,
-               maintain_person,
-               create_time,
-               update_time
-        from adm_ems_device_rbook
-    </sql>
-    <select id="selectDeviceRbookList" parameterType="com.ruoyi.ems.domain.EmsDeviceRbook" resultMap="deviceRbookResult">
-        select
-            r.id, r.record_code, r.area_code, a.area_name, r.obj_type, r.obj_code, r.obj_name, r.record_time, r.ins_location, r.maintain_title, r.maintain_content, r.maintain_person, r.create_time, r.update_time
-        from adm_ems_device_rbook r
-            left join adm_area a on r.area_code = a.area_code
-        <where>
-            <if test="areaCode != null and areaCode != '' and areaCode != '-1'">and r.area_code= #{areaCode}</if>
-            <if test="objType != null "> and r.obj_type = #{objType}</if>
-            <if test="objName != null and objName != ''"> and r.obj_name like concat('%', #{objName}, '%')</if>
-            <if test="startRecTime != null  and startRecTime != '' and endRecTime != null and endRecTime !=''">
-                and r.record_time &gt;= #{startRecTime} and r.record_time &lt;= #{endRecTime}
-            </if>
-        </where>
-    </select>
-    <select id="selectDeviceRbookById" parameterType="Long" resultMap="deviceRbookResult">
-        <include refid="selectDeviceRbookVo"/>
-        where id = #{id}
-    </select>
-    <insert id="insertDeviceRbook" parameterType="com.ruoyi.ems.domain.EmsDeviceRbook" useGeneratedKeys="true" keyProperty="id">
-        insert into adm_ems_device_rbook
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="recordCode != null and recordCode != ''">record_code,</if>
-            <if test="areaCode != null and areaCode != ''">area_code,</if>
-            <if test="objType != null">obj_type,</if>
-            <if test="objCode != null and objCode != ''">obj_code,</if>
-            <if test="objName != null">obj_name,</if>
-            <if test="recordTime != null">record_time,</if>
-            <if test="insLocation != null">ins_location,</if>
-            <if test="maintainTitle != null and maintainTitle != ''">maintain_title,</if>
-            <if test="maintainContent != null">maintain_content,</if>
-            <if test="maintainPerson != null">maintain_person,</if>
-            <if test="createTime != null">create_time,</if>
-            <if test="updateTime != null">update_time,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="recordCode != null and recordCode != ''">#{recordCode},</if>
-            <if test="areaCode != null and areaCode != ''">#{areaCode},</if>
-            <if test="objType != null">#{objType},</if>
-            <if test="objCode != null and objCode != ''">#{objCode},</if>
-            <if test="objName != null">#{objName},</if>
-            <if test="recordTime != null">#{recordTime},</if>
-            <if test="insLocation != null">#{insLocation},</if>
-            <if test="maintainTitle != null and maintainTitle != ''">#{maintainTitle},</if>
-            <if test="maintainContent != null">#{maintainContent},</if>
-            <if test="maintainPerson != null">#{maintainPerson},</if>
-            <if test="createTime != null">#{createTime},</if>
-            <if test="updateTime != null">#{updateTime},</if>
-        </trim>
-    </insert>
-    <update id="updateDeviceRbook" parameterType="com.ruoyi.ems.domain.EmsDeviceRbook">
-        update adm_ems_device_rbook
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="recordCode != null and recordCode != ''">record_code = #{recordCode},</if>
-            <if test="areaCode != null and areaCode != ''">area_code = #{areaCode},</if>
-            <if test="objType != null">obj_type = #{objType},</if>
-            <if test="objCode != null and objCode != ''">obj_code = #{objCode},</if>
-            <if test="objName != null">obj_name = #{objName},</if>
-            <if test="objName != null">obj_name = #{objName},</if>
-            <if test="recordTime != null">record_time = #{recordTime},</if>
-            <if test="insLocation != null">ins_location = #{insLocation},</if>
-            <if test="maintainTitle != null and maintainTitle != ''">maintain_title = #{maintainTitle},</if>
-            <if test="maintainContent != null">maintain_content = #{maintainContent},</if>
-            <if test="maintainPerson != null">maintain_person = #{maintainPerson},</if>
-            <if test="createTime != null">create_time = #{createTime},</if>
-            <if test="updateTime != null">update_time = #{updateTime},</if>
-        </trim>
-        where id = #{id}
-    </update>
-    <delete id="deleteDeviceRbookById" parameterType="Long">
-        delete from adm_ems_device_rbook where id = #{id}
-    </delete>
-    <delete id="deleteDeviceRbookByIds" parameterType="String">
-        delete from adm_ems_device_rbook where id in
-        <foreach item="id" collection="array" open="(" separator="," close=")"> #{id} </foreach>
-    </delete>
-</mapper>