<?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.tanpu.fund.mapper.generator.custom.FundInfoCustomMapper"> <select id="queryFundNavByCondition" resultType="string"> select res.id from (select id from fund_info where nav_frequency <= #{navFrequency} and delete_tag = 0 limit #{offset}, #{length}) res left join fund_status fs on res.id = fs.id where fs.fund_status in <foreach close=")" collection="fundStatus" item="listItem" open="(" separator=","> #{listItem} </foreach> and fs.delete_tag = 0 </select> <select id="getFundInfoReport" resultType="java.util.HashMap"> select t.id,count(t1.id) as count from fund_info t left join fund_file_record t1 on t.id = t1.ref_id where t.id in(${ids}) and t1.type = 3 and t.delete_tag = 0 and t1.delete_tag = 0 group by t.id; </select> <select id="getFundInfoLastNet" parameterType="java.lang.String" resultType="com.tanpu.fund.entity.generator.FundNav"> select price_date as priceDate, net_nav as nav from fund_count where fund_id in <foreach close=")" collection="list" item="fundId" open="(" separator=","> #{fundId} </foreach> AND delete_tag = 0 </select> </mapper>