|
|
@ -24,6 +24,12 @@ import java.util.stream.Collectors;
|
|
|
|
**/
|
|
|
|
**/
|
|
|
|
public class WmsHqlPack {
|
|
|
|
public class WmsHqlPack {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String packInParams(String colnumName,String[] params){
|
|
|
|
|
|
|
|
StringBuffer sb = new StringBuffer();
|
|
|
|
|
|
|
|
HqlPack.getInPackString(String.join(",", params),colnumName,sb);
|
|
|
|
|
|
|
|
return sb.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 封装公用查询参数
|
|
|
|
* 封装公用查询参数
|
|
|
|
* @param bean 实体对象
|
|
|
|
* @param bean 实体对象
|
|
|
@ -188,7 +194,7 @@ public class WmsHqlPack {
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartNo(), "partNo", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartNo(), "partNo", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartName(), "partNameRdd", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartName(), "partName", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartSpec(), "partSpec", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartSpec(), "partSpec", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartType(), "partType", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartType(), "partType", result);
|
|
|
|
|
|
|
|
|
|
|
@ -351,7 +357,6 @@ public class WmsHqlPack {
|
|
|
|
|
|
|
|
|
|
|
|
HqlPack.getStringEqualPack(wmsOpType.getOpTypeCode(), "opTypeCode", result);
|
|
|
|
HqlPack.getStringEqualPack(wmsOpType.getOpTypeCode(), "opTypeCode", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsOpType.getOpTypeName(), "opTypeName", result);
|
|
|
|
HqlPack.getStringLikerPack(wmsOpType.getOpTypeName(), "opTypeName", result);
|
|
|
|
HqlPack.getNumEqualPack(wmsOpType.getTmId(), "tmId", result);
|
|
|
|
|
|
|
|
HqlPack.getNumEqualPack(wmsOpType.getSeq(), "seq", result);
|
|
|
|
HqlPack.getNumEqualPack(wmsOpType.getSeq(), "seq", result);
|
|
|
|
|
|
|
|
|
|
|
|
getStringBuilderPack(wmsOpType, result);
|
|
|
|
getStringBuilderPack(wmsOpType, result);
|
|
|
@ -1471,4 +1476,16 @@ public class WmsHqlPack {
|
|
|
|
getStringBuilderPack(wmsTransModule, result);
|
|
|
|
getStringBuilderPack(wmsTransModule, result);
|
|
|
|
return result.toString();
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 根据条件查询系统配置信息
|
|
|
|
|
|
|
|
* @param wmsConfig
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static String packHqlWmsConfig(WmsConfig wmsConfig) {
|
|
|
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
HqlPack.getStringEqualPack(wmsConfig.getConfigCode(), "configCode", result);
|
|
|
|
|
|
|
|
getStringBuilderPack(wmsConfig, result);
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|