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 9283733..42555f9 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 @@ -377,7 +377,6 @@ public class WmsHqlPack { */ public static DdlPackBean packHqlWareHouseUnique(WareHouse wareHouse) { DdlPackBean result = new DdlPackBean(); -// StringBuffer result = new StringBuffer(); DdlPreparedPack.getStringEqualPack(wareHouse.getName(), "name", result); DdlPreparedPack.getStringEqualPack(wareHouse.getCode(), "code", result); @@ -970,15 +969,15 @@ public class WmsHqlPack { * @param wmsMoveMaster * @return */ - public static String packHqlWmsMoveMaster(WmsMoveMaster wmsMoveMaster) { - StringBuffer result = new StringBuffer(); + public static DdlPackBean packHqlWmsMoveMaster(WmsMoveMaster wmsMoveMaster) { + DdlPackBean result = new DdlPackBean(); - HqlPack.getStringEqualPack(wmsMoveMaster.getOrderNo(), "orderNo", result); - HqlPack.getNumEqualPack(wmsMoveMaster.getOrderStatus(), "orderStatus", result); - HqlPack.getStringEqualPack(wmsMoveMaster.getTransTypeCode(), "transTypeCode", result); + DdlPreparedPack.getStringEqualPack(wmsMoveMaster.getOrderNo(), "orderNo", result); + DdlPreparedPack.getNumEqualPack(wmsMoveMaster.getOrderStatus(), "orderStatus", result); + DdlPreparedPack.getStringEqualPack(wmsMoveMaster.getTransTypeCode(), "transTypeCode", result); getStringBuilderPack(wmsMoveMaster, result); - return result.toString(); + return result; } /** @@ -989,7 +988,6 @@ public class WmsHqlPack { */ public static DdlPackBean packHqlWmsMoveDetails(WmsMoveDetails wmsMoveDetails) { DdlPackBean packBean = new DdlPackBean(); -// StringBuffer result = new StringBuffer(); DdlPreparedPack.getStringEqualPack(wmsMoveDetails.getOrderNo(), "orderNo", packBean); DdlPreparedPack.getStringEqualPack(wmsMoveDetails.getPartNo(), "partNo", packBean); DdlPreparedPack.getStringLikerPack(wmsMoveDetails.getPartNameRdd(), "partNameRdd", packBean);