|
|
|
@ -17,6 +17,7 @@ import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.StringJoiner;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
@ -30,9 +31,6 @@ public class MesEquipmentLogDetailService extends BaseMesService<MesEquipmentLog
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(new StringJoiner(MesExtConstWords.E_UNDERLINE).add(bean.getOrganizeCode()).add(bean.getEquipId().toString()).toString(), MesExtConstWords.ORG_EQUIP_ID, packBean);
|
|
|
|
|
// DdlPreparedPack.getNumEqualPack(bean.getEquipId(), MesExtConstWords.EQUIP_ID, packBean);
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(bean.getVariableType(), MesExtConstWords.VARIABLE_TYPE, packBean);
|
|
|
|
|
if (!StringUtils.isEmpty(bean.getEquipVariableIds())) {
|
|
|
|
|
DdlPreparedPack.getInPackList(Arrays.asList(bean.getEquipVariableIds().split(",")), MesExtConstWords.EQUIP_VARIABLE_ID, packBean);
|
|
|
|
|
}
|
|
|
|
|
// DdlPreparedPack.getStringEqualPack(bean.getEquipmentCode(), MesExtConstWords.EQUIPMENT_CODE, packBean);
|
|
|
|
|
if (!StringUtils.isEmpty(bean.getEquipVariableName()) && bean.getEquipVariableName().split(",").length > 1) {
|
|
|
|
|
DdlPreparedPack.getInPackList(Arrays.asList(bean.getEquipVariableName().split(",")), MesExtConstWords.EQUIP_VARIABLE_NAME, packBean);
|
|
|
|
@ -40,6 +38,12 @@ public class MesEquipmentLogDetailService extends BaseMesService<MesEquipmentLog
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(bean.getEquipVariableName(), MesExtConstWords.EQUIP_VARIABLE_NAME, packBean);
|
|
|
|
|
}
|
|
|
|
|
DdlPreparedPack.timeBuilder(bean.getCreateDateTimeStart(), bean.getCreateDateTimeEnd(), MesExtConstWords.CREATE_DATE_TIME, packBean, true);
|
|
|
|
|
if (!StringUtils.isEmpty(bean.getEquipVariableIds())) {
|
|
|
|
|
// Long[] ids = Arrays.stream(bean.getEquipVariableIds().split(",")).map(Long::parseLong).toArray(Long[]::new);
|
|
|
|
|
List<String> stringList = Arrays.asList(bean.getEquipVariableIds().split(","));
|
|
|
|
|
packBean.setWhereAppend(packBean.getWhereAppend() + " and equipVariableId in (" + String.join(",", stringList) + ") ");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DdlPreparedPack.getOrderByPack(new Object[]{CommonEnumUtil.ASC_OR_DESC.DESC.getValue()}, new String[]{MesExtConstWords.CREATE_DATE_TIME}, packBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|