add - 模切重量特征数据上传
parent
b175c9609b
commit
b412c17019
@ -0,0 +1,127 @@
|
||||
package com.ruoyi.traceability.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
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.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.traceability.domain.ProMqUpload;
|
||||
import com.ruoyi.traceability.service.IProMqUploadService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 模切数据上传Controller
|
||||
*
|
||||
* @author wenjy
|
||||
* @date 2022-11-18
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/traceability/mqupload")
|
||||
public class ProMqUploadController extends BaseController
|
||||
{
|
||||
private String prefix = "traceability/mqupload";
|
||||
|
||||
@Autowired
|
||||
private IProMqUploadService proMqUploadService;
|
||||
|
||||
@RequiresPermissions("traceability:mqupload:view")
|
||||
@GetMapping()
|
||||
public String mqupload()
|
||||
{
|
||||
return prefix + "/mqupload";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询模切数据上传列表
|
||||
*/
|
||||
@RequiresPermissions("traceability:mqupload:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ProMqUpload proMqUpload)
|
||||
{
|
||||
startPage();
|
||||
List<ProMqUpload> list = proMqUploadService.selectProMqUploadList(proMqUpload);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出模切数据上传列表
|
||||
*/
|
||||
@RequiresPermissions("traceability:mqupload:export")
|
||||
@Log(title = "模切数据上传", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ProMqUpload proMqUpload)
|
||||
{
|
||||
List<ProMqUpload> list = proMqUploadService.selectProMqUploadList(proMqUpload);
|
||||
ExcelUtil<ProMqUpload> util = new ExcelUtil<ProMqUpload>(ProMqUpload.class);
|
||||
return util.exportExcel(list, "模切数据上传数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增模切数据上传
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存模切数据上传
|
||||
*/
|
||||
@RequiresPermissions("traceability:mqupload:add")
|
||||
@Log(title = "模切数据上传", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ProMqUpload proMqUpload)
|
||||
{
|
||||
return toAjax(proMqUploadService.insertProMqUpload(proMqUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改模切数据上传
|
||||
*/
|
||||
@RequiresPermissions("traceability:mqupload:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
ProMqUpload proMqUpload = proMqUploadService.selectProMqUploadById(id);
|
||||
mmap.put("proMqUpload", proMqUpload);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存模切数据上传
|
||||
*/
|
||||
@RequiresPermissions("traceability:mqupload:edit")
|
||||
@Log(title = "模切数据上传", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ProMqUpload proMqUpload)
|
||||
{
|
||||
return toAjax(proMqUploadService.updateProMqUpload(proMqUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除模切数据上传
|
||||
*/
|
||||
@RequiresPermissions("traceability:mqupload:remove")
|
||||
@Log(title = "模切数据上传", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(proMqUploadService.deleteProMqUploadByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,261 @@
|
||||
package com.ruoyi.traceability.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 模切数据上传对象 pro_mqupload
|
||||
*
|
||||
* @author wenjy
|
||||
* @date 2022-11-18
|
||||
*/
|
||||
public class ProMqUpload extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键标识 */
|
||||
private Long id;
|
||||
|
||||
/** 资源号 */
|
||||
@Excel(name = "资源号")
|
||||
private String resource;
|
||||
|
||||
/** SFC */
|
||||
@Excel(name = "SFC")
|
||||
private String sfcStr;
|
||||
|
||||
/** 工序 */
|
||||
@Excel(name = "工序")
|
||||
private String operation;
|
||||
|
||||
/** 客户端标识 */
|
||||
@Excel(name = "客户端标识")
|
||||
private String clientId;
|
||||
|
||||
/** 数据组 */
|
||||
@Excel(name = "数据组")
|
||||
private String dcGroup;
|
||||
|
||||
/** 放卷方向 */
|
||||
@Excel(name = "放卷方向")
|
||||
private String upDirection;
|
||||
|
||||
/** 收卷方向 */
|
||||
@Excel(name = "收卷方向")
|
||||
private String downDirection;
|
||||
|
||||
/** 收卷轴 */
|
||||
@Excel(name = "收卷轴")
|
||||
private String downPosition;
|
||||
|
||||
/** 是否首卷 */
|
||||
@Excel(name = "是否首卷")
|
||||
private String firstArticle;
|
||||
|
||||
/** 物理面向 */
|
||||
@Excel(name = "物理面向")
|
||||
private String mqMaterialFace;
|
||||
|
||||
/** 卷绕理论方向 */
|
||||
@Excel(name = "卷绕理论方向")
|
||||
private String jrDirection;
|
||||
|
||||
/** S面数据 */
|
||||
@Excel(name = "S面数据")
|
||||
private String scw;
|
||||
|
||||
/** B面数据 */
|
||||
@Excel(name = "B面数据")
|
||||
private String bcw;
|
||||
|
||||
/** MES返回Code */
|
||||
@Excel(name = "MES返回Code")
|
||||
private Long isSuccess;
|
||||
|
||||
/** MES返回信息 */
|
||||
@Excel(name = "MES返回信息")
|
||||
private String mesReturnInfo;
|
||||
|
||||
/** 记录时间 */
|
||||
@Excel(name = "记录时间")
|
||||
private String recordTime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setResource(String resource)
|
||||
{
|
||||
this.resource = resource;
|
||||
}
|
||||
|
||||
public String getResource()
|
||||
{
|
||||
return resource;
|
||||
}
|
||||
public void setSfcStr(String sfcStr)
|
||||
{
|
||||
this.sfcStr = sfcStr;
|
||||
}
|
||||
|
||||
public String getSfcStr()
|
||||
{
|
||||
return sfcStr;
|
||||
}
|
||||
public void setOperation(String operation)
|
||||
{
|
||||
this.operation = operation;
|
||||
}
|
||||
|
||||
public String getOperation()
|
||||
{
|
||||
return operation;
|
||||
}
|
||||
public void setClientId(String clientId)
|
||||
{
|
||||
this.clientId = clientId;
|
||||
}
|
||||
|
||||
public String getClientId()
|
||||
{
|
||||
return clientId;
|
||||
}
|
||||
public void setDcGroup(String dcGroup)
|
||||
{
|
||||
this.dcGroup = dcGroup;
|
||||
}
|
||||
|
||||
public String getDcGroup()
|
||||
{
|
||||
return dcGroup;
|
||||
}
|
||||
public void setUpDirection(String upDirection)
|
||||
{
|
||||
this.upDirection = upDirection;
|
||||
}
|
||||
|
||||
public String getUpDirection()
|
||||
{
|
||||
return upDirection;
|
||||
}
|
||||
public void setDownDirection(String downDirection)
|
||||
{
|
||||
this.downDirection = downDirection;
|
||||
}
|
||||
|
||||
public String getDownDirection()
|
||||
{
|
||||
return downDirection;
|
||||
}
|
||||
public void setDownPosition(String downPosition)
|
||||
{
|
||||
this.downPosition = downPosition;
|
||||
}
|
||||
|
||||
public String getDownPosition()
|
||||
{
|
||||
return downPosition;
|
||||
}
|
||||
public void setFirstArticle(String firstArticle)
|
||||
{
|
||||
this.firstArticle = firstArticle;
|
||||
}
|
||||
|
||||
public String getFirstArticle()
|
||||
{
|
||||
return firstArticle;
|
||||
}
|
||||
public void setMqMaterialFace(String mqMaterialFace)
|
||||
{
|
||||
this.mqMaterialFace = mqMaterialFace;
|
||||
}
|
||||
|
||||
public String getMqMaterialFace()
|
||||
{
|
||||
return mqMaterialFace;
|
||||
}
|
||||
public void setJrDirection(String jrDirection)
|
||||
{
|
||||
this.jrDirection = jrDirection;
|
||||
}
|
||||
|
||||
public String getJrDirection()
|
||||
{
|
||||
return jrDirection;
|
||||
}
|
||||
public void setScw(String scw)
|
||||
{
|
||||
this.scw = scw;
|
||||
}
|
||||
|
||||
public String getScw()
|
||||
{
|
||||
return scw;
|
||||
}
|
||||
public void setBcw(String bcw)
|
||||
{
|
||||
this.bcw = bcw;
|
||||
}
|
||||
|
||||
public String getBcw()
|
||||
{
|
||||
return bcw;
|
||||
}
|
||||
public void setIsSuccess(Long isSuccess)
|
||||
{
|
||||
this.isSuccess = isSuccess;
|
||||
}
|
||||
|
||||
public Long getIsSuccess()
|
||||
{
|
||||
return isSuccess;
|
||||
}
|
||||
public void setMesReturnInfo(String mesReturnInfo)
|
||||
{
|
||||
this.mesReturnInfo = mesReturnInfo;
|
||||
}
|
||||
|
||||
public String getMesReturnInfo()
|
||||
{
|
||||
return mesReturnInfo;
|
||||
}
|
||||
public void setRecordTime(String recordTime)
|
||||
{
|
||||
this.recordTime = recordTime;
|
||||
}
|
||||
|
||||
public String getRecordTime()
|
||||
{
|
||||
return recordTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("resource", getResource())
|
||||
.append("sfcStr", getSfcStr())
|
||||
.append("operation", getOperation())
|
||||
.append("clientId", getClientId())
|
||||
.append("dcGroup", getDcGroup())
|
||||
.append("upDirection", getUpDirection())
|
||||
.append("downDirection", getDownDirection())
|
||||
.append("downPosition", getDownPosition())
|
||||
.append("firstArticle", getFirstArticle())
|
||||
.append("mqMaterialFace", getMqMaterialFace())
|
||||
.append("jrDirection", getJrDirection())
|
||||
.append("scw", getScw())
|
||||
.append("bcw", getBcw())
|
||||
.append("isSuccess", getIsSuccess())
|
||||
.append("mesReturnInfo", getMesReturnInfo())
|
||||
.append("recordTime", getRecordTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.traceability.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.traceability.domain.ProMqUpload;
|
||||
|
||||
/**
|
||||
* 模切数据上传Mapper接口
|
||||
*
|
||||
* @author wenjy
|
||||
* @date 2022-11-18
|
||||
*/
|
||||
public interface ProMqUploadMapper
|
||||
{
|
||||
/**
|
||||
* 查询模切数据上传
|
||||
*
|
||||
* @param id 模切数据上传主键
|
||||
* @return 模切数据上传
|
||||
*/
|
||||
public ProMqUpload selectProMqUploadById(Long id);
|
||||
|
||||
/**
|
||||
* 查询模切数据上传列表
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 模切数据上传集合
|
||||
*/
|
||||
public List<ProMqUpload> selectProMqUploadList(ProMqUpload proMqUpload);
|
||||
|
||||
/**
|
||||
* 新增模切数据上传
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProMqUpload(ProMqUpload proMqUpload);
|
||||
|
||||
/**
|
||||
* 修改模切数据上传
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProMqUpload(ProMqUpload proMqUpload);
|
||||
|
||||
/**
|
||||
* 删除模切数据上传
|
||||
*
|
||||
* @param id 模切数据上传主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMqUploadById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除模切数据上传
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMqUploadByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.traceability.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.traceability.domain.ProMqUpload;
|
||||
|
||||
/**
|
||||
* 模切数据上传Service接口
|
||||
*
|
||||
* @author wenjy
|
||||
* @date 2022-11-18
|
||||
*/
|
||||
public interface IProMqUploadService
|
||||
{
|
||||
/**
|
||||
* 查询模切数据上传
|
||||
*
|
||||
* @param id 模切数据上传主键
|
||||
* @return 模切数据上传
|
||||
*/
|
||||
public ProMqUpload selectProMqUploadById(Long id);
|
||||
|
||||
/**
|
||||
* 查询模切数据上传列表
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 模切数据上传集合
|
||||
*/
|
||||
public List<ProMqUpload> selectProMqUploadList(ProMqUpload proMqUpload);
|
||||
|
||||
/**
|
||||
* 新增模切数据上传
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProMqUpload(ProMqUpload proMqUpload);
|
||||
|
||||
/**
|
||||
* 修改模切数据上传
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProMqUpload(ProMqUpload proMqUpload);
|
||||
|
||||
/**
|
||||
* 批量删除模切数据上传
|
||||
*
|
||||
* @param ids 需要删除的模切数据上传主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMqUploadByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除模切数据上传信息
|
||||
*
|
||||
* @param id 模切数据上传主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMqUploadById(Long id);
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package com.ruoyi.traceability.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.traceability.mapper.ProMqUploadMapper;
|
||||
import com.ruoyi.traceability.domain.ProMqUpload;
|
||||
import com.ruoyi.traceability.service.IProMqUploadService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 模切数据上传Service业务层处理
|
||||
*
|
||||
* @author wenjy
|
||||
* @date 2022-11-18
|
||||
*/
|
||||
@Service
|
||||
public class ProMqUploadServiceImpl implements IProMqUploadService
|
||||
{
|
||||
@Autowired
|
||||
private ProMqUploadMapper proMqUploadMapper;
|
||||
|
||||
/**
|
||||
* 查询模切数据上传
|
||||
*
|
||||
* @param id 模切数据上传主键
|
||||
* @return 模切数据上传
|
||||
*/
|
||||
@Override
|
||||
public ProMqUpload selectProMqUploadById(Long id)
|
||||
{
|
||||
return proMqUploadMapper.selectProMqUploadById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询模切数据上传列表
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 模切数据上传
|
||||
*/
|
||||
@Override
|
||||
public List<ProMqUpload> selectProMqUploadList(ProMqUpload proMqUpload)
|
||||
{
|
||||
return proMqUploadMapper.selectProMqUploadList(proMqUpload);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增模切数据上传
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertProMqUpload(ProMqUpload proMqUpload)
|
||||
{
|
||||
return proMqUploadMapper.insertProMqUpload(proMqUpload);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改模切数据上传
|
||||
*
|
||||
* @param proMqUpload 模切数据上传
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProMqUpload(ProMqUpload proMqUpload)
|
||||
{
|
||||
return proMqUploadMapper.updateProMqUpload(proMqUpload);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除模切数据上传
|
||||
*
|
||||
* @param ids 需要删除的模切数据上传主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProMqUploadByIds(String ids)
|
||||
{
|
||||
return proMqUploadMapper.deleteProMqUploadByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除模切数据上传信息
|
||||
*
|
||||
* @param id 模切数据上传主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProMqUploadById(Long id)
|
||||
{
|
||||
return proMqUploadMapper.deleteProMqUploadById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
<?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.traceability.mapper.ProMqUploadMapper">
|
||||
|
||||
<resultMap type="ProMqUpload" id="ProMqUploadResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="resource" column="resource" />
|
||||
<result property="sfcStr" column="sfcStr" />
|
||||
<result property="operation" column="operation" />
|
||||
<result property="clientId" column="clientId" />
|
||||
<result property="dcGroup" column="dcGroup" />
|
||||
<result property="upDirection" column="upDirection" />
|
||||
<result property="downDirection" column="downDirection" />
|
||||
<result property="downPosition" column="downPosition" />
|
||||
<result property="firstArticle" column="firstArticle" />
|
||||
<result property="mqMaterialFace" column="mqMaterialFace" />
|
||||
<result property="jrDirection" column="jrDirection" />
|
||||
<result property="scw" column="scw" />
|
||||
<result property="bcw" column="bcw" />
|
||||
<result property="isSuccess" column="is_success" />
|
||||
<result property="mesReturnInfo" column="mesReturnInfo" />
|
||||
<result property="recordTime" column="recordTime" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectProMqUploadVo">
|
||||
select id, resource, sfcStr, operation, clientId, dcGroup, upDirection, downDirection, downPosition, firstArticle, mqMaterialFace, jrDirection, scw, bcw, is_success, mesReturnInfo, recordTime from pro_mqupload
|
||||
</sql>
|
||||
|
||||
<select id="selectProMqUploadList" parameterType="ProMqUpload" resultMap="ProMqUploadResult">
|
||||
<include refid="selectProMqUploadVo"/>
|
||||
<where>
|
||||
<if test="resource != null and resource != ''"> and resource = #{resource}</if>
|
||||
<if test="sfcStr != null and sfcStr != ''"> and sfcStr = #{sfcStr}</if>
|
||||
<if test="isSuccess != null "> and is_success = #{isSuccess}</if>
|
||||
<if test="recordTime != null and recordTime != ''"> and recordTime = #{recordTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectProMqUploadById" parameterType="Long" resultMap="ProMqUploadResult">
|
||||
<include refid="selectProMqUploadVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertProMqUpload" parameterType="ProMqUpload" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into pro_mqupload
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="resource != null">resource,</if>
|
||||
<if test="sfcStr != null">sfcStr,</if>
|
||||
<if test="operation != null">operation,</if>
|
||||
<if test="clientId != null">clientId,</if>
|
||||
<if test="dcGroup != null">dcGroup,</if>
|
||||
<if test="upDirection != null">upDirection,</if>
|
||||
<if test="downDirection != null">downDirection,</if>
|
||||
<if test="downPosition != null">downPosition,</if>
|
||||
<if test="firstArticle != null">firstArticle,</if>
|
||||
<if test="mqMaterialFace != null">mqMaterialFace,</if>
|
||||
<if test="jrDirection != null">jrDirection,</if>
|
||||
<if test="scw != null">scw,</if>
|
||||
<if test="bcw != null">bcw,</if>
|
||||
<if test="isSuccess != null">is_success,</if>
|
||||
<if test="mesReturnInfo != null">mesReturnInfo,</if>
|
||||
<if test="recordTime != null">recordTime,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="resource != null">#{resource},</if>
|
||||
<if test="sfcStr != null">#{sfcStr},</if>
|
||||
<if test="operation != null">#{operation},</if>
|
||||
<if test="clientId != null">#{clientId},</if>
|
||||
<if test="dcGroup != null">#{dcGroup},</if>
|
||||
<if test="upDirection != null">#{upDirection},</if>
|
||||
<if test="downDirection != null">#{downDirection},</if>
|
||||
<if test="downPosition != null">#{downPosition},</if>
|
||||
<if test="firstArticle != null">#{firstArticle},</if>
|
||||
<if test="mqMaterialFace != null">#{mqMaterialFace},</if>
|
||||
<if test="jrDirection != null">#{jrDirection},</if>
|
||||
<if test="scw != null">#{scw},</if>
|
||||
<if test="bcw != null">#{bcw},</if>
|
||||
<if test="isSuccess != null">#{isSuccess},</if>
|
||||
<if test="mesReturnInfo != null">#{mesReturnInfo},</if>
|
||||
<if test="recordTime != null">#{recordTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateProMqUpload" parameterType="ProMqUpload">
|
||||
update pro_mqupload
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="resource != null">resource = #{resource},</if>
|
||||
<if test="sfcStr != null">sfcStr = #{sfcStr},</if>
|
||||
<if test="operation != null">operation = #{operation},</if>
|
||||
<if test="clientId != null">clientId = #{clientId},</if>
|
||||
<if test="dcGroup != null">dcGroup = #{dcGroup},</if>
|
||||
<if test="upDirection != null">upDirection = #{upDirection},</if>
|
||||
<if test="downDirection != null">downDirection = #{downDirection},</if>
|
||||
<if test="downPosition != null">downPosition = #{downPosition},</if>
|
||||
<if test="firstArticle != null">firstArticle = #{firstArticle},</if>
|
||||
<if test="mqMaterialFace != null">mqMaterialFace = #{mqMaterialFace},</if>
|
||||
<if test="jrDirection != null">jrDirection = #{jrDirection},</if>
|
||||
<if test="scw != null">scw = #{scw},</if>
|
||||
<if test="bcw != null">bcw = #{bcw},</if>
|
||||
<if test="isSuccess != null">is_success = #{isSuccess},</if>
|
||||
<if test="mesReturnInfo != null">mesReturnInfo = #{mesReturnInfo},</if>
|
||||
<if test="recordTime != null">recordTime = #{recordTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteProMqUploadById" parameterType="Long">
|
||||
delete from pro_mqupload where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteProMqUploadByIds" parameterType="String">
|
||||
delete from pro_mqupload where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue