wms服务部分修改1.2
parent
cfce8b35c0
commit
4984f9884c
@ -0,0 +1,104 @@
|
||||
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.WmsOdsWhiteEmbryoIn;
|
||||
import com.op.wms.service.IWmsOdsWhiteEmbryoInService;
|
||||
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-07-20
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/wmsEmbryoin")
|
||||
public class WmsOdsWhiteEmbryoInController extends BaseController {
|
||||
@Autowired
|
||||
private IWmsOdsWhiteEmbryoInService wmsOdsWhiteEmbryoInService;
|
||||
|
||||
/**
|
||||
* 查询白胚入库单列表
|
||||
*/
|
||||
@RequiresPermissions("wms:wmsEmbryoin:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn) {
|
||||
startPage();
|
||||
List<WmsOdsWhiteEmbryoIn> list = wmsOdsWhiteEmbryoInService.selectWmsOdsWhiteEmbryoInList(wmsOdsWhiteEmbryoIn);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出白胚入库单列表
|
||||
*/
|
||||
@RequiresPermissions("wms:wmsEmbryoin:export")
|
||||
@Log(title = "白胚入库单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn) {
|
||||
List<WmsOdsWhiteEmbryoIn> list = wmsOdsWhiteEmbryoInService.selectWmsOdsWhiteEmbryoInList(wmsOdsWhiteEmbryoIn);
|
||||
ExcelUtil<WmsOdsWhiteEmbryoIn> util = new ExcelUtil<WmsOdsWhiteEmbryoIn>(WmsOdsWhiteEmbryoIn.class);
|
||||
util.exportExcel(response, list, "白胚入库单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取白胚入库单详细信息
|
||||
*/
|
||||
@RequiresPermissions("wms:wmsEmbryoin:query")
|
||||
@GetMapping(value = "/{ID}")
|
||||
public AjaxResult getInfo(@PathVariable("ID") String ID) {
|
||||
return success(wmsOdsWhiteEmbryoInService.selectWmsOdsWhiteEmbryoInByID(ID));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增白胚入库单
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody List<WmsOdsWhiteEmbryoIn> wmsOdsWhiteEmbryoIns) {
|
||||
return toAjax(wmsOdsWhiteEmbryoInService.insertWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIns));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改白胚入库单
|
||||
*/
|
||||
@RequiresPermissions("wms:wmsEmbryoin:edit")
|
||||
@Log(title = "白胚入库单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn) {
|
||||
return toAjax(wmsOdsWhiteEmbryoInService.updateWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIn));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除白胚入库单
|
||||
*/
|
||||
@RequiresPermissions("wms:wmsEmbryoin:remove")
|
||||
@Log(title = "白胚入库单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{IDs}")
|
||||
public AjaxResult remove(@PathVariable String[] IDs) {
|
||||
return toAjax(wmsOdsWhiteEmbryoInService.deleteWmsOdsWhiteEmbryoInByIDs(IDs));
|
||||
}
|
||||
|
||||
/**
|
||||
* 手持白胚入库
|
||||
*/
|
||||
@PostMapping("/Warehousing")
|
||||
public AjaxResult addWarehousing(@RequestBody List<WmsOdsWhiteEmbryoIn> wmsOdsWhiteEmbryoIns) {
|
||||
return toAjax(wmsOdsWhiteEmbryoInService.insertWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIns));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,422 @@
|
||||
package com.op.wms.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 白胚入库单对象 wms_ods_white_embryo_in
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-20
|
||||
*/
|
||||
public class WmsOdsWhiteEmbryoIn extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String siteCode;
|
||||
|
||||
/** ID */
|
||||
private String ID;
|
||||
|
||||
/** 入库单号 */
|
||||
@Excel(name = "入库单号")
|
||||
private String orderCode;
|
||||
|
||||
/** 型号编码 */
|
||||
@Excel(name = "型号编码")
|
||||
private String materialCode;
|
||||
|
||||
/** 型号名称 */
|
||||
@Excel(name = "型号名称")
|
||||
private String materialDesc;
|
||||
|
||||
/** 计划日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "计划日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date planDate;
|
||||
|
||||
/** 计划数量 */
|
||||
@Excel(name = "计划数量")
|
||||
private BigDecimal planNumber;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String Unit;
|
||||
|
||||
/** 已出库数量 */
|
||||
@Excel(name = "已出库数量")
|
||||
private BigDecimal realityNumber;
|
||||
|
||||
/** 订单状态 */
|
||||
@Excel(name = "订单状态")
|
||||
private String orderStatus;
|
||||
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String userDefined1;
|
||||
|
||||
/** 产线名称 */
|
||||
@Excel(name = "产线名称")
|
||||
private String productionLineDesc;
|
||||
|
||||
/** 产线编号 */
|
||||
@Excel(name = "产线编号")
|
||||
private String productionLineCode;
|
||||
|
||||
/** 库位 */
|
||||
@Excel(name = "库位")
|
||||
private String locCode;
|
||||
|
||||
/** 用户自定义属性2 */
|
||||
@Excel(name = "用户自定义属性2")
|
||||
private String userDefined2;
|
||||
|
||||
/** 用户自定义属性3 */
|
||||
@Excel(name = "用户自定义属性3")
|
||||
private String userDefined3;
|
||||
|
||||
/** 用户自定义属性4 */
|
||||
@Excel(name = "用户自定义属性4")
|
||||
private String userDefined4;
|
||||
|
||||
/** 用户自定义属性5 */
|
||||
@Excel(name = "用户自定义属性5")
|
||||
private String userDefined5;
|
||||
|
||||
/** 用户自定义属性6 */
|
||||
@Excel(name = "用户自定义属性6")
|
||||
private String userDefined6;
|
||||
|
||||
/** 用户自定义属性7 */
|
||||
@Excel(name = "用户自定义属性7")
|
||||
private String userDefined7;
|
||||
|
||||
/** 用户自定义属性8 */
|
||||
@Excel(name = "用户自定义属性8")
|
||||
private String userDefined8;
|
||||
|
||||
/** 用户自定义属性9 */
|
||||
@Excel(name = "用户自定义属性9")
|
||||
private String userDefined9;
|
||||
|
||||
/** 用户自定义属性10 */
|
||||
@Excel(name = "用户自定义属性10")
|
||||
private String userDefined10;
|
||||
|
||||
/** 用户自定义属性11 */
|
||||
@Excel(name = "用户自定义属性11")
|
||||
private String userDefined11;
|
||||
|
||||
/** 供应商编码 */
|
||||
@Excel(name = "供应商编码")
|
||||
private String supplierCode;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createDate;
|
||||
|
||||
/** 最后更新人 */
|
||||
@Excel(name = "最后更新人")
|
||||
private String lastUpdateBy;
|
||||
|
||||
/** 最后更新时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date lastUpdateDate;
|
||||
|
||||
/** 可用标识 */
|
||||
@Excel(name = "可用标识")
|
||||
private String Active;
|
||||
|
||||
/** 企业主键 */
|
||||
@Excel(name = "企业主键")
|
||||
private String enterpriseId;
|
||||
|
||||
private String Remark;
|
||||
public String getRemark() {
|
||||
return Remark;
|
||||
}
|
||||
|
||||
public void setRemark(String Remark) {
|
||||
this.Remark = Remark;
|
||||
}
|
||||
/** 企业编码 */
|
||||
@Excel(name = "企业编码")
|
||||
private String enterpriseCode;
|
||||
|
||||
public void setSiteCode(String siteCode) {
|
||||
this.siteCode = siteCode;
|
||||
}
|
||||
|
||||
public String getSiteCode() {
|
||||
return siteCode;
|
||||
}
|
||||
public void setID(String ID) {
|
||||
this.ID = ID;
|
||||
}
|
||||
|
||||
public String getID() {
|
||||
return ID;
|
||||
}
|
||||
public void setOrderCode(String orderCode) {
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
public String getOrderCode() {
|
||||
return orderCode;
|
||||
}
|
||||
public void setMaterialCode(String materialCode) {
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode() {
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialDesc(String materialDesc) {
|
||||
this.materialDesc = materialDesc;
|
||||
}
|
||||
|
||||
public String getMaterialDesc() {
|
||||
return materialDesc;
|
||||
}
|
||||
public void setPlanDate(Date planDate) {
|
||||
this.planDate = planDate;
|
||||
}
|
||||
|
||||
public Date getPlanDate() {
|
||||
return planDate;
|
||||
}
|
||||
public void setPlanNumber(BigDecimal planNumber) {
|
||||
this.planNumber = planNumber;
|
||||
}
|
||||
|
||||
public BigDecimal getPlanNumber() {
|
||||
return planNumber;
|
||||
}
|
||||
public void setUnit(String Unit) {
|
||||
this.Unit = Unit;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return Unit;
|
||||
}
|
||||
public void setRealityNumber(BigDecimal realityNumber) {
|
||||
this.realityNumber = realityNumber;
|
||||
}
|
||||
|
||||
public BigDecimal getRealityNumber() {
|
||||
return realityNumber;
|
||||
}
|
||||
public void setOrderStatus(String orderStatus) {
|
||||
this.orderStatus = orderStatus;
|
||||
}
|
||||
|
||||
public String getOrderStatus() {
|
||||
return orderStatus;
|
||||
}
|
||||
public void setUserDefined1(String userDefined1) {
|
||||
this.userDefined1 = userDefined1;
|
||||
}
|
||||
|
||||
public String getUserDefined1() {
|
||||
return userDefined1;
|
||||
}
|
||||
public void setProductionLineDesc(String productionLineDesc) {
|
||||
this.productionLineDesc = productionLineDesc;
|
||||
}
|
||||
|
||||
public String getProductionLineDesc() {
|
||||
return productionLineDesc;
|
||||
}
|
||||
public void setProductionLineCode(String productionLineCode) {
|
||||
this.productionLineCode = productionLineCode;
|
||||
}
|
||||
|
||||
public String getProductionLineCode() {
|
||||
return productionLineCode;
|
||||
}
|
||||
public void setLocCode(String locCode) {
|
||||
this.locCode = locCode;
|
||||
}
|
||||
|
||||
public String getLocCode() {
|
||||
return locCode;
|
||||
}
|
||||
public void setUserDefined2(String userDefined2) {
|
||||
this.userDefined2 = userDefined2;
|
||||
}
|
||||
|
||||
public String getUserDefined2() {
|
||||
return userDefined2;
|
||||
}
|
||||
public void setUserDefined3(String userDefined3) {
|
||||
this.userDefined3 = userDefined3;
|
||||
}
|
||||
|
||||
public String getUserDefined3() {
|
||||
return userDefined3;
|
||||
}
|
||||
public void setUserDefined4(String userDefined4) {
|
||||
this.userDefined4 = userDefined4;
|
||||
}
|
||||
|
||||
public String getUserDefined4() {
|
||||
return userDefined4;
|
||||
}
|
||||
public void setUserDefined5(String userDefined5) {
|
||||
this.userDefined5 = userDefined5;
|
||||
}
|
||||
|
||||
public String getUserDefined5() {
|
||||
return userDefined5;
|
||||
}
|
||||
public void setUserDefined6(String userDefined6) {
|
||||
this.userDefined6 = userDefined6;
|
||||
}
|
||||
|
||||
public String getUserDefined6() {
|
||||
return userDefined6;
|
||||
}
|
||||
public void setUserDefined7(String userDefined7) {
|
||||
this.userDefined7 = userDefined7;
|
||||
}
|
||||
|
||||
public String getUserDefined7() {
|
||||
return userDefined7;
|
||||
}
|
||||
public void setUserDefined8(String userDefined8) {
|
||||
this.userDefined8 = userDefined8;
|
||||
}
|
||||
|
||||
public String getUserDefined8() {
|
||||
return userDefined8;
|
||||
}
|
||||
public void setUserDefined9(String userDefined9) {
|
||||
this.userDefined9 = userDefined9;
|
||||
}
|
||||
|
||||
public String getUserDefined9() {
|
||||
return userDefined9;
|
||||
}
|
||||
public void setUserDefined10(String userDefined10) {
|
||||
this.userDefined10 = userDefined10;
|
||||
}
|
||||
|
||||
public String getUserDefined10() {
|
||||
return userDefined10;
|
||||
}
|
||||
public void setUserDefined11(String userDefined11) {
|
||||
this.userDefined11 = userDefined11;
|
||||
}
|
||||
|
||||
public String getUserDefined11() {
|
||||
return userDefined11;
|
||||
}
|
||||
public void setSupplierCode(String supplierCode) {
|
||||
this.supplierCode = supplierCode;
|
||||
}
|
||||
|
||||
public String getSupplierCode() {
|
||||
return supplierCode;
|
||||
}
|
||||
public void setSupplierName(String supplierName) {
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName() {
|
||||
return supplierName;
|
||||
}
|
||||
public void setCreateDate(Date createDate) {
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
public Date getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
public void setLastUpdateBy(String lastUpdateBy) {
|
||||
this.lastUpdateBy = lastUpdateBy;
|
||||
}
|
||||
|
||||
public String getLastUpdateBy() {
|
||||
return lastUpdateBy;
|
||||
}
|
||||
public void setLastUpdateDate(Date lastUpdateDate) {
|
||||
this.lastUpdateDate = lastUpdateDate;
|
||||
}
|
||||
|
||||
public Date getLastUpdateDate() {
|
||||
return lastUpdateDate;
|
||||
}
|
||||
public void setActive(String Active) {
|
||||
this.Active = Active;
|
||||
}
|
||||
|
||||
public String getActive() {
|
||||
return Active;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("siteCode", getSiteCode())
|
||||
.append("ID", getID())
|
||||
.append("orderCode", getOrderCode())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialDesc", getMaterialDesc())
|
||||
.append("planDate", getPlanDate())
|
||||
.append("planNumber", getPlanNumber())
|
||||
.append("Unit", getUnit())
|
||||
.append("realityNumber", getRealityNumber())
|
||||
.append("orderStatus", getOrderStatus())
|
||||
.append("userDefined1", getUserDefined1())
|
||||
.append("productionLineDesc", getProductionLineDesc())
|
||||
.append("productionLineCode", getProductionLineCode())
|
||||
.append("locCode", getLocCode())
|
||||
.append("userDefined2", getUserDefined2())
|
||||
.append("userDefined3", getUserDefined3())
|
||||
.append("userDefined4", getUserDefined4())
|
||||
.append("userDefined5", getUserDefined5())
|
||||
.append("userDefined6", getUserDefined6())
|
||||
.append("userDefined7", getUserDefined7())
|
||||
.append("userDefined8", getUserDefined8())
|
||||
.append("userDefined9", getUserDefined9())
|
||||
.append("userDefined10", getUserDefined10())
|
||||
.append("userDefined11", getUserDefined11())
|
||||
.append("supplierCode", getSupplierCode())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("Remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createDate", getCreateDate())
|
||||
.append("lastUpdateBy", getLastUpdateBy())
|
||||
.append("lastUpdateDate", getLastUpdateDate())
|
||||
.append("Active", getActive())
|
||||
.append("enterpriseId", getEnterpriseId())
|
||||
.append("enterpriseCode", getEnterpriseCode())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.wms.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.wms.domain.WmsOdsWhiteEmbryoIn;
|
||||
|
||||
/**
|
||||
* 白胚入库单Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-20
|
||||
*/
|
||||
public interface WmsOdsWhiteEmbryoInMapper {
|
||||
/**
|
||||
* 查询白胚入库单
|
||||
*
|
||||
* @param ID 白胚入库单主键
|
||||
* @return 白胚入库单
|
||||
*/
|
||||
public WmsOdsWhiteEmbryoIn selectWmsOdsWhiteEmbryoInByID(String ID);
|
||||
|
||||
/**
|
||||
* 查询白胚入库单列表
|
||||
*
|
||||
* @param wmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 白胚入库单集合
|
||||
*/
|
||||
public List<WmsOdsWhiteEmbryoIn> selectWmsOdsWhiteEmbryoInList(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
|
||||
|
||||
/**
|
||||
* 新增白胚入库单
|
||||
*
|
||||
* @param wmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWmsOdsWhiteEmbryoIn(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
|
||||
|
||||
/**
|
||||
* 修改白胚入库单
|
||||
*
|
||||
* @param wmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWmsOdsWhiteEmbryoIn(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
|
||||
|
||||
/**
|
||||
* 删除白胚入库单
|
||||
*
|
||||
* @param ID 白胚入库单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsOdsWhiteEmbryoInByID(String ID);
|
||||
|
||||
/**
|
||||
* 批量删除白胚入库单
|
||||
*
|
||||
* @param IDs 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsOdsWhiteEmbryoInByIDs(String[] IDs);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.op.wms.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.op.wms.domain.WmsOdsWhiteEmbryoIn;
|
||||
|
||||
/**
|
||||
* 白胚入库单Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-20
|
||||
*/
|
||||
public interface IWmsOdsWhiteEmbryoInService {
|
||||
/**
|
||||
* 查询白胚入库单
|
||||
*
|
||||
* @param ID 白胚入库单主键
|
||||
* @return 白胚入库单
|
||||
*/
|
||||
public WmsOdsWhiteEmbryoIn selectWmsOdsWhiteEmbryoInByID(String ID);
|
||||
|
||||
/**
|
||||
* 查询白胚入库单列表
|
||||
*
|
||||
* @param wmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 白胚入库单集合
|
||||
*/
|
||||
public List<WmsOdsWhiteEmbryoIn> selectWmsOdsWhiteEmbryoInList(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
|
||||
|
||||
/**
|
||||
* 新增白胚入库单
|
||||
*
|
||||
* @param wmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWmsOdsWhiteEmbryoIn(List<WmsOdsWhiteEmbryoIn> wmsOdsWhiteEmbryoIns);
|
||||
|
||||
/**
|
||||
* 修改白胚入库单
|
||||
*
|
||||
* @param wmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWmsOdsWhiteEmbryoIn(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
|
||||
|
||||
/**
|
||||
* 批量删除白胚入库单
|
||||
*
|
||||
* @param IDs 需要删除的白胚入库单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsOdsWhiteEmbryoInByIDs(String[] IDs);
|
||||
|
||||
/**
|
||||
* 删除白胚入库单信息
|
||||
*
|
||||
* @param ID 白胚入库单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsOdsWhiteEmbryoInByID(String ID);
|
||||
}
|
@ -0,0 +1,152 @@
|
||||
package com.op.wms.service.impl;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.context.SecurityContextHolder;
|
||||
import com.op.common.core.utils.uuid.IdUtils;
|
||||
import com.op.wms.domain.Purcode;
|
||||
import com.op.wms.mapper.PurcodeMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.wms.mapper.WmsOdsWhiteEmbryoInMapper;
|
||||
import com.op.wms.domain.WmsOdsWhiteEmbryoIn;
|
||||
import com.op.wms.service.IWmsOdsWhiteEmbryoInService;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
* 白胚入库单Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-20
|
||||
*/
|
||||
@Service
|
||||
public class WmsOdsWhiteEmbryoInServiceImpl implements IWmsOdsWhiteEmbryoInService {
|
||||
@Autowired
|
||||
private WmsOdsWhiteEmbryoInMapper wmsOdsWhiteEmbryoInMapper;
|
||||
@Autowired
|
||||
private PurcodeMapper purcodeMapper;
|
||||
/**
|
||||
* 查询白胚入库单
|
||||
*
|
||||
* @param ID 白胚入库单主键
|
||||
* @return 白胚入库单
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public WmsOdsWhiteEmbryoIn selectWmsOdsWhiteEmbryoInByID(String ID) {
|
||||
return wmsOdsWhiteEmbryoInMapper.selectWmsOdsWhiteEmbryoInByID(ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询白胚入库单列表
|
||||
*
|
||||
* @param wmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 白胚入库单
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<WmsOdsWhiteEmbryoIn> selectWmsOdsWhiteEmbryoInList(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn) {
|
||||
return wmsOdsWhiteEmbryoInMapper.selectWmsOdsWhiteEmbryoInList(wmsOdsWhiteEmbryoIn);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增白胚入库单
|
||||
*
|
||||
* @param WmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
@Transactional
|
||||
public int insertWmsOdsWhiteEmbryoIn(List<WmsOdsWhiteEmbryoIn> wmsOdsWhiteEmbryoIns) {
|
||||
String userName = SecurityContextHolder.getUserName();
|
||||
int tem=0;
|
||||
for (WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn:
|
||||
wmsOdsWhiteEmbryoIns) {
|
||||
String orderCode =getPurcode(null,"RL");
|
||||
wmsOdsWhiteEmbryoIn.setID(IdUtils.fastSimpleUUID());
|
||||
wmsOdsWhiteEmbryoIn.setOrderCode(orderCode);
|
||||
wmsOdsWhiteEmbryoIn.setCreateDate(new Date());
|
||||
wmsOdsWhiteEmbryoIn.setOrderStatus("0");//0,1
|
||||
wmsOdsWhiteEmbryoIn.setActive("1");
|
||||
wmsOdsWhiteEmbryoIn.setCreateBy(userName);
|
||||
tem= wmsOdsWhiteEmbryoInMapper.insertWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIn);
|
||||
}
|
||||
return tem;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改白胚入库单
|
||||
*
|
||||
* @param wmsOdsWhiteEmbryoIn 白胚入库单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateWmsOdsWhiteEmbryoIn(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn) {
|
||||
return wmsOdsWhiteEmbryoInMapper.updateWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIn);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除白胚入库单
|
||||
*
|
||||
* @param IDs 需要删除的白胚入库单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteWmsOdsWhiteEmbryoInByIDs(String[] IDs) {
|
||||
return wmsOdsWhiteEmbryoInMapper.deleteWmsOdsWhiteEmbryoInByIDs(IDs);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除白胚入库单信息
|
||||
*
|
||||
* @param ID 白胚入库单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteWmsOdsWhiteEmbryoInByID(String ID) {
|
||||
return wmsOdsWhiteEmbryoInMapper.deleteWmsOdsWhiteEmbryoInByID(ID);
|
||||
}
|
||||
@DS("#header.poolName")
|
||||
private String getPurcode(String factorycode, String orderType) {
|
||||
|
||||
String purcode = "";
|
||||
String curDate = new SimpleDateFormat("yyyyMMdd").format(new Date());
|
||||
|
||||
Integer vaule = purcodeMapper.queryCurValue(orderType, curDate);
|
||||
if (vaule == null) {
|
||||
Purcode purcodeO = new Purcode();
|
||||
purcodeO.setCurDate(curDate);
|
||||
purcodeO.setOrderType(orderType);
|
||||
purcodeO.setValue(1);
|
||||
int count = purcodeMapper.insert(purcodeO);
|
||||
if (count != 1) {
|
||||
return "";
|
||||
}
|
||||
if (factorycode != null && !factorycode.equals("")) {
|
||||
purcode = orderType + factorycode + curDate.substring(2) + String.format("%04d", 1);
|
||||
} else {
|
||||
purcode = orderType + curDate.substring(2) + String.format("%04d", 1);
|
||||
}
|
||||
|
||||
} else {
|
||||
int count = purcodeMapper.updateCurValue(orderType, curDate, vaule);
|
||||
if (count != 1) {
|
||||
return "";
|
||||
}
|
||||
|
||||
if (factorycode != null && !factorycode.equals("")) {
|
||||
purcode = orderType + factorycode + curDate.substring(2) + String.format("%04d", vaule + 1);
|
||||
} else {
|
||||
purcode = orderType + curDate.substring(2) + String.format("%04d", vaule + 1);
|
||||
}
|
||||
}
|
||||
return purcode;
|
||||
}
|
||||
}
|
@ -0,0 +1,218 @@
|
||||
<?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.WmsOdsWhiteEmbryoInMapper">
|
||||
|
||||
<resultMap type="WmsOdsWhiteEmbryoIn" id="WmsOdsWhiteEmbryoInResult">
|
||||
<result property="siteCode" column="Site_code" />
|
||||
<result property="ID" column="ID" />
|
||||
<result property="orderCode" column="Order_Code" />
|
||||
<result property="materialCode" column="Material_Code" />
|
||||
<result property="materialDesc" column="Material_Desc" />
|
||||
<result property="planDate" column="Plan_Date" />
|
||||
<result property="planNumber" column="Plan_Number" />
|
||||
<result property="Unit" column="Unit" />
|
||||
<result property="realityNumber" column="Reality_Number" />
|
||||
<result property="orderStatus" column="Order_Status" />
|
||||
<result property="userDefined1" column="User_Defined1" />
|
||||
<result property="productionLineDesc" column="Production_Line_Desc" />
|
||||
<result property="productionLineCode" column="Production_Line_Code" />
|
||||
<result property="locCode" column="Loc_Code" />
|
||||
<result property="userDefined2" column="User_Defined2" />
|
||||
<result property="userDefined3" column="User_Defined3" />
|
||||
<result property="userDefined4" column="User_Defined4" />
|
||||
<result property="userDefined5" column="User_Defined5" />
|
||||
<result property="userDefined6" column="User_Defined6" />
|
||||
<result property="userDefined7" column="User_Defined7" />
|
||||
<result property="userDefined8" column="User_Defined8" />
|
||||
<result property="userDefined9" column="User_Defined9" />
|
||||
<result property="userDefined10" column="User_Defined10" />
|
||||
<result property="userDefined11" column="User_Defined11" />
|
||||
<result property="supplierCode" column="Supplier_Code" />
|
||||
<result property="supplierName" column="Supplier_Name" />
|
||||
<result property="Remark" column="Remark" />
|
||||
<result property="createBy" column="Create_By" />
|
||||
<result property="createDate" column="Create_Date" />
|
||||
<result property="lastUpdateBy" column="Last_Update_By" />
|
||||
<result property="lastUpdateDate" column="Last_Update_Date" />
|
||||
<result property="Active" column="Active" />
|
||||
<result property="enterpriseId" column="Enterprise_Id" />
|
||||
<result property="enterpriseCode" column="Enterprise_Code" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWmsOdsWhiteEmbryoInVo">
|
||||
select Site_code, ID, Order_Code, Material_Code, Material_Desc, Plan_Date, Plan_Number, Unit, Reality_Number, Order_Status, User_Defined1, Production_Line_Desc, Production_Line_Code, Loc_Code, User_Defined2, User_Defined3, User_Defined4, User_Defined5, User_Defined6, User_Defined7, User_Defined8, User_Defined9, User_Defined10, User_Defined11, Supplier_Code, Supplier_Name, Remark, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code from wms_ods_white_embryo_in
|
||||
</sql>
|
||||
|
||||
<select id="selectWmsOdsWhiteEmbryoInList" parameterType="WmsOdsWhiteEmbryoIn" resultMap="WmsOdsWhiteEmbryoInResult">
|
||||
<include refid="selectWmsOdsWhiteEmbryoInVo"/>
|
||||
<where>
|
||||
<if test="siteCode != null and siteCode != ''"> and Site_code = #{siteCode}</if>
|
||||
<if test="orderCode != null and orderCode != ''"> and Order_Code = #{orderCode}</if>
|
||||
<if test="materialCode != null and materialCode != ''"> and Material_Code = #{materialCode}</if>
|
||||
<if test="materialDesc != null and materialDesc != ''"> and Material_Desc = #{materialDesc}</if>
|
||||
<if test="planDate != null "> and Plan_Date = #{planDate}</if>
|
||||
<if test="planNumber != null "> and Plan_Number = #{planNumber}</if>
|
||||
<if test="Unit != null and Unit != ''"> and Unit = #{Unit}</if>
|
||||
<if test="realityNumber != null "> and Reality_Number = #{realityNumber}</if>
|
||||
<if test="orderStatus != null and orderStatus != ''"> and Order_Status = #{orderStatus}</if>
|
||||
<if test="userDefined1 != null and userDefined1 != ''"> and User_Defined1 = #{userDefined1}</if>
|
||||
<if test="productionLineDesc != null and productionLineDesc != ''"> and Production_Line_Desc = #{productionLineDesc}</if>
|
||||
<if test="productionLineCode != null and productionLineCode != ''"> and Production_Line_Code = #{productionLineCode}</if>
|
||||
<if test="locCode != null and locCode != ''"> and Loc_Code = #{locCode}</if>
|
||||
<if test="userDefined2 != null and userDefined2 != ''"> and User_Defined2 = #{userDefined2}</if>
|
||||
<if test="userDefined3 != null and userDefined3 != ''"> and User_Defined3 = #{userDefined3}</if>
|
||||
<if test="userDefined4 != null and userDefined4 != ''"> and User_Defined4 = #{userDefined4}</if>
|
||||
<if test="userDefined5 != null and userDefined5 != ''"> and User_Defined5 = #{userDefined5}</if>
|
||||
<if test="userDefined6 != null and userDefined6 != ''"> and User_Defined6 = #{userDefined6}</if>
|
||||
<if test="userDefined7 != null and userDefined7 != ''"> and User_Defined7 = #{userDefined7}</if>
|
||||
<if test="userDefined8 != null and userDefined8 != ''"> and User_Defined8 = #{userDefined8}</if>
|
||||
<if test="userDefined9 != null and userDefined9 != ''"> and User_Defined9 = #{userDefined9}</if>
|
||||
<if test="userDefined10 != null and userDefined10 != ''"> and User_Defined10 = #{userDefined10}</if>
|
||||
<if test="userDefined11 != null and userDefined11 != ''"> and User_Defined11 = #{userDefined11}</if>
|
||||
<if test="supplierCode != null and supplierCode != ''"> and Supplier_Code = #{supplierCode}</if>
|
||||
<if test="supplierName != null and supplierName != ''"> and Supplier_Name like concat('%', #{supplierName}, '%')</if>
|
||||
<if test="Remark != null and Remark != ''"> and Remark = #{Remark}</if>
|
||||
<if test="createBy != null and createBy != ''"> and Create_By = #{createBy}</if>
|
||||
<if test="createDate != null "> and Create_Date = #{createDate}</if>
|
||||
<if test="lastUpdateBy != null and lastUpdateBy != ''"> and Last_Update_By = #{lastUpdateBy}</if>
|
||||
<if test="lastUpdateDate != null "> and Last_Update_Date = #{lastUpdateDate}</if>
|
||||
<if test="Active != null and Active != ''"> and Active = #{Active}</if>
|
||||
<if test="enterpriseId != null and enterpriseId != ''"> and Enterprise_Id = #{enterpriseId}</if>
|
||||
<if test="enterpriseCode != null and enterpriseCode != ''"> and Enterprise_Code = #{enterpriseCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWmsOdsWhiteEmbryoInByID" parameterType="String" resultMap="WmsOdsWhiteEmbryoInResult">
|
||||
<include refid="selectWmsOdsWhiteEmbryoInVo"/>
|
||||
where ID = #{ID}
|
||||
</select>
|
||||
|
||||
<insert id="insertWmsOdsWhiteEmbryoIn" parameterType="WmsOdsWhiteEmbryoIn">
|
||||
insert into wms_ods_white_embryo_in
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="siteCode != null">Site_code,</if>
|
||||
<if test="ID != null">ID,</if>
|
||||
<if test="orderCode != null">Order_Code,</if>
|
||||
<if test="materialCode != null">Material_Code,</if>
|
||||
<if test="materialDesc != null">Material_Desc,</if>
|
||||
<if test="planDate != null">Plan_Date,</if>
|
||||
<if test="planNumber != null">Plan_Number,</if>
|
||||
<if test="Unit != null">Unit,</if>
|
||||
<if test="realityNumber != null">Reality_Number,</if>
|
||||
<if test="orderStatus != null">Order_Status,</if>
|
||||
<if test="userDefined1 != null">User_Defined1,</if>
|
||||
<if test="productionLineDesc != null">Production_Line_Desc,</if>
|
||||
<if test="productionLineCode != null">Production_Line_Code,</if>
|
||||
<if test="locCode != null">Loc_Code,</if>
|
||||
<if test="userDefined2 != null">User_Defined2,</if>
|
||||
<if test="userDefined3 != null">User_Defined3,</if>
|
||||
<if test="userDefined4 != null">User_Defined4,</if>
|
||||
<if test="userDefined5 != null">User_Defined5,</if>
|
||||
<if test="userDefined6 != null">User_Defined6,</if>
|
||||
<if test="userDefined7 != null">User_Defined7,</if>
|
||||
<if test="userDefined8 != null">User_Defined8,</if>
|
||||
<if test="userDefined9 != null">User_Defined9,</if>
|
||||
<if test="userDefined10 != null">User_Defined10,</if>
|
||||
<if test="userDefined11 != null">User_Defined11,</if>
|
||||
<if test="supplierCode != null">Supplier_Code,</if>
|
||||
<if test="supplierName != null">Supplier_Name,</if>
|
||||
<if test="Remark != null">Remark,</if>
|
||||
<if test="createBy != null">Create_By,</if>
|
||||
<if test="createDate != null">Create_Date,</if>
|
||||
<if test="lastUpdateBy != null">Last_Update_By,</if>
|
||||
<if test="lastUpdateDate != null">Last_Update_Date,</if>
|
||||
<if test="Active != null">Active,</if>
|
||||
<if test="enterpriseId != null">Enterprise_Id,</if>
|
||||
<if test="enterpriseCode != null">Enterprise_Code,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="siteCode != null">#{siteCode},</if>
|
||||
<if test="ID != null">#{ID},</if>
|
||||
<if test="orderCode != null">#{orderCode},</if>
|
||||
<if test="materialCode != null">#{materialCode},</if>
|
||||
<if test="materialDesc != null">#{materialDesc},</if>
|
||||
<if test="planDate != null">#{planDate},</if>
|
||||
<if test="planNumber != null">#{planNumber},</if>
|
||||
<if test="Unit != null">#{Unit},</if>
|
||||
<if test="realityNumber != null">#{realityNumber},</if>
|
||||
<if test="orderStatus != null">#{orderStatus},</if>
|
||||
<if test="userDefined1 != null">#{userDefined1},</if>
|
||||
<if test="productionLineDesc != null">#{productionLineDesc},</if>
|
||||
<if test="productionLineCode != null">#{productionLineCode},</if>
|
||||
<if test="locCode != null">#{locCode},</if>
|
||||
<if test="userDefined2 != null">#{userDefined2},</if>
|
||||
<if test="userDefined3 != null">#{userDefined3},</if>
|
||||
<if test="userDefined4 != null">#{userDefined4},</if>
|
||||
<if test="userDefined5 != null">#{userDefined5},</if>
|
||||
<if test="userDefined6 != null">#{userDefined6},</if>
|
||||
<if test="userDefined7 != null">#{userDefined7},</if>
|
||||
<if test="userDefined8 != null">#{userDefined8},</if>
|
||||
<if test="userDefined9 != null">#{userDefined9},</if>
|
||||
<if test="userDefined10 != null">#{userDefined10},</if>
|
||||
<if test="userDefined11 != null">#{userDefined11},</if>
|
||||
<if test="supplierCode != null">#{supplierCode},</if>
|
||||
<if test="supplierName != null">#{supplierName},</if>
|
||||
<if test="Remark != null">#{Remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createDate != null">#{createDate},</if>
|
||||
<if test="lastUpdateBy != null">#{lastUpdateBy},</if>
|
||||
<if test="lastUpdateDate != null">#{lastUpdateDate},</if>
|
||||
<if test="Active != null">#{Active},</if>
|
||||
<if test="enterpriseId != null">#{enterpriseId},</if>
|
||||
<if test="enterpriseCode != null">#{enterpriseCode},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWmsOdsWhiteEmbryoIn" parameterType="WmsOdsWhiteEmbryoIn">
|
||||
update wms_ods_white_embryo_in
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="siteCode != null">Site_code = #{siteCode},</if>
|
||||
<if test="orderCode != null">Order_Code = #{orderCode},</if>
|
||||
<if test="materialCode != null">Material_Code = #{materialCode},</if>
|
||||
<if test="materialDesc != null">Material_Desc = #{materialDesc},</if>
|
||||
<if test="planDate != null">Plan_Date = #{planDate},</if>
|
||||
<if test="planNumber != null">Plan_Number = #{planNumber},</if>
|
||||
<if test="Unit != null">Unit = #{Unit},</if>
|
||||
<if test="realityNumber != null">Reality_Number = #{realityNumber},</if>
|
||||
<if test="orderStatus != null">Order_Status = #{orderStatus},</if>
|
||||
<if test="userDefined1 != null">User_Defined1 = #{userDefined1},</if>
|
||||
<if test="productionLineDesc != null">Production_Line_Desc = #{productionLineDesc},</if>
|
||||
<if test="productionLineCode != null">Production_Line_Code = #{productionLineCode},</if>
|
||||
<if test="locCode != null">Loc_Code = #{locCode},</if>
|
||||
<if test="userDefined2 != null">User_Defined2 = #{userDefined2},</if>
|
||||
<if test="userDefined3 != null">User_Defined3 = #{userDefined3},</if>
|
||||
<if test="userDefined4 != null">User_Defined4 = #{userDefined4},</if>
|
||||
<if test="userDefined5 != null">User_Defined5 = #{userDefined5},</if>
|
||||
<if test="userDefined6 != null">User_Defined6 = #{userDefined6},</if>
|
||||
<if test="userDefined7 != null">User_Defined7 = #{userDefined7},</if>
|
||||
<if test="userDefined8 != null">User_Defined8 = #{userDefined8},</if>
|
||||
<if test="userDefined9 != null">User_Defined9 = #{userDefined9},</if>
|
||||
<if test="userDefined10 != null">User_Defined10 = #{userDefined10},</if>
|
||||
<if test="userDefined11 != null">User_Defined11 = #{userDefined11},</if>
|
||||
<if test="supplierCode != null">Supplier_Code = #{supplierCode},</if>
|
||||
<if test="supplierName != null">Supplier_Name = #{supplierName},</if>
|
||||
<if test="Remark != null">Remark = #{Remark},</if>
|
||||
<if test="createBy != null">Create_By = #{createBy},</if>
|
||||
<if test="createDate != null">Create_Date = #{createDate},</if>
|
||||
<if test="lastUpdateBy != null">Last_Update_By = #{lastUpdateBy},</if>
|
||||
<if test="lastUpdateDate != null">Last_Update_Date = #{lastUpdateDate},</if>
|
||||
<if test="Active != null">Active = #{Active},</if>
|
||||
<if test="enterpriseId != null">Enterprise_Id = #{enterpriseId},</if>
|
||||
<if test="enterpriseCode != null">Enterprise_Code = #{enterpriseCode},</if>
|
||||
</trim>
|
||||
where ID = #{ID}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWmsOdsWhiteEmbryoInByID" parameterType="String">
|
||||
delete from wms_ods_white_embryo_in where ID = #{ID}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWmsOdsWhiteEmbryoInByIDs" parameterType="String">
|
||||
delete from wms_ods_white_embryo_in where ID in
|
||||
<foreach item="ID" collection="array" open="(" separator="," close=")">
|
||||
#{ID}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue