|
|
|
@ -365,6 +365,9 @@ public class MesHqlPack {
|
|
|
|
|
if (!StringUtils.isEmpty(shiftGroup.getGroupName())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(shiftGroup.getGroupName(), "groupName", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(shiftGroup.getWorkCenterCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(shiftGroup.getWorkCenterCode(), "workCenterCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1923,4 +1926,70 @@ public class MesHqlPack {
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 维修记录
|
|
|
|
|
* @param mesRepairRecord
|
|
|
|
|
* @param organizeCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getMesRepairRecord(MesRepairRecord mesRepairRecord, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(mesRepairRecord, organizeCode);
|
|
|
|
|
if (!StringUtils.isEmpty(mesRepairRecord.getPartNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesRepairRecord.getPartNo(), "partNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesRepairRecord.getSerialNumber())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesRepairRecord.getSerialNumber(), "serialNumber", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesRepairRecord.getWorkCenterCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesRepairRecord.getWorkCenterCode(), "workCenterCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesRepairRecord.getWorkCellCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesRepairRecord.getWorkCellCode(), "workCellCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesRepairRecord.getDefectCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesRepairRecord.getDefectCode(), "defectCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesRepairRecord.getRepairCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesRepairRecord.getRepairCode(), "repairCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesRepairRecord.getDcCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesRepairRecord.getDcCode(), "dcCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
DdlPreparedPack.timeBuilder(
|
|
|
|
|
mesRepairRecord.getCreateDateTimeStart(),
|
|
|
|
|
mesRepairRecord.getCreateDateTimeEnd(),
|
|
|
|
|
"createDatetime", packBean, true);
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 过程质量检测数据
|
|
|
|
|
* @param mesQcCheckData
|
|
|
|
|
* @param organizeCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getMesQcCheckData(MesQcCheckData mesQcCheckData, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(mesQcCheckData, organizeCode);
|
|
|
|
|
if (!StringUtils.isEmpty(mesQcCheckData.getPartNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesQcCheckData.getPartNo(), "partNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesQcCheckData.getOrderNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesQcCheckData.getOrderNo(), "orderNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesQcCheckData.getSn())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesQcCheckData.getSn(), "sn", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesQcCheckData.getWorkCenterCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesQcCheckData.getWorkCenterCode(), "workCenterCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
if (!StringUtils.isEmpty(mesQcCheckData.getWorkCellCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesQcCheckData.getWorkCellCode(), "workCellCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
DdlPreparedPack.timeBuilder(
|
|
|
|
|
mesQcCheckData.getCreateDateTimeStart(),
|
|
|
|
|
mesQcCheckData.getCreateDateTimeEnd(),
|
|
|
|
|
"createDatetime", packBean, true);
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|