|
|
@ -1,11 +1,7 @@
|
|
|
|
package cn.estsh.i3plus.pojo.wms.sqlpack;
|
|
|
|
package cn.estsh.i3plus.pojo.wms.sqlpack;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
import cn.estsh.i3plus.pojo.wms.bean.*;
|
|
|
|
import cn.estsh.i3plus.pojo.wms.bean.*;
|
|
|
|
import cn.estsh.i3plus.pojo.wms.bean.WareHouse;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.wms.bean.WmsTrans;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.wms.bean.WmsTransType;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Description : 仓库管理对象封装
|
|
|
|
* @Description : 仓库管理对象封装
|
|
|
@ -15,7 +11,23 @@ import cn.estsh.i3plus.pojo.wms.bean.WmsTransType;
|
|
|
|
* @Modify:
|
|
|
|
* @Modify:
|
|
|
|
**/
|
|
|
|
**/
|
|
|
|
public class WmsHqlPack {
|
|
|
|
public class WmsHqlPack {
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 物料查询条件封装
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param wmsPart
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static String packHqlWmsPart(WmsPart wmsPart) {
|
|
|
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartNo(), "partNo", result);
|
|
|
|
|
|
|
|
HqlPack.timeBuilder(wmsPart.getCreateDateTimeStart(), wmsPart.getCreateDateTimeEnd(), "createDateTime", result, true);
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartSpec(), "partSpec", result);
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartType(), "partType", result);
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getAbc(), "ABC", result);
|
|
|
|
|
|
|
|
HqlPack.getNumEqualPack(wmsPart.getIqc(), "iqc", result);
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(wmsPart.getPartGroup(), "partGroup", result);
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 抽点比例信息 分页查询
|
|
|
|
* 抽点比例信息 分页查询
|
|
|
|
* @param wmsIbCheckPlan
|
|
|
|
* @param wmsIbCheckPlan
|
|
|
@ -170,12 +182,7 @@ public class WmsHqlPack {
|
|
|
|
HqlPack.getStringLikerPack(wareHouse.getAddress(), "address", result);
|
|
|
|
HqlPack.getStringLikerPack(wareHouse.getAddress(), "address", result);
|
|
|
|
HqlPack.getStringLikerPack(wareHouse.getCode(), "code", result);
|
|
|
|
HqlPack.getStringLikerPack(wareHouse.getCode(), "code", result);
|
|
|
|
HqlPack.getStringLikerPack(wareHouse.getName(), "name", result);
|
|
|
|
HqlPack.getStringLikerPack(wareHouse.getName(), "name", result);
|
|
|
|
// 默认有效
|
|
|
|
HqlPack.getNumEqualPack(wareHouse.getIsValid(),"isValid",result);
|
|
|
|
if(wareHouse.getIsValid()==null){
|
|
|
|
|
|
|
|
HqlPack.getStringEqualPack(CommonEnumUtil.IS_VAILD.VAILD.getValue()+"","isValid",result);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
HqlPack.getStringEqualPack(CommonEnumUtil.IS_VAILD.INVAILD.getValue()+"","isValid",result);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|