|
|
@@ -133,7 +133,8 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="selectInvestList" resultType="com.goafanti.ambSystem.bo.OutInvestList">
|
|
|
- select a.id,b.name initiateName,c.name acceptName,a.amount ,a.status ,d.name operator,a.comment ,
|
|
|
+ select a.id,a.initiate_amb_id initiateAmbId,b.name initiateName,a.accept_amb_id acceptAmbId,
|
|
|
+ c.name acceptName,a.amount ,a.status ,d.name operator,a.comment ,
|
|
|
date_format(a.create_time,'%Y-%m-%d %H:%i:%S') createTimes
|
|
|
from amb_invest a left join amb_system b on a.initiate_amb_id =b.id
|
|
|
left join amb_system c on a.accept_amb_id =c.id
|
|
|
@@ -145,6 +146,10 @@
|
|
|
<if test="roleType==2">
|
|
|
and a.status in (1,2,3)
|
|
|
</if>
|
|
|
+ <if test="startTime!=null and endTime !=null">
|
|
|
+ and a.create_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
+
|
|
|
order by a.create_time desc
|
|
|
<if test="page_sql !=null">
|
|
|
${page_sql}
|
|
|
@@ -161,6 +166,9 @@
|
|
|
<if test="roleType==2">
|
|
|
and a.status in (1,2,3)
|
|
|
</if>
|
|
|
+ <if test="startTime!=null and endTime !=null">
|
|
|
+ and a.create_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<select id="selectCountAmountById" resultType="java.lang.Integer">
|
|
|
select sum(amount)amount
|