|
|
@@ -67,8 +67,12 @@ public class CommonServiceImpl implements CommonService {
|
|
|
final static String BAIDUMAP_URL = "http://api.map.baidu.com/reverse_geocoding/v3/?output=json&coordtype=BD09&pois=1";
|
|
|
|
|
|
@Override
|
|
|
- public int checkTruckZhong(Long truckId) {
|
|
|
- return 0;
|
|
|
+ public boolean checkTruckZhong(Long truckId) {
|
|
|
+ QueryWrapper<WorkCycle> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("truck_id", truckId);
|
|
|
+ queryWrapper.eq("status", 1);
|
|
|
+ WorkCycle cycle = workCycleService.getOne(queryWrapper);
|
|
|
+ return cycle == null ? false : cycle.getJingWeight() > 0;
|
|
|
}
|
|
|
|
|
|
@Override
|