change - 箱体发泡记录

master
yinq 10 months ago
parent 00bd8e95e7
commit 0077e26cc6

@ -0,0 +1,101 @@
package com.aucma.report.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.aucma.common.utils.DateUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.aucma.common.annotation.Log;
import com.aucma.common.core.controller.BaseController;
import com.aucma.common.core.domain.AjaxResult;
import com.aucma.common.enums.BusinessType;
import com.aucma.report.domain.BoxLastShotRecord;
import com.aucma.report.service.IBoxLastShotRecordService;
import com.aucma.common.utils.poi.ExcelUtil;
import com.aucma.common.core.page.TableDataInfo;
/**
* Controller
*
* @author Yinq
* @date 2024-01-12
*/
@RestController
@RequestMapping("/report/lastShotRecord" )
public class BoxLastShotRecordController extends BaseController {
@Autowired
private IBoxLastShotRecordService boxLastShotRecordService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:lastShotRecord:list')" )
@GetMapping("/list" )
public TableDataInfo list(BoxLastShotRecord boxLastShotRecord) {
startPage();
List<BoxLastShotRecord> list = boxLastShotRecordService.selectBoxLastShotRecordList(boxLastShotRecord);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:lastShotRecord:export')" )
@Log(title = "箱体发泡注料记录报表" , businessType = BusinessType.EXPORT)
@PostMapping("/export" )
public void export(HttpServletResponse response, BoxLastShotRecord boxLastShotRecord) {
List<BoxLastShotRecord> list = boxLastShotRecordService.selectBoxLastShotRecordList(boxLastShotRecord);
ExcelUtil<BoxLastShotRecord> util = new ExcelUtil<BoxLastShotRecord>(BoxLastShotRecord. class);
util.exportExcel(response, list, "箱体发泡注料记录报表数据" );
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:lastShotRecord:query')" )
@GetMapping(value = "/{objId}" )
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
return success(boxLastShotRecordService.selectBoxLastShotRecordByObjId(objId));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:lastShotRecord:add')" )
@Log(title = "箱体发泡注料记录报表" , businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BoxLastShotRecord boxLastShotRecord) {
return toAjax(boxLastShotRecordService.insertBoxLastShotRecord(boxLastShotRecord));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:lastShotRecord:edit')" )
@Log(title = "箱体发泡注料记录报表" , businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BoxLastShotRecord boxLastShotRecord) {
return toAjax(boxLastShotRecordService.updateBoxLastShotRecord(boxLastShotRecord));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('report:lastShotRecord:remove')" )
@Log(title = "箱体发泡注料记录报表" , businessType = BusinessType.DELETE)
@DeleteMapping("/{objIds}" )
public AjaxResult remove(@PathVariable Long[] objIds) {
return toAjax(boxLastShotRecordService.deleteBoxLastShotRecordByObjIds(objIds));
}
}

@ -0,0 +1,485 @@
package com.aucma.report.domain;
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_lastshotrecord
*
* @author Yinq
* @date 2024-01-12
*/
public class BoxLastShotRecord extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
private Long objId;
/**
*
*/
@Excel(name = "所属系统")
private String system;
/**
*
*/
@Excel(name = "枪编号")
private String gunCode;
private String productLineCode;
/**
* 线
*/
@Excel(name = "产线名称")
private String productLineName;
private String stationNumber;
/**
*
*/
@Excel(name = "工位名称")
private String stationName;
/**
* POL
*/
@Excel(name = "枪POL注料温度")
private String polTemp;
/**
* POL
*/
@Excel(name = "枪POL注料压力")
private String polHp;
/**
* POL
*/
@Excel(name = "枪POL注料流量")
private String polVol;
/**
* POL
*/
@Excel(name = "枪POL原料用量")
private String polUsage;
/**
* ISO
*/
@Excel(name = "枪ISO注料温度")
private String isoTemp;
/**
* ISO
*/
@Excel(name = "枪ISO注料压力")
private String isoHp;
/**
* ISO
*/
@Excel(name = "枪ISO注料流量")
private String isoVol;
/**
* ISO
*/
@Excel(name = "枪ISO原料用量")
private String isoUsage;
/**
*
*/
@Excel(name = "枪注料工位号")
private String pourNu;
/**
*
*/
@Excel(name = "枪设定注料时间")
private String setTime;
/**
*
*/
@Excel(name = "枪设定注料重量")
private String setWeight;
/**
*
*/
@Excel(name = "枪设定注料比例")
private String setRatio;
/**
*
*/
@Excel(name = "枪实际注料重量")
private String pourWeight;
/**
*
*/
@Excel(name = "枪实际注料比例")
private String pourRatio;
/**
*
*/
@Excel(name = "枪中压循环时间")
private String mpTime;
/**
*
*/
@Excel(name = "枪高压循环时间")
private String hpTime;
/**
*
*/
@Excel(name = "枪液压压力")
private String hydrPress;
/**
*
*/
@Excel(name = "枪液压温度")
private String hydrTemp;
/**
*
*/
@Excel(name = "枪开枪时间")
private String mixpistOn;
/**
*
*/
@Excel(name = "枪关枪时间")
private String mixpistOff;
/**
*
*/
@Excel(name = "枪总产量")
private String totalYield;
/**
*
*/
@Excel(name = "枪注料结束信号")
private String pourEnd;
/**
* 0-1-
*/
@Excel(name = "系统状态0-关1-开")
private Long systemStatus;
private String beginBeginTime;
private String endBeginTime;
public String getBeginBeginTime() {
return beginBeginTime;
}
public void setBeginBeginTime(String beginBeginTime) {
this.beginBeginTime = beginBeginTime;
}
public String getEndBeginTime() {
return endBeginTime;
}
public void setEndBeginTime(String endBeginTime) {
this.endBeginTime = endBeginTime;
}
public String getProductLineName() {
return productLineName;
}
public void setProductLineName(String productLineName) {
this.productLineName = productLineName;
}
public String getStationName() {
return stationName;
}
public void setStationName(String stationName) {
this.stationName = stationName;
}
public void setObjId(Long objId) {
this.objId = objId;
}
public Long getObjId() {
return objId;
}
public void setSystem(String system) {
this.system = system;
}
public String getSystem() {
return system;
}
public void setGunCode(String gunCode) {
this.gunCode = gunCode;
}
public String getGunCode() {
return gunCode;
}
public void setProductLineCode(String productLineCode) {
this.productLineCode = productLineCode;
}
public String getProductLineCode() {
return productLineCode;
}
public void setStationNumber(String stationNumber) {
this.stationNumber = stationNumber;
}
public String getStationNumber() {
return stationNumber;
}
public void setPolTemp(String polTemp) {
this.polTemp = polTemp;
}
public String getPolTemp() {
return polTemp;
}
public void setPolHp(String polHp) {
this.polHp = polHp;
}
public String getPolHp() {
return polHp;
}
public void setPolVol(String polVol) {
this.polVol = polVol;
}
public String getPolVol() {
return polVol;
}
public void setPolUsage(String polUsage) {
this.polUsage = polUsage;
}
public String getPolUsage() {
return polUsage;
}
public void setIsoTemp(String isoTemp) {
this.isoTemp = isoTemp;
}
public String getIsoTemp() {
return isoTemp;
}
public void setIsoHp(String isoHp) {
this.isoHp = isoHp;
}
public String getIsoHp() {
return isoHp;
}
public void setIsoVol(String isoVol) {
this.isoVol = isoVol;
}
public String getIsoVol() {
return isoVol;
}
public void setIsoUsage(String isoUsage) {
this.isoUsage = isoUsage;
}
public String getIsoUsage() {
return isoUsage;
}
public void setPourNu(String pourNu) {
this.pourNu = pourNu;
}
public String getPourNu() {
return pourNu;
}
public void setSetTime(String setTime) {
this.setTime = setTime;
}
public String getSetTime() {
return setTime;
}
public void setSetWeight(String setWeight) {
this.setWeight = setWeight;
}
public String getSetWeight() {
return setWeight;
}
public void setSetRatio(String setRatio) {
this.setRatio = setRatio;
}
public String getSetRatio() {
return setRatio;
}
public void setPourWeight(String pourWeight) {
this.pourWeight = pourWeight;
}
public String getPourWeight() {
return pourWeight;
}
public void setPourRatio(String pourRatio) {
this.pourRatio = pourRatio;
}
public String getPourRatio() {
return pourRatio;
}
public void setMpTime(String mpTime) {
this.mpTime = mpTime;
}
public String getMpTime() {
return mpTime;
}
public void setHpTime(String hpTime) {
this.hpTime = hpTime;
}
public String getHpTime() {
return hpTime;
}
public void setHydrPress(String hydrPress) {
this.hydrPress = hydrPress;
}
public String getHydrPress() {
return hydrPress;
}
public void setHydrTemp(String hydrTemp) {
this.hydrTemp = hydrTemp;
}
public String getHydrTemp() {
return hydrTemp;
}
public void setMixpistOn(String mixpistOn) {
this.mixpistOn = mixpistOn;
}
public String getMixpistOn() {
return mixpistOn;
}
public void setMixpistOff(String mixpistOff) {
this.mixpistOff = mixpistOff;
}
public String getMixpistOff() {
return mixpistOff;
}
public void setTotalYield(String totalYield) {
this.totalYield = totalYield;
}
public String getTotalYield() {
return totalYield;
}
public void setPourEnd(String pourEnd) {
this.pourEnd = pourEnd;
}
public String getPourEnd() {
return pourEnd;
}
public void setSystemStatus(Long systemStatus) {
this.systemStatus = systemStatus;
}
public Long getSystemStatus() {
return systemStatus;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("objId", getObjId())
.append("system", getSystem())
.append("gunCode", getGunCode())
.append("productLineCode", getProductLineCode())
.append("stationNumber", getStationNumber())
.append("polTemp", getPolTemp())
.append("polHp", getPolHp())
.append("polVol", getPolVol())
.append("polUsage", getPolUsage())
.append("isoTemp", getIsoTemp())
.append("isoHp", getIsoHp())
.append("isoVol", getIsoVol())
.append("isoUsage", getIsoUsage())
.append("pourNu", getPourNu())
.append("setTime", getSetTime())
.append("setWeight", getSetWeight())
.append("setRatio", getSetRatio())
.append("pourWeight", getPourWeight())
.append("pourRatio", getPourRatio())
.append("mpTime", getMpTime())
.append("hpTime", getHpTime())
.append("hydrPress", getHydrPress())
.append("hydrTemp", getHydrTemp())
.append("mixpistOn", getMixpistOn())
.append("mixpistOff", getMixpistOff())
.append("totalYield", getTotalYield())
.append("pourEnd", getPourEnd())
.append("createTime", getCreateTime())
.append("systemStatus", getSystemStatus())
.toString();
}
}

@ -0,0 +1,61 @@
package com.aucma.report.mapper;
import java.util.List;
import com.aucma.report.domain.BoxLastShotRecord;
/**
* Mapper
*
* @author Yinq
* @date 2024-01-12
*/
public interface BoxLastShotRecordMapper
{
/**
*
*
* @param objId
* @return
*/
public BoxLastShotRecord selectBoxLastShotRecordByObjId(Long objId);
/**
*
*
* @param boxLastShotRecord
* @return
*/
public List<BoxLastShotRecord> selectBoxLastShotRecordList(BoxLastShotRecord boxLastShotRecord);
/**
*
*
* @param boxLastShotRecord
* @return
*/
public int insertBoxLastShotRecord(BoxLastShotRecord boxLastShotRecord);
/**
*
*
* @param boxLastShotRecord
* @return
*/
public int updateBoxLastShotRecord(BoxLastShotRecord boxLastShotRecord);
/**
*
*
* @param objId
* @return
*/
public int deleteBoxLastShotRecordByObjId(Long objId);
/**
*
*
* @param objIds
* @return
*/
public int deleteBoxLastShotRecordByObjIds(Long[] objIds);
}

@ -0,0 +1,61 @@
package com.aucma.report.service;
import java.util.List;
import com.aucma.report.domain.BoxLastShotRecord;
/**
* Service
*
* @author Yinq
* @date 2024-01-12
*/
public interface IBoxLastShotRecordService
{
/**
*
*
* @param objId
* @return
*/
public BoxLastShotRecord selectBoxLastShotRecordByObjId(Long objId);
/**
*
*
* @param boxLastShotRecord
* @return
*/
public List<BoxLastShotRecord> selectBoxLastShotRecordList(BoxLastShotRecord boxLastShotRecord);
/**
*
*
* @param boxLastShotRecord
* @return
*/
public int insertBoxLastShotRecord(BoxLastShotRecord boxLastShotRecord);
/**
*
*
* @param boxLastShotRecord
* @return
*/
public int updateBoxLastShotRecord(BoxLastShotRecord boxLastShotRecord);
/**
*
*
* @param objIds
* @return
*/
public int deleteBoxLastShotRecordByObjIds(Long[] objIds);
/**
*
*
* @param objId
* @return
*/
public int deleteBoxLastShotRecordByObjId(Long objId);
}

@ -0,0 +1,95 @@
package com.aucma.report.service.impl;
import java.util.List;
import com.aucma.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aucma.report.mapper.BoxLastShotRecordMapper;
import com.aucma.report.domain.BoxLastShotRecord;
import com.aucma.report.service.IBoxLastShotRecordService;
/**
* Service
*
* @author Yinq
* @date 2024-01-12
*/
@Service
public class BoxLastShotRecordServiceImpl implements IBoxLastShotRecordService
{
@Autowired
private BoxLastShotRecordMapper boxLastShotRecordMapper;
/**
*
*
* @param objId
* @return
*/
@Override
public BoxLastShotRecord selectBoxLastShotRecordByObjId(Long objId)
{
return boxLastShotRecordMapper.selectBoxLastShotRecordByObjId(objId);
}
/**
*
*
* @param boxLastShotRecord
* @return
*/
@Override
public List<BoxLastShotRecord> selectBoxLastShotRecordList(BoxLastShotRecord boxLastShotRecord)
{
return boxLastShotRecordMapper.selectBoxLastShotRecordList(boxLastShotRecord);
}
/**
*
*
* @param boxLastShotRecord
* @return
*/
@Override
public int insertBoxLastShotRecord(BoxLastShotRecord boxLastShotRecord)
{
boxLastShotRecord.setCreateTime(DateUtils.getNowDate());
return boxLastShotRecordMapper.insertBoxLastShotRecord(boxLastShotRecord);
}
/**
*
*
* @param boxLastShotRecord
* @return
*/
@Override
public int updateBoxLastShotRecord(BoxLastShotRecord boxLastShotRecord)
{
return boxLastShotRecordMapper.updateBoxLastShotRecord(boxLastShotRecord);
}
/**
*
*
* @param objIds
* @return
*/
@Override
public int deleteBoxLastShotRecordByObjIds(Long[] objIds)
{
return boxLastShotRecordMapper.deleteBoxLastShotRecordByObjIds(objIds);
}
/**
*
*
* @param objId
* @return
*/
@Override
public int deleteBoxLastShotRecordByObjId(Long objId)
{
return boxLastShotRecordMapper.deleteBoxLastShotRecordByObjId(objId);
}
}

@ -0,0 +1,214 @@
<?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.BoxLastShotRecordMapper">
<resultMap type="BoxLastShotRecord" id="BoxLastShotRecordResult">
<result property="objId" column="obj_id"/>
<result property="system" column="system"/>
<result property="gunCode" column="gun_code"/>
<result property="productLineCode" column="product_line_code"/>
<result property="stationNumber" column="stationnumber"/>
<result property="polTemp" column="pol_temp"/>
<result property="polHp" column="pol_hp"/>
<result property="polVol" column="pol_vol"/>
<result property="polUsage" column="pol_usage"/>
<result property="isoTemp" column="iso_temp"/>
<result property="isoHp" column="iso_hp"/>
<result property="isoVol" column="iso_vol"/>
<result property="isoUsage" column="iso_usage"/>
<result property="pourNu" column="pour_nu"/>
<result property="setTime" column="set_time"/>
<result property="setWeight" column="set_weight"/>
<result property="setRatio" column="set_ratio"/>
<result property="pourWeight" column="pour_weight"/>
<result property="pourRatio" column="pour_ratio"/>
<result property="mpTime" column="mp_time"/>
<result property="hpTime" column="hp_time"/>
<result property="hydrPress" column="hydr_press"/>
<result property="hydrTemp" column="hydr_temp"/>
<result property="mixpistOn" column="mixpist_on"/>
<result property="mixpistOff" column="mixpist_off"/>
<result property="totalYield" column="total_yield"/>
<result property="pourEnd" column="pour_end"/>
<result property="createTime" column="create_time"/>
<result property="systemStatus" column="systemstatus"/>
<result property="productLineName" column="productLineName"/>
<result property="stationName" column="stationName"/>
</resultMap>
<sql id="selectBoxLastShotRecordVo">
select VBL.OBJ_ID,
VBL.SYSTEM,
VBL.GUN_CODE,
VBL.PRODUCT_LINE_CODE,
VBL.POL_TEMP,
VBL.POL_HP,
VBL.POL_VOL,
VBL.POL_USAGE,
VBL.ISO_TEMP,
VBL.ISO_HP,
VBL.ISO_VOL,
VBL.ISO_USAGE,
VBL.POUR_NU,
VBL.SET_TIME,
VBL.SET_WEIGHT,
VBL.SET_RATIO,
VBL.POUR_WEIGHT,
VBL.POUR_RATIO,
VBL.MP_TIME,
VBL.HP_TIME,
VBL.HYDR_PRESS,
VBL.HYDR_TEMP,
VBL.MIXPIST_ON,
VBL.MIXPIST_OFF,
VBL.TOTAL_YIELD,
VBL.POUR_END,
VBL.CREATE_TIME,
VBL.STATIONNUMBER,
VBL.SYSTEMSTATUS,
BP.PRODUCT_LINE_NAME stationName,
BPP.PRODUCT_LINE_NAME productLineName
from VIEW_BOX_LASTSHOTRECORD VBL
LEFT JOIN BASE_PRODUCTLINE BP ON BP.PRODUCT_LINE_CODE = VBL.STATIONNUMBER
LEFT JOIN BASE_PRODUCTLINE BPP ON BPP.PRODUCT_LINE_CODE = BP.PARENT_ID
</sql>
<select id="selectBoxLastShotRecordList" parameterType="BoxLastShotRecord" resultMap="BoxLastShotRecordResult">
<include refid="selectBoxLastShotRecordVo"/>
<where>
<if test="system != null and system != ''">and VBL.system = #{system}</if>
<if test="gunCode != null and gunCode != ''">and VBL.gun_code = #{gunCode}</if>
<if test="productLineCode != null and productLineCode != ''">and VBL.product_line_code = #{productLineCode}
</if>
<if test="stationNumber != null and stationNumber != ''">and VBL.stationnumber = #{stationNumber}</if>
<if test="beginBeginTime != null and beginBeginTime != '' and endBeginTime != null and endBeginTime != ''">
AND TO_CHAR(VBL.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') BETWEEN #{beginBeginTime} AND #{endBeginTime}
</if>
</where>
ORDER BY VBL.CREATE_TIME DESC
</select>
<select id="selectBoxLastShotRecordByObjId" parameterType="Long" resultMap="BoxLastShotRecordResult">
<include refid="selectBoxLastShotRecordVo"/>
where obj_id = #{objId}
</select>
<insert id="insertBoxLastShotRecord" parameterType="BoxLastShotRecord">
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
SELECT seq_box_lastshotrecord.NEXTVAL as objId FROM DUAL
</selectKey>
insert into box_lastshotrecord
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="objId != null">obj_id,</if>
<if test="system != null">system,</if>
<if test="gunCode != null">gun_code,</if>
<if test="productLineCode != null">product_line_code,</if>
<if test="stationNumber != null">stationnumber,</if>
<if test="polTemp != null">pol_temp,</if>
<if test="polHp != null">pol_hp,</if>
<if test="polVol != null">pol_vol,</if>
<if test="polUsage != null">pol_usage,</if>
<if test="isoTemp != null">iso_temp,</if>
<if test="isoHp != null">iso_hp,</if>
<if test="isoVol != null">iso_vol,</if>
<if test="isoUsage != null">iso_usage,</if>
<if test="pourNu != null">pour_nu,</if>
<if test="setTime != null">set_time,</if>
<if test="setWeight != null">set_weight,</if>
<if test="setRatio != null">set_ratio,</if>
<if test="pourWeight != null">pour_weight,</if>
<if test="pourRatio != null">pour_ratio,</if>
<if test="mpTime != null">mp_time,</if>
<if test="hpTime != null">hp_time,</if>
<if test="hydrPress != null">hydr_press,</if>
<if test="hydrTemp != null">hydr_temp,</if>
<if test="mixpistOn != null">mixpist_on,</if>
<if test="mixpistOff != null">mixpist_off,</if>
<if test="totalYield != null">total_yield,</if>
<if test="pourEnd != null">pour_end,</if>
<if test="createTime != null">create_time,</if>
<if test="systemStatus != null">systemstatus,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="objId != null">#{objId},</if>
<if test="system != null">#{system},</if>
<if test="gunCode != null">#{gunCode},</if>
<if test="productLineCode != null">#{productLineCode},</if>
<if test="stationNumber != null">#{stationNumber},</if>
<if test="polTemp != null">#{polTemp},</if>
<if test="polHp != null">#{polHp},</if>
<if test="polVol != null">#{polVol},</if>
<if test="polUsage != null">#{polUsage},</if>
<if test="isoTemp != null">#{isoTemp},</if>
<if test="isoHp != null">#{isoHp},</if>
<if test="isoVol != null">#{isoVol},</if>
<if test="isoUsage != null">#{isoUsage},</if>
<if test="pourNu != null">#{pourNu},</if>
<if test="setTime != null">#{setTime},</if>
<if test="setWeight != null">#{setWeight},</if>
<if test="setRatio != null">#{setRatio},</if>
<if test="pourWeight != null">#{pourWeight},</if>
<if test="pourRatio != null">#{pourRatio},</if>
<if test="mpTime != null">#{mpTime},</if>
<if test="hpTime != null">#{hpTime},</if>
<if test="hydrPress != null">#{hydrPress},</if>
<if test="hydrTemp != null">#{hydrTemp},</if>
<if test="mixpistOn != null">#{mixpistOn},</if>
<if test="mixpistOff != null">#{mixpistOff},</if>
<if test="totalYield != null">#{totalYield},</if>
<if test="pourEnd != null">#{pourEnd},</if>
<if test="createTime != null">#{createTime},</if>
<if test="systemStatus != null">#{systemStatus},</if>
</trim>
</insert>
<update id="updateBoxLastShotRecord" parameterType="BoxLastShotRecord">
update box_lastshotrecord
<trim prefix="SET" suffixOverrides=",">
<if test="system != null">system = #{system},</if>
<if test="gunCode != null">gun_code = #{gunCode},</if>
<if test="productLineCode != null">product_line_code = #{productLineCode},</if>
<if test="stationNumber != null">stationnumber = #{stationNumber},</if>
<if test="polTemp != null">pol_temp = #{polTemp},</if>
<if test="polHp != null">pol_hp = #{polHp},</if>
<if test="polVol != null">pol_vol = #{polVol},</if>
<if test="polUsage != null">pol_usage = #{polUsage},</if>
<if test="isoTemp != null">iso_temp = #{isoTemp},</if>
<if test="isoHp != null">iso_hp = #{isoHp},</if>
<if test="isoVol != null">iso_vol = #{isoVol},</if>
<if test="isoUsage != null">iso_usage = #{isoUsage},</if>
<if test="pourNu != null">pour_nu = #{pourNu},</if>
<if test="setTime != null">set_time = #{setTime},</if>
<if test="setWeight != null">set_weight = #{setWeight},</if>
<if test="setRatio != null">set_ratio = #{setRatio},</if>
<if test="pourWeight != null">pour_weight = #{pourWeight},</if>
<if test="pourRatio != null">pour_ratio = #{pourRatio},</if>
<if test="mpTime != null">mp_time = #{mpTime},</if>
<if test="hpTime != null">hp_time = #{hpTime},</if>
<if test="hydrPress != null">hydr_press = #{hydrPress},</if>
<if test="hydrTemp != null">hydr_temp = #{hydrTemp},</if>
<if test="mixpistOn != null">mixpist_on = #{mixpistOn},</if>
<if test="mixpistOff != null">mixpist_off = #{mixpistOff},</if>
<if test="totalYield != null">total_yield = #{totalYield},</if>
<if test="pourEnd != null">pour_end = #{pourEnd},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="systemStatus != null">systemstatus = #{systemStatus},</if>
</trim>
where obj_id = #{objId}
</update>
<delete id="deleteBoxLastShotRecordByObjId" parameterType="Long">
delete
from box_lastshotrecord
where obj_id = #{objId}
</delete>
<delete id="deleteBoxLastShotRecordByObjIds" parameterType="String">
delete from box_lastshotrecord where obj_id in
<foreach item="objId" collection="array" open="(" separator="," close=")">
#{objId}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save