wms成品部分修改27
parent
0f5dfce375
commit
851cc92548
@ -0,0 +1,98 @@
|
||||
package com.op.wms.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.op.wms.domain.OdsProductEmbryoInventory;
|
||||
import com.op.wms.service.IOdsProductEmbryoInventoryService;
|
||||
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.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 2024-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/systemFinished")
|
||||
public class OdsProductEmbryoInventoryController extends BaseController {
|
||||
@Autowired
|
||||
private IOdsProductEmbryoInventoryService odsProductEmbryoInventoryService;
|
||||
|
||||
/**
|
||||
* 查询成品盘点单列表
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
startPage();
|
||||
List<OdsProductEmbryoInventory> list = odsProductEmbryoInventoryService.selectOdsProductEmbryoInventoryList(odsProductEmbryoInventory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出成品盘点单列表
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :export")
|
||||
@Log(title = "成品盘点单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
List<OdsProductEmbryoInventory> list = odsProductEmbryoInventoryService.selectOdsProductEmbryoInventoryList(odsProductEmbryoInventory);
|
||||
ExcelUtil<OdsProductEmbryoInventory> util = new ExcelUtil<OdsProductEmbryoInventory>(OdsProductEmbryoInventory. class);
|
||||
util.exportExcel(response, list, "成品盘点单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取成品盘点单详细信息
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :query")
|
||||
@GetMapping(value = "/{ID}")
|
||||
public AjaxResult getInfo(@PathVariable("ID") String ID) {
|
||||
return success(odsProductEmbryoInventoryService.selectOdsProductEmbryoInventoryByID(ID));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成品盘点单
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :add")
|
||||
@Log(title = "成品盘点单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return toAjax(odsProductEmbryoInventoryService.insertOdsProductEmbryoInventory(odsProductEmbryoInventory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成品盘点单
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :edit")
|
||||
@Log(title = "成品盘点单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return toAjax(odsProductEmbryoInventoryService.updateOdsProductEmbryoInventory(odsProductEmbryoInventory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成品盘点单
|
||||
*/
|
||||
@RequiresPermissions("systemFinished:systemFinished :remove")
|
||||
@Log(title = "成品盘点单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{IDs}")
|
||||
public AjaxResult remove(@PathVariable String[] IDs) {
|
||||
return toAjax(odsProductEmbryoInventoryService.deleteOdsProductEmbryoInventoryByIDs(IDs));
|
||||
}
|
||||
}
|
@ -0,0 +1,379 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* 成品盘点单对象 ods_product_embryo_inventory
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
public class OdsProductEmbryoInventory 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 Remark;
|
||||
|
||||
@Override
|
||||
public String getRemark() {
|
||||
return Remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRemark(String remark) {
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
/** 型号名称 */
|
||||
@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 locNumber;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String Unit;
|
||||
|
||||
/** 实际数量 */
|
||||
@Excel(name = "实际数量")
|
||||
private BigDecimal realityNumber;
|
||||
|
||||
/** 订单状态 */
|
||||
@Excel(name = "订单状态")
|
||||
private String orderStatus;
|
||||
|
||||
/** 用户自定义属性2 */
|
||||
@Excel(name = "用户自定义属性2")
|
||||
private String userDefined1;
|
||||
|
||||
/** 库位 */
|
||||
@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;
|
||||
|
||||
/** 创建时间 */
|
||||
@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;
|
||||
|
||||
/** 企业编码 */
|
||||
@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 setLocNumber(BigDecimal locNumber){
|
||||
this.locNumber = locNumber;
|
||||
}
|
||||
|
||||
public BigDecimal getLocNumber(){
|
||||
return locNumber;
|
||||
}
|
||||
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 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 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("locNumber",getLocNumber())
|
||||
.append("Unit",getUnit())
|
||||
.append("realityNumber",getRealityNumber())
|
||||
.append("orderStatus",getOrderStatus())
|
||||
.append("userDefined1",getUserDefined1())
|
||||
.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("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.OdsProductEmbryoInventory;
|
||||
|
||||
/**
|
||||
* 成品盘点单Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
public interface OdsProductEmbryoInventoryMapper {
|
||||
/**
|
||||
* 查询成品盘点单
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 成品盘点单
|
||||
*/
|
||||
public OdsProductEmbryoInventory selectOdsProductEmbryoInventoryByID(String ID);
|
||||
|
||||
/**
|
||||
* 查询成品盘点单列表
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 成品盘点单集合
|
||||
*/
|
||||
public List<OdsProductEmbryoInventory> selectOdsProductEmbryoInventoryList(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 新增成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 修改成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 删除成品盘点单
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOdsProductEmbryoInventoryByID(String ID);
|
||||
|
||||
/**
|
||||
* 批量删除成品盘点单
|
||||
*
|
||||
* @param IDs 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOdsProductEmbryoInventoryByIDs(String[] IDs);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.wms.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.wms.domain.OdsProductEmbryoInventory;
|
||||
|
||||
/**
|
||||
* 成品盘点单Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
public interface IOdsProductEmbryoInventoryService {
|
||||
/**
|
||||
* 查询成品盘点单
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 成品盘点单
|
||||
*/
|
||||
public OdsProductEmbryoInventory selectOdsProductEmbryoInventoryByID(String ID);
|
||||
|
||||
/**
|
||||
* 查询成品盘点单列表
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 成品盘点单集合
|
||||
*/
|
||||
public List<OdsProductEmbryoInventory> selectOdsProductEmbryoInventoryList(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 新增成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 修改成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory);
|
||||
|
||||
/**
|
||||
* 批量删除成品盘点单
|
||||
*
|
||||
* @param IDs 需要删除的成品盘点单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOdsProductEmbryoInventoryByIDs(String[] IDs);
|
||||
|
||||
/**
|
||||
* 删除成品盘点单信息
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOdsProductEmbryoInventoryByID(String ID);
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.op.wms.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.wms.domain.OdsProductEmbryoInventory;
|
||||
import com.op.wms.mapper.OdsProductEmbryoInventoryMapper;
|
||||
import com.op.wms.service.IOdsProductEmbryoInventoryService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 成品盘点单Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-04-10
|
||||
*/
|
||||
@Service
|
||||
public class OdsProductEmbryoInventoryServiceImpl implements IOdsProductEmbryoInventoryService {
|
||||
@Autowired
|
||||
private OdsProductEmbryoInventoryMapper odsProductEmbryoInventoryMapper;
|
||||
|
||||
/**
|
||||
* 查询成品盘点单
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 成品盘点单
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public OdsProductEmbryoInventory selectOdsProductEmbryoInventoryByID(String ID) {
|
||||
return odsProductEmbryoInventoryMapper.selectOdsProductEmbryoInventoryByID(ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询成品盘点单列表
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 成品盘点单
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<OdsProductEmbryoInventory> selectOdsProductEmbryoInventoryList(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return odsProductEmbryoInventoryMapper.selectOdsProductEmbryoInventoryList(odsProductEmbryoInventory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return odsProductEmbryoInventoryMapper.insertOdsProductEmbryoInventory(odsProductEmbryoInventory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成品盘点单
|
||||
*
|
||||
* @param odsProductEmbryoInventory 成品盘点单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateOdsProductEmbryoInventory(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
||||
return odsProductEmbryoInventoryMapper.updateOdsProductEmbryoInventory(odsProductEmbryoInventory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除成品盘点单
|
||||
*
|
||||
* @param IDs 需要删除的成品盘点单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteOdsProductEmbryoInventoryByIDs(String[] IDs) {
|
||||
return odsProductEmbryoInventoryMapper.deleteOdsProductEmbryoInventoryByIDs(IDs);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成品盘点单信息
|
||||
*
|
||||
* @param ID 成品盘点单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteOdsProductEmbryoInventoryByID(String ID) {
|
||||
return odsProductEmbryoInventoryMapper.deleteOdsProductEmbryoInventoryByID(ID);
|
||||
}
|
||||
}
|
@ -0,0 +1,375 @@
|
||||
<?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.OdsProductEmbryoInventoryMapper">
|
||||
|
||||
<resultMap type="OdsProductEmbryoInventory" id="OdsProductEmbryoInventoryResult">
|
||||
<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="locNumber" column="Loc_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="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="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="selectOdsProductEmbryoInventoryVo">
|
||||
select Site_code, ID, Order_Code, Material_Code, Material_Desc, Plan_Date, Loc_Number, Unit, Reality_Number, Order_Status, User_Defined1, Loc_Code, User_Defined2, User_Defined3, User_Defined4, User_Defined5, User_Defined6, User_Defined7, User_Defined8, User_Defined9, User_Defined10, User_Defined11, Remark, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code from ods_product_embryo_inventory
|
||||
</sql>
|
||||
|
||||
<select id="selectOdsProductEmbryoInventoryList" parameterType="OdsProductEmbryoInventory" resultMap="OdsProductEmbryoInventoryResult">
|
||||
<include refid="selectOdsProductEmbryoInventoryVo"/>
|
||||
<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="locNumber != null ">
|
||||
and Loc_Number = #{locNumber}
|
||||
</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="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="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="selectOdsProductEmbryoInventoryByID" parameterType="String"
|
||||
resultMap="OdsProductEmbryoInventoryResult">
|
||||
<include refid="selectOdsProductEmbryoInventoryVo"/>
|
||||
where ID = #{ID}
|
||||
</select>
|
||||
|
||||
<insert id="insertOdsProductEmbryoInventory" parameterType="OdsProductEmbryoInventory">
|
||||
insert into ods_product_embryo_inventory
|
||||
<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="locNumber != null">Loc_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="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="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="locNumber != null">#{locNumber},
|
||||
</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="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="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="updateOdsProductEmbryoInventory" parameterType="OdsProductEmbryoInventory">
|
||||
update ods_product_embryo_inventory
|
||||
<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="locNumber != null">Loc_Number =
|
||||
#{locNumber},
|
||||
</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="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="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="deleteOdsProductEmbryoInventoryByID" parameterType="String">
|
||||
delete from ods_product_embryo_inventory where ID = #{ID}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteOdsProductEmbryoInventoryByIDs" parameterType="String">
|
||||
delete from ods_product_embryo_inventory where ID in
|
||||
<foreach item="ID" collection="array" open="(" separator="," close=")">
|
||||
#{ID}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue