|
@@ -10,6 +10,7 @@ import com.steerinfo.dil.model.TmstruckTotalResult;
|
|
|
import com.steerinfo.dil.model.TmstruckWeightResult;
|
|
|
import com.steerinfo.dil.service.ITmstruckTotalResultService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -147,4 +148,15 @@ public class TmstruckTotalResultServiceImpl implements ITmstruckTotalResultServi
|
|
|
public List<Map<String, Object>> getAllReverseResult(Map<String, Object> mapValue) {
|
|
|
return tmstruckTotalResultMapper.getAllReverseResult(mapValue);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 为已接收没有总实绩的运输订单补录总实绩
|
|
|
+ */
|
|
|
+ @Scheduled(fixedRate = 1000*60*5)
|
|
|
+ public void insertTotalForNullOrder(){
|
|
|
+ List<BigDecimal> list=tmstruckTotalResultMapper.getOrderForBulu();
|
|
|
+ for(BigDecimal orderId:list){
|
|
|
+ addTotalResult(orderId);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|