diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppLocationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppLocationController.java index 09f5b4dc..4f11ce5c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppLocationController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/app/AppLocationController.java @@ -154,6 +154,7 @@ public class AppLocationController extends BaseController appLocation.setLocationType(1); // appLocation.setOuterId(""); // appLocation.setVehicleId(""); + appLocation.setIsWorking(0); newLocationListA.add(appLocation); } } @@ -194,6 +195,7 @@ public class AppLocationController extends BaseController appLocation.setIsLock(0); appLocation.setLocationStatus(0); appLocation.setLocationType(1); + appLocation.setIsWorking(0); newLocationListB.add(appLocation); } } diff --git a/ruoyi-system/src/main/resources/mapper/app/AppLocationMapper.xml b/ruoyi-system/src/main/resources/mapper/app/AppLocationMapper.xml index e48569dd..aed4b117 100644 --- a/ruoyi-system/src/main/resources/mapper/app/AppLocationMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/app/AppLocationMapper.xml @@ -104,10 +104,10 @@ - insert into app_location - + + insert into app_location ( - + location_id, location_type, location_status, @@ -127,7 +127,7 @@ ) values ( - + #{location.locationId}, #{location.locationType}, #{location.locationStatus},