|
@@ -466,16 +466,18 @@ public class TMSController extends BaseRESTfulController {
|
|
|
if (capacities.length != list.size()) {
|
|
if (capacities.length != list.size()) {
|
|
|
throw new Exception("车号不允许重复!");
|
|
throw new Exception("车号不允许重复!");
|
|
|
} else {
|
|
} else {
|
|
|
- new Runnable() {
|
|
|
|
|
- @Override
|
|
|
|
|
- public void run() {
|
|
|
|
|
- Map<String, Object> capacityMap = new HashMap<>();
|
|
|
|
|
- capacityMap.put("capacities", capacities);
|
|
|
|
|
- capacityMap.put("userId", userId);
|
|
|
|
|
- capacityMap.put("userName", userName);
|
|
|
|
|
- rmsFeign.batchInsertCapacityTrain(capacityMap);
|
|
|
|
|
- }
|
|
|
|
|
- }.run();
|
|
|
|
|
|
|
+ try{
|
|
|
|
|
+ new Runnable() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void run() {
|
|
|
|
|
+ Map<String, Object> capacityMap = new HashMap<>();
|
|
|
|
|
+ capacityMap.put("capacities", capacities);
|
|
|
|
|
+ capacityMap.put("userId", userId);
|
|
|
|
|
+ capacityMap.put("userName", userName);
|
|
|
|
|
+ rmsFeign.batchInsertCapacityTrain(capacityMap);
|
|
|
|
|
+ }
|
|
|
|
|
+ }.run();
|
|
|
|
|
+ }catch (Exception e){e.printStackTrace();}
|
|
|
}
|
|
}
|
|
|
//新增AMS及TMS
|
|
//新增AMS及TMS
|
|
|
map.put("userId",userId);
|
|
map.put("userId",userId);
|