|
|
@@ -120,44 +120,57 @@
|
|
|
desc
|
|
|
</select>
|
|
|
|
|
|
+ <resultMap id="InvAccountOperateVoResultMap" type="com.ydtech.modules.inv.model.vo.InvAccountOperateVo">
|
|
|
+ <id property="accountOperateId" column="account_operate_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="company" column="company" jdbcType="VARCHAR"/>
|
|
|
+ <result property="applySector" column="apply_sector" jdbcType="VARCHAR"/>
|
|
|
+ <result property="collectionMessage" column="collection_message" jdbcType="VARCHAR"/>
|
|
|
+ <result property="fundUse" column="fund_use" jdbcType="VARCHAR"/>
|
|
|
+ <result property="applyAmount" column="apply_amount" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="remark" column="remark" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
|
|
|
- <select id="selectDisburse" resultMap="BaseResultMap">
|
|
|
+ <select id="selectDisburse" resultMap="InvAccountOperateVoResultMap">
|
|
|
SELECT DISTINCT
|
|
|
- a.excel_account_operate_id,
|
|
|
- a.apply_time,
|
|
|
+ a.account_operate_id,
|
|
|
+ DATE_FORMAT(a.create_time, '%Y-%m-%d') as create_date,
|
|
|
a.fund_use,
|
|
|
a.remark,
|
|
|
a.apply_amount,
|
|
|
a.apply_sector,
|
|
|
a.company,
|
|
|
- a.collection_message
|
|
|
- from inv_account_excel a
|
|
|
+ a.collection_message,
|
|
|
+ a.create_time
|
|
|
+ from inv_account_operate a
|
|
|
LEFT JOIN inv_account_expenses b ON a.fund_fen = b.category
|
|
|
WHERE
|
|
|
a.fund_use != '往来款'
|
|
|
AND collection_message LIKE '外部用户%'
|
|
|
+ and a.revenue_outlay = '1'
|
|
|
AND a.del_flag = '0'
|
|
|
- <if test="insAccountExcel.applyTimeStart!= null">
|
|
|
- and apply_time >= #{insAccountExcel.applyTimeStart}
|
|
|
+ <if test="inAccountOperateVo.createTimeStart!= null">
|
|
|
+ and a.create_time >= #{inAccountOperateVo.createTimeStart}
|
|
|
</if>
|
|
|
- <if test="insAccountExcel.applyTimeEnd!= null">
|
|
|
- and apply_time <= #{insAccountExcel.applyTimeEnd}
|
|
|
+ <if test="inAccountOperateVo.createTimeEnd!= null">
|
|
|
+ and a.create_time <= #{inAccountOperateVo.createTimeEnd}
|
|
|
</if>
|
|
|
- <if test="insAccountExcel.applySector!= null and insAccountExcel.applySector!= ''">
|
|
|
- and apply_sector = #{insAccountExcel.applySector}
|
|
|
+ <if test="inAccountOperateVo.applySector!= null and inAccountOperateVo.applySector!= ''">
|
|
|
+ and a.apply_sector = #{inAccountOperateVo.applySector}
|
|
|
</if>
|
|
|
- <if test="insAccountExcel.collectionMessage!= null and insAccountExcel.collectionMessage!= ''">
|
|
|
- and collection_message like concat('%',#{insAccountExcel.collectionMessage},'%')
|
|
|
+ <if test="inAccountOperateVo.collectionMessage!= null and inAccountOperateVo.collectionMessage!= ''">
|
|
|
+ and a.collection_message like concat('%',#{inAccountOperateVo.collectionMessage},'%')
|
|
|
</if>
|
|
|
- <if test="insAccountExcel.company!= null and insAccountExcel.company!= ''">
|
|
|
- and company like concat('%',#{insAccountExcel.company},'%')
|
|
|
+ <if test="inAccountOperateVo.company!= null and inAccountOperateVo.company!= ''">
|
|
|
+ and a.company like concat('%',#{inAccountOperateVo.company},'%')
|
|
|
</if>
|
|
|
- <if test="insAccountExcel.fundUse!= null and insAccountExcel.fundUse!= ''">
|
|
|
- and fund_use = #{insAccountExcel.fundUse}
|
|
|
+ <if test="inAccountOperateVo.fundUse!= null and inAccountOperateVo.fundUse!= ''">
|
|
|
+ and a.fund_use = #{inAccountOperateVo.fundUse}
|
|
|
</if>
|
|
|
- <if test="insAccountExcel.applyAmount!= null and insAccountExcel.applyAmount!= ''">
|
|
|
- and apply_amount = #{insAccountExcel.applyAmount}
|
|
|
+ <if test="inAccountOperateVo.applyAmount!= null and inAccountOperateVo.applyAmount!= ''">
|
|
|
+ and a.apply_amount = #{inAccountOperateVo.applyAmount}
|
|
|
</if>
|
|
|
- order by apply_time desc
|
|
|
+ order by a.create_time desc
|
|
|
</select>
|
|
|
</mapper>
|