新增流水表bak
This commit is contained in:
parent
8b51955e56
commit
347fbaeb6f
|
|
@ -0,0 +1,127 @@
|
||||||
|
package com.ruoyi.web.controller.business;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.business.domain.TEbsOrderBak;
|
||||||
|
import com.ruoyi.business.service.ITEbsOrderBakService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流水历史表Controller
|
||||||
|
*
|
||||||
|
* @author wms
|
||||||
|
* @date 2025-02-26
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/business/tEbsOrderbak")
|
||||||
|
public class TEbsOrderBakController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "business/tEbsOrderbak";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ITEbsOrderBakService tEbsOrderBakService;
|
||||||
|
|
||||||
|
@RequiresPermissions("business:tEbsOrderbak:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String tEbsOrderbak()
|
||||||
|
{
|
||||||
|
return prefix + "/tEbsOrderbak";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询流水历史表列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("business:tEbsOrderbak:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(TEbsOrderBak tEbsOrderBak)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<TEbsOrderBak> list = tEbsOrderBakService.selectTEbsOrderBakList(tEbsOrderBak);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出流水历史表列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("business:tEbsOrderbak:export")
|
||||||
|
@Log(title = "流水历史表", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(TEbsOrderBak tEbsOrderBak)
|
||||||
|
{
|
||||||
|
List<TEbsOrderBak> list = tEbsOrderBakService.selectTEbsOrderBakList(tEbsOrderBak);
|
||||||
|
ExcelUtil<TEbsOrderBak> util = new ExcelUtil<TEbsOrderBak>(TEbsOrderBak.class);
|
||||||
|
return util.exportExcel(list, "流水历史表数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增流水历史表
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存流水历史表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("business:tEbsOrderbak:add")
|
||||||
|
@Log(title = "流水历史表", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(TEbsOrderBak tEbsOrderBak)
|
||||||
|
{
|
||||||
|
return toAjax(tEbsOrderBakService.insertTEbsOrderBak(tEbsOrderBak));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改流水历史表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("business:tEbsOrderbak:edit")
|
||||||
|
@GetMapping("/edit/{phasegment1}")
|
||||||
|
public String edit(@PathVariable("phasegment1") String phasegment1, ModelMap mmap)
|
||||||
|
{
|
||||||
|
TEbsOrderBak tEbsOrderBak = tEbsOrderBakService.selectTEbsOrderBakByPhasegment1(phasegment1);
|
||||||
|
mmap.put("tEbsOrderBak", tEbsOrderBak);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存流水历史表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("business:tEbsOrderbak:edit")
|
||||||
|
@Log(title = "流水历史表", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(TEbsOrderBak tEbsOrderBak)
|
||||||
|
{
|
||||||
|
return toAjax(tEbsOrderBakService.updateTEbsOrderBak(tEbsOrderBak));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除流水历史表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("business:tEbsOrderbak:remove")
|
||||||
|
@Log(title = "流水历史表", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(tEbsOrderBakService.deleteTEbsOrderBakByPhasegment1s(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -22,6 +22,7 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
import com.ruoyi.system.service.ISysConfigService;
|
import com.ruoyi.system.service.ISysConfigService;
|
||||||
import org.apache.poi.hpsf.GUID;
|
import org.apache.poi.hpsf.GUID;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
@ -84,6 +85,9 @@ public class TOngoodsshelfController extends BaseController
|
||||||
@Autowired
|
@Autowired
|
||||||
private ITemperService temperService;
|
private ITemperService temperService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ITEbsOrderBakService tEbsOrderBakService;
|
||||||
|
|
||||||
@RequiresPermissions("business:ongoodsshelf:view")
|
@RequiresPermissions("business:ongoodsshelf:view")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public String ongoodsshelf(ModelMap mmap)
|
public String ongoodsshelf(ModelMap mmap)
|
||||||
|
|
@ -346,9 +350,51 @@ public class TOngoodsshelfController extends BaseController
|
||||||
tOngoodsshelve.setAccStatus("5");
|
tOngoodsshelve.setAccStatus("5");
|
||||||
// 更新信息
|
// 更新信息
|
||||||
tOngoodsshelfService.updateTOngoodsshelf(tOngoodsshelve);
|
tOngoodsshelfService.updateTOngoodsshelf(tOngoodsshelve);
|
||||||
|
|
||||||
|
//删除流水
|
||||||
|
removeIfComplete(tOngoodsshelve,tEbsOrders);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void removeIfComplete(TOngoodsshelf tOngoodsshelve,List<TEbsOrder> tEbsOrders) {
|
||||||
|
//查询本流水是否已经全部发送ebs
|
||||||
|
boolean isExists = false;
|
||||||
|
for(TEbsOrder ebsOrder : tEbsOrders){
|
||||||
|
//判断可接收数量于totalNum是否全部相等
|
||||||
|
if(ebsOrder.getTotalNum().doubleValue() != ebsOrder.getMsQuantity().doubleValue()){
|
||||||
|
isExists = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!isExists){
|
||||||
|
//删除本流水,备份到TebsOrderBak表
|
||||||
|
TEbsOrder tEbsOrder = new TEbsOrder();
|
||||||
|
tEbsOrder.setPhaSegment1(tOngoodsshelve.getWmsorderid());// 订单号
|
||||||
|
tEbsOrder.setItemId(Integer.parseInt(tOngoodsshelve.getGoodsTypeid()));
|
||||||
|
try {
|
||||||
|
itEbsOrderService.deleteTEbsOrder(tEbsOrder);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("删除入库流水表异常:{}",e.getMessage());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//备份
|
||||||
|
for(TEbsOrder ebsOrder : tEbsOrders){
|
||||||
|
TEbsOrderBak tEbsOrderBak = new TEbsOrderBak();
|
||||||
|
BeanUtils.copyProperties(ebsOrder, tEbsOrderBak);
|
||||||
|
try {
|
||||||
|
tEbsOrderBakService.insertTEbsOrderBak(tEbsOrderBak);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("备份入库流水表异常:{}",e.getMessage());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对接ebs
|
* 对接ebs
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,13 @@
|
||||||
<!-- 日志文件名格式 -->
|
<!-- 日志文件名格式 -->
|
||||||
<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
<!-- 日志最大的历史 60天 -->
|
<!-- 日志最大的历史 60天 -->
|
||||||
<maxHistory>60</maxHistory>
|
<maxHistory>30</maxHistory> <!-- 保留30天的日志 -->
|
||||||
|
<totalSizeCap>300MB</totalSizeCap> <!-- 日志文件总大小上限300m -->
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
<!-- 文件大小触发滚动 -->
|
<!-- 文件大小触发滚动 -->
|
||||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
||||||
<!-- 设置文件的最大大小(比如 10MB) -->
|
<!-- 设置文件的最大大小(比如 10MB) -->
|
||||||
<maxFileSize>10MB</maxFileSize>
|
<maxFileSize>300MB</maxFileSize>
|
||||||
</triggeringPolicy>
|
</triggeringPolicy>
|
||||||
<encoder>
|
<encoder>
|
||||||
<pattern>${log.pattern}</pattern>
|
<pattern>${log.pattern}</pattern>
|
||||||
|
|
@ -47,12 +48,13 @@
|
||||||
<!-- 日志文件名格式 -->
|
<!-- 日志文件名格式 -->
|
||||||
<fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
<fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
<!-- 日志最大的历史 60天 -->
|
<!-- 日志最大的历史 60天 -->
|
||||||
<maxHistory>60</maxHistory>
|
<maxHistory>30</maxHistory> <!-- 保留30天的日志 -->
|
||||||
|
<totalSizeCap>300MB</totalSizeCap> <!-- 日志文件总大小上限300m -->
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
<!-- 文件大小触发滚动 -->
|
<!-- 文件大小触发滚动 -->
|
||||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
||||||
<!-- 设置文件的最大大小(比如 10MB) -->
|
<!-- 设置文件的最大大小(比如 10MB) -->
|
||||||
<maxFileSize>10MB</maxFileSize>
|
<maxFileSize>300MB</maxFileSize>
|
||||||
</triggeringPolicy>
|
</triggeringPolicy>
|
||||||
<encoder>
|
<encoder>
|
||||||
<pattern>${log.pattern}</pattern>
|
<pattern>${log.pattern}</pattern>
|
||||||
|
|
@ -74,12 +76,13 @@
|
||||||
<!-- 按天回滚 daily -->
|
<!-- 按天回滚 daily -->
|
||||||
<fileNamePattern>${log.path}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
|
<fileNamePattern>${log.path}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
<!-- 日志最大的历史 60天 -->
|
<!-- 日志最大的历史 60天 -->
|
||||||
<maxHistory>60</maxHistory>
|
<maxHistory>30</maxHistory> <!-- 保留30天的日志 -->
|
||||||
|
<totalSizeCap>300MB</totalSizeCap> <!-- 日志文件总大小上限300m -->
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
<!-- 文件大小触发滚动 -->
|
<!-- 文件大小触发滚动 -->
|
||||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
||||||
<!-- 设置文件的最大大小(比如 10MB) -->
|
<!-- 设置文件的最大大小(比如 10MB) -->
|
||||||
<maxFileSize>10MB</maxFileSize>
|
<maxFileSize>300MB</maxFileSize>
|
||||||
</triggeringPolicy>
|
</triggeringPolicy>
|
||||||
<encoder>
|
<encoder>
|
||||||
<pattern>${log.pattern}</pattern>
|
<pattern>${log.pattern}</pattern>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,453 @@
|
||||||
|
package com.ruoyi.business.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.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流水历史表对象 t_ebs_order_bak
|
||||||
|
*
|
||||||
|
* @author wms
|
||||||
|
* @date 2025-02-26
|
||||||
|
*/
|
||||||
|
@TableName("t_ebs_order_bak")
|
||||||
|
public class TEbsOrderBak extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 采购单号 */
|
||||||
|
@Excel(name = "采购单号")
|
||||||
|
@TableField("phaSegment1")
|
||||||
|
private String phaSegment1;
|
||||||
|
|
||||||
|
/** 发运行号 */
|
||||||
|
@Excel(name = "发运行号")
|
||||||
|
@TableField("shipmentNum")
|
||||||
|
private Integer shipmentNum;
|
||||||
|
|
||||||
|
/** 分配行号 */
|
||||||
|
@Excel(name = "分配行号")
|
||||||
|
@TableField("distributionNum")
|
||||||
|
private Integer distributionNum;
|
||||||
|
|
||||||
|
/** 接收类型 */
|
||||||
|
@Excel(name = "接收类型")
|
||||||
|
@TableField("supplyTypeCode")
|
||||||
|
private String supplyTypeCode;
|
||||||
|
|
||||||
|
/** 可接收数量 */
|
||||||
|
@Excel(name = "可接收数量")
|
||||||
|
@TableField("msQuantity")
|
||||||
|
private Double msQuantity;
|
||||||
|
|
||||||
|
/** 分配行ID */
|
||||||
|
@Excel(name = "分配行ID")
|
||||||
|
@TableField("poDistributionId")
|
||||||
|
private Integer poDistributionId;
|
||||||
|
|
||||||
|
/** 采购订单头ID */
|
||||||
|
@Excel(name = "采购订单头ID")
|
||||||
|
@TableField("poHeaderId")
|
||||||
|
private Integer poHeaderId;
|
||||||
|
|
||||||
|
/** 采购订单行ID */
|
||||||
|
@Excel(name = "采购订单行ID")
|
||||||
|
@TableField("poLineId")
|
||||||
|
private Integer poLineId;
|
||||||
|
|
||||||
|
/** 采购订单行号 */
|
||||||
|
@Excel(name = "采购订单行号")
|
||||||
|
@TableField("lineNum")
|
||||||
|
private Integer lineNum;
|
||||||
|
|
||||||
|
/** OU组织ID */
|
||||||
|
@Excel(name = "OU组织ID")
|
||||||
|
@TableField("orgId")
|
||||||
|
private Integer orgId;
|
||||||
|
|
||||||
|
/** 接收库存组织 */
|
||||||
|
@Excel(name = "接收库存组织")
|
||||||
|
@TableField("shipToOrganizationId")
|
||||||
|
private Integer shipToOrganizationId;
|
||||||
|
|
||||||
|
/** 采购物料ID */
|
||||||
|
@Excel(name = "采购物料ID")
|
||||||
|
@TableField("itemId")
|
||||||
|
private Integer itemId;
|
||||||
|
|
||||||
|
/** 采购订单行物料描述 */
|
||||||
|
@Excel(name = "采购订单行物料描述")
|
||||||
|
@TableField("itemDescription")
|
||||||
|
private String itemDescription;
|
||||||
|
|
||||||
|
/** 采购单位 */
|
||||||
|
@Excel(name = "采购单位")
|
||||||
|
@TableField("unitMeasLookupCode")
|
||||||
|
private String unitMeasLookupCode;
|
||||||
|
|
||||||
|
/** 采购单价 */
|
||||||
|
@Excel(name = "采购单价")
|
||||||
|
@TableField("unitPrice")
|
||||||
|
private Double unitPrice;
|
||||||
|
|
||||||
|
/** 发运行数量 */
|
||||||
|
@Excel(name = "发运行数量")
|
||||||
|
@TableField("quantity")
|
||||||
|
private Double quantity;
|
||||||
|
|
||||||
|
/** 已接收数量 */
|
||||||
|
@Excel(name = "已接收数量")
|
||||||
|
@TableField("quantityReceived")
|
||||||
|
private Double quantityReceived;
|
||||||
|
|
||||||
|
/** 发运行状态 */
|
||||||
|
@Excel(name = "发运行状态")
|
||||||
|
@TableField("closedCode")
|
||||||
|
private String closedCode;
|
||||||
|
|
||||||
|
/** 发运行ID */
|
||||||
|
@Excel(name = "发运行ID")
|
||||||
|
@TableField("lineLocationId")
|
||||||
|
private Integer lineLocationId;
|
||||||
|
|
||||||
|
/** 供应商ID */
|
||||||
|
@Excel(name = "供应商ID")
|
||||||
|
@TableField("vendorId")
|
||||||
|
private Integer vendorId;
|
||||||
|
|
||||||
|
/** 供应商名称 */
|
||||||
|
@Excel(name = "供应商名称")
|
||||||
|
@TableField("vendorName")
|
||||||
|
private String vendorName;
|
||||||
|
|
||||||
|
/** 工单ID */
|
||||||
|
@Excel(name = "工单ID")
|
||||||
|
@TableField("wipEntityId")
|
||||||
|
private String wipEntityId;
|
||||||
|
|
||||||
|
/** 接收方式 1:标准接收,2:要求检验,3:直接交货 */
|
||||||
|
@Excel(name = "接收方式")
|
||||||
|
@TableField("receivingRoutingId")
|
||||||
|
private Integer receivingRoutingId;
|
||||||
|
|
||||||
|
/** 是否批次控制 */
|
||||||
|
@Excel(name = "是否批次控制")
|
||||||
|
@TableField("lotControl")
|
||||||
|
private String lotControl;
|
||||||
|
|
||||||
|
/** 订单物资收货检验优先级 */
|
||||||
|
@Excel(name = "订单物资收货检验优先级")
|
||||||
|
@TableField("checkPriority")
|
||||||
|
private String checkPriority;
|
||||||
|
|
||||||
|
/** */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@TableField("dueDate")
|
||||||
|
private Date dueDate;
|
||||||
|
|
||||||
|
/** */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@TableField("createDate")
|
||||||
|
private Date createDate;
|
||||||
|
|
||||||
|
/** 本地行号 */
|
||||||
|
@Excel(name = "本地行号")
|
||||||
|
@TableField("local_line_num")
|
||||||
|
private Integer localLineNum;
|
||||||
|
|
||||||
|
/** 累计接收数量 */
|
||||||
|
@Excel(name = "累计接收数量")
|
||||||
|
@TableField("total_num")
|
||||||
|
private Double totalNum;
|
||||||
|
|
||||||
|
/** 本次入库数量 */
|
||||||
|
@Excel(name = "本次入库数量")
|
||||||
|
@TableField("local_quantity")
|
||||||
|
private Double localQuantity;
|
||||||
|
|
||||||
|
public String getPhaSegment1() {
|
||||||
|
return phaSegment1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPhaSegment1(String phaSegment1) {
|
||||||
|
this.phaSegment1 = phaSegment1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getShipmentNum() {
|
||||||
|
return shipmentNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShipmentNum(Integer shipmentNum) {
|
||||||
|
this.shipmentNum = shipmentNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDistributionNum() {
|
||||||
|
return distributionNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDistributionNum(Integer distributionNum) {
|
||||||
|
this.distributionNum = distributionNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSupplyTypeCode() {
|
||||||
|
return supplyTypeCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSupplyTypeCode(String supplyTypeCode) {
|
||||||
|
this.supplyTypeCode = supplyTypeCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getMsQuantity() {
|
||||||
|
return msQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsQuantity(Double msQuantity) {
|
||||||
|
this.msQuantity = msQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPoDistributionId() {
|
||||||
|
return poDistributionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPoDistributionId(Integer poDistributionId) {
|
||||||
|
this.poDistributionId = poDistributionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPoHeaderId() {
|
||||||
|
return poHeaderId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPoHeaderId(Integer poHeaderId) {
|
||||||
|
this.poHeaderId = poHeaderId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPoLineId() {
|
||||||
|
return poLineId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPoLineId(Integer poLineId) {
|
||||||
|
this.poLineId = poLineId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLineNum() {
|
||||||
|
return lineNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLineNum(Integer lineNum) {
|
||||||
|
this.lineNum = lineNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOrgId() {
|
||||||
|
return orgId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrgId(Integer orgId) {
|
||||||
|
this.orgId = orgId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getShipToOrganizationId() {
|
||||||
|
return shipToOrganizationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShipToOrganizationId(Integer shipToOrganizationId) {
|
||||||
|
this.shipToOrganizationId = shipToOrganizationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getItemId() {
|
||||||
|
return itemId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setItemId(Integer itemId) {
|
||||||
|
this.itemId = itemId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getItemDescription() {
|
||||||
|
return itemDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setItemDescription(String itemDescription) {
|
||||||
|
this.itemDescription = itemDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnitMeasLookupCode() {
|
||||||
|
return unitMeasLookupCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitMeasLookupCode(String unitMeasLookupCode) {
|
||||||
|
this.unitMeasLookupCode = unitMeasLookupCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getUnitPrice() {
|
||||||
|
return unitPrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitPrice(Double unitPrice) {
|
||||||
|
this.unitPrice = unitPrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getQuantity() {
|
||||||
|
return quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuantity(Double quantity) {
|
||||||
|
this.quantity = quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getQuantityReceived() {
|
||||||
|
return quantityReceived;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuantityReceived(Double quantityReceived) {
|
||||||
|
this.quantityReceived = quantityReceived;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClosedCode() {
|
||||||
|
return closedCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClosedCode(String closedCode) {
|
||||||
|
this.closedCode = closedCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLineLocationId() {
|
||||||
|
return lineLocationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLineLocationId(Integer lineLocationId) {
|
||||||
|
this.lineLocationId = lineLocationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getVendorId() {
|
||||||
|
return vendorId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVendorId(Integer vendorId) {
|
||||||
|
this.vendorId = vendorId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVendorName() {
|
||||||
|
return vendorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVendorName(String vendorName) {
|
||||||
|
this.vendorName = vendorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWipEntityId() {
|
||||||
|
return wipEntityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWipEntityId(String wipEntityId) {
|
||||||
|
this.wipEntityId = wipEntityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getLotControl() {
|
||||||
|
return lotControl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLotControl(String lotControl) {
|
||||||
|
this.lotControl = lotControl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheckPriority() {
|
||||||
|
return checkPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheckPriority(String checkPriority) {
|
||||||
|
this.checkPriority = checkPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDueDate() {
|
||||||
|
return dueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueDate(Date dueDate) {
|
||||||
|
this.dueDate = dueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateDate() {
|
||||||
|
return createDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateDate(Date createDate) {
|
||||||
|
this.createDate = createDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getReceivingRoutingId() {
|
||||||
|
return receivingRoutingId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReceivingRoutingId(Integer receivingRoutingId) {
|
||||||
|
this.receivingRoutingId = receivingRoutingId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLocalLineNum() {
|
||||||
|
return localLineNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocalLineNum(Integer localLineNum) {
|
||||||
|
this.localLineNum = localLineNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTotalNum() {
|
||||||
|
return totalNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTotalNum(Double totalNum) {
|
||||||
|
this.totalNum = totalNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLocalQuantity() {
|
||||||
|
return localQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocalQuantity(Double localQuantity) {
|
||||||
|
this.localQuantity = localQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "TEbsOrderBak{" +
|
||||||
|
"phaSegment1='" + phaSegment1 + '\'' +
|
||||||
|
", shipmentNum=" + shipmentNum +
|
||||||
|
", distributionNum=" + distributionNum +
|
||||||
|
", supplyTypeCode='" + supplyTypeCode + '\'' +
|
||||||
|
", msQuantity=" + msQuantity +
|
||||||
|
", poDistributionId=" + poDistributionId +
|
||||||
|
", poHeaderId=" + poHeaderId +
|
||||||
|
", poLineId=" + poLineId +
|
||||||
|
", lineNum=" + lineNum +
|
||||||
|
", orgId=" + orgId +
|
||||||
|
", shipToOrganizationId=" + shipToOrganizationId +
|
||||||
|
", itemId=" + itemId +
|
||||||
|
", itemDescription='" + itemDescription + '\'' +
|
||||||
|
", unitMeasLookupCode='" + unitMeasLookupCode + '\'' +
|
||||||
|
", unitPrice=" + unitPrice +
|
||||||
|
", quantity=" + quantity +
|
||||||
|
", quantityReceived=" + quantityReceived +
|
||||||
|
", closedCode='" + closedCode + '\'' +
|
||||||
|
", lineLocationId=" + lineLocationId +
|
||||||
|
", vendorId=" + vendorId +
|
||||||
|
", vendorName='" + vendorName + '\'' +
|
||||||
|
", wipEntityId='" + wipEntityId + '\'' +
|
||||||
|
", receivingRoutingId=" + receivingRoutingId +
|
||||||
|
", lotControl='" + lotControl + '\'' +
|
||||||
|
", checkPriority='" + checkPriority + '\'' +
|
||||||
|
", dueDate=" + dueDate +
|
||||||
|
", createDate=" + createDate +
|
||||||
|
", localLineNum=" + localLineNum +
|
||||||
|
", totalNum=" + totalNum +
|
||||||
|
", localQuantity=" + localQuantity +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,62 @@
|
||||||
|
package com.ruoyi.business.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.business.domain.TEbsOrderBak;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流水历史表Mapper接口
|
||||||
|
*
|
||||||
|
* @author wms
|
||||||
|
* @date 2025-02-26
|
||||||
|
*/
|
||||||
|
public interface TEbsOrderBakMapper extends BaseMapper<TEbsOrderBak>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询流水历史表
|
||||||
|
*
|
||||||
|
* @param phasegment1 流水历史表主键
|
||||||
|
* @return 流水历史表
|
||||||
|
*/
|
||||||
|
public TEbsOrderBak selectTEbsOrderBakByPhasegment1(String phasegment1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询流水历史表列表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 流水历史表集合
|
||||||
|
*/
|
||||||
|
public List<TEbsOrderBak> selectTEbsOrderBakList(TEbsOrderBak tEbsOrderBak);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增流水历史表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTEbsOrderBak(TEbsOrderBak tEbsOrderBak);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改流水历史表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTEbsOrderBak(TEbsOrderBak tEbsOrderBak);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除流水历史表
|
||||||
|
*
|
||||||
|
* @param phasegment1 流水历史表主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTEbsOrderBakByPhasegment1(String phasegment1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除流水历史表
|
||||||
|
*
|
||||||
|
* @param phasegment1s 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTEbsOrderBakByPhasegment1s(String[] phasegment1s);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,62 @@
|
||||||
|
package com.ruoyi.business.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.business.domain.TEbsOrderBak;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流水历史表Service接口
|
||||||
|
*
|
||||||
|
* @author wms
|
||||||
|
* @date 2025-02-26
|
||||||
|
*/
|
||||||
|
public interface ITEbsOrderBakService extends IService<TEbsOrderBak>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询流水历史表
|
||||||
|
*
|
||||||
|
* @param phasegment1 流水历史表主键
|
||||||
|
* @return 流水历史表
|
||||||
|
*/
|
||||||
|
public TEbsOrderBak selectTEbsOrderBakByPhasegment1(String phasegment1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询流水历史表列表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 流水历史表集合
|
||||||
|
*/
|
||||||
|
public List<TEbsOrderBak> selectTEbsOrderBakList(TEbsOrderBak tEbsOrderBak);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增流水历史表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTEbsOrderBak(TEbsOrderBak tEbsOrderBak);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改流水历史表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTEbsOrderBak(TEbsOrderBak tEbsOrderBak);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除流水历史表
|
||||||
|
*
|
||||||
|
* @param phasegment1s 需要删除的流水历史表主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTEbsOrderBakByPhasegment1s(String phasegment1s);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除流水历史表信息
|
||||||
|
*
|
||||||
|
* @param phasegment1 流水历史表主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTEbsOrderBakByPhasegment1(String phasegment1);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,98 @@
|
||||||
|
package com.ruoyi.business.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.business.mapper.TEbsOrderBakMapper;
|
||||||
|
import com.ruoyi.business.domain.TEbsOrderBak;
|
||||||
|
import com.ruoyi.business.service.ITEbsOrderBakService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流水历史表Service业务层处理
|
||||||
|
*
|
||||||
|
* @author wms
|
||||||
|
* @date 2025-02-26
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TEbsOrderBakServiceImpl extends ServiceImpl<TEbsOrderBakMapper, TEbsOrderBak> implements ITEbsOrderBakService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private TEbsOrderBakMapper tEbsOrderBakMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询流水历史表
|
||||||
|
*
|
||||||
|
* @param phasegment1 流水历史表主键
|
||||||
|
* @return 流水历史表
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TEbsOrderBak selectTEbsOrderBakByPhasegment1(String phasegment1)
|
||||||
|
{
|
||||||
|
return tEbsOrderBakMapper.selectTEbsOrderBakByPhasegment1(phasegment1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询流水历史表列表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 流水历史表
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TEbsOrderBak> selectTEbsOrderBakList(TEbsOrderBak tEbsOrderBak)
|
||||||
|
{
|
||||||
|
return tEbsOrderBakMapper.selectTEbsOrderBakList(tEbsOrderBak);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增流水历史表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTEbsOrderBak(TEbsOrderBak tEbsOrderBak)
|
||||||
|
{
|
||||||
|
tEbsOrderBak.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return tEbsOrderBakMapper.insertTEbsOrderBak(tEbsOrderBak);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改流水历史表
|
||||||
|
*
|
||||||
|
* @param tEbsOrderBak 流水历史表
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTEbsOrderBak(TEbsOrderBak tEbsOrderBak)
|
||||||
|
{
|
||||||
|
tEbsOrderBak.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return tEbsOrderBakMapper.updateTEbsOrderBak(tEbsOrderBak);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除流水历史表
|
||||||
|
*
|
||||||
|
* @param phasegment1s 需要删除的流水历史表主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTEbsOrderBakByPhasegment1s(String phasegment1s)
|
||||||
|
{
|
||||||
|
return tEbsOrderBakMapper.deleteTEbsOrderBakByPhasegment1s(Convert.toStrArray(phasegment1s));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除流水历史表信息
|
||||||
|
*
|
||||||
|
* @param phasegment1 流水历史表主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTEbsOrderBakByPhasegment1(String phasegment1)
|
||||||
|
{
|
||||||
|
return tEbsOrderBakMapper.deleteTEbsOrderBakByPhasegment1(phasegment1);
|
||||||
|
}
|
||||||
|
}
|
||||||
178
wms-business/src/main/resources/mapper/TEbsOrderBakMapper.xml
Normal file
178
wms-business/src/main/resources/mapper/TEbsOrderBakMapper.xml
Normal file
|
|
@ -0,0 +1,178 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.business.mapper.TEbsOrderBakMapper">
|
||||||
|
|
||||||
|
<resultMap type="TEbsOrderBak" id="TEbsOrderBakResult">
|
||||||
|
<result property="phaSegment1" column="phaSegment1" />
|
||||||
|
<result property="shipmentNum" column="shipmentNum" />
|
||||||
|
<result property="distributionNum" column="distributionNum" />
|
||||||
|
<result property="supplyTypeCode" column="supplyTypeCode" />
|
||||||
|
<result property="msQuantity" column="msQuantity" />
|
||||||
|
<result property="poDistributionId" column="poDistributionId" />
|
||||||
|
<result property="poHeaderId" column="poHeaderId" />
|
||||||
|
<result property="poLineId" column="poLineId" />
|
||||||
|
<result property="lineNum" column="lineNum" />
|
||||||
|
<result property="orgId" column="orgId" />
|
||||||
|
<result property="shipToOrganizationId" column="shipToOrganizationId" />
|
||||||
|
<result property="itemId" column="itemId" />
|
||||||
|
<result property="itemDescription" column="itemDescription" />
|
||||||
|
<result property="unitMeasLookupCode" column="unitMeasLookupCode" />
|
||||||
|
<result property="unitPrice" column="unitPrice" />
|
||||||
|
<result property="quantity" column="quantity" />
|
||||||
|
<result property="quantityReceived" column="quantityReceived" />
|
||||||
|
<result property="closedCode" column="closedCode" />
|
||||||
|
<result property="lineLocationId" column="lineLocationId" />
|
||||||
|
<result property="vendorId" column="vendorId" />
|
||||||
|
<result property="vendorName" column="vendorName" />
|
||||||
|
<result property="wipEntityId" column="wipEntityId" />
|
||||||
|
<result property="receivingRoutingId" column="receivingRoutingId" />
|
||||||
|
<result property="lotControl" column="lotControl" />
|
||||||
|
<result property="checkPriority" column="checkPriority" />
|
||||||
|
<result property="dueDate" column="dueDate" />
|
||||||
|
<result property="createDate" column="createDate" />
|
||||||
|
<result property="createTime" column="CREATE_TIME" />
|
||||||
|
<result property="updateTime" column="UPDATE_TIME" />
|
||||||
|
<result property="localLineNum" column="local_line_num" />
|
||||||
|
<result property="totalNum" column="total_num" />
|
||||||
|
<result property="localQuantity" column="local_quantity" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectTEbsOrderBakVo">
|
||||||
|
select phaSegment1, shipmentNum, distributionNum, supplyTypeCode, msQuantity, poDistributionId, poHeaderId, poLineId, lineNum, orgId, shipToOrganizationId, itemId, itemDescription, unitMeasLookupCode, unitPrice, quantity, quantityReceived, closedCode, lineLocationId, vendorId, vendorName, wipEntityId, receivingRoutingId, lotControl, checkPriority, dueDate, createDate, UPDATE_TIME, CREATE_TIME, local_line_num, total_num, local_quantity from t_ebs_order_bak
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTEbsOrderBakList" parameterType="TEbsOrderBak" resultMap="TEbsOrderBakResult">
|
||||||
|
<include refid="selectTEbsOrderBakVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="phaSegment1 != null and phaSegment1 != ''"> and phaSegment1 = #{phaSegment1}</if>
|
||||||
|
<if test="itemId != null"> and itemId = #{itemId}</if>
|
||||||
|
<if test="localLineNum != null"> and local_line_num = #{localLineNum}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTEbsOrderBakByPhasegment1" parameterType="String" resultMap="TEbsOrderBakResult">
|
||||||
|
<include refid="selectTEbsOrderBakVo"/>
|
||||||
|
where phaSegment1 = #{phaSegment1}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTEbsOrderBak" parameterType="TEbsOrderBak">
|
||||||
|
insert into t_ebs_order_bak
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="phaSegment1 != null">phaSegment1,</if>
|
||||||
|
<if test="shipmentNum != null">shipmentNum,</if>
|
||||||
|
<if test="distributionNum != null">distributionNum,</if>
|
||||||
|
<if test="supplyTypeCode != null">supplyTypeCode,</if>
|
||||||
|
<if test="msQuantity != null">msQuantity,</if>
|
||||||
|
<if test="poDistributionId != null">poDistributionId,</if>
|
||||||
|
<if test="poHeaderId != null">poHeaderId,</if>
|
||||||
|
<if test="poLineId != null">poLineId,</if>
|
||||||
|
<if test="lineNum != null">lineNum,</if>
|
||||||
|
<if test="orgId != null">orgId,</if>
|
||||||
|
<if test="shipToOrganizationId != null">shipToOrganizationId,</if>
|
||||||
|
<if test="itemId != null">itemId,</if>
|
||||||
|
<if test="itemDescription != null">itemDescription,</if>
|
||||||
|
<if test="unitMeasLookupCode != null">unitMeasLookupCode,</if>
|
||||||
|
<if test="unitPrice != null">unitPrice,</if>
|
||||||
|
<if test="quantity != null">quantity,</if>
|
||||||
|
<if test="quantityReceived != null">quantityReceived,</if>
|
||||||
|
<if test="closedCode != null">closedCode,</if>
|
||||||
|
<if test="lineLocationId != null">lineLocationId,</if>
|
||||||
|
<if test="vendorId != null">vendorId,</if>
|
||||||
|
<if test="vendorName != null">vendorName,</if>
|
||||||
|
<if test="wipEntityId != null">wipEntityId,</if>
|
||||||
|
<if test="receivingRoutingId != null">receivingRoutingId,</if>
|
||||||
|
<if test="lotControl != null">lotControl,</if>
|
||||||
|
<if test="checkPriority != null">checkPriority,</if>
|
||||||
|
<if test="dueDate != null">dueDate,</if>
|
||||||
|
<if test="createDate != null">createDate,</if>
|
||||||
|
<if test="createTime != null">CREATE_TIME,</if>
|
||||||
|
<if test="localLineNum != null">local_line_num,</if>
|
||||||
|
<if test="totalNum != null">total_num,</if>
|
||||||
|
<if test="localQuantity != null">local_quantity,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="phaSegment1 != null">#{phaSegment1},</if>
|
||||||
|
<if test="shipmentNum != null">#{shipmentNum},</if>
|
||||||
|
<if test="distributionNum != null">#{distributionNum},</if>
|
||||||
|
<if test="supplyTypeCode != null">#{supplyTypeCode},</if>
|
||||||
|
<if test="msQuantity != null">#{msQuantity},</if>
|
||||||
|
<if test="poDistributionId != null">#{poDistributionId},</if>
|
||||||
|
<if test="poHeaderId != null">#{poHeaderId},</if>
|
||||||
|
<if test="poLineId != null">#{poLineId},</if>
|
||||||
|
<if test="lineNum != null">#{lineNum},</if>
|
||||||
|
<if test="orgId != null">#{orgId},</if>
|
||||||
|
<if test="shipToOrganizationId != null">#{shipToOrganizationId},</if>
|
||||||
|
<if test="itemId != null">#{itemId},</if>
|
||||||
|
<if test="itemDescription != null">#{itemDescription},</if>
|
||||||
|
<if test="unitMeasLookupCode != null">#{unitMeasLookupCode},</if>
|
||||||
|
<if test="unitPrice != null">#{unitPrice},</if>
|
||||||
|
<if test="quantity != null">#{quantity},</if>
|
||||||
|
<if test="quantityReceived != null">#{quantityReceived},</if>
|
||||||
|
<if test="closedCode != null">#{closedCode},</if>
|
||||||
|
<if test="lineLocationId != null">#{lineLocationId},</if>
|
||||||
|
<if test="vendorId != null">#{vendorId},</if>
|
||||||
|
<if test="vendorName != null">#{vendorName},</if>
|
||||||
|
<if test="wipEntityId != null">#{wipEntityId},</if>
|
||||||
|
<if test="receivingRoutingId != null">#{receivingRoutingId},</if>
|
||||||
|
<if test="lotControl != null">#{lotControl},</if>
|
||||||
|
<if test="checkPriority != null">#{checkPriority},</if>
|
||||||
|
<if test="dueDate != null">#{dueDate},</if>
|
||||||
|
<if test="createDate != null">#{createDate},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="localLineNum != null">#{localLineNum},</if>
|
||||||
|
<if test="totalNum != null">#{totalNum},</if>
|
||||||
|
<if test="localQuantity != null">#{localQuantity},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateTEbsOrderBak" parameterType="TEbsOrderBak">
|
||||||
|
update t_ebs_order_bak
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="shipmentNum != null">shipmentNum = #{shipmentNum},</if>
|
||||||
|
<if test="distributionNum != null">distributionNum = #{distributionNum},</if>
|
||||||
|
<if test="supplyTypeCode != null">supplyTypeCode = #{supplyTypeCode},</if>
|
||||||
|
<if test="msQuantity != null">msQuantity = #{msQuantity},</if>
|
||||||
|
<if test="poDistributionId != null">poDistributionId = #{poDistributionId},</if>
|
||||||
|
<if test="poHeaderId != null">poHeaderId = #{poHeaderId},</if>
|
||||||
|
<if test="poLineId != null">poLineId = #{poLineId},</if>
|
||||||
|
<if test="lineNum != null">lineNum = #{lineNum},</if>
|
||||||
|
<if test="orgId != null">orgId = #{orgId},</if>
|
||||||
|
<if test="shipToOrganizationId != null">shipToOrganizationId = #{shipToOrganizationId},</if>
|
||||||
|
<if test="itemDescription != null">itemDescription = #{itemDescription},</if>
|
||||||
|
<if test="unitMeasLookupCode != null">unitMeasLookupCode = #{unitMeasLookupCode},</if>
|
||||||
|
<if test="unitPrice != null">unitPrice = #{unitPrice},</if>
|
||||||
|
<if test="quantity != null">quantity = #{quantity},</if>
|
||||||
|
<if test="quantityReceived != null">quantityReceived = #{quantityReceived},</if>
|
||||||
|
<if test="closedCode != null">closedCode = #{closedCode},</if>
|
||||||
|
<if test="lineLocationId != null">lineLocationId = #{lineLocationId},</if>
|
||||||
|
<if test="vendorId != null">vendorId = #{vendorId},</if>
|
||||||
|
<if test="vendorName != null">vendorName = #{vendorName},</if>
|
||||||
|
<if test="wipEntityId != null">wipEntityId = #{wipEntityId},</if>
|
||||||
|
<if test="receivingRoutingId != null">receivingRoutingId = #{receivingRoutingId},</if>
|
||||||
|
<if test="lotControl != null">lotControl = #{lotControl},</if>
|
||||||
|
<if test="checkPriority != null">checkPriority = #{checkPriority},</if>
|
||||||
|
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||||
|
<if test="totalNum != null">total_num = #{totalNum},</if>
|
||||||
|
<if test="localQuantity != null">local_quantity = #{localQuantity},</if>
|
||||||
|
</trim>
|
||||||
|
<where>
|
||||||
|
phaSegment1 = #{phaSegment1} and itemId = #{itemId}
|
||||||
|
<if test="dueDate != null"> and dueDate = #{dueDate}</if>
|
||||||
|
<if test="localLineNum != null"> and local_line_num = #{localLineNum}</if>
|
||||||
|
</where>
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteTEbsOrderBakByPhasegment1" parameterType="String">
|
||||||
|
delete from t_ebs_order_bak where phaSegment1 = #{phaSegment1}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTEbsOrderBakByPhasegment1s" parameterType="String">
|
||||||
|
delete from t_ebs_order_bak where phaSegment1 in
|
||||||
|
<foreach item="phaSegment1" collection="array" open="(" separator="," close=")">
|
||||||
|
#{phaSegment1}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -161,7 +161,8 @@
|
||||||
<delete id="deleteTEbsOrder" parameterType="TEbsOrder">
|
<delete id="deleteTEbsOrder" parameterType="TEbsOrder">
|
||||||
delete from t_ebs_order
|
delete from t_ebs_order
|
||||||
<where>
|
<where>
|
||||||
phaSegment1 = #{phaSegment1} and itemId = #{itemId} and dueDate = #{dueDate}
|
phaSegment1 = #{phaSegment1} and itemId = #{itemId}
|
||||||
|
<if test="dueDate != null"> and dueDate = #{dueDate}</if>
|
||||||
<if test="localLineNum != null">and local_line_num = #{localLineNum}</if>
|
<if test="localLineNum != null">and local_line_num = #{localLineNum}</if>
|
||||||
</where>
|
</where>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user