修改批量更新
This commit is contained in:
parent
21be3eed9e
commit
af51ca8da4
|
|
@ -154,6 +154,7 @@ public class AppLocationController extends BaseController
|
||||||
appLocation.setLocationType(1);
|
appLocation.setLocationType(1);
|
||||||
// appLocation.setOuterId("");
|
// appLocation.setOuterId("");
|
||||||
// appLocation.setVehicleId("");
|
// appLocation.setVehicleId("");
|
||||||
|
appLocation.setIsWorking(0);
|
||||||
newLocationListA.add(appLocation);
|
newLocationListA.add(appLocation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -194,6 +195,7 @@ public class AppLocationController extends BaseController
|
||||||
appLocation.setIsLock(0);
|
appLocation.setIsLock(0);
|
||||||
appLocation.setLocationStatus(0);
|
appLocation.setLocationStatus(0);
|
||||||
appLocation.setLocationType(1);
|
appLocation.setLocationType(1);
|
||||||
|
appLocation.setIsWorking(0);
|
||||||
newLocationListB.add(appLocation);
|
newLocationListB.add(appLocation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,10 +104,10 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="insertAppLocationBatch" parameterType="java.util.List">
|
<insert id="insertAppLocationBatch" parameterType="java.util.List">
|
||||||
insert into app_location
|
<foreach collection="list" item="location" separator=";">
|
||||||
<foreach collection="list" item="location" separator=",">
|
insert into app_location
|
||||||
(
|
(
|
||||||
<trim prefixOverrides=",">
|
<trim prefixOverrides="," suffixOverrides=",">
|
||||||
<if test="location.locationId != null">location_id,</if>
|
<if test="location.locationId != null">location_id,</if>
|
||||||
<if test="location.locationType != null">location_type,</if>
|
<if test="location.locationType != null">location_type,</if>
|
||||||
<if test="location.locationStatus != null">location_status,</if>
|
<if test="location.locationStatus != null">location_status,</if>
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
)
|
)
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
<trim prefixOverrides=",">
|
<trim prefixOverrides="," suffixOverrides=",">
|
||||||
<if test="location.locationId != null">#{location.locationId},</if>
|
<if test="location.locationId != null">#{location.locationId},</if>
|
||||||
<if test="location.locationType != null">#{location.locationType},</if>
|
<if test="location.locationType != null">#{location.locationType},</if>
|
||||||
<if test="location.locationStatus != null">#{location.locationStatus},</if>
|
<if test="location.locationStatus != null">#{location.locationStatus},</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user