|
@@ -15,6 +15,7 @@ import com.steerinfo.dil.util.EASCapacityTestUtil;
|
|
|
import com.steerinfo.dil.util.SaleLogUtil;
|
|
|
import com.steerinfo.dil.util.getRequestUtils;
|
|
|
import io.swagger.models.auth.In;
|
|
|
+import org.apache.tools.ant.taskdefs.Sleep;
|
|
|
import org.junit.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -1023,9 +1024,23 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
|
//该车两天内有进厂,且进厂后没有出厂纪录
|
|
|
//更新ok
|
|
|
System.out.println("自动补扫进厂");
|
|
|
- omstruckOrderMapper.updateEnFactoryResultRemark(DataChange.dataToBigDecimal(orderMessage.get("resultTotalId")));
|
|
|
- tmsTruckFeign.enFactoryResultByPDA(orderMessage);
|
|
|
saleLogUtil.logOrder(orderId,"两天内进厂且无出厂纪录,系统自动补扫进厂",map,1);
|
|
|
+ omstruckOrderMapper.updateEnFactoryResultRemark(DataChange.dataToBigDecimal(orderMessage.get("resultTotalId")));
|
|
|
+ try{
|
|
|
+ new Thread( new Runnable() {
|
|
|
+ public void run(){
|
|
|
+ try {
|
|
|
+ Thread.sleep(100);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ orderMessage.put("gatepostId",29998);
|
|
|
+ tmsTruckFeign.enFactoryResultByPDA(orderMessage);
|
|
|
+ }
|
|
|
+ }).start();
|
|
|
+ }catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|