|
@@ -1,6 +1,7 @@
|
|
|
package com.yh.saas.plugin.yiliangyiyun.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.mapper.EntityWrapper;
|
|
|
+import com.baomidou.mybatisplus.mapper.Wrapper;
|
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.winsea.svc.base.security.util.AuthSecurityUtils;
|
|
@@ -16,6 +17,7 @@ import com.yh.saas.plugin.yiliangyiyun.service.ITranCarInfoService;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.service.ITranProcessInfoService;
|
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.data.mongodb.core.aggregation.ArrayOperators;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
@@ -109,6 +111,11 @@ public class TranProcessInfoServiceImpl extends ServiceImpl<TranProcessInfoMappe
|
|
|
//查看车次信息
|
|
|
List<TranCarInfo> tranCarInfoList = tranCarInfoService.selectList(new EntityWrapper<TranCarInfo>()
|
|
|
.eq(TranCarInfo.QueryFiles.PROCESS_ID,id).eq(TranCarInfo.QueryFiles.DELETE_FLAG,NumberConstant.CONSTANT0));
|
|
|
+ Map<String, Object> pageView = new HashMap<>();
|
|
|
+ pageView.put("id", id);
|
|
|
+ // 查询派车总数包括已删除的
|
|
|
+ Integer dataCount = baseMapper.getCarByCondition(pageView);
|
|
|
+ tranProcessInfo.setCount(dataCount);
|
|
|
tranProcessInfo.setTranCarInfoList(tranCarInfoList);
|
|
|
return tranProcessInfo;
|
|
|
}
|