diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLineLocatePart.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLineLocatePart.java new file mode 100644 index 0000000..738622a --- /dev/null +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLineLocatePart.java @@ -0,0 +1,76 @@ +package cn.estsh.i3plus.pojo.wms.bean; + +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + + +/** + * @Description :边线库物料关系 + * @Reference : + * @Author : yerik.shi + * @CreateDate : 2019-06-11 + * @Modify: + **/ +@Data +@Entity +@Table(name="WMS_LINE_LOCATE_PART") +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Api(value="线边库物料信息",description = "线边库物料信息") +public class WmsLineLocatePart extends BaseBean { + + @Column(name="LOCATE_NO") + @ApiParam(value ="库位代码") + private String locateNo; + + @Column(name="PART_NO") + @ApiParam(value = "物料编码") + private String partNo; + + @Column(name="PART_NAME_RDD") + @ApiParam(value = "物料名称") + private String partNameRdd; + + public Double getPullQty() { + return pullQty == null ? 0D : this.pullQty.doubleValue(); + } + + public Double getMax() { + return max== null ? 0D : this.max.doubleValue(); + } + + public Double getMin() { + return min== null ? 0D : this.min.doubleValue(); + } + + public Integer getIsGeneratePicklist() { + return isGeneratePicklist== null ? 0: this.isGeneratePicklist.intValue(); + } + + @Column(name = "PULL_QTY") + @ApiParam(value = "拉动数量") + private Double pullQty; + + @Column(name = "Max") + @ApiParam(value = "最大值") + private Double max; + + @Column(name = "Min") + @ApiParam(value = "最小值") + private Double min; + + @Column(name = "IS_GENERATE_PICKLIST") + @ApiParam(value = "是否生成领料单") + private Integer isGeneratePicklist; + +} diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsLineLocatePartRepository.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsLineLocatePartRepository.java new file mode 100644 index 0000000..24c1c60 --- /dev/null +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsLineLocatePartRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.wms.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.wms.bean.WmsLineLocatePart; + +/** + * @Description : 线边库物料表 + * @Reference : + * @Author : yerik.shi + * @CreateDate : 2019-06-12 + * @Modify: + **/ +public interface WmsLineLocatePartRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java index c8db411..72226ab 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java @@ -1669,4 +1669,24 @@ public class WmsHqlPack { return result; } + + + /** + * 线边库物料信息 分页查询 + * + * @param wmsLineLocatePart + * @return + */ + public static DdlPackBean packHqlWmsLineLocatePart(WmsLineLocatePart wmsLineLocatePart) { + DdlPackBean result = new DdlPackBean(); + + //查询参数封装 + DdlPreparedPack.getStringLikerPack(wmsLineLocatePart.getLocateNo(), "locateNo", result); + DdlPreparedPack.getStringLikerPack(wmsLineLocatePart.getPartNo(), "partNo", result); + DdlPreparedPack.getStringLikerPack(wmsLineLocatePart.getPartNameRdd(), "partNameRdd", result); + getStringBuilderPack(wmsLineLocatePart, result); + return result; + } + + }