wcs接口开发转移
parent
2d43cbf1f8
commit
67ef0ac298
@ -0,0 +1,211 @@
|
||||
package com.op.system.api.domain.mes;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 晒盘车到位记录对象 mes_station_arrive
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-08
|
||||
*/
|
||||
public class MesStationArriveDTO extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录id */
|
||||
private String recordId;
|
||||
|
||||
/** 请求id */
|
||||
@Excel(name = "请求id")
|
||||
private String reqCode;
|
||||
|
||||
/** 请求时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "请求时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date reqTime;
|
||||
|
||||
/** 机台类型: */
|
||||
@Excel(name = "机台类型:")
|
||||
private String stationType;
|
||||
|
||||
/** 机台编号 */
|
||||
@Excel(name = "机台编号")
|
||||
private String stationNo;
|
||||
|
||||
/** rfid编号,条码能够区分是白坯料框还是筛盘车 */
|
||||
@Excel(name = "rfid编号,条码能够区分是白坯料框还是筛盘车")
|
||||
private String rfidNo;
|
||||
|
||||
/** 工单编码 */
|
||||
@Excel(name = "工单编码")
|
||||
private String workorderCode;
|
||||
|
||||
/** 批次编码 */
|
||||
@Excel(name = "批次编码")
|
||||
private String batchCode;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
private String cku;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 预留字段4 */
|
||||
@Excel(name = "预留字段4")
|
||||
private String attr4;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
public void setRecordId(String recordId) {
|
||||
this.recordId = recordId;
|
||||
}
|
||||
|
||||
public String getRecordId() {
|
||||
return recordId;
|
||||
}
|
||||
public void setReqCode(String reqCode) {
|
||||
this.reqCode = reqCode;
|
||||
}
|
||||
|
||||
public String getReqCode() {
|
||||
return reqCode;
|
||||
}
|
||||
public void setReqTime(Date reqTime) {
|
||||
this.reqTime = reqTime;
|
||||
}
|
||||
|
||||
public Date getReqTime() {
|
||||
return reqTime;
|
||||
}
|
||||
public void setStationType(String stationType) {
|
||||
this.stationType = stationType;
|
||||
}
|
||||
|
||||
public String getStationType() {
|
||||
return stationType;
|
||||
}
|
||||
public void setStationNo(String stationNo) {
|
||||
this.stationNo = stationNo;
|
||||
}
|
||||
|
||||
public String getStationNo() {
|
||||
return stationNo;
|
||||
}
|
||||
public void setRfidNo(String rfidNo) {
|
||||
this.rfidNo = rfidNo;
|
||||
}
|
||||
|
||||
public String getRfidNo() {
|
||||
return rfidNo;
|
||||
}
|
||||
public void setWorkorderCode(String workorderCode) {
|
||||
this.workorderCode = workorderCode;
|
||||
}
|
||||
|
||||
public String getWorkorderCode() {
|
||||
return workorderCode;
|
||||
}
|
||||
public void setBatchCode(String batchCode) {
|
||||
this.batchCode = batchCode;
|
||||
}
|
||||
|
||||
public String getBatchCode() {
|
||||
return batchCode;
|
||||
}
|
||||
public void setCku(String cku) {
|
||||
this.cku = cku;
|
||||
}
|
||||
|
||||
public String getCku() {
|
||||
return cku;
|
||||
}
|
||||
public void setSpec(String spec) {
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
public String getSpec() {
|
||||
return spec;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(String attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public String getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordId", getRecordId())
|
||||
.append("reqCode", getReqCode())
|
||||
.append("reqTime", getReqTime())
|
||||
.append("stationType", getStationType())
|
||||
.append("stationNo", getStationNo())
|
||||
.append("rfidNo", getRfidNo())
|
||||
.append("workorderCode", getWorkorderCode())
|
||||
.append("batchCode", getBatchCode())
|
||||
.append("cku", getCku())
|
||||
.append("spec", getSpec())
|
||||
.append("remark", getRemark())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.op.mes.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.mes.domain.MesStationArrive;
|
||||
import com.op.mes.service.IMesStationArriveService;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 晒盘车到位记录Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-08
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/arrive")
|
||||
public class MesStationArriveController extends BaseController {
|
||||
@Autowired
|
||||
private IMesStationArriveService mesStationArriveService;
|
||||
|
||||
/**
|
||||
* 查询晒盘车到位记录列表
|
||||
*/
|
||||
@RequiresPermissions("system:arrive:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(MesStationArrive mesStationArrive) {
|
||||
startPage();
|
||||
List<MesStationArrive> list = mesStationArriveService.selectMesStationArriveList(mesStationArrive);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出晒盘车到位记录列表
|
||||
*/
|
||||
@RequiresPermissions("system:arrive:export")
|
||||
@Log(title = "晒盘车到位记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MesStationArrive mesStationArrive) {
|
||||
List<MesStationArrive> list = mesStationArriveService.selectMesStationArriveList(mesStationArrive);
|
||||
ExcelUtil<MesStationArrive> util = new ExcelUtil<MesStationArrive>(MesStationArrive.class);
|
||||
util.exportExcel(response, list, "晒盘车到位记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取晒盘车到位记录详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:arrive:query")
|
||||
@GetMapping(value = "/{recordId}")
|
||||
public AjaxResult getInfo(@PathVariable("recordId") String recordId) {
|
||||
return success(mesStationArriveService.selectMesStationArriveByRecordId(recordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增晒盘车到位记录
|
||||
*/
|
||||
@RequiresPermissions("system:arrive:add")
|
||||
@Log(title = "晒盘车到位记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MesStationArrive mesStationArrive) {
|
||||
return toAjax(mesStationArriveService.insertMesStationArrive(mesStationArrive));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改晒盘车到位记录
|
||||
*/
|
||||
@RequiresPermissions("system:arrive:edit")
|
||||
@Log(title = "晒盘车到位记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MesStationArrive mesStationArrive) {
|
||||
return toAjax(mesStationArriveService.updateMesStationArrive(mesStationArrive));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除晒盘车到位记录
|
||||
*/
|
||||
@RequiresPermissions("system:arrive:remove")
|
||||
@Log(title = "晒盘车到位记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{recordIds}")
|
||||
public AjaxResult remove(@PathVariable String[] recordIds) {
|
||||
return toAjax(mesStationArriveService.deleteMesStationArriveByRecordIds(recordIds));
|
||||
}
|
||||
}
|
@ -0,0 +1,221 @@
|
||||
package com.op.mes.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.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 晒盘车到位记录对象 mes_station_arrive
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-08
|
||||
*/
|
||||
public class MesStationArrive extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录id */
|
||||
private String recordId;
|
||||
|
||||
/** 请求id */
|
||||
@Excel(name = "请求id")
|
||||
private String reqCode;
|
||||
|
||||
/** 请求时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "请求时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date reqTime;
|
||||
|
||||
/** 机台类型: */
|
||||
@Excel(name = "机台类型:")
|
||||
private String stationType;
|
||||
|
||||
/** 机台编号 */
|
||||
@Excel(name = "机台编号")
|
||||
private String stationNo;
|
||||
|
||||
/** rfid编号,条码能够区分是白坯料框还是筛盘车 */
|
||||
@Excel(name = "rfid编号,条码能够区分是白坯料框还是筛盘车")
|
||||
private String rfidNo;
|
||||
|
||||
/** 工单编码 */
|
||||
@Excel(name = "工单编码")
|
||||
private String workorderCode;
|
||||
|
||||
/** 批次编码 */
|
||||
@Excel(name = "批次编码")
|
||||
private String batchCode;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
private String cku;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 预留字段4 */
|
||||
@Excel(name = "预留字段4")
|
||||
private String attr4;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public void setRecordId(String recordId) {
|
||||
this.recordId = recordId;
|
||||
}
|
||||
|
||||
public String getRecordId() {
|
||||
return recordId;
|
||||
}
|
||||
public void setReqCode(String reqCode) {
|
||||
this.reqCode = reqCode;
|
||||
}
|
||||
|
||||
public String getReqCode() {
|
||||
return reqCode;
|
||||
}
|
||||
public void setReqTime(Date reqTime) {
|
||||
this.reqTime = reqTime;
|
||||
}
|
||||
|
||||
public Date getReqTime() {
|
||||
return reqTime;
|
||||
}
|
||||
public void setStationType(String stationType) {
|
||||
this.stationType = stationType;
|
||||
}
|
||||
|
||||
public String getStationType() {
|
||||
return stationType;
|
||||
}
|
||||
public void setStationNo(String stationNo) {
|
||||
this.stationNo = stationNo;
|
||||
}
|
||||
|
||||
public String getStationNo() {
|
||||
return stationNo;
|
||||
}
|
||||
public void setRfidNo(String rfidNo) {
|
||||
this.rfidNo = rfidNo;
|
||||
}
|
||||
|
||||
public String getRfidNo() {
|
||||
return rfidNo;
|
||||
}
|
||||
public void setWorkorderCode(String workorderCode) {
|
||||
this.workorderCode = workorderCode;
|
||||
}
|
||||
|
||||
public String getWorkorderCode() {
|
||||
return workorderCode;
|
||||
}
|
||||
public void setBatchCode(String batchCode) {
|
||||
this.batchCode = batchCode;
|
||||
}
|
||||
|
||||
public String getBatchCode() {
|
||||
return batchCode;
|
||||
}
|
||||
public void setCku(String cku) {
|
||||
this.cku = cku;
|
||||
}
|
||||
|
||||
public String getCku() {
|
||||
return cku;
|
||||
}
|
||||
public void setSpec(String spec) {
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
public String getSpec() {
|
||||
return spec;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(String attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public String getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordId", getRecordId())
|
||||
.append("reqCode", getReqCode())
|
||||
.append("reqTime", getReqTime())
|
||||
.append("stationType", getStationType())
|
||||
.append("stationNo", getStationNo())
|
||||
.append("rfidNo", getRfidNo())
|
||||
.append("workorderCode", getWorkorderCode())
|
||||
.append("batchCode", getBatchCode())
|
||||
.append("cku", getCku())
|
||||
.append("spec", getSpec())
|
||||
.append("remark", getRemark())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.op.mes.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.mes.domain.MesStationArrive;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 晒盘车到位记录Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-08
|
||||
*/
|
||||
@Mapper
|
||||
public interface MesStationArriveMapper {
|
||||
/**
|
||||
* 查询晒盘车到位记录
|
||||
*
|
||||
* @param recordId 晒盘车到位记录主键
|
||||
* @return 晒盘车到位记录
|
||||
*/
|
||||
public MesStationArrive selectMesStationArriveByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询晒盘车到位记录列表
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 晒盘车到位记录集合
|
||||
*/
|
||||
public List<MesStationArrive> selectMesStationArriveList(MesStationArrive mesStationArrive);
|
||||
|
||||
/**
|
||||
* 新增晒盘车到位记录
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesStationArrive(MesStationArrive mesStationArrive);
|
||||
|
||||
/**
|
||||
* 修改晒盘车到位记录
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesStationArrive(MesStationArrive mesStationArrive);
|
||||
|
||||
/**
|
||||
* 删除晒盘车到位记录
|
||||
*
|
||||
* @param recordId 晒盘车到位记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesStationArriveByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 批量删除晒盘车到位记录
|
||||
*
|
||||
* @param recordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesStationArriveByRecordIds(String[] recordIds);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.op.mes.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.op.mes.domain.MesStationArrive;
|
||||
|
||||
/**
|
||||
* 晒盘车到位记录Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-08
|
||||
*/
|
||||
public interface IMesStationArriveService {
|
||||
/**
|
||||
* 查询晒盘车到位记录
|
||||
*
|
||||
* @param recordId 晒盘车到位记录主键
|
||||
* @return 晒盘车到位记录
|
||||
*/
|
||||
public MesStationArrive selectMesStationArriveByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询晒盘车到位记录列表
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 晒盘车到位记录集合
|
||||
*/
|
||||
public List<MesStationArrive> selectMesStationArriveList(MesStationArrive mesStationArrive);
|
||||
|
||||
/**
|
||||
* 新增晒盘车到位记录
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesStationArrive(MesStationArrive mesStationArrive);
|
||||
|
||||
/**
|
||||
* 修改晒盘车到位记录
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesStationArrive(MesStationArrive mesStationArrive);
|
||||
|
||||
/**
|
||||
* 批量删除晒盘车到位记录
|
||||
*
|
||||
* @param recordIds 需要删除的晒盘车到位记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesStationArriveByRecordIds(String[] recordIds);
|
||||
|
||||
/**
|
||||
* 删除晒盘车到位记录信息
|
||||
*
|
||||
* @param recordId 晒盘车到位记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesStationArriveByRecordId(String recordId);
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.op.mes.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.mes.mapper.MesStationArriveMapper;
|
||||
import com.op.mes.domain.MesStationArrive;
|
||||
import com.op.mes.service.IMesStationArriveService;
|
||||
|
||||
/**
|
||||
* 晒盘车到位记录Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-08
|
||||
*/
|
||||
@Service
|
||||
public class MesStationArriveServiceImpl implements IMesStationArriveService {
|
||||
@Autowired
|
||||
private MesStationArriveMapper mesStationArriveMapper;
|
||||
|
||||
/**
|
||||
* 查询晒盘车到位记录
|
||||
*
|
||||
* @param recordId 晒盘车到位记录主键
|
||||
* @return 晒盘车到位记录
|
||||
*/
|
||||
@Override
|
||||
public MesStationArrive selectMesStationArriveByRecordId(String recordId) {
|
||||
return mesStationArriveMapper.selectMesStationArriveByRecordId(recordId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询晒盘车到位记录列表
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 晒盘车到位记录
|
||||
*/
|
||||
@Override
|
||||
public List<MesStationArrive> selectMesStationArriveList(MesStationArrive mesStationArrive) {
|
||||
return mesStationArriveMapper.selectMesStationArriveList(mesStationArrive);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增晒盘车到位记录
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMesStationArrive(MesStationArrive mesStationArrive) {
|
||||
mesStationArrive.setCreateTime(DateUtils.getNowDate());
|
||||
return mesStationArriveMapper.insertMesStationArrive(mesStationArrive);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改晒盘车到位记录
|
||||
*
|
||||
* @param mesStationArrive 晒盘车到位记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMesStationArrive(MesStationArrive mesStationArrive) {
|
||||
mesStationArrive.setUpdateTime(DateUtils.getNowDate());
|
||||
return mesStationArriveMapper.updateMesStationArrive(mesStationArrive);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除晒盘车到位记录
|
||||
*
|
||||
* @param recordIds 需要删除的晒盘车到位记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMesStationArriveByRecordIds(String[] recordIds) {
|
||||
return mesStationArriveMapper.deleteMesStationArriveByRecordIds(recordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除晒盘车到位记录信息
|
||||
*
|
||||
* @param recordId 晒盘车到位记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMesStationArriveByRecordId(String recordId) {
|
||||
return mesStationArriveMapper.deleteMesStationArriveByRecordId(recordId);
|
||||
}
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
<?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.op.mes.mapper.MesStationArriveMapper">
|
||||
|
||||
<resultMap type="MesStationArrive" id="MesStationArriveResult">
|
||||
<result property="recordId" column="record_id" />
|
||||
<result property="reqCode" column="reqCode" />
|
||||
<result property="reqTime" column="reqTime" />
|
||||
<result property="stationType" column="stationType" />
|
||||
<result property="stationNo" column="stationNo" />
|
||||
<result property="rfidNo" column="rfidNo" />
|
||||
<result property="workorderCode" column="workorder_code" />
|
||||
<result property="batchCode" column="batch_code" />
|
||||
<result property="cku" column="cku" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="attr4" column="attr4" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMesStationArriveVo">
|
||||
select record_id, reqCode, reqTime, stationType, stationNo, rfidNo, workorder_code, batch_code, cku, spec, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code from mes_station_arrive
|
||||
</sql>
|
||||
|
||||
<select id="selectMesStationArriveList" parameterType="MesStationArrive" resultMap="MesStationArriveResult">
|
||||
<include refid="selectMesStationArriveVo"/>
|
||||
<where>
|
||||
<if test="reqCode != null and reqCode != ''"> and reqCode = #{reqCode}</if>
|
||||
<if test="reqTime != null "> and reqTime = #{reqTime}</if>
|
||||
<if test="stationType != null and stationType != ''"> and stationType = #{stationType}</if>
|
||||
<if test="stationNo != null and stationNo != ''"> and stationNo = #{stationNo}</if>
|
||||
<if test="rfidNo != null and rfidNo != ''"> and rfidNo = #{rfidNo}</if>
|
||||
<if test="workorderCode != null and workorderCode != ''"> and workorder_code = #{workorderCode}</if>
|
||||
<if test="batchCode != null and batchCode != ''"> and batch_code = #{batchCode}</if>
|
||||
<if test="cku != null and cku != ''"> and cku = #{cku}</if>
|
||||
<if test="spec != null and spec != ''"> and spec = #{spec}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
||||
<if test="attr4 != null and attr4 != ''"> and attr4 = #{attr4}</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMesStationArriveByRecordId" parameterType="String" resultMap="MesStationArriveResult">
|
||||
<include refid="selectMesStationArriveVo"/>
|
||||
where record_id = #{recordId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMesStationArrive" parameterType="MesStationArrive">
|
||||
insert into mes_station_arrive
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">record_id,</if>
|
||||
<if test="reqCode != null and reqCode != ''">reqCode,</if>
|
||||
<if test="reqTime != null">reqTime,</if>
|
||||
<if test="stationType != null">stationType,</if>
|
||||
<if test="stationNo != null">stationNo,</if>
|
||||
<if test="rfidNo != null">rfidNo,</if>
|
||||
<if test="workorderCode != null and workorderCode != ''">workorder_code,</if>
|
||||
<if test="batchCode != null and batchCode != ''">batch_code,</if>
|
||||
<if test="cku != null">cku,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="attr4 != null">attr4,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="factoryCode != null">factory_code,</if>
|
||||
<if test="status != null">status,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">#{recordId},</if>
|
||||
<if test="reqCode != null and reqCode != ''">#{reqCode},</if>
|
||||
<if test="reqTime != null">#{reqTime},</if>
|
||||
<if test="stationType != null">#{stationType},</if>
|
||||
<if test="stationNo != null">#{stationNo},</if>
|
||||
<if test="rfidNo != null">#{rfidNo},</if>
|
||||
<if test="workorderCode != null and workorderCode != ''">#{workorderCode},</if>
|
||||
<if test="batchCode != null and batchCode != ''">#{batchCode},</if>
|
||||
<if test="cku != null">#{cku},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="attr4 != null">#{attr4},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="factoryCode != null">#{factoryCode},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMesStationArrive" parameterType="MesStationArrive">
|
||||
update mes_station_arrive
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="reqCode != null and reqCode != ''">reqCode = #{reqCode},</if>
|
||||
<if test="reqTime != null">reqTime = #{reqTime},</if>
|
||||
<if test="stationType != null">stationType = #{stationType},</if>
|
||||
<if test="stationNo != null">stationNo = #{stationNo},</if>
|
||||
<if test="rfidNo != null">rfidNo = #{rfidNo},</if>
|
||||
<if test="workorderCode != null and workorderCode != ''">workorder_code = #{workorderCode},</if>
|
||||
<if test="batchCode != null and batchCode != ''">batch_code = #{batchCode},</if>
|
||||
<if test="cku != null">cku = #{cku},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMesStationArriveByRecordId" parameterType="String">
|
||||
delete from mes_station_arrive where record_id = #{recordId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMesStationArriveByRecordIds" parameterType="String">
|
||||
delete from mes_station_arrive where record_id in
|
||||
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue