update 对接内蒙古平台

This commit is contained in:
2024-04-15 17:02:50 +08:00
parent 3526fd8a22
commit 5eccd5ead8
8 changed files with 82 additions and 34 deletions

View File

@@ -209,4 +209,22 @@
#{type,jdbcType=VARCHAR}
</foreach>
</update>
<select id="selectMerchantList" resultType="com.jsowell.pile.vo.base.MerchantInfoVO">
select
t3.id as merchantId,
t3.merchant_name as merchantName,
t3.service_phone as merchantTel,
t3.organization_code as organizationCode,
t3.dept_id as deptId,
t3.merchant_level as merchantLevel,
t3.address as merchantAddress
from
thirdparty_station_relation t1
join pile_station_info t2 on t2.id = t1.station_id and t2.del_flag = '0'
join pile_merchant_info t3 on t3.id = t2.merchant_id and t3.del_flag = '0'
where t1.del_flag = '0'
and t1.third_party_type = #{thirdPlatformType,jdbcType=VARCHAR}
GROUP BY t3.id
</select>
</mapper>