Merge branch 'dev_qinhongzhanWMS' into wms_dev
This commit is contained in:
+8
@@ -1,6 +1,7 @@
|
|||||||
package com.mhd.wms.domain.shelfMaterialDetail.entity;
|
package com.mhd.wms.domain.shelfMaterialDetail.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
@@ -266,39 +267,46 @@ public class ShelfMaterialDetail extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("扩展字段1")
|
@ApiModelProperty("扩展字段1")
|
||||||
@Excel(name = "扩展字段1")
|
@Excel(name = "扩展字段1")
|
||||||
|
@TableField("ext_attr_1")
|
||||||
private String extAttr1;
|
private String extAttr1;
|
||||||
|
|
||||||
@ApiModelProperty("扩展字段2")
|
@ApiModelProperty("扩展字段2")
|
||||||
@Excel(name = "扩展字段2")
|
@Excel(name = "扩展字段2")
|
||||||
|
@TableField("ext_attr_2")
|
||||||
private String extAttr2;
|
private String extAttr2;
|
||||||
|
|
||||||
@ApiModelProperty("生产日期")
|
@ApiModelProperty("生产日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@TableField("production_date")
|
||||||
private Date productionDate;
|
private Date productionDate;
|
||||||
|
|
||||||
@ApiModelProperty("过期日期")
|
@ApiModelProperty("过期日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@TableField("expiry_date")
|
||||||
private Date expiryDate;
|
private Date expiryDate;
|
||||||
|
|
||||||
@ApiModelProperty("存货日期")
|
@ApiModelProperty("存货日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "存货日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "存货日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@TableField("inventory_date")
|
||||||
private Date inventoryDate;
|
private Date inventoryDate;
|
||||||
|
|
||||||
@ApiModelProperty("ExtAttr3")
|
@ApiModelProperty("ExtAttr3")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "ExtAttr3", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "ExtAttr3", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@TableField("ext_attr_3")
|
||||||
private Date extAttr3;
|
private Date extAttr3;
|
||||||
|
|
||||||
@ApiModelProperty("ExtAttr4")
|
@ApiModelProperty("ExtAttr4")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "ExtAttr4", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "ExtAttr4", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@TableField("ext_attr_4")
|
||||||
private Date extAttr4;
|
private Date extAttr4;
|
||||||
}
|
}
|
||||||
+1
-1
@@ -392,7 +392,7 @@ public class StockShelfOrderDomainService {
|
|||||||
//修改库存
|
//修改库存
|
||||||
StockShelfOrderDO stockShelfOrderDO = new StockShelfOrderDO();
|
StockShelfOrderDO stockShelfOrderDO = new StockShelfOrderDO();
|
||||||
BeanUtils.copyProperties(stockShelfOrderPO, stockShelfOrderDO);
|
BeanUtils.copyProperties(stockShelfOrderPO, stockShelfOrderDO);
|
||||||
stockIn(shelfMaterialDetailList, stockShelfOrderDO);
|
// stockIn(shelfMaterialDetailList, stockShelfOrderDO);
|
||||||
//shelfAddMaterialInventory(shelfMaterialDetailList, stockShelfOrderPO);
|
//shelfAddMaterialInventory(shelfMaterialDetailList, stockShelfOrderPO);
|
||||||
//修改上架对应的序列号的库存信息
|
//修改上架对应的序列号的库存信息
|
||||||
updateSerialNumberforInventory(shelfMaterialDetailList);
|
updateSerialNumberforInventory(shelfMaterialDetailList);
|
||||||
|
|||||||
@@ -688,19 +688,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND a.storage_location_id = #{storageLocationId}
|
AND a.storage_location_id = #{storageLocationId}
|
||||||
</if>
|
</if>
|
||||||
<if test="extAttr4 != null">
|
<if test="extAttr4 != null">
|
||||||
AND DATE(a.EXT_ATTR_4) = DATE(#{inventoryDate})
|
AND TRUNC(a.EXT_ATTR_4) = TRUNC(#{inventoryDate})
|
||||||
</if>
|
</if>
|
||||||
<if test="extAttr3 != null">
|
<if test="extAttr3 != null">
|
||||||
AND DATE(a.EXT_ATTR_3) = DATE(#{inventoryDate})
|
AND TRUNC(a.EXT_ATTR_3) = TRUNC(#{inventoryDate})
|
||||||
</if>
|
</if>
|
||||||
<if test="inventoryDate != null">
|
<if test="inventoryDate != null">
|
||||||
AND DATE(a.inventory_date) = DATE(#{inventoryDate})
|
AND TRUNC(a.inventory_date) = TRUNC(#{inventoryDate})
|
||||||
</if>
|
</if>
|
||||||
<if test="expiryDate != null">
|
<if test="expiryDate != null">
|
||||||
AND DATE(a.EXPIRY_DATE) = DATE(#{inventoryDate})
|
AND TRUNC(a.EXPIRY_DATE) = TRUNC(#{inventoryDate})
|
||||||
</if>
|
</if>
|
||||||
<if test="productionDate != null and productionDate != ''">
|
<if test="productionDate != null">
|
||||||
AND DATE(a.PRODUCTION_DATE) = DATE(#{inventoryDate})
|
AND TRUNC(a.PRODUCTION_DATE) = TRUNC(#{inventoryDate})
|
||||||
</if>
|
</if>
|
||||||
<if test="extAttr2 != null and extAttr2 != ''">
|
<if test="extAttr2 != null and extAttr2 != ''">
|
||||||
AND a.EXT_ATTR_2 = #{extAttr2}
|
AND a.EXT_ATTR_2 = #{extAttr2}
|
||||||
|
|||||||
Reference in New Issue
Block a user