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

24 lines
806 B
XML
Raw Normal View History

2025-07-23 09:45:10 +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.AutoCallPersonMapper">
<select id="selectListByTaskId" resultType="com.whdc.model.entity.AutoCallPerson">
select T1.*,T2.POSITION as position from FXKH_TXL.AUTO_CALL_PERSON T1
LEFT JOIN FXKH_TXL.SH_ADDRESS_BOOK T2 ON T1.__NUMBER = T2.PHONE
where T1.TASK_ID = #{taskId}
</select>
<select id="selectPositionByPhone" resultType="String">
select t.POSITION
from FXKH_TXL.SH_ADDRESS_BOOK t
where
t.DEL = 1
AND t.PHONE = #{phone}
ORDER BY
t.SORT ASC
LIMIT 1
</select>
</mapper>