|
@@ -91,7 +91,6 @@ public class GanttServiceImpl implements GanttService {
|
|
|
/**
|
|
|
* 根据条件获取gantt
|
|
|
*
|
|
|
- * @param searchDate
|
|
|
* @param factoryId
|
|
|
* @param workShopIdList
|
|
|
* @param orderNoList
|
|
@@ -103,7 +102,7 @@ public class GanttServiceImpl implements GanttService {
|
|
|
public R getListByCondition(Date startDate, Date endDate, String factoryId,
|
|
|
List<String> workShopIdList, List<String> orderNoList,
|
|
|
List<String> productionLineId, List<String> equId,
|
|
|
- String productionLineName, String equName) {
|
|
|
+ String productionLineName, String equName,String blankNumber) {
|
|
|
if (endDate == null && startDate != null) {
|
|
|
List<Date> searchDateList = getSearchDate(startDate);
|
|
|
startDate = searchDateList.get(0);
|
|
@@ -113,7 +112,7 @@ public class GanttServiceImpl implements GanttService {
|
|
|
stopWatch.start();
|
|
|
List<GanttVos> apsProcessOperationProcessEquDos = apsProcessOperationProcessEquDao.getGanttDataList(
|
|
|
startDate, endDate, factoryId, workShopIdList, orderNoList,
|
|
|
- null, productionLineId, equId, null, productionLineName, equName);
|
|
|
+ null, productionLineId, equId, null, productionLineName, equName,blankNumber);
|
|
|
stopWatch.stop();
|
|
|
log.error("甘特图查询用时:{}", stopWatch.getTotalTimeSeconds());
|
|
|
StopWatch stopWatch1 = new StopWatch();
|
|
@@ -128,7 +127,8 @@ public class GanttServiceImpl implements GanttService {
|
|
|
public List<ScheduleGanttVo> getListById(List<String> ids) {
|
|
|
List<GanttVos> apsProcessOperationProcessEquDos = apsProcessOperationProcessEquDao.getGanttDataList(
|
|
|
null, null, null, null, null,
|
|
|
- null, null, null, ids, null, null);
|
|
|
+ null, null, null, ids, null, null,
|
|
|
+ null);
|
|
|
return assembleGanttData(apsProcessOperationProcessEquDos);
|
|
|
}
|
|
|
|
|
@@ -288,8 +288,9 @@ public class GanttServiceImpl implements GanttService {
|
|
|
if (queryProcessids != null && queryProcessids.size() > 0) {
|
|
|
String joinids = "'" + CollUtil.join(queryProcessids, "','") + "'";
|
|
|
retGantvos = apsProcessOperationProcessEquDao.getGanttDataList(
|
|
|
- null, null, null, null, null, joinids,
|
|
|
- null, null, null, null, null);
|
|
|
+ null, null, null, null, null,
|
|
|
+ joinids,null, null, null, null,
|
|
|
+ null,null);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -373,6 +374,7 @@ public class GanttServiceImpl implements GanttService {
|
|
|
dateVo.setStart_date(ganttVos.get(0).getPlanstartdate());
|
|
|
dateVo.setEnd_date(ganttVos.get(0).getPlanenddate());
|
|
|
dateVo.setName(StringUtils.join(itemNames, "</br>"));
|
|
|
+ dateVo.setBlankNumber(ganttVos.stream().map(GanttVos::getBlankNumber).distinct().collect(Collectors.joining(",")));
|
|
|
dateVo.setProcessdetailids(ganttVos.stream().map(GanttVos::getId).distinct().collect(Collectors.joining(",")));
|
|
|
dateVo.setProcessids(ganttVos.stream().map(GanttVos::getProcessid).distinct().collect(Collectors.joining(",")));
|
|
|
dateVo.setGanttVos(ganttVos);
|