WMS 删除
parent
d33acee6d5
commit
952b654300
@ -1,95 +0,0 @@
|
||||
package com.op.wms.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.wms.domain.BaseBomItemsT;
|
||||
import com.op.wms.service.IBaseBomItemsTService;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
|
||||
/**
|
||||
* 物料BOM管理Controller
|
||||
*
|
||||
* @author JGY
|
||||
* @date 2023-07-18
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/bom")
|
||||
public class BaseBomItemsTController extends BaseController {
|
||||
@Autowired
|
||||
private IBaseBomItemsTService baseBomItemsTService;
|
||||
|
||||
/**
|
||||
* 查询物料BOM管理列表
|
||||
*/
|
||||
@RequiresPermissions("wms:bom:list")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(BaseBomItemsT baseBomItemsT) {
|
||||
List<BaseBomItemsT> list = baseBomItemsTService.selectBaseBomItemsTList(baseBomItemsT);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出物料BOM管理列表
|
||||
*/
|
||||
@RequiresPermissions("wms:bom:export")
|
||||
@Log(title = "物料BOM管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, BaseBomItemsT baseBomItemsT) {
|
||||
List<BaseBomItemsT> list = baseBomItemsTService.selectBaseBomItemsTList(baseBomItemsT);
|
||||
ExcelUtil<BaseBomItemsT> util = new ExcelUtil<BaseBomItemsT>(BaseBomItemsT.class);
|
||||
util.exportExcel(response, list, "物料BOM管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取物料BOM管理详细信息
|
||||
*/
|
||||
@RequiresPermissions("wms:bom:query")
|
||||
@GetMapping(value = "/{bomItemId}")
|
||||
public AjaxResult getInfo(@PathVariable("bomItemId") String bomItemId) {
|
||||
return success(baseBomItemsTService.selectBaseBomItemsTByBomItemId(bomItemId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增物料BOM管理
|
||||
*/
|
||||
@RequiresPermissions("wms:bom:add")
|
||||
@Log(title = "物料BOM管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody BaseBomItemsT baseBomItemsT) {
|
||||
return toAjax(baseBomItemsTService.insertBaseBomItemsT(baseBomItemsT));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改物料BOM管理
|
||||
*/
|
||||
@RequiresPermissions("wms:bom:edit")
|
||||
@Log(title = "物料BOM管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody BaseBomItemsT baseBomItemsT) {
|
||||
return toAjax(baseBomItemsTService.updateBaseBomItemsT(baseBomItemsT));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除物料BOM管理
|
||||
*/
|
||||
@RequiresPermissions("wms:bom:remove")
|
||||
@Log(title = "物料BOM管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{bomItemIds}")
|
||||
public AjaxResult remove(@PathVariable String[] bomItemIds) {
|
||||
return toAjax(baseBomItemsTService.deleteBaseBomItemsTByBomItemIds(bomItemIds));
|
||||
}
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
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.MesPrepareDetail;
|
||||
import com.op.mes.service.IMesPrepareDetailService;
|
||||
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;
|
||||
|
||||
/**
|
||||
* mes备料单明细Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-04
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/prepareDetail")
|
||||
public class MesPrepareDetailController extends BaseController {
|
||||
@Autowired
|
||||
private IMesPrepareDetailService mesPrepareDetailService;
|
||||
|
||||
/**
|
||||
* 查询mes备料单明细列表
|
||||
*/
|
||||
@RequiresPermissions("mes:prepareDetail:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(MesPrepareDetail mesPrepareDetail) {
|
||||
startPage();
|
||||
List<MesPrepareDetail> list = mesPrepareDetailService.selectMesPrepareDetailList(mesPrepareDetail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出mes备料单明细列表
|
||||
*/
|
||||
@RequiresPermissions("mes:prepareDetail:export")
|
||||
@Log(title = "mes备料单明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MesPrepareDetail mesPrepareDetail) {
|
||||
List<MesPrepareDetail> list = mesPrepareDetailService.selectMesPrepareDetailList(mesPrepareDetail);
|
||||
ExcelUtil<MesPrepareDetail> util = new ExcelUtil<MesPrepareDetail>(MesPrepareDetail.class);
|
||||
util.exportExcel(response, list, "mes备料单明细数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取mes备料单明细详细信息
|
||||
*/
|
||||
@RequiresPermissions("mes:prepareDetail:query")
|
||||
@GetMapping(value = "/{recordId}")
|
||||
public AjaxResult getInfo(@PathVariable("recordId") String recordId) {
|
||||
return success(mesPrepareDetailService.selectMesPrepareDetailByRecordId(recordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增mes备料单明细
|
||||
*/
|
||||
@RequiresPermissions("mes:prepareDetail:add")
|
||||
@Log(title = "mes备料单明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MesPrepareDetail mesPrepareDetail) {
|
||||
return toAjax(mesPrepareDetailService.insertMesPrepareDetail(mesPrepareDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改mes备料单明细
|
||||
*/
|
||||
@RequiresPermissions("mes:prepareDetail:edit")
|
||||
@Log(title = "mes备料单明细", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MesPrepareDetail mesPrepareDetail) {
|
||||
return toAjax(mesPrepareDetailService.updateMesPrepareDetail(mesPrepareDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除mes备料单明细
|
||||
*/
|
||||
@RequiresPermissions("mes:prepareDetail:remove")
|
||||
@Log(title = "mes备料单明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{recordIds}")
|
||||
public AjaxResult remove(@PathVariable String[] recordIds) {
|
||||
return toAjax(mesPrepareDetailService.deleteMesPrepareDetailByRecordIds(recordIds));
|
||||
}
|
||||
}
|
@ -1,278 +0,0 @@
|
||||
package com.op.wms.domain;
|
||||
|
||||
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.TreeEntity;
|
||||
|
||||
/**
|
||||
* 物料BOM管理对象 base_bom_items_t
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-18
|
||||
*/
|
||||
public class BaseBomItemsT extends TreeEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** BOM配方组成主键 */
|
||||
private String bomItemId;
|
||||
|
||||
/** BOM配方组成描述 */
|
||||
@Excel(name = "BOM配方组成描述")
|
||||
private String bomItemDesc;
|
||||
|
||||
/** BOM配方组成序号 */
|
||||
@Excel(name = "BOM配方组成序号")
|
||||
private Long bomFormulationOrder;
|
||||
|
||||
/** BOM配方主键 */
|
||||
@Excel(name = "BOM配方主键")
|
||||
private String bomFormulationId;
|
||||
|
||||
/** 产品主键 */
|
||||
@Excel(name = "产品主键")
|
||||
private String prodId;
|
||||
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private Long Quantity;
|
||||
|
||||
/** 精度 */
|
||||
@Excel(name = "精度")
|
||||
private Long Precision;
|
||||
|
||||
/** 计量单位主键 */
|
||||
@Excel(name = "计量单位主键")
|
||||
private String euId;
|
||||
|
||||
/** 最低偏差 */
|
||||
@Excel(name = "最低偏差")
|
||||
private Long lowerTolerance;
|
||||
|
||||
/** 最低偏差精度 */
|
||||
@Excel(name = "最低偏差精度")
|
||||
private Long lowerTolerancePrecision;
|
||||
|
||||
/** 最高偏差 */
|
||||
@Excel(name = "最高偏差")
|
||||
private Long upperTolerance;
|
||||
|
||||
/** 最高偏差精度 */
|
||||
@Excel(name = "最高偏差精度")
|
||||
private Long upperTolerancePrecision;
|
||||
|
||||
/** 可用标识 */
|
||||
@Excel(name = "可用标识")
|
||||
private String Active;
|
||||
|
||||
/** 工厂主键 */
|
||||
@Excel(name = "工厂主键")
|
||||
private String siteId;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String siteCode;
|
||||
|
||||
/** 企业主键 */
|
||||
@Excel(name = "企业主键")
|
||||
private String enterpriseId;
|
||||
|
||||
/** 企业编码 */
|
||||
@Excel(name = "企业编码")
|
||||
private String enterpriseCode;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String FactoryNo;
|
||||
|
||||
/** 采购类型 */
|
||||
@Excel(name = "采购类型")
|
||||
private String BESKZ;
|
||||
|
||||
/** 特殊采购类型 */
|
||||
@Excel(name = "特殊采购类型")
|
||||
private String SOBSL;
|
||||
|
||||
/** 层级 */
|
||||
@Excel(name = "层级")
|
||||
private String STUFE;
|
||||
|
||||
public void setBomItemId(String bomItemId) {
|
||||
this.bomItemId = bomItemId;
|
||||
}
|
||||
|
||||
public String getBomItemId() {
|
||||
return bomItemId;
|
||||
}
|
||||
public void setBomItemDesc(String bomItemDesc) {
|
||||
this.bomItemDesc = bomItemDesc;
|
||||
}
|
||||
|
||||
public String getBomItemDesc() {
|
||||
return bomItemDesc;
|
||||
}
|
||||
public void setBomFormulationOrder(Long bomFormulationOrder) {
|
||||
this.bomFormulationOrder = bomFormulationOrder;
|
||||
}
|
||||
|
||||
public Long getBomFormulationOrder() {
|
||||
return bomFormulationOrder;
|
||||
}
|
||||
public void setBomFormulationId(String bomFormulationId) {
|
||||
this.bomFormulationId = bomFormulationId;
|
||||
}
|
||||
|
||||
public String getBomFormulationId() {
|
||||
return bomFormulationId;
|
||||
}
|
||||
public void setProdId(String prodId) {
|
||||
this.prodId = prodId;
|
||||
}
|
||||
|
||||
public String getProdId() {
|
||||
return prodId;
|
||||
}
|
||||
public void setQuantity(Long Quantity) {
|
||||
this.Quantity = Quantity;
|
||||
}
|
||||
|
||||
public Long getQuantity() {
|
||||
return Quantity;
|
||||
}
|
||||
public void setPrecision(Long Precision) {
|
||||
this.Precision = Precision;
|
||||
}
|
||||
|
||||
public Long getPrecision() {
|
||||
return Precision;
|
||||
}
|
||||
public void setEuId(String euId) {
|
||||
this.euId = euId;
|
||||
}
|
||||
|
||||
public String getEuId() {
|
||||
return euId;
|
||||
}
|
||||
public void setLowerTolerance(Long lowerTolerance) {
|
||||
this.lowerTolerance = lowerTolerance;
|
||||
}
|
||||
|
||||
public Long getLowerTolerance() {
|
||||
return lowerTolerance;
|
||||
}
|
||||
public void setLowerTolerancePrecision(Long lowerTolerancePrecision) {
|
||||
this.lowerTolerancePrecision = lowerTolerancePrecision;
|
||||
}
|
||||
|
||||
public Long getLowerTolerancePrecision() {
|
||||
return lowerTolerancePrecision;
|
||||
}
|
||||
public void setUpperTolerance(Long upperTolerance) {
|
||||
this.upperTolerance = upperTolerance;
|
||||
}
|
||||
|
||||
public Long getUpperTolerance() {
|
||||
return upperTolerance;
|
||||
}
|
||||
public void setUpperTolerancePrecision(Long upperTolerancePrecision) {
|
||||
this.upperTolerancePrecision = upperTolerancePrecision;
|
||||
}
|
||||
|
||||
public Long getUpperTolerancePrecision() {
|
||||
return upperTolerancePrecision;
|
||||
}
|
||||
public void setActive(String Active) {
|
||||
this.Active = Active;
|
||||
}
|
||||
|
||||
public String getActive() {
|
||||
return Active;
|
||||
}
|
||||
public void setSiteId(String siteId) {
|
||||
this.siteId = siteId;
|
||||
}
|
||||
|
||||
public String getSiteId() {
|
||||
return siteId;
|
||||
}
|
||||
public void setSiteCode(String siteCode) {
|
||||
this.siteCode = siteCode;
|
||||
}
|
||||
|
||||
public String getSiteCode() {
|
||||
return siteCode;
|
||||
}
|
||||
public void setEnterpriseId(String enterpriseId) {
|
||||
this.enterpriseId = enterpriseId;
|
||||
}
|
||||
|
||||
public String getEnterpriseId() {
|
||||
return enterpriseId;
|
||||
}
|
||||
public void setEnterpriseCode(String enterpriseCode) {
|
||||
this.enterpriseCode = enterpriseCode;
|
||||
}
|
||||
|
||||
public String getEnterpriseCode() {
|
||||
return enterpriseCode;
|
||||
}
|
||||
public void setFactoryNo(String FactoryNo) {
|
||||
this.FactoryNo = FactoryNo;
|
||||
}
|
||||
|
||||
public String getFactoryNo() {
|
||||
return FactoryNo;
|
||||
}
|
||||
public void setBESKZ(String BESKZ) {
|
||||
this.BESKZ = BESKZ;
|
||||
}
|
||||
|
||||
public String getBESKZ() {
|
||||
return BESKZ;
|
||||
}
|
||||
public void setSOBSL(String SOBSL) {
|
||||
this.SOBSL = SOBSL;
|
||||
}
|
||||
|
||||
public String getSOBSL() {
|
||||
return SOBSL;
|
||||
}
|
||||
public void setSTUFE(String STUFE) {
|
||||
this.STUFE = STUFE;
|
||||
}
|
||||
|
||||
public String getSTUFE() {
|
||||
return STUFE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("bomItemId", getBomItemId())
|
||||
.append("bomItemDesc", getBomItemDesc())
|
||||
.append("bomFormulationOrder", getBomFormulationOrder())
|
||||
.append("bomFormulationId", getBomFormulationId())
|
||||
.append("prodId", getProdId())
|
||||
.append("Quantity", getQuantity())
|
||||
.append("Precision", getPrecision())
|
||||
.append("euId", getEuId())
|
||||
.append("lowerTolerance", getLowerTolerance())
|
||||
.append("lowerTolerancePrecision", getLowerTolerancePrecision())
|
||||
.append("upperTolerance", getUpperTolerance())
|
||||
.append("upperTolerancePrecision", getUpperTolerancePrecision())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("Active", getActive())
|
||||
.append("siteId", getSiteId())
|
||||
.append("siteCode", getSiteCode())
|
||||
.append("enterpriseId", getEnterpriseId())
|
||||
.append("enterpriseCode", getEnterpriseCode())
|
||||
.append("FactoryNo", getFactoryNo())
|
||||
.append("BESKZ", getBESKZ())
|
||||
.append("SOBSL", getSOBSL())
|
||||
.append("STUFE", getSTUFE())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -1,222 +0,0 @@
|
||||
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备料单明细对象 mes_prepare_detail
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-04
|
||||
*/
|
||||
public class MesPrepareDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private String recordId;
|
||||
|
||||
/** 备料主ID */
|
||||
@Excel(name = "备料主ID")
|
||||
private String prepareId;
|
||||
|
||||
/** 物料编号 */
|
||||
@Excel(name = "物料编号")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String materailName;
|
||||
|
||||
/** 规格型号 */
|
||||
@Excel(name = "规格型号")
|
||||
private String materailSpc;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 生产数量 */
|
||||
@Excel(name = "生产数量")
|
||||
private Long quantity;
|
||||
|
||||
/** 工单生产日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "工单生产日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date productDate;
|
||||
|
||||
/** 班次 */
|
||||
@Excel(name = "班次")
|
||||
private String shiftId;
|
||||
|
||||
/** 单据状态 */
|
||||
@Excel(name = "单据状态")
|
||||
private String status;
|
||||
|
||||
/** 预留字段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 prodType;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String factoryCode;
|
||||
|
||||
public void setRecordId(String recordId) {
|
||||
this.recordId = recordId;
|
||||
}
|
||||
|
||||
public String getRecordId() {
|
||||
return recordId;
|
||||
}
|
||||
public void setPrepareId(String prepareId) {
|
||||
this.prepareId = prepareId;
|
||||
}
|
||||
|
||||
public String getPrepareId() {
|
||||
return prepareId;
|
||||
}
|
||||
public void setMaterialCode(String materialCode) {
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode() {
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterailName(String materailName) {
|
||||
this.materailName = materailName;
|
||||
}
|
||||
|
||||
public String getMaterailName() {
|
||||
return materailName;
|
||||
}
|
||||
public void setMaterailSpc(String materailSpc) {
|
||||
this.materailSpc = materailSpc;
|
||||
}
|
||||
|
||||
public String getMaterailSpc() {
|
||||
return materailSpc;
|
||||
}
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
public void setQuantity(Long quantity) {
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public Long getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
public void setProductDate(Date productDate) {
|
||||
this.productDate = productDate;
|
||||
}
|
||||
|
||||
public Date getProductDate() {
|
||||
return productDate;
|
||||
}
|
||||
public void setShiftId(String shiftId) {
|
||||
this.shiftId = shiftId;
|
||||
}
|
||||
|
||||
public String getShiftId() {
|
||||
return shiftId;
|
||||
}
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
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 setProdType(String prodType) {
|
||||
this.prodType = prodType;
|
||||
}
|
||||
|
||||
public String getProdType() {
|
||||
return prodType;
|
||||
}
|
||||
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("prepareId", getPrepareId())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materailName", getMaterailName())
|
||||
.append("materailSpc", getMaterailSpc())
|
||||
.append("unit", getUnit())
|
||||
.append("quantity", getQuantity())
|
||||
.append("productDate", getProductDate())
|
||||
.append("shiftId", getShiftId())
|
||||
.append("status", getStatus())
|
||||
.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("prodType", getProdType())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
package com.op.wms.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.wms.domain.BaseBomItemsT;
|
||||
|
||||
/**
|
||||
* 物料BOM管理Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-18
|
||||
*/
|
||||
public interface BaseBomItemsTMapper {
|
||||
/**
|
||||
* 查询物料BOM管理
|
||||
*
|
||||
* @param bomItemId 物料BOM管理主键
|
||||
* @return 物料BOM管理
|
||||
*/
|
||||
public BaseBomItemsT selectBaseBomItemsTByBomItemId(String bomItemId);
|
||||
|
||||
/**
|
||||
* 查询物料BOM管理列表
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 物料BOM管理集合
|
||||
*/
|
||||
public List<BaseBomItemsT> selectBaseBomItemsTList(BaseBomItemsT baseBomItemsT);
|
||||
|
||||
/**
|
||||
* 新增物料BOM管理
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseBomItemsT(BaseBomItemsT baseBomItemsT);
|
||||
|
||||
/**
|
||||
* 修改物料BOM管理
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseBomItemsT(BaseBomItemsT baseBomItemsT);
|
||||
|
||||
/**
|
||||
* 删除物料BOM管理
|
||||
*
|
||||
* @param bomItemId 物料BOM管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseBomItemsTByBomItemId(String bomItemId);
|
||||
|
||||
/**
|
||||
* 批量删除物料BOM管理
|
||||
*
|
||||
* @param bomItemIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseBomItemsTByBomItemIds(String[] bomItemIds);
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
package com.op.mes.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.mes.domain.MesPrepareDetail;
|
||||
|
||||
/**
|
||||
* mes备料单明细Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-04
|
||||
*/
|
||||
public interface MesPrepareDetailMapper {
|
||||
/**
|
||||
* 查询mes备料单明细
|
||||
*
|
||||
* @param recordId mes备料单明细主键
|
||||
* @return mes备料单明细
|
||||
*/
|
||||
public MesPrepareDetail selectMesPrepareDetailByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询mes备料单明细列表
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return mes备料单明细集合
|
||||
*/
|
||||
public List<MesPrepareDetail> selectMesPrepareDetailList(MesPrepareDetail mesPrepareDetail);
|
||||
|
||||
/**
|
||||
* 新增mes备料单明细
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesPrepareDetail(MesPrepareDetail mesPrepareDetail);
|
||||
|
||||
/**
|
||||
* 修改mes备料单明细
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesPrepareDetail(MesPrepareDetail mesPrepareDetail);
|
||||
|
||||
/**
|
||||
* 删除mes备料单明细
|
||||
*
|
||||
* @param recordId mes备料单明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesPrepareDetailByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 批量删除mes备料单明细
|
||||
*
|
||||
* @param recordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesPrepareDetailByRecordIds(String[] recordIds);
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
package com.op.wms.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.op.wms.domain.BaseBomItemsT;
|
||||
|
||||
/**
|
||||
* 物料BOM管理Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-18
|
||||
*/
|
||||
public interface IBaseBomItemsTService {
|
||||
/**
|
||||
* 查询物料BOM管理
|
||||
*
|
||||
* @param bomItemId 物料BOM管理主键
|
||||
* @return 物料BOM管理
|
||||
*/
|
||||
public BaseBomItemsT selectBaseBomItemsTByBomItemId(String bomItemId);
|
||||
|
||||
/**
|
||||
* 查询物料BOM管理列表
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 物料BOM管理集合
|
||||
*/
|
||||
public List<BaseBomItemsT> selectBaseBomItemsTList(BaseBomItemsT baseBomItemsT);
|
||||
|
||||
/**
|
||||
* 新增物料BOM管理
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseBomItemsT(BaseBomItemsT baseBomItemsT);
|
||||
|
||||
/**
|
||||
* 修改物料BOM管理
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseBomItemsT(BaseBomItemsT baseBomItemsT);
|
||||
|
||||
/**
|
||||
* 批量删除物料BOM管理
|
||||
*
|
||||
* @param bomItemIds 需要删除的物料BOM管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseBomItemsTByBomItemIds(String[] bomItemIds);
|
||||
|
||||
/**
|
||||
* 删除物料BOM管理信息
|
||||
*
|
||||
* @param bomItemId 物料BOM管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseBomItemsTByBomItemId(String bomItemId);
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
package com.op.mes.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.op.mes.domain.MesPrepareDetail;
|
||||
|
||||
/**
|
||||
* mes备料单明细Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-04
|
||||
*/
|
||||
public interface IMesPrepareDetailService {
|
||||
/**
|
||||
* 查询mes备料单明细
|
||||
*
|
||||
* @param recordId mes备料单明细主键
|
||||
* @return mes备料单明细
|
||||
*/
|
||||
public MesPrepareDetail selectMesPrepareDetailByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询mes备料单明细列表
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return mes备料单明细集合
|
||||
*/
|
||||
public List<MesPrepareDetail> selectMesPrepareDetailList(MesPrepareDetail mesPrepareDetail);
|
||||
|
||||
/**
|
||||
* 新增mes备料单明细
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesPrepareDetail(MesPrepareDetail mesPrepareDetail);
|
||||
|
||||
/**
|
||||
* 修改mes备料单明细
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesPrepareDetail(MesPrepareDetail mesPrepareDetail);
|
||||
|
||||
/**
|
||||
* 批量删除mes备料单明细
|
||||
*
|
||||
* @param recordIds 需要删除的mes备料单明细主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesPrepareDetailByRecordIds(String[] recordIds);
|
||||
|
||||
/**
|
||||
* 删除mes备料单明细信息
|
||||
*
|
||||
* @param recordId mes备料单明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesPrepareDetailByRecordId(String recordId);
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
package com.op.wms.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import com.op.common.security.utils.SecurityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.wms.mapper.BaseBomItemsTMapper;
|
||||
import com.op.wms.domain.BaseBomItemsT;
|
||||
import com.op.wms.service.IBaseBomItemsTService;
|
||||
|
||||
/**
|
||||
* 物料BOM管理Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-18
|
||||
*/
|
||||
@Service
|
||||
public class BaseBomItemsTServiceImpl implements IBaseBomItemsTService {
|
||||
@Autowired
|
||||
private BaseBomItemsTMapper baseBomItemsTMapper;
|
||||
|
||||
/**
|
||||
* 查询物料BOM管理
|
||||
*
|
||||
* @param bomItemId 物料BOM管理主键
|
||||
* @return 物料BOM管理
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public BaseBomItemsT selectBaseBomItemsTByBomItemId(String bomItemId) {
|
||||
return baseBomItemsTMapper.selectBaseBomItemsTByBomItemId(bomItemId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询物料BOM管理列表
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 物料BOM管理
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<BaseBomItemsT> selectBaseBomItemsTList(BaseBomItemsT baseBomItemsT) {
|
||||
return baseBomItemsTMapper.selectBaseBomItemsTList(baseBomItemsT);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增物料BOM管理
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertBaseBomItemsT(BaseBomItemsT baseBomItemsT) {
|
||||
baseBomItemsT.setCreateTime(DateUtils.getNowDate());
|
||||
baseBomItemsT.setCreateBy(SecurityUtils.getUsername());
|
||||
return baseBomItemsTMapper.insertBaseBomItemsT(baseBomItemsT);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改物料BOM管理
|
||||
*
|
||||
* @param baseBomItemsT 物料BOM管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateBaseBomItemsT(BaseBomItemsT baseBomItemsT) {
|
||||
baseBomItemsT.setUpdateTime(DateUtils.getNowDate());
|
||||
baseBomItemsT.setUpdateBy(SecurityUtils.getUsername());
|
||||
return baseBomItemsTMapper.updateBaseBomItemsT(baseBomItemsT);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除物料BOM管理
|
||||
*
|
||||
* @param bomItemIds 需要删除的物料BOM管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteBaseBomItemsTByBomItemIds(String[] bomItemIds) {
|
||||
return baseBomItemsTMapper.deleteBaseBomItemsTByBomItemIds(bomItemIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除物料BOM管理信息
|
||||
*
|
||||
* @param bomItemId 物料BOM管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteBaseBomItemsTByBomItemId(String bomItemId) {
|
||||
return baseBomItemsTMapper.deleteBaseBomItemsTByBomItemId(bomItemId);
|
||||
}
|
||||
}
|
@ -1,89 +0,0 @@
|
||||
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.MesPrepareDetailMapper;
|
||||
import com.op.mes.domain.MesPrepareDetail;
|
||||
import com.op.mes.service.IMesPrepareDetailService;
|
||||
|
||||
/**
|
||||
* mes备料单明细Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-04
|
||||
*/
|
||||
@Service
|
||||
public class MesPrepareDetailServiceImpl implements IMesPrepareDetailService {
|
||||
@Autowired
|
||||
private MesPrepareDetailMapper mesPrepareDetailMapper;
|
||||
|
||||
/**
|
||||
* 查询mes备料单明细
|
||||
*
|
||||
* @param recordId mes备料单明细主键
|
||||
* @return mes备料单明细
|
||||
*/
|
||||
@Override
|
||||
public MesPrepareDetail selectMesPrepareDetailByRecordId(String recordId) {
|
||||
return mesPrepareDetailMapper.selectMesPrepareDetailByRecordId(recordId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询mes备料单明细列表
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return mes备料单明细
|
||||
*/
|
||||
@Override
|
||||
public List<MesPrepareDetail> selectMesPrepareDetailList(MesPrepareDetail mesPrepareDetail) {
|
||||
return mesPrepareDetailMapper.selectMesPrepareDetailList(mesPrepareDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增mes备料单明细
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMesPrepareDetail(MesPrepareDetail mesPrepareDetail) {
|
||||
mesPrepareDetail.setCreateTime(DateUtils.getNowDate());
|
||||
return mesPrepareDetailMapper.insertMesPrepareDetail(mesPrepareDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改mes备料单明细
|
||||
*
|
||||
* @param mesPrepareDetail mes备料单明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMesPrepareDetail(MesPrepareDetail mesPrepareDetail) {
|
||||
mesPrepareDetail.setUpdateTime(DateUtils.getNowDate());
|
||||
return mesPrepareDetailMapper.updateMesPrepareDetail(mesPrepareDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除mes备料单明细
|
||||
*
|
||||
* @param recordIds 需要删除的mes备料单明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMesPrepareDetailByRecordIds(String[] recordIds) {
|
||||
return mesPrepareDetailMapper.deleteMesPrepareDetailByRecordIds(recordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除mes备料单明细信息
|
||||
*
|
||||
* @param recordId mes备料单明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMesPrepareDetailByRecordId(String recordId) {
|
||||
return mesPrepareDetailMapper.deleteMesPrepareDetailByRecordId(recordId);
|
||||
}
|
||||
}
|
@ -1,169 +0,0 @@
|
||||
<?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.wms.mapper.BaseBomItemsTMapper">
|
||||
|
||||
<resultMap type="BaseBomItemsT" id="BaseBomItemsTResult">
|
||||
<result property="bomItemId" column="BOM_Item_Id" />
|
||||
<result property="bomItemDesc" column="BOM_Item_Desc" />
|
||||
<result property="bomFormulationOrder" column="BOM_Formulation_Order" />
|
||||
<result property="bomFormulationId" column="Bom_Formulation_Id" />
|
||||
<result property="prodId" column="Prod_Id" />
|
||||
<result property="Quantity" column="Quantity" />
|
||||
<result property="Precision" column="Precision" />
|
||||
<result property="euId" column="EU_Id" />
|
||||
<result property="lowerTolerance" column="Lower_Tolerance" />
|
||||
<result property="lowerTolerancePrecision" column="Lower_Tolerance_Precision" />
|
||||
<result property="upperTolerance" column="Upper_Tolerance" />
|
||||
<result property="upperTolerancePrecision" column="Upper_Tolerance_Precision" />
|
||||
<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="Active" column="Active" />
|
||||
<result property="siteId" column="Site_id" />
|
||||
<result property="siteCode" column="Site_code" />
|
||||
<result property="enterpriseId" column="Enterprise_Id" />
|
||||
<result property="enterpriseCode" column="Enterprise_Code" />
|
||||
<result property="FactoryNo" column="FactoryNo" />
|
||||
<result property="BESKZ" column="BESKZ" />
|
||||
<result property="SOBSL" column="SOBSL" />
|
||||
<result property="STUFE" column="STUFE" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseBomItemsTVo">
|
||||
select BOM_Item_Id, BOM_Item_Desc, BOM_Formulation_Order, Bom_Formulation_Id, Prod_Id, Quantity, Precision, EU_Id, Lower_Tolerance, Lower_Tolerance_Precision, Upper_Tolerance, Upper_Tolerance_Precision, create_by, create_time, update_by, update_time, Active, Site_id, Site_code, Enterprise_Id, Enterprise_Code, FactoryNo, BESKZ, SOBSL, STUFE from base_bom_items_t
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseBomItemsTList" parameterType="BaseBomItemsT" resultMap="BaseBomItemsTResult">
|
||||
<include refid="selectBaseBomItemsTVo"/>
|
||||
<where>
|
||||
<if test="bomItemDesc != null and bomItemDesc != ''"> and BOM_Item_Desc = #{bomItemDesc}</if>
|
||||
<if test="bomFormulationOrder != null "> and BOM_Formulation_Order = #{bomFormulationOrder}</if>
|
||||
<if test="bomFormulationId != null and bomFormulationId != ''"> and Bom_Formulation_Id = #{bomFormulationId}</if>
|
||||
<if test="prodId != null and prodId != ''"> and Prod_Id = #{prodId}</if>
|
||||
<if test="Quantity != null "> and Quantity = #{Quantity}</if>
|
||||
<if test="Precision != null "> and Precision = #{Precision}</if>
|
||||
<if test="euId != null and euId != ''"> and EU_Id = #{euId}</if>
|
||||
<if test="lowerTolerance != null "> and Lower_Tolerance = #{lowerTolerance}</if>
|
||||
<if test="lowerTolerancePrecision != null "> and Lower_Tolerance_Precision = #{lowerTolerancePrecision}</if>
|
||||
<if test="upperTolerance != null "> and Upper_Tolerance = #{upperTolerance}</if>
|
||||
<if test="upperTolerancePrecision != null "> and Upper_Tolerance_Precision = #{upperTolerancePrecision}</if>
|
||||
<if test="Active != null and Active != ''"> and Active = #{Active}</if>
|
||||
<if test="siteId != null and siteId != ''"> and Site_id = #{siteId}</if>
|
||||
<if test="siteCode != null and siteCode != ''"> and Site_code = #{siteCode}</if>
|
||||
<if test="enterpriseId != null and enterpriseId != ''"> and Enterprise_Id = #{enterpriseId}</if>
|
||||
<if test="enterpriseCode != null and enterpriseCode != ''"> and Enterprise_Code = #{enterpriseCode}</if>
|
||||
<if test="FactoryNo != null and FactoryNo != ''"> and FactoryNo = #{FactoryNo}</if>
|
||||
<if test="BESKZ != null and BESKZ != ''"> and BESKZ = #{BESKZ}</if>
|
||||
<if test="SOBSL != null and SOBSL != ''"> and SOBSL = #{SOBSL}</if>
|
||||
<if test="STUFE != null and STUFE != ''"> and STUFE = #{STUFE}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseBomItemsTByBomItemId" parameterType="String" resultMap="BaseBomItemsTResult">
|
||||
<include refid="selectBaseBomItemsTVo"/>
|
||||
where BOM_Item_Id = #{bomItemId}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseBomItemsT" parameterType="BaseBomItemsT">
|
||||
insert into base_bom_items_t
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="bomItemId != null">BOM_Item_Id,</if>
|
||||
<if test="bomItemDesc != null">BOM_Item_Desc,</if>
|
||||
<if test="bomFormulationOrder != null">BOM_Formulation_Order,</if>
|
||||
<if test="bomFormulationId != null">Bom_Formulation_Id,</if>
|
||||
<if test="prodId != null">Prod_Id,</if>
|
||||
<if test="Quantity != null">Quantity,</if>
|
||||
<if test="Precision != null">Precision,</if>
|
||||
<if test="euId != null">EU_Id,</if>
|
||||
<if test="lowerTolerance != null">Lower_Tolerance,</if>
|
||||
<if test="lowerTolerancePrecision != null">Lower_Tolerance_Precision,</if>
|
||||
<if test="upperTolerance != null">Upper_Tolerance,</if>
|
||||
<if test="upperTolerancePrecision != null">Upper_Tolerance_Precision,</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="Active != null">Active,</if>
|
||||
<if test="siteId != null">Site_id,</if>
|
||||
<if test="siteCode != null">Site_code,</if>
|
||||
<if test="enterpriseId != null">Enterprise_Id,</if>
|
||||
<if test="enterpriseCode != null">Enterprise_Code,</if>
|
||||
<if test="FactoryNo != null">FactoryNo,</if>
|
||||
<if test="BESKZ != null">BESKZ,</if>
|
||||
<if test="SOBSL != null">SOBSL,</if>
|
||||
<if test="STUFE != null">STUFE,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="bomItemId != null">#{bomItemId},</if>
|
||||
<if test="bomItemDesc != null">#{bomItemDesc},</if>
|
||||
<if test="bomFormulationOrder != null">#{bomFormulationOrder},</if>
|
||||
<if test="bomFormulationId != null">#{bomFormulationId},</if>
|
||||
<if test="prodId != null">#{prodId},</if>
|
||||
<if test="Quantity != null">#{Quantity},</if>
|
||||
<if test="Precision != null">#{Precision},</if>
|
||||
<if test="euId != null">#{euId},</if>
|
||||
<if test="lowerTolerance != null">#{lowerTolerance},</if>
|
||||
<if test="lowerTolerancePrecision != null">#{lowerTolerancePrecision},</if>
|
||||
<if test="upperTolerance != null">#{upperTolerance},</if>
|
||||
<if test="upperTolerancePrecision != null">#{upperTolerancePrecision},</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="Active != null">#{Active},</if>
|
||||
<if test="siteId != null">#{siteId},</if>
|
||||
<if test="siteCode != null">#{siteCode},</if>
|
||||
<if test="enterpriseId != null">#{enterpriseId},</if>
|
||||
<if test="enterpriseCode != null">#{enterpriseCode},</if>
|
||||
<if test="FactoryNo != null">#{FactoryNo},</if>
|
||||
<if test="BESKZ != null">#{BESKZ},</if>
|
||||
<if test="SOBSL != null">#{SOBSL},</if>
|
||||
<if test="STUFE != null">#{STUFE},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseBomItemsT" parameterType="BaseBomItemsT">
|
||||
update base_bom_items_t
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="bomItemDesc != null">BOM_Item_Desc = #{bomItemDesc},</if>
|
||||
<if test="bomFormulationOrder != null">BOM_Formulation_Order = #{bomFormulationOrder},</if>
|
||||
<if test="bomFormulationId != null">Bom_Formulation_Id = #{bomFormulationId},</if>
|
||||
<if test="prodId != null">Prod_Id = #{prodId},</if>
|
||||
<if test="Quantity != null">Quantity = #{Quantity},</if>
|
||||
<if test="Precision != null">Precision = #{Precision},</if>
|
||||
<if test="euId != null">EU_Id = #{euId},</if>
|
||||
<if test="lowerTolerance != null">Lower_Tolerance = #{lowerTolerance},</if>
|
||||
<if test="lowerTolerancePrecision != null">Lower_Tolerance_Precision = #{lowerTolerancePrecision},</if>
|
||||
<if test="upperTolerance != null">Upper_Tolerance = #{upperTolerance},</if>
|
||||
<if test="upperTolerancePrecision != null">Upper_Tolerance_Precision = #{upperTolerancePrecision},</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="Active != null">Active = #{Active},</if>
|
||||
<if test="siteId != null">Site_id = #{siteId},</if>
|
||||
<if test="siteCode != null">Site_code = #{siteCode},</if>
|
||||
<if test="enterpriseId != null">Enterprise_Id = #{enterpriseId},</if>
|
||||
<if test="enterpriseCode != null">Enterprise_Code = #{enterpriseCode},</if>
|
||||
<if test="FactoryNo != null">FactoryNo = #{FactoryNo},</if>
|
||||
<if test="BESKZ != null">BESKZ = #{BESKZ},</if>
|
||||
<if test="SOBSL != null">SOBSL = #{SOBSL},</if>
|
||||
<if test="STUFE != null">STUFE = #{STUFE},</if>
|
||||
</trim>
|
||||
where BOM_Item_Id = #{bomItemId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseBomItemsTByBomItemId" parameterType="String">
|
||||
delete from base_bom_items_t where BOM_Item_Id = #{bomItemId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseBomItemsTByBomItemIds" parameterType="String">
|
||||
delete from base_bom_items_t where BOM_Item_Id in
|
||||
<foreach item="bomItemId" collection="array" open="(" separator="," close=")">
|
||||
#{bomItemId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -1,148 +0,0 @@
|
||||
<?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.MesPrepareDetailMapper">
|
||||
|
||||
<resultMap type="MesPrepareDetail" id="MesPrepareDetailResult">
|
||||
<result property="recordId" column="record_id" />
|
||||
<result property="prepareId" column="prepare_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materailName" column="materail_name" />
|
||||
<result property="materailSpc" column="materail_spc" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="productDate" column="product_date" />
|
||||
<result property="shiftId" column="shift_id" />
|
||||
<result property="status" column="status" />
|
||||
<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="prodType" column="prod_type" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMesPrepareDetailVo">
|
||||
select record_id, prepare_id, material_code, materail_name, materail_spc, unit, quantity, product_date, shift_id, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, prod_type, factory_code from mes_prepare_detail
|
||||
</sql>
|
||||
|
||||
<select id="selectMesPrepareDetailList" parameterType="MesPrepareDetail" resultMap="MesPrepareDetailResult">
|
||||
<include refid="selectMesPrepareDetailVo"/>
|
||||
<where>
|
||||
<if test="prepareId != null and prepareId != ''"> and prepare_id = #{prepareId}</if>
|
||||
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
|
||||
<if test="materailName != null and materailName != ''"> and materail_name like concat('%', #{materailName}, '%')</if>
|
||||
<if test="materailSpc != null and materailSpc != ''"> and materail_spc = #{materailSpc}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="quantity != null "> and quantity = #{quantity}</if>
|
||||
<if test="productDate != null "> and product_date = #{productDate}</if>
|
||||
<if test="shiftId != null and shiftId != ''"> and shift_id = #{shiftId}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</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="prodType != null and prodType != ''"> and prod_type = #{prodType}</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMesPrepareDetailByRecordId" parameterType="String" resultMap="MesPrepareDetailResult">
|
||||
<include refid="selectMesPrepareDetailVo"/>
|
||||
where record_id = #{recordId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMesPrepareDetail" parameterType="MesPrepareDetail">
|
||||
insert into mes_prepare_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">record_id,</if>
|
||||
<if test="prepareId != null and prepareId != ''">prepare_id,</if>
|
||||
<if test="materialCode != null and materialCode != ''">material_code,</if>
|
||||
<if test="materailName != null and materailName != ''">materail_name,</if>
|
||||
<if test="materailSpc != null">materail_spc,</if>
|
||||
<if test="unit != null and unit != ''">unit,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="productDate != null">product_date,</if>
|
||||
<if test="shiftId != null">shift_id,</if>
|
||||
<if test="status != null">status,</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="prodType != null">prod_type,</if>
|
||||
<if test="factoryCode != null">factory_code,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">#{recordId},</if>
|
||||
<if test="prepareId != null and prepareId != ''">#{prepareId},</if>
|
||||
<if test="materialCode != null and materialCode != ''">#{materialCode},</if>
|
||||
<if test="materailName != null and materailName != ''">#{materailName},</if>
|
||||
<if test="materailSpc != null">#{materailSpc},</if>
|
||||
<if test="unit != null and unit != ''">#{unit},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="productDate != null">#{productDate},</if>
|
||||
<if test="shiftId != null">#{shiftId},</if>
|
||||
<if test="status != null">#{status},</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="prodType != null">#{prodType},</if>
|
||||
<if test="factoryCode != null">#{factoryCode},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMesPrepareDetail" parameterType="MesPrepareDetail">
|
||||
update mes_prepare_detail
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="prepareId != null and prepareId != ''">prepare_id = #{prepareId},</if>
|
||||
<if test="materialCode != null and materialCode != ''">material_code = #{materialCode},</if>
|
||||
<if test="materailName != null and materailName != ''">materail_name = #{materailName},</if>
|
||||
<if test="materailSpc != null">materail_spc = #{materailSpc},</if>
|
||||
<if test="unit != null and unit != ''">unit = #{unit},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="productDate != null">product_date = #{productDate},</if>
|
||||
<if test="shiftId != null">shift_id = #{shiftId},</if>
|
||||
<if test="status != null">status = #{status},</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="prodType != null">prod_type = #{prodType},</if>
|
||||
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMesPrepareDetailByRecordId" parameterType="String">
|
||||
delete from mes_prepare_detail where record_id = #{recordId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMesPrepareDetailByRecordIds" parameterType="String">
|
||||
delete from mes_prepare_detail where record_id in
|
||||
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue