add - 计量设备信息
parent
b73c8ab024
commit
0d9c44daf2
@ -0,0 +1,101 @@
|
|||||||
|
package com.aucma.base.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.base.domain.BaseMonitorInfo;
|
||||||
|
import com.aucma.base.service.IBaseMonitorInfoService;
|
||||||
|
import com.aucma.common.utils.poi.ExcelUtil;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量设备信息Controller
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2023-09-21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/base/monitorInfo")
|
||||||
|
public class BaseMonitorInfoController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private IBaseMonitorInfoService baseMonitorInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询计量设备信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:monitorInfo:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public AjaxResult list(BaseMonitorInfo baseMonitorInfo) {
|
||||||
|
List<BaseMonitorInfo> list = baseMonitorInfoService.selectBaseMonitorInfoList(baseMonitorInfo);
|
||||||
|
return success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出计量设备信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:monitorInfo:export')")
|
||||||
|
@Log(title = "计量设备信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, BaseMonitorInfo baseMonitorInfo) {
|
||||||
|
List<BaseMonitorInfo> list = baseMonitorInfoService.selectBaseMonitorInfoList(baseMonitorInfo);
|
||||||
|
ExcelUtil<BaseMonitorInfo> util = new ExcelUtil<BaseMonitorInfo>(BaseMonitorInfo.class);
|
||||||
|
util.exportExcel(response, list, "计量设备信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取计量设备信息详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:monitorInfo:query')")
|
||||||
|
@GetMapping(value = "/{objId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
|
||||||
|
return success(baseMonitorInfoService.selectBaseMonitorInfoByObjId(objId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增计量设备信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:monitorInfo:add')")
|
||||||
|
@Log(title = "计量设备信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody BaseMonitorInfo baseMonitorInfo) {
|
||||||
|
baseMonitorInfo.setCreatedBy(getUsername());
|
||||||
|
baseMonitorInfo.setCreatedTime(DateUtils.getNowDate());
|
||||||
|
return toAjax(baseMonitorInfoService.insertBaseMonitorInfo(baseMonitorInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改计量设备信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:monitorInfo:edit')")
|
||||||
|
@Log(title = "计量设备信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody BaseMonitorInfo baseMonitorInfo) {
|
||||||
|
baseMonitorInfo.setUpdatedBy(getUsername());
|
||||||
|
baseMonitorInfo.setUpdatedTime(DateUtils.getNowDate());
|
||||||
|
return toAjax(baseMonitorInfoService.updateBaseMonitorInfo(baseMonitorInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除计量设备信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('base:monitorInfo:remove')")
|
||||||
|
@Log(title = "计量设备信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{objIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||||
|
return toAjax(baseMonitorInfoService.deleteBaseMonitorInfoByObjIds(objIds));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.aucma.base.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.aucma.base.domain.BaseMonitorInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量设备信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2023-09-21
|
||||||
|
*/
|
||||||
|
public interface BaseMonitorInfoMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询计量设备信息
|
||||||
|
*
|
||||||
|
* @param objId 计量设备信息主键
|
||||||
|
* @return 计量设备信息
|
||||||
|
*/
|
||||||
|
public BaseMonitorInfo selectBaseMonitorInfoByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询计量设备信息列表
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 计量设备信息集合
|
||||||
|
*/
|
||||||
|
public List<BaseMonitorInfo> selectBaseMonitorInfoList(BaseMonitorInfo baseMonitorInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增计量设备信息
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改计量设备信息
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除计量设备信息
|
||||||
|
*
|
||||||
|
* @param objId 计量设备信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseMonitorInfoByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除计量设备信息
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseMonitorInfoByObjIds(Long[] objIds);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.aucma.base.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.aucma.base.domain.BaseMonitorInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量设备信息Service接口
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2023-09-21
|
||||||
|
*/
|
||||||
|
public interface IBaseMonitorInfoService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询计量设备信息
|
||||||
|
*
|
||||||
|
* @param objId 计量设备信息主键
|
||||||
|
* @return 计量设备信息
|
||||||
|
*/
|
||||||
|
public BaseMonitorInfo selectBaseMonitorInfoByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询计量设备信息列表
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 计量设备信息集合
|
||||||
|
*/
|
||||||
|
public List<BaseMonitorInfo> selectBaseMonitorInfoList(BaseMonitorInfo baseMonitorInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增计量设备信息
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改计量设备信息
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除计量设备信息
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的计量设备信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseMonitorInfoByObjIds(Long[] objIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除计量设备信息信息
|
||||||
|
*
|
||||||
|
* @param objId 计量设备信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseMonitorInfoByObjId(Long objId);
|
||||||
|
}
|
@ -0,0 +1,93 @@
|
|||||||
|
package com.aucma.base.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.aucma.base.mapper.BaseMonitorInfoMapper;
|
||||||
|
import com.aucma.base.domain.BaseMonitorInfo;
|
||||||
|
import com.aucma.base.service.IBaseMonitorInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量设备信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2023-09-21
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class BaseMonitorInfoServiceImpl implements IBaseMonitorInfoService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private BaseMonitorInfoMapper baseMonitorInfoMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询计量设备信息
|
||||||
|
*
|
||||||
|
* @param objId 计量设备信息主键
|
||||||
|
* @return 计量设备信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public BaseMonitorInfo selectBaseMonitorInfoByObjId(Long objId)
|
||||||
|
{
|
||||||
|
return baseMonitorInfoMapper.selectBaseMonitorInfoByObjId(objId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询计量设备信息列表
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 计量设备信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<BaseMonitorInfo> selectBaseMonitorInfoList(BaseMonitorInfo baseMonitorInfo)
|
||||||
|
{
|
||||||
|
return baseMonitorInfoMapper.selectBaseMonitorInfoList(baseMonitorInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增计量设备信息
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo)
|
||||||
|
{
|
||||||
|
return baseMonitorInfoMapper.insertBaseMonitorInfo(baseMonitorInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改计量设备信息
|
||||||
|
*
|
||||||
|
* @param baseMonitorInfo 计量设备信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo)
|
||||||
|
{
|
||||||
|
return baseMonitorInfoMapper.updateBaseMonitorInfo(baseMonitorInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除计量设备信息
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的计量设备信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBaseMonitorInfoByObjIds(Long[] objIds)
|
||||||
|
{
|
||||||
|
return baseMonitorInfoMapper.deleteBaseMonitorInfoByObjIds(objIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除计量设备信息信息
|
||||||
|
*
|
||||||
|
* @param objId 计量设备信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBaseMonitorInfoByObjId(Long objId)
|
||||||
|
{
|
||||||
|
return baseMonitorInfoMapper.deleteBaseMonitorInfoByObjId(objId);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,156 @@
|
|||||||
|
<?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.base.mapper.BaseMonitorInfoMapper">
|
||||||
|
|
||||||
|
<resultMap type="BaseMonitorInfo" id="BaseMonitorInfoResult">
|
||||||
|
<result property="objId" column="obj_id"/>
|
||||||
|
<result property="parentId" column="parent_id"/>
|
||||||
|
<result property="monitorCode" column="monitor_code"/>
|
||||||
|
<result property="monitorName" column="monitor_name"/>
|
||||||
|
<result property="monitorAddress" column="monitor_address"/>
|
||||||
|
<result property="monitorType" column="monitor_type"/>
|
||||||
|
<result property="monitorStatus" column="monitor_status"/>
|
||||||
|
<result property="pt" column="pt"/>
|
||||||
|
<result property="ct" column="ct"/>
|
||||||
|
<result property="monitorHierarchy" column="monitor_hierarchy"/>
|
||||||
|
<result property="monitorNetwork" column="monitor_network"/>
|
||||||
|
<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"/>
|
||||||
|
<result property="isAmmeter" column="is_ammeter"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectBaseMonitorInfoVo">
|
||||||
|
select obj_id,
|
||||||
|
parent_id,
|
||||||
|
monitor_code,
|
||||||
|
monitor_name,
|
||||||
|
monitor_address,
|
||||||
|
monitor_type,
|
||||||
|
monitor_status,
|
||||||
|
pt,
|
||||||
|
ct,
|
||||||
|
monitor_hierarchy,
|
||||||
|
monitor_network,
|
||||||
|
is_flag,
|
||||||
|
created_by,
|
||||||
|
created_time,
|
||||||
|
updated_by,
|
||||||
|
updated_time,
|
||||||
|
is_ammeter
|
||||||
|
from base_monitorinfo
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectBaseMonitorInfoList" parameterType="BaseMonitorInfo" resultMap="BaseMonitorInfoResult">
|
||||||
|
<include refid="selectBaseMonitorInfoVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="parentId != null ">and parent_id = #{parentId}</if>
|
||||||
|
<if test="monitorName != null and monitorName != ''">and monitor_name like concat(concat('%',
|
||||||
|
#{monitorName}), '%')
|
||||||
|
</if>
|
||||||
|
<if test="monitorAddress != null and monitorAddress != ''">and monitor_address = #{monitorAddress}</if>
|
||||||
|
<if test="monitorType != null ">and monitor_type = #{monitorType}</if>
|
||||||
|
<if test="monitorStatus != null ">and monitor_status = #{monitorStatus}</if>
|
||||||
|
<if test="pt != null ">and pt = #{pt}</if>
|
||||||
|
<if test="ct != null ">and ct = #{ct}</if>
|
||||||
|
<if test="monitorHierarchy != null ">and monitor_hierarchy = #{monitorHierarchy}</if>
|
||||||
|
<if test="monitorNetwork != null and monitorNetwork != ''">and monitor_network = #{monitorNetwork}</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>
|
||||||
|
<if test="isAmmeter != null ">and is_ammeter = #{isAmmeter}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectBaseMonitorInfoByObjId" parameterType="Long" resultMap="BaseMonitorInfoResult">
|
||||||
|
<include refid="selectBaseMonitorInfoVo"/>
|
||||||
|
where obj_id = #{objId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertBaseMonitorInfo" parameterType="BaseMonitorInfo">
|
||||||
|
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
||||||
|
SELECT seq_base_monitorinfo.NEXTVAL as objId FROM DUAL
|
||||||
|
</selectKey>
|
||||||
|
insert into base_monitorinfo
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="objId != null">obj_id,</if>
|
||||||
|
<if test="parentId != null">parent_id,</if>
|
||||||
|
<if test="monitorCode != null">monitor_code,</if>
|
||||||
|
<if test="monitorName != null">monitor_name,</if>
|
||||||
|
<if test="monitorAddress != null">monitor_address,</if>
|
||||||
|
<if test="monitorType != null">monitor_type,</if>
|
||||||
|
<if test="monitorStatus != null">monitor_status,</if>
|
||||||
|
<if test="pt != null">pt,</if>
|
||||||
|
<if test="ct != null">ct,</if>
|
||||||
|
<if test="monitorHierarchy != null">monitor_hierarchy,</if>
|
||||||
|
<if test="monitorNetwork != null">monitor_network,</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>
|
||||||
|
<if test="isAmmeter != null">is_ammeter,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="objId != null">#{objId},</if>
|
||||||
|
<if test="parentId != null">#{parentId},</if>
|
||||||
|
<if test="monitorCode != null">#{monitorCode},</if>
|
||||||
|
<if test="monitorName != null">#{monitorName},</if>
|
||||||
|
<if test="monitorAddress != null">#{monitorAddress},</if>
|
||||||
|
<if test="monitorType != null">#{monitorType},</if>
|
||||||
|
<if test="monitorStatus != null">#{monitorStatus},</if>
|
||||||
|
<if test="pt != null">#{pt},</if>
|
||||||
|
<if test="ct != null">#{ct},</if>
|
||||||
|
<if test="monitorHierarchy != null">#{monitorHierarchy},</if>
|
||||||
|
<if test="monitorNetwork != null">#{monitorNetwork},</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>
|
||||||
|
<if test="isAmmeter != null">#{isAmmeter},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateBaseMonitorInfo" parameterType="BaseMonitorInfo">
|
||||||
|
update base_monitorinfo
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||||
|
<if test="monitorCode != null">monitor_code = #{monitorCode},</if>
|
||||||
|
<if test="monitorName != null">monitor_name = #{monitorName},</if>
|
||||||
|
<if test="monitorAddress != null">monitor_address = #{monitorAddress},</if>
|
||||||
|
<if test="monitorType != null">monitor_type = #{monitorType},</if>
|
||||||
|
<if test="monitorStatus != null">monitor_status = #{monitorStatus},</if>
|
||||||
|
<if test="pt != null">pt = #{pt},</if>
|
||||||
|
<if test="ct != null">ct = #{ct},</if>
|
||||||
|
<if test="monitorHierarchy != null">monitor_hierarchy = #{monitorHierarchy},</if>
|
||||||
|
<if test="monitorNetwork != null">monitor_network = #{monitorNetwork},</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>
|
||||||
|
<if test="isAmmeter != null">is_ammeter = #{isAmmeter},</if>
|
||||||
|
</trim>
|
||||||
|
where obj_id = #{objId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteBaseMonitorInfoByObjId" parameterType="Long">
|
||||||
|
delete
|
||||||
|
from base_monitorinfo
|
||||||
|
where obj_id = #{objId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteBaseMonitorInfoByObjIds" parameterType="String">
|
||||||
|
delete from base_monitorinfo where obj_id in
|
||||||
|
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{objId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue