|
@@ -69,16 +69,23 @@ public class GanttServiceImpl implements GanttService {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public R getListByCondition(Date searchDate, String factoryId,
|
|
|
|
|
|
+ public R getListByCondition(Date startDate,
|
|
|
|
+ Date endDate,
|
|
|
|
+ String factoryId,
|
|
List<String> workShopIdList,
|
|
List<String> workShopIdList,
|
|
List<String> orderNoList,
|
|
List<String> orderNoList,
|
|
List<String> productionLineId,
|
|
List<String> productionLineId,
|
|
List<String> equId) {
|
|
List<String> equId) {
|
|
log.info("甘特图查询开始时间:"+ DateUtil.now());
|
|
log.info("甘特图查询开始时间:"+ DateUtil.now());
|
|
- List<Date> searchDateList = getSearchDate(searchDate);
|
|
|
|
|
|
+ if(endDate == null){
|
|
|
|
+ List<Date> searchDateList = getSearchDate(startDate);
|
|
|
|
+ startDate = searchDateList.get(0);
|
|
|
|
+ endDate = searchDateList.get(1);
|
|
|
|
+ }
|
|
|
|
+
|
|
List<GanttVos> apsProcessOperationProcessEquDos = apsProcessOperationProcessEquDao.getGanttDataList(
|
|
List<GanttVos> apsProcessOperationProcessEquDos = apsProcessOperationProcessEquDao.getGanttDataList(
|
|
- searchDateList==null?null:searchDateList.get(0),
|
|
|
|
- searchDateList==null?null:searchDateList.get(1),
|
|
|
|
|
|
+ startDate,
|
|
|
|
+ endDate,
|
|
factoryId,
|
|
factoryId,
|
|
workShopIdList,
|
|
workShopIdList,
|
|
orderNoList,
|
|
orderNoList,
|