|
@@ -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 上面引用 -->
|
|
|
+ <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>
|
|
|
+ <!--************************************************************************************************ -->
|
|
|
<!--查看 资金划转详情 根据前端给我返回的id 在把那一条数据查出来-->
|
|
|
<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>
|
|
|
- <!--************************************** -->
|
|
|
+ <!--******************************************************************************************************* -->
|
|
|
+ <!-- 查询划转资金表 几级审核 审核意见 --><!-- 要排除状态13 状态为:指令业务岗审核不通过。 指令业务岗审核不通过就到不了核算业务岗这里审核 -->
|
|
|
+ <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>
|
|
|
<!-- 将划转审核结果意见在插入划转资金表的同时,也将审核结果更新到划转资金表中去,根据基金id ->fund_id定位到指定的业务 -->
|
|
|
<update id="updatecapitaltransferStatus" parameterType="java.util.Map">
|
|
|
update
|