update 车牌号 Vin 唯一校验

This commit is contained in:
2023-10-10 10:32:19 +08:00
parent 250af6aad3
commit c7e01848e4
6 changed files with 87 additions and 23 deletions

View File

@@ -102,12 +102,19 @@
where id = #{id,jdbcType=INTEGER}
</update>
<select id="getMemberPlateInfoByVinCode" resultMap="MemberLicensePlateNumberRelationResult">
<select id="queryByVinCode" resultMap="MemberLicensePlateNumberRelationResult">
select
<include refid="Base_Column_List"/>
from member_plate_number_relation
where
vin_code = #{vinCode,jdbcType=VARCHAR}
and del_flag = '0'
where del_flag = '0'
and vin_code = #{vinCode,jdbcType=VARCHAR}
</select>
<select id="queryByPlateNumber" resultMap="MemberLicensePlateNumberRelationResult">
select
<include refid="Base_Column_List"/>
from member_plate_number_relation
where del_flag = '0'
and license_plate_number = #{plateNumber,jdbcType=VARCHAR}
</select>
</mapper>