|
|
|
@ -280,4 +280,74 @@ public class MesHqlPack {
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 按条件分页查询产品条码补打印数据
|
|
|
|
|
* @param mesProduceSn
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getProdSnPrint(MesProduceSn mesProduceSn) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseData(mesProduceSn.getOrganizeCode());
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mesProduceSn.getSerialNumber())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesProduceSn.getSerialNumber(), "serialNumber", packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mesProduceSn.getProductSn())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesProduceSn.getProductSn(), "productSn", packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mesProduceSn.getPartNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesProduceSn.getPartNo(), "partNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mesProduceSn.getSnStatus())) {
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(mesProduceSn.getSnStatus(), "snStatus", packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 时间段查询
|
|
|
|
|
DdlPreparedPack.timeBuilder(
|
|
|
|
|
mesProduceSn.getCreateDateTimeStart(),
|
|
|
|
|
mesProduceSn.getCreateDateTimeEnd(),
|
|
|
|
|
"createDatetime", packBean, true);
|
|
|
|
|
DdlPreparedPack.timeBuilder(
|
|
|
|
|
mesProduceSn.getOutWorkCenterTimeStart(),
|
|
|
|
|
mesProduceSn.getOutWorkCenterTimeEnd(),
|
|
|
|
|
"outWorkCenterTime", packBean, true);
|
|
|
|
|
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 按条件分页查询包装条码补打印数据
|
|
|
|
|
* @param mesPackage
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getPackageSnPrint(MesPackage mesPackage) {
|
|
|
|
|
|
|
|
|
|
DdlPackBean packBean = getAllBaseData(mesPackage.getOrganizeCode());
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mesPackage.getPartNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesPackage.getPartNo(), "partNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mesPackage.getPackLevel())) {
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(mesPackage.getPackLevel(), "packLevel", packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mesPackage.getPackageNo())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesPackage.getPackageNo(), "packageNo", packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mesPackage.getWorkCenterCode())) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(mesPackage.getWorkCenterCode(), "workCenterCode", packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 时间段查询
|
|
|
|
|
DdlPreparedPack.timeBuilder(
|
|
|
|
|
mesPackage.getCreateDateTimeStart(),
|
|
|
|
|
mesPackage.getCreateDateTimeEnd(),
|
|
|
|
|
"createDatetime", packBean, true);
|
|
|
|
|
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|