|
|
|
@ -3611,23 +3611,35 @@ public class MesHqlPack {
|
|
|
|
|
/**
|
|
|
|
|
* MES客户条码规则查询条件封装
|
|
|
|
|
*
|
|
|
|
|
* @param mesCustomerSnRule
|
|
|
|
|
* @return
|
|
|
|
|
* @param customerSnRule 客户条码规则查询条件
|
|
|
|
|
* @return 查询数据
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getMesCustomerSnRule(MesCustomerSnRule mesCustomerSnRule) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(mesCustomerSnRule, mesCustomerSnRule.getOrganizeCode());
|
|
|
|
|
if (!StringUtils.isEmpty(mesCustomerSnRule.getOrganizeCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesCustomerSnRule.getOrganizeCode(), "organizeCode", packBean);
|
|
|
|
|
public static DdlPackBean getMesCustomerSnRule(MesCustomerSnRule customerSnRule) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(customerSnRule, customerSnRule.getOrganizeCode());
|
|
|
|
|
if (!StringUtils.isEmpty(customerSnRule.getOrganizeCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(customerSnRule.getOrganizeCode(), "organizeCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(customerSnRule.getCustomerCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(customerSnRule.getCustomerCode(), "customerCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(customerSnRule.getCustomerPartNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(customerSnRule.getCustomerPartNo(), "customerPartNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesCustomerSnRule.getCustomerCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesCustomerSnRule.getCustomerCode(), "customerCode", packBean);
|
|
|
|
|
if (!StringUtils.isEmpty(customerSnRule.getPartNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(customerSnRule.getPartNo(), "partNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesCustomerSnRule.getCustomerPartNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesCustomerSnRule.getCustomerPartNo(), "customerPartNo", packBean);
|
|
|
|
|
if (!StringUtils.isEmpty(customerSnRule.getLength())) {
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(customerSnRule.getLength(), "length", packBean);
|
|
|
|
|
}
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* MES物料上炉模式查询条件封装
|
|
|
|
|
*
|
|
|
|
|
* @param partFurnace 物料上炉模式查询条件
|
|
|
|
|
* @return 查询数据
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getPartFurnace(MesPartFurnace partFurnace) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseData(partFurnace.getOrganizeCode());
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(partFurnace.getPartNo(), "partNo", packBean);
|
|
|
|
|