check-bank-unbind-mapper.xml 1.24 KB
<?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.cjs.cms.dao.user.CheckUnbindDao">
	
	<select id="checkFundJour" parameterType="java.lang.String" resultType="java.lang.Integer">
		select count(1) from hs_asset.fundjour_view where fund_account = #{fund_account} 
		and (occur_balance != 0.00 and post_balance != 0.00)
	</select>
	
	<select id="checkFundRealJour" parameterType="java.lang.String" resultType="java.lang.Integer">
		select count(1) from hs_fund.fundrealjour_view where fund_account = #{fund_account} 
		and (occur_balance != 0.00 and post_balance != 0.00)
	</select>
	
	<select id="checkHisFundJour" parameterType="java.lang.String" resultType="java.lang.Integer">
		select count(1) from hs_his.his_fundjour_view where fund_account = #{fund_account} 
		and (occur_balance != 0.00 and post_balance != 0.00)
	</select>
	
	<select id="checkHisFundRealJour" parameterType="java.lang.String" resultType="java.lang.Integer">
		select count(1) from hs_his.his_fundrealjour_view where fund_account = #{fund_account} 
		and (occur_balance != 0.00 and post_balance != 0.00)
	</select>
	
</mapper>