|
|
@@ -135,7 +135,7 @@
|
|
|
<select id="selectInvestList" resultType="com.goafanti.ambSystem.bo.OutInvestList">
|
|
|
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 ,a.count_amount countAmount,
|
|
|
- date_format(a.create_time,'%Y-%m-%d %H:%i:%S') createTimes
|
|
|
+ date_format(a.create_time,'%Y-%m-%d %H:%i:%S') createTimes,d.amb_role ambRole
|
|
|
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
|
|
|
left join admin d on a.operator =d.id
|
|
|
@@ -147,11 +147,14 @@
|
|
|
and a.status in (1,2,3)
|
|
|
and b.accountant =#{aid}
|
|
|
</if>
|
|
|
- <if test="roleType==2 ">
|
|
|
- and a.initiate_amb_id= #{ambId}
|
|
|
+ <if test="initiateAmbId != null ">
|
|
|
+ and a.initiate_amb_id= #{initiateAmbId}
|
|
|
</if>
|
|
|
- <if test="roleType==3">
|
|
|
- and a.accept_amb_id = #{ambId}
|
|
|
+ <if test="acceptAmbId !=null">
|
|
|
+ and a.accept_amb_id = #{acceptAmbId}
|
|
|
+ </if>
|
|
|
+ <if test="operator !=null">
|
|
|
+ and a.operator= #{operator}
|
|
|
</if>
|
|
|
<if test="startTime!=null and endTime !=null">
|
|
|
and a.create_time between #{startTime} and #{endTime}
|
|
|
@@ -183,11 +186,14 @@
|
|
|
<if test="startTime!=null and endTime !=null">
|
|
|
and a.create_time between #{startTime} and #{endTime}
|
|
|
</if>
|
|
|
- <if test="roleType==2 ">
|
|
|
- and a.initiate_amb_id= #{ambId}
|
|
|
+ <if test="initiateAmbId != null ">
|
|
|
+ and a.initiate_amb_id= #{initiateAmbId}
|
|
|
+ </if>
|
|
|
+ <if test="acceptAmbId !=null">
|
|
|
+ and a.accept_amb_id = #{acceptAmbId}
|
|
|
</if>
|
|
|
- <if test="roleType==3">
|
|
|
- and a.accept_amb_id = #{ambId}
|
|
|
+ <if test="operator !=null">
|
|
|
+ and a.operator= #{operator}
|
|
|
</if>
|
|
|
<if test="status !=null">
|
|
|
and a.status= #{status}
|