Commit 6e6d3fc96656f4f2745e3d9a77d1b42761900733
1 parent
93c06e51
车辆管理,物理删除改为逻辑删除
Showing
1 changed file
with
2 additions
and
2 deletions
trash-unit/src/main/resources/mapper/unit/CarInfoMapper.xml
| ... | ... | @@ -268,12 +268,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| 268 | 268 | update car_info set is_del = 0 where id = #{id} |
| 269 | 269 | </update> |
| 270 | 270 | |
| 271 | - <delete id="deleteCarInfoByIds" parameterType="String"> | |
| 271 | + <update id="deleteCarInfoByIds" parameterType="String"> | |
| 272 | 272 | update car_info set is_del = 0 where id in |
| 273 | 273 | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| 274 | 274 | #{id} |
| 275 | 275 | </foreach> |
| 276 | - </delete> | |
| 276 | + </update> | |
| 277 | 277 | |
| 278 | 278 | |
| 279 | 279 | <insert id="addCarDriverRelation" parameterType="CarDriverRelation"> | ... | ... |