|
|
@@ -7,6 +7,7 @@ import com.aoyang.tms.controller.vo.WorkerInfo;
|
|
|
import com.aoyang.tms.entity.*;
|
|
|
import com.aoyang.tms.feign.StrategyFeignClient;
|
|
|
import com.aoyang.tms.feign.UserFeignClient;
|
|
|
+import com.aoyang.tms.feign.result.Org;
|
|
|
import com.aoyang.tms.feign.result.TmsMongoDoc;
|
|
|
import com.aoyang.tms.service.*;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
@@ -37,7 +38,6 @@ public class CommonServiceImpl implements CommonService {
|
|
|
@Resource
|
|
|
private UserFeignClient userFeignClient;
|
|
|
|
|
|
-
|
|
|
@Resource
|
|
|
private MongoTemplate mongoTemplate;
|
|
|
|
|
|
@@ -54,6 +54,17 @@ public class CommonServiceImpl implements CommonService {
|
|
|
private TruckEscortService truckEscortService;
|
|
|
|
|
|
@Override
|
|
|
+ public Org findOrg(Long orgId) {
|
|
|
+ Org orgParam = new Org();
|
|
|
+ orgParam.setOrgId(orgId);
|
|
|
+ Result<Org> result = userFeignClient.findOrg(orgParam);
|
|
|
+ if (verifyResult(result)) {
|
|
|
+ return result.getData();
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public WorkerInfo findTruckInfo(Long truckId) {
|
|
|
WorkerInfo workerInfo = new WorkerInfo();
|
|
|
workerInfo.setTruckId(truckId);
|