diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsPackAgeRepository.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsPackAgeRepository.java new file mode 100644 index 0000000..d98f17e --- /dev/null +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsPackAgeRepository.java @@ -0,0 +1,16 @@ +package cn.estsh.i3plus.pojo.wms.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.wms.bean.WmsPackage; +import org.springframework.stereotype.Repository; + +/** + * @Description : 物料包装 + * @Reference : + * @Author : silliter.yuan + * @CreateDate : 2018-11-18 14:46 + * @Modify: + **/ +@Repository +public interface WmsPackAgeRepository 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 8fb6631..d312771 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 @@ -832,4 +832,24 @@ public class WmsHqlPack { getStringBuilderPack(wmsTransQuan, result); return result.toString(); } + + /** + * 业务:物料包装查询封装 + * + * @param wmsPackage + * @return + */ + public static String packWmsPackAge(WmsPackage wmsPackage) { + StringBuffer result = new StringBuffer(); + + //查询参数封装 + HqlPack.getStringEqualPack(wmsPackage.getPackageNo(), "packageNo", result); + HqlPack.getStringEqualPack(wmsPackage.getParentPackageNo(), "parentPackageNo", result); + HqlPack.getStringEqualPack(wmsPackage.getSn(), "sn", result); + HqlPack.getNumEqualPack(wmsPackage.getPackTypeId(), "packTypeId", result); + + getStringBuilderPack(wmsPackage, result); + + return result.toString(); + } }