|
@@ -1,7 +1,7 @@
|
|
|
<?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.fuzamei.mapperInterface.CapitalTransferMapper">
|
|
|
-
|
|
|
+
|
|
|
<select id="selectCapitalTransferTable" parameterType="java.util.Map" resultType="com.fuzamei.entity.CapitalTransfer">
|
|
|
select z.fund_id,
|
|
|
y.person_name,
|
|
@@ -34,11 +34,24 @@
|
|
|
order by apply_time desc
|
|
|
limit #{startPage},#{rowNum}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectCapitalTransferPage" resultType="int">
|
|
|
select count(*) from capital_transfer
|
|
|
+ <include refid="query_accountopen_where"></include>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
+ <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="apply_time != null and apply_time''">
|
|
|
+ and apply_time=#{apply_time}
|
|
|
+ </if>
|
|
|
+ </sql>
|
|
|
+
|
|
|
|
|
|
<select id="selectChaKanZiJinHuaZhuan" parameterType="java.util.Map" resultType="com.fuzamei.entity.CapitalTransfer">
|
|
|
select y.person_name,
|
|
@@ -56,8 +69,8 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<select id="selectCapitalTransferRecord" parameterType="java.util.Map" resultType="com.fuzamei.entity.CapitalTransferCheck">
|
|
|
select sj.fund_id,
|
|
|
sj.check_department,
|
|
@@ -84,7 +97,7 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertCapitalTransfer">
|
|
|
insert into
|
|
|
capital_transfer(fund_id,
|
|
@@ -105,8 +118,8 @@
|
|
|
#{status_id})
|
|
|
</insert>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<insert id="insertAttachmentInfo">
|
|
|
insert into
|
|
|
attachment(attachment_id,
|
|
@@ -120,7 +133,7 @@
|
|
|
#{upload_person_id},
|
|
|
#{create_time})
|
|
|
</insert>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<insert id="insertOperationHistory">
|
|
|
insert into
|
|
@@ -137,17 +150,41 @@
|
|
|
#{operator_time},
|
|
|
#{hash})
|
|
|
</insert>
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectCheckOpinion" parameterType="java.util.Map" resultType="com.fuzamei.entity.CapitalTransfer">
|
|
|
+ select
|
|
|
+ y.person_name,
|
|
|
+ z.fund_name,
|
|
|
+ y.account_balance,
|
|
|
+ z.sum_of_money,
|
|
|
+ f.attachment_name,
|
|
|
+ f.url,
|
|
|
+ y.drawing_account,
|
|
|
+ z.apply_time
|
|
|
+ from
|
|
|
+ capital_transfer z left join t_user y
|
|
|
+ on z. custodian=y.user_id
|
|
|
+ left join attachment f on z.basis_of_payment=f.attachment_id
|
|
|
+ left join status s on s.status_id=z.status_id
|
|
|
+ <where>
|
|
|
+ z.status_id not in (13)
|
|
|
+ <if test="fund_id != null and fund_id != ''">
|
|
|
+ and fund_id=#{fund_id}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
<insert id="insertCheckTransfer">
|
|
|
- insert into capital_transfer_check( fund_id,
|
|
|
+ insert into capital_transfer_check(fund_id,
|
|
|
check_department,
|
|
|
check_person,
|
|
|
check_opinion,
|
|
|
check_time,
|
|
|
check_result,
|
|
|
relation)
|
|
|
- values( #{fund_id},
|
|
|
+ values(#{fund_id},
|
|
|
#{check_department},
|
|
|
#{check_person},
|
|
|
#{check_opinion},
|
|
@@ -155,6 +192,18 @@
|
|
|
#{check_result},
|
|
|
#{relation})
|
|
|
</insert>
|
|
|
+
|
|
|
+ <select id="">
|
|
|
+ select s.fund_id,
|
|
|
+ s.check_department,
|
|
|
+ s.check_person,
|
|
|
+ s.check_opinion,
|
|
|
+ s.check_time,
|
|
|
+ y.status_name
|
|
|
+ from capital_transfer_check s
|
|
|
+ left join status y on s.check_result=y.status_id
|
|
|
+
|
|
|
+ </select>
|
|
|
|
|
|
<update id="updatecapitaltransferStatus" parameterType="java.util.Map">
|
|
|
update
|