change - 测温电检报表
parent
e544e2ab11
commit
a42f80d1d1
@ -0,0 +1,98 @@
|
||||
package com.aucma.report.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.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.BoxTemperatureHistory;
|
||||
import com.aucma.report.service.IBoxTemperatureHistoryService;
|
||||
import com.aucma.common.utils.poi.ExcelUtil;
|
||||
import com.aucma.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 测温记录报表Controller
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-03-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/report/temperatureHistory" )
|
||||
public class BoxTemperatureHistoryController extends BaseController {
|
||||
@Autowired
|
||||
private IBoxTemperatureHistoryService boxTemperatureHistoryService;
|
||||
|
||||
/**
|
||||
* 查询测温记录报表列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('report:temperatureHistory:list')" )
|
||||
@GetMapping("/list" )
|
||||
public TableDataInfo list(BoxTemperatureHistory boxTemperatureHistory) {
|
||||
startPage();
|
||||
List<BoxTemperatureHistory> list = boxTemperatureHistoryService.selectBoxTemperatureHistoryList(boxTemperatureHistory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出测温记录报表列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('report:temperatureHistory:export')" )
|
||||
@Log(title = "测温记录报表" , businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export" )
|
||||
public void export(HttpServletResponse response, BoxTemperatureHistory boxTemperatureHistory) {
|
||||
List<BoxTemperatureHistory> list = boxTemperatureHistoryService.selectBoxTemperatureHistoryList(boxTemperatureHistory);
|
||||
ExcelUtil<BoxTemperatureHistory> util = new ExcelUtil<BoxTemperatureHistory>(BoxTemperatureHistory. class);
|
||||
util.exportExcel(response, list, "测温记录报表数据" );
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取测温记录报表详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('report:temperatureHistory:query')" )
|
||||
@GetMapping(value = "/{objId}" )
|
||||
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
|
||||
return success(boxTemperatureHistoryService.selectBoxTemperatureHistoryByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增测温记录报表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:temperatureHistory:add')" )
|
||||
@Log(title = "测温记录报表" , businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody BoxTemperatureHistory boxTemperatureHistory) {
|
||||
return toAjax(boxTemperatureHistoryService.insertBoxTemperatureHistory(boxTemperatureHistory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改测温记录报表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:temperatureHistory:edit')" )
|
||||
@Log(title = "测温记录报表" , businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody BoxTemperatureHistory boxTemperatureHistory) {
|
||||
return toAjax(boxTemperatureHistoryService.updateBoxTemperatureHistory(boxTemperatureHistory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除测温记录报表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:temperatureHistory:remove')" )
|
||||
@Log(title = "测温记录报表" , businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}" )
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(boxTemperatureHistoryService.deleteBoxTemperatureHistoryByObjIds(objIds));
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.BoxTemperatureHistory;
|
||||
|
||||
/**
|
||||
* 测温记录报表Mapper接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-03-13
|
||||
*/
|
||||
public interface BoxTemperatureHistoryMapper
|
||||
{
|
||||
/**
|
||||
* 查询测温记录报表
|
||||
*
|
||||
* @param objId 测温记录报表主键
|
||||
* @return 测温记录报表
|
||||
*/
|
||||
public BoxTemperatureHistory selectBoxTemperatureHistoryByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询测温记录报表列表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 测温记录报表集合
|
||||
*/
|
||||
public List<BoxTemperatureHistory> selectBoxTemperatureHistoryList(BoxTemperatureHistory boxTemperatureHistory);
|
||||
|
||||
/**
|
||||
* 新增测温记录报表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBoxTemperatureHistory(BoxTemperatureHistory boxTemperatureHistory);
|
||||
|
||||
/**
|
||||
* 修改测温记录报表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBoxTemperatureHistory(BoxTemperatureHistory boxTemperatureHistory);
|
||||
|
||||
/**
|
||||
* 删除测温记录报表
|
||||
*
|
||||
* @param objId 测温记录报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBoxTemperatureHistoryByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除测温记录报表
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBoxTemperatureHistoryByObjIds(Long[] objIds);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.BoxTemperatureHistory;
|
||||
|
||||
/**
|
||||
* 测温记录报表Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-03-13
|
||||
*/
|
||||
public interface IBoxTemperatureHistoryService
|
||||
{
|
||||
/**
|
||||
* 查询测温记录报表
|
||||
*
|
||||
* @param objId 测温记录报表主键
|
||||
* @return 测温记录报表
|
||||
*/
|
||||
public BoxTemperatureHistory selectBoxTemperatureHistoryByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询测温记录报表列表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 测温记录报表集合
|
||||
*/
|
||||
public List<BoxTemperatureHistory> selectBoxTemperatureHistoryList(BoxTemperatureHistory boxTemperatureHistory);
|
||||
|
||||
/**
|
||||
* 新增测温记录报表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBoxTemperatureHistory(BoxTemperatureHistory boxTemperatureHistory);
|
||||
|
||||
/**
|
||||
* 修改测温记录报表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBoxTemperatureHistory(BoxTemperatureHistory boxTemperatureHistory);
|
||||
|
||||
/**
|
||||
* 批量删除测温记录报表
|
||||
*
|
||||
* @param objIds 需要删除的测温记录报表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBoxTemperatureHistoryByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除测温记录报表信息
|
||||
*
|
||||
* @param objId 测温记录报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBoxTemperatureHistoryByObjId(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.BoxTemperatureHistoryMapper;
|
||||
import com.aucma.report.domain.BoxTemperatureHistory;
|
||||
import com.aucma.report.service.IBoxTemperatureHistoryService;
|
||||
|
||||
/**
|
||||
* 测温记录报表Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-03-13
|
||||
*/
|
||||
@Service
|
||||
public class BoxTemperatureHistoryServiceImpl implements IBoxTemperatureHistoryService
|
||||
{
|
||||
@Autowired
|
||||
private BoxTemperatureHistoryMapper boxTemperatureHistoryMapper;
|
||||
|
||||
/**
|
||||
* 查询测温记录报表
|
||||
*
|
||||
* @param objId 测温记录报表主键
|
||||
* @return 测温记录报表
|
||||
*/
|
||||
@Override
|
||||
public BoxTemperatureHistory selectBoxTemperatureHistoryByObjId(Long objId)
|
||||
{
|
||||
return boxTemperatureHistoryMapper.selectBoxTemperatureHistoryByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询测温记录报表列表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 测温记录报表
|
||||
*/
|
||||
@Override
|
||||
public List<BoxTemperatureHistory> selectBoxTemperatureHistoryList(BoxTemperatureHistory boxTemperatureHistory)
|
||||
{
|
||||
return boxTemperatureHistoryMapper.selectBoxTemperatureHistoryList(boxTemperatureHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增测温记录报表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBoxTemperatureHistory(BoxTemperatureHistory boxTemperatureHistory)
|
||||
{
|
||||
return boxTemperatureHistoryMapper.insertBoxTemperatureHistory(boxTemperatureHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改测温记录报表
|
||||
*
|
||||
* @param boxTemperatureHistory 测温记录报表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBoxTemperatureHistory(BoxTemperatureHistory boxTemperatureHistory)
|
||||
{
|
||||
return boxTemperatureHistoryMapper.updateBoxTemperatureHistory(boxTemperatureHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除测温记录报表
|
||||
*
|
||||
* @param objIds 需要删除的测温记录报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBoxTemperatureHistoryByObjIds(Long[] objIds)
|
||||
{
|
||||
return boxTemperatureHistoryMapper.deleteBoxTemperatureHistoryByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除测温记录报表信息
|
||||
*
|
||||
* @param objId 测温记录报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBoxTemperatureHistoryByObjId(Long objId)
|
||||
{
|
||||
return boxTemperatureHistoryMapper.deleteBoxTemperatureHistoryByObjId(objId);
|
||||
}
|
||||
}
|
@ -0,0 +1,225 @@
|
||||
<?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.BoxTemperatureHistoryMapper">
|
||||
|
||||
<resultMap type="BoxTemperatureHistory" id="BoxTemperatureHistoryResult">
|
||||
<result property="objId" column="obj_id"/>
|
||||
<result property="lineNo" column="line_no"/>
|
||||
<result property="gongwno" column="gongwno"/>
|
||||
<result property="cpno" column="cpno"/>
|
||||
<result property="cpmodel" column="cpmodel"/>
|
||||
<result property="factorymodel" column="factorymodel"/>
|
||||
<result property="voltage" column="voltage"/>
|
||||
<result property="point2" column="point2"/>
|
||||
<result property="testtime" column="testtime"/>
|
||||
<result property="testedtime" column="testedtime"/>
|
||||
<result property="etemp" column="etemp"/>
|
||||
<result property="begindatetime" column="begindatetime"/>
|
||||
<result property="cpresult" column="cpresult"/>
|
||||
<result property="enddatetime" column="enddatetime"/>
|
||||
<result property="username" column="username"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="testno" column="testno"/>
|
||||
<result property="tempMes" column="temp_mes"/>
|
||||
<result property="powerMes" column="power_mes"/>
|
||||
<result property="partMes" column="part_mes"/>
|
||||
<result property="isorder" column="isorder"/>
|
||||
<result property="lowvTime" column="lowv_time"/>
|
||||
<result property="lowvPowermin" column="lowv_powermin"/>
|
||||
<result property="lowvPowermax" column="lowv_powermax"/>
|
||||
<result property="lowvPowerfact" column="lowv_powerfact"/>
|
||||
<result property="lowvoltage" column="lowvoltage"/>
|
||||
<result property="syncDatetime" column="sync_datetime"/>
|
||||
<result property="frequency" column="frequency"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBoxTemperatureHistoryVo">
|
||||
select obj_id,
|
||||
line_no,
|
||||
gongwno,
|
||||
cpno,
|
||||
cpmodel,
|
||||
factorymodel,
|
||||
voltage,
|
||||
point2,
|
||||
testtime,
|
||||
testedtime,
|
||||
etemp,
|
||||
begindatetime,
|
||||
cpresult,
|
||||
enddatetime,
|
||||
username,
|
||||
remark,
|
||||
testno,
|
||||
temp_mes,
|
||||
power_mes,
|
||||
part_mes,
|
||||
isorder,
|
||||
lowv_time,
|
||||
lowv_powermin,
|
||||
lowv_powermax,
|
||||
lowv_powerfact,
|
||||
lowvoltage,
|
||||
sync_datetime,
|
||||
frequency
|
||||
from C##AUCMA_SCADA.box_temperaturehistory
|
||||
</sql>
|
||||
|
||||
<select id="selectBoxTemperatureHistoryList" parameterType="BoxTemperatureHistory"
|
||||
resultMap="BoxTemperatureHistoryResult">
|
||||
<include refid="selectBoxTemperatureHistoryVo"/>
|
||||
<where>
|
||||
<if test="lineNo != null ">and line_no = #{lineNo}</if>
|
||||
<if test="gongwno != null ">and gongwno = #{gongwno}</if>
|
||||
<if test="cpno != null and cpno != ''">and cpno = #{cpno}</if>
|
||||
<if test="cpmodel != null and cpmodel != ''">and cpmodel = #{cpmodel}</if>
|
||||
<if test="factorymodel != null and factorymodel != ''">and factorymodel = #{factorymodel}</if>
|
||||
<if test="voltage != null ">and voltage = #{voltage}</if>
|
||||
<if test="point2 != null and point2 != ''">and point2 = #{point2}</if>
|
||||
<if test="testtime != null ">and testtime = #{testtime}</if>
|
||||
<if test="testedtime != null ">and testedtime = #{testedtime}</if>
|
||||
<if test="etemp != null ">and etemp = #{etemp}</if>
|
||||
<if test="params.beginBegindatetime != null and params.beginBegindatetime != '' and params.endBegindatetime != null and params.endBegindatetime != ''">
|
||||
and begindatetime between to_date(#{params.beginBegindatetime}, 'yyyy-mm-dd hh24:mi:ss') and
|
||||
to_date(#{params.endBegindatetime}, 'yyyy-mm-dd hh24:mi:ss')
|
||||
</if>
|
||||
<if test="cpresult != null and cpresult != ''">and cpresult = #{cpresult}</if>
|
||||
<if test="enddatetime != null ">and enddatetime = #{enddatetime}</if>
|
||||
<if test="username != null and username != ''">and username like concat(concat('%', #{username}), '%')</if>
|
||||
<if test="testno != null ">and testno = #{testno}</if>
|
||||
<if test="tempMes != null and tempMes != ''">and temp_mes = #{tempMes}</if>
|
||||
<if test="powerMes != null and powerMes != ''">and power_mes = #{powerMes}</if>
|
||||
<if test="partMes != null and partMes != ''">and part_mes = #{partMes}</if>
|
||||
<if test="isorder != null and isorder != ''">and isorder = #{isorder}</if>
|
||||
<if test="lowvTime != null ">and lowv_time = #{lowvTime}</if>
|
||||
<if test="lowvPowermin != null ">and lowv_powermin = #{lowvPowermin}</if>
|
||||
<if test="lowvPowermax != null ">and lowv_powermax = #{lowvPowermax}</if>
|
||||
<if test="lowvPowerfact != null ">and lowv_powerfact = #{lowvPowerfact}</if>
|
||||
<if test="lowvoltage != null ">and lowvoltage = #{lowvoltage}</if>
|
||||
<if test="syncDatetime != null ">and sync_datetime = #{syncDatetime}</if>
|
||||
<if test="frequency != null ">and frequency = #{frequency}</if>
|
||||
</where>
|
||||
order by begindatetime
|
||||
</select>
|
||||
|
||||
<select id="selectBoxTemperatureHistoryByObjId" parameterType="Long" resultMap="BoxTemperatureHistoryResult">
|
||||
<include refid="selectBoxTemperatureHistoryVo"/>
|
||||
where obj_id = #{objId}
|
||||
</select>
|
||||
|
||||
<insert id="insertBoxTemperatureHistory" parameterType="BoxTemperatureHistory">
|
||||
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
||||
SELECT seq_box_temperaturehistory.NEXTVAL as objId FROM DUAL
|
||||
</selectKey>
|
||||
insert into box_temperaturehistory
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">obj_id,</if>
|
||||
<if test="lineNo != null">line_no,</if>
|
||||
<if test="gongwno != null">gongwno,</if>
|
||||
<if test="cpno != null">cpno,</if>
|
||||
<if test="cpmodel != null">cpmodel,</if>
|
||||
<if test="factorymodel != null">factorymodel,</if>
|
||||
<if test="voltage != null">voltage,</if>
|
||||
<if test="point2 != null">point2,</if>
|
||||
<if test="testtime != null">testtime,</if>
|
||||
<if test="testedtime != null">testedtime,</if>
|
||||
<if test="etemp != null">etemp,</if>
|
||||
<if test="begindatetime != null">begindatetime,</if>
|
||||
<if test="cpresult != null">cpresult,</if>
|
||||
<if test="enddatetime != null">enddatetime,</if>
|
||||
<if test="username != null">username,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="testno != null">testno,</if>
|
||||
<if test="tempMes != null">temp_mes,</if>
|
||||
<if test="powerMes != null">power_mes,</if>
|
||||
<if test="partMes != null">part_mes,</if>
|
||||
<if test="isorder != null">isorder,</if>
|
||||
<if test="lowvTime != null">lowv_time,</if>
|
||||
<if test="lowvPowermin != null">lowv_powermin,</if>
|
||||
<if test="lowvPowermax != null">lowv_powermax,</if>
|
||||
<if test="lowvPowerfact != null">lowv_powerfact,</if>
|
||||
<if test="lowvoltage != null">lowvoltage,</if>
|
||||
<if test="syncDatetime != null">sync_datetime,</if>
|
||||
<if test="frequency != null">frequency,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">#{objId},</if>
|
||||
<if test="lineNo != null">#{lineNo},</if>
|
||||
<if test="gongwno != null">#{gongwno},</if>
|
||||
<if test="cpno != null">#{cpno},</if>
|
||||
<if test="cpmodel != null">#{cpmodel},</if>
|
||||
<if test="factorymodel != null">#{factorymodel},</if>
|
||||
<if test="voltage != null">#{voltage},</if>
|
||||
<if test="point2 != null">#{point2},</if>
|
||||
<if test="testtime != null">#{testtime},</if>
|
||||
<if test="testedtime != null">#{testedtime},</if>
|
||||
<if test="etemp != null">#{etemp},</if>
|
||||
<if test="begindatetime != null">#{begindatetime},</if>
|
||||
<if test="cpresult != null">#{cpresult},</if>
|
||||
<if test="enddatetime != null">#{enddatetime},</if>
|
||||
<if test="username != null">#{username},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="testno != null">#{testno},</if>
|
||||
<if test="tempMes != null">#{tempMes},</if>
|
||||
<if test="powerMes != null">#{powerMes},</if>
|
||||
<if test="partMes != null">#{partMes},</if>
|
||||
<if test="isorder != null">#{isorder},</if>
|
||||
<if test="lowvTime != null">#{lowvTime},</if>
|
||||
<if test="lowvPowermin != null">#{lowvPowermin},</if>
|
||||
<if test="lowvPowermax != null">#{lowvPowermax},</if>
|
||||
<if test="lowvPowerfact != null">#{lowvPowerfact},</if>
|
||||
<if test="lowvoltage != null">#{lowvoltage},</if>
|
||||
<if test="syncDatetime != null">#{syncDatetime},</if>
|
||||
<if test="frequency != null">#{frequency},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBoxTemperatureHistory" parameterType="BoxTemperatureHistory">
|
||||
update box_temperaturehistory
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="lineNo != null">line_no = #{lineNo},</if>
|
||||
<if test="gongwno != null">gongwno = #{gongwno},</if>
|
||||
<if test="cpno != null">cpno = #{cpno},</if>
|
||||
<if test="cpmodel != null">cpmodel = #{cpmodel},</if>
|
||||
<if test="factorymodel != null">factorymodel = #{factorymodel},</if>
|
||||
<if test="voltage != null">voltage = #{voltage},</if>
|
||||
<if test="point2 != null">point2 = #{point2},</if>
|
||||
<if test="testtime != null">testtime = #{testtime},</if>
|
||||
<if test="testedtime != null">testedtime = #{testedtime},</if>
|
||||
<if test="etemp != null">etemp = #{etemp},</if>
|
||||
<if test="begindatetime != null">begindatetime = #{begindatetime},</if>
|
||||
<if test="cpresult != null">cpresult = #{cpresult},</if>
|
||||
<if test="enddatetime != null">enddatetime = #{enddatetime},</if>
|
||||
<if test="username != null">username = #{username},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="testno != null">testno = #{testno},</if>
|
||||
<if test="tempMes != null">temp_mes = #{tempMes},</if>
|
||||
<if test="powerMes != null">power_mes = #{powerMes},</if>
|
||||
<if test="partMes != null">part_mes = #{partMes},</if>
|
||||
<if test="isorder != null">isorder = #{isorder},</if>
|
||||
<if test="lowvTime != null">lowv_time = #{lowvTime},</if>
|
||||
<if test="lowvPowermin != null">lowv_powermin = #{lowvPowermin},</if>
|
||||
<if test="lowvPowermax != null">lowv_powermax = #{lowvPowermax},</if>
|
||||
<if test="lowvPowerfact != null">lowv_powerfact = #{lowvPowerfact},</if>
|
||||
<if test="lowvoltage != null">lowvoltage = #{lowvoltage},</if>
|
||||
<if test="syncDatetime != null">sync_datetime = #{syncDatetime},</if>
|
||||
<if test="frequency != null">frequency = #{frequency},</if>
|
||||
</trim>
|
||||
where obj_id = #{objId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBoxTemperatureHistoryByObjId" parameterType="Long">
|
||||
delete
|
||||
from box_temperaturehistory
|
||||
where obj_id = #{objId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBoxTemperatureHistoryByObjIds" parameterType="String">
|
||||
delete from box_temperaturehistory where obj_id in
|
||||
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||
#{objId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue