fxkh-txl-service/src/main/resources/mapper/VersionsMapper.xml

24 lines
788 B
XML
Raw Normal View History

2024-05-13 10:07:53 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.whdc.mapper.VersionsMapper">
<select id="page" resultType="com.whdc.model.entity.Versions">
SELECT V.*, A.NAME, A.PHONE FROM FXKH_TXL.AB_INFO V
LEFT JOIN FXKH_TXL.USERS U ON V.CREATE_ID = U.ID
LEFT JOIN FXKH_TXL.ADDRESS_BOOK A ON U.AB_ID = A.ID
<where>
<if test="dto.name != null">
AND A.NAME = #{dto.name}
</if>
<if test="dto.phone != null">
AND A.PHONE = #{dto.phone}
</if>
</where>
2024-05-13 10:07:53 +08:00
</select>
<select id="find" resultType="com.whdc.model.entity.Versions">
</select>
</mapper>