|
|
|
@ -1428,8 +1428,8 @@ public class MesHqlPack {
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getMesProduceCtgyPicture(MesProduceCtgyPicture mesProduceCtgyPicture, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(mesProduceCtgyPicture, organizeCode);
|
|
|
|
|
if (!StringUtils.isEmpty(mesProduceCtgyPicture.getProduceCtgyCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesProduceCtgyPicture.getProduceCtgyCode(), "produceCtgyCode", packBean);
|
|
|
|
|
if (!StringUtils.isEmpty(mesProduceCtgyPicture.getProduceCategoryCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesProduceCtgyPicture.getProduceCategoryCode(), "produceCtgyCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesProduceCtgyPicture.getPictureName())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesProduceCtgyPicture.getPictureName(), "pictureName", packBean);
|
|
|
|
@ -1553,4 +1553,55 @@ public class MesHqlPack {
|
|
|
|
|
}
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 按条件分页查询首检件配置信息
|
|
|
|
|
* @param mesFiCfg
|
|
|
|
|
* @param organizeCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getMesFiCfg(MesFiCfg mesFiCfg, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(mesFiCfg, organizeCode);
|
|
|
|
|
if (!StringUtils.isEmpty(mesFiCfg.getWorkCenterCode())) {
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(mesFiCfg.getWorkCenterCode(), "workCenterCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesFiCfg.getPartNo())) {
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(mesFiCfg.getPartNo(), "partNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesFiCfg.getCustCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesFiCfg.getCustCode(), "custCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 维修记录
|
|
|
|
|
* @param mesEquTaskRepairRecord
|
|
|
|
|
* @param organizeCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getMesEquTaskRepairRecord(MesEquTaskRepairRecord mesEquTaskRepairRecord, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEquTaskRepairRecord, organizeCode);
|
|
|
|
|
if (!StringUtils.isEmpty(mesEquTaskRepairRecord.getEquipmentCode())) {
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(mesEquTaskRepairRecord.getEquipmentCode(), "equipmentCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 点检或保养记录
|
|
|
|
|
* @param mesEquTaskStandardRecord
|
|
|
|
|
* @param organizeCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getMesEquTaskStandardRecord(MesEquTaskStandardRecord mesEquTaskStandardRecord, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEquTaskStandardRecord, organizeCode);
|
|
|
|
|
if (!StringUtils.isEmpty(mesEquTaskStandardRecord.getEquipmentCode())) {
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(mesEquTaskStandardRecord.getEquipmentCode(), "equipmentCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesEquTaskStandardRecord.getTaskType())) {
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(mesEquTaskStandardRecord.getTaskType(), "taskType", packBean);
|
|
|
|
|
}
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|