|
|
|
@ -104,12 +104,37 @@ |
|
|
|
<update id="updateLocation"> |
|
|
|
update location |
|
|
|
<set> |
|
|
|
<!-- 编辑弹窗可维护字段需要全部同步更新,避免出现保存成功但类型/状态未落库 --> |
|
|
|
<if test="locationName != null and locationName != ''"> |
|
|
|
LocationName = #{locationName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
WareHouseID = #{warehouseId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="active != null and active != ''"> |
|
|
|
Active = #{active,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="locationGroupId != null and locationGroupId != ''"> |
|
|
|
locationGroupId = #{locationGroupId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="hide != null and hide != ''"> |
|
|
|
hide = #{hide,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="hold != null and hold != ''"> |
|
|
|
hold = #{hold,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="row != null and row != ''"> |
|
|
|
row = #{row,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="storey != null and storey != ''"> |
|
|
|
storey = #{storey,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="box != null and box != ''"> |
|
|
|
box = #{box,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="locationType != null and locationType != ''"> |
|
|
|
locationType = #{locationType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<where> |
|
|
|
<if test="site != null"> |
|
|
|
|