|
@@ -22,12 +22,12 @@
|
|
|
left join status s on z.status_id=s.status_id
|
|
|
<where>
|
|
|
<if test="fund_name!='' and fund_name!= null">
|
|
|
- and fund_name=#{fund_name}
|
|
|
+ fund_name=#{fund_name}
|
|
|
</if>
|
|
|
<if test="status_name!='' and status_name!=null">
|
|
|
and status_name=#{status_name}
|
|
|
</if>
|
|
|
- <if test="startTime!='' and endTime != ''">
|
|
|
+ <if test="startTime!=null and endTime!=null">
|
|
|
and apply_time between #{startTime} and #{endTime}
|
|
|
</if>
|
|
|
</where>
|
|
@@ -38,21 +38,24 @@
|
|
|
<select id="selectCapitalTransferPage" resultType="int">
|
|
|
select count(*) from capital_transfer
|
|
|
<where>
|
|
|
- <include refid="query_accountopen_where"></include>
|
|
|
+ <!-- <include refid="query_accountopen_where"></include> -->
|
|
|
+ <if test="fund_name != null and fund_name!=''">
|
|
|
+ fund_name=#{fund_name}
|
|
|
+ </if>
|
|
|
+ <if test="status_name != null and status_name''">
|
|
|
+ and status_name=#{status_name}
|
|
|
+ </if>
|
|
|
+ <if test="startTime!=null and endTime!=null">
|
|
|
+ and apply_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
+
|
|
|
</where>
|
|
|
</select>
|
|
|
<!--动态sql 上面引用 -->
|
|
|
- <sql id="query_accountopen_where">
|
|
|
- <if test="fund_name != null and fund_name!=''">
|
|
|
- and fund_name=#{fund_name}
|
|
|
- </if>
|
|
|
- <if test="status_name != null and status_name''">
|
|
|
- and status_name=#{status_name}
|
|
|
- </if>
|
|
|
- <if test="startTime!=null and endTime!=null">
|
|
|
- and apply_time between #{startTime} and #{endTime}
|
|
|
- </if>
|
|
|
- </sql>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<!--************************************************************************************************ -->
|
|
|
<!--查看 资金划转详情 根据前端给我返回的id 在把那一条数据查出来-->
|
|
|
<select id="selectChaKanZiJinHuaZhuan" parameterType="java.util.Map" resultType="com.fuzamei.entity.CapitalTransfer">
|