change - 测温电检报表

master
yinq 8 months ago
parent e544e2ab11
commit a42f80d1d1

@ -33,7 +33,7 @@ public class ElectricalInspectionController {
* @param paramMap
* @return
*/
@PostMapping("/electricalInspection")
@PostMapping("/electricalInspectionElectricalinspection")
public HashMap<String, String> getSAPMaterialData(@RequestBody Map paramMap) {
return electricalInspectionService.analysisElectricalInspectionData(paramMap);
}

@ -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,433 @@
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;
/**
* box_temperaturehistory
*
* @author Yinq
* @date 2024-03-13
*/
public class BoxTemperatureHistory extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
private Long objId;
/**
* 线
*/
@Excel(name = "线号")
private Long lineNo;
/**
*
*/
@Excel(name = "工位号")
private Long gongwno;
/**
*
*/
@Excel(name = "产品条码")
private String cpno;
/**
*
*/
@Excel(name = "产品型号")
private String cpmodel;
/**
*
*/
@Excel(name = "基准型号")
private String factorymodel;
/**
*
*/
@Excel(name = "工作电压")
private Long voltage;
/**
*
*/
@Excel(name = "测试通道")
private String point2;
/**
*
*/
@Excel(name = "计划测试时间")
private Long testtime;
/**
*
*/
@Excel(name = "实际测试时间")
private Long testedtime;
/**
*
*/
@Excel(name = "环温")
private Long etemp;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "开始测试时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date begindatetime;
/**
*
*/
@Excel(name = "测试结果")
private String cpresult;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "测试结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date enddatetime;
/**
*
*/
@Excel(name = "系统用户")
private String username;
/**
*
*/
@Excel(name = "第几次测试")
private Long testno;
/**
*
*/
@Excel(name = "温度数据")
private String tempMes;
/**
*
*/
@Excel(name = "功率数据")
private String powerMes;
/**
*
*/
@Excel(name = "部件测试数据")
private String partMes;
/**
* Y
*/
@Excel(name = "是否测试部件", readConverterExp = "”=Y”测试")
private String isorder;
/**
*
*/
@Excel(name = "低压启动测试时间")
private Long lowvTime;
/**
*
*/
@Excel(name = "低压启动标准下限")
private Long lowvPowermin;
/**
*
*/
@Excel(name = "低压启动标准上限")
private Long lowvPowermax;
/**
*
*/
@Excel(name = "低压启动实际采集值")
private Long lowvPowerfact;
/**
*
*/
@Excel(name = "低压启动测试电压")
private Long lowvoltage;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "同步时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date syncDatetime;
/**
*
*/
@Excel(name = "供电频率")
private Long frequency;
public void setObjId(Long objId) {
this.objId = objId;
}
public Long getObjId() {
return objId;
}
public void setLineNo(Long lineNo) {
this.lineNo = lineNo;
}
public Long getLineNo() {
return lineNo;
}
public void setGongwno(Long gongwno) {
this.gongwno = gongwno;
}
public Long getGongwno() {
return gongwno;
}
public void setCpno(String cpno) {
this.cpno = cpno;
}
public String getCpno() {
return cpno;
}
public void setCpmodel(String cpmodel) {
this.cpmodel = cpmodel;
}
public String getCpmodel() {
return cpmodel;
}
public void setFactorymodel(String factorymodel) {
this.factorymodel = factorymodel;
}
public String getFactorymodel() {
return factorymodel;
}
public void setVoltage(Long voltage) {
this.voltage = voltage;
}
public Long getVoltage() {
return voltage;
}
public void setPoint2(String point2) {
this.point2 = point2;
}
public String getPoint2() {
return point2;
}
public void setTesttime(Long testtime) {
this.testtime = testtime;
}
public Long getTesttime() {
return testtime;
}
public void setTestedtime(Long testedtime) {
this.testedtime = testedtime;
}
public Long getTestedtime() {
return testedtime;
}
public void setEtemp(Long etemp) {
this.etemp = etemp;
}
public Long getEtemp() {
return etemp;
}
public void setBegindatetime(Date begindatetime) {
this.begindatetime = begindatetime;
}
public Date getBegindatetime() {
return begindatetime;
}
public void setCpresult(String cpresult) {
this.cpresult = cpresult;
}
public String getCpresult() {
return cpresult;
}
public void setEnddatetime(Date enddatetime) {
this.enddatetime = enddatetime;
}
public Date getEnddatetime() {
return enddatetime;
}
public void setUsername(String username) {
this.username = username;
}
public String getUsername() {
return username;
}
public void setTestno(Long testno) {
this.testno = testno;
}
public Long getTestno() {
return testno;
}
public void setTempMes(String tempMes) {
this.tempMes = tempMes;
}
public String getTempMes() {
return tempMes;
}
public void setPowerMes(String powerMes) {
this.powerMes = powerMes;
}
public String getPowerMes() {
return powerMes;
}
public void setPartMes(String partMes) {
this.partMes = partMes;
}
public String getPartMes() {
return partMes;
}
public void setIsorder(String isorder) {
this.isorder = isorder;
}
public String getIsorder() {
return isorder;
}
public void setLowvTime(Long lowvTime) {
this.lowvTime = lowvTime;
}
public Long getLowvTime() {
return lowvTime;
}
public void setLowvPowermin(Long lowvPowermin) {
this.lowvPowermin = lowvPowermin;
}
public Long getLowvPowermin() {
return lowvPowermin;
}
public void setLowvPowermax(Long lowvPowermax) {
this.lowvPowermax = lowvPowermax;
}
public Long getLowvPowermax() {
return lowvPowermax;
}
public void setLowvPowerfact(Long lowvPowerfact) {
this.lowvPowerfact = lowvPowerfact;
}
public Long getLowvPowerfact() {
return lowvPowerfact;
}
public void setLowvoltage(Long lowvoltage) {
this.lowvoltage = lowvoltage;
}
public Long getLowvoltage() {
return lowvoltage;
}
public void setSyncDatetime(Date syncDatetime) {
this.syncDatetime = syncDatetime;
}
public Date getSyncDatetime() {
return syncDatetime;
}
public void setFrequency(Long frequency) {
this.frequency = frequency;
}
public Long getFrequency() {
return frequency;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("objId", getObjId())
.append("lineNo", getLineNo())
.append("gongwno", getGongwno())
.append("cpno", getCpno())
.append("cpmodel", getCpmodel())
.append("factorymodel", getFactorymodel())
.append("voltage", getVoltage())
.append("point2", getPoint2())
.append("testtime", getTesttime())
.append("testedtime", getTestedtime())
.append("etemp", getEtemp())
.append("begindatetime", getBegindatetime())
.append("cpresult", getCpresult())
.append("enddatetime", getEnddatetime())
.append("username", getUsername())
.append("remark", getRemark())
.append("testno", getTestno())
.append("tempMes", getTempMes())
.append("powerMes", getPowerMes())
.append("partMes", getPartMes())
.append("isorder", getIsorder())
.append("lowvTime", getLowvTime())
.append("lowvPowermin", getLowvPowermin())
.append("lowvPowermax", getLowvPowermax())
.append("lowvPowerfact", getLowvPowerfact())
.append("lowvoltage", getLowvoltage())
.append("syncDatetime", getSyncDatetime())
.append("frequency", getFrequency())
.toString();
}
}

@ -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>

@ -48,6 +48,7 @@
to_date(#{params.endRecordTime}, 'yyyy-mm-dd hh24:mi:ss')
</if>
</where>
order by recordtime
</select>
<select id="selectRecordElectricalInspectionByUuid" parameterType="String"

Loading…
Cancel
Save