queryString.append(" select new "+persistentClass.getSimpleName()+"(snStatus,whNo,locateNo,partNo,partNameRdd,lotNo,sum(qty)) from "+persistentClass.getSimpleName()+" ");
intsize=propertyNames.length;
if(size>0){
queryString.append("where 1=1 and snStatus in ('"+WmsEnumUtil.STOCK_SN_STATUS.PRE_INSTOCK.getValue()+"','"+WmsEnumUtil.STOCK_SN_STATUS.INSTOCKED.getValue()+"','"+WmsEnumUtil.STOCK_SN_STATUS.PICKED.getValue()+"','"+WmsEnumUtil.STOCK_SN_STATUS.QUALITY_CONTROL.getValue()+"') ");
}
for(inti=0;i<size;i++){
if(values[i]!=null){
queryString.append(" and "+propertyNames[i]+"= :"+propertyNames[i]);