chb 7 years ago
parent
commit
e08bcd4209

+ 12 - 1
ccb_fund_trusteeship/src/main/java/com/fuzamei/constant/StatusId.java

@@ -19,6 +19,17 @@ public class StatusId {
 	public static final Integer CONFIRMED = 8;								//已确认
 	public static final Integer FINISHED = 9;								//已完成
 	public static final Integer LAUNCHING = 10;								//发起
-	public static final Integer CHECKING = 11;								//审核
+	public static final Integer CHECKING = 11;                            	//审核
+
+	public static final Integer INSTRUCT_BUSINESS_ACCOUNTING =12;      //待指令业务岗审核
+	public static final Integer INSTRUCT_BUSINESS_ACCOUNTING_NO =13;    //指令业务岗审核不通过
+	public static final Integer CHECK_BUSINESS_ACCOUNTING =14;        //待核算业务岗岗审核
+	public static final Integer CHECK_BUSINESS_ACCOUNTING_NO =15;      //核算业务岗审核不通过
+	public static final Integer CHARGE_BUSINESS_ACCOUNTING =16;        //待核算主管岗审核
+	public static final Integer CHARGE_BUSINESS_ACCOUNTING_YES =17;     //核算主管岗通过
+	public static final Integer CHARGE_BUSINESS_ACCOUNTING_NO =18;      //核算主管岗审核不通过 
+	
+	
+	
 	
 }

+ 1 - 1
ccb_fund_trusteeship/src/main/java/com/fuzamei/mapper/AccountMaintenance.xml

@@ -104,7 +104,7 @@
 				   #{operatorTime},
 				   #{hash})
 	</insert>
-    <!-- 账户开立下载页面 -->
+    <!-- 账户开立查看详情下载页面 -->
     <select id="selectAccountMaintenanceNoPage" parameterType="java.util.Map" resultType="com.fuzamei.entity.AccountOpeningRecord">
 	select   DISTINCT
 			customer_id,

+ 61 - 12
ccb_fund_trusteeship/src/main/java/com/fuzamei/mapper/CapitalTransferMapper.xml

@@ -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 

+ 5 - 11
ccb_fund_trusteeship/src/main/java/com/fuzamei/service/AccountMaintenanceService.java

@@ -152,11 +152,11 @@ public class AccountMaintenanceService {
 			//还要将账户开立添加上传的这个操作信息插入到操作记录表中
 			Map<String, Object> mapToOperationHistory = new LinkedHashMap<String,Object>();
 				mapToOperationHistory.put("operatorTypeId", 1001);						//
-				mapToOperationHistory.put("operatorAccount", 500000255);				//操作账号先
-				mapToOperationHistory.put("operatorRole", "经办支行");						//创建这个操作的角色只能是经办支行/开户行
+				mapToOperationHistory.put("operatorAccount", 500000255);				//操作账号先
+				mapToOperationHistory.put("operatorRole", "经办支行");						//创建这个操作的角色
 				mapToOperationHistory.put("operatorPerson", "张五");						//操作人先写死
 				mapToOperationHistory.put("operatorTime", mapToDao.get("update_time")); //操作时间为当前操作时间
-				mapToOperationHistory.put("hash", "操作hash值2");	                       //写的时死值
+				mapToOperationHistory.put("hash", "操作hash值3");	                       //写的时死值
 				accountMaintenanceDao.insertAccountMaintenanceInfoOperationHistory(mapToOperationHistory);           //将账户开立添加上传的操作记录信息插入到操作记录表中     
 	}
     /**
@@ -222,7 +222,7 @@ public class AccountMaintenanceService {
 	
     }
 	/**账户开立  查看详情 供应下载提示框
-	 * postman customer_id  200002
+	 * postman customer_id  200002/2029
 	 * @param map
 	 * @return
 	 */
@@ -238,13 +238,7 @@ public class AccountMaintenanceService {
 				 AccountOpenAction.put("customer_id", customer_id);
 				 AccountOpenAction.put("AccountMaintenancelist", AccountMaintenancelist);
 				 return AccountOpenAction;
-   }
-    
-    
-    
-    
-    
-    
+    }
     
     
     

+ 4 - 1
ccb_fund_trusteeship/src/main/java/com/fuzamei/web/CapitalTransferAction.java

@@ -26,6 +26,7 @@ import org.springframework.web.multipart.MultipartFile;
 
 import com.fuzamei.entity.CapitalTransfer;
 import com.fuzamei.service.CapitalTransferService;
+import com.fuzamei.service.UserAuthoricationService;
 import com.fuzamei.utils.JSONUtil;
 import com.fuzamei.utils.PageDTO;
 
@@ -34,6 +35,8 @@ import com.fuzamei.utils.PageDTO;
 public class CapitalTransferAction {
 	@Autowired	
 	private CapitalTransferService capitalTransferService;
+	@Autowired
+	private UserAuthoricationService userAuthoricationService;//参数校验  权限授权
 	 /**  
      *  查询资金划转表  省分行托管中心指令业务岗
      * @param  
@@ -112,7 +115,7 @@ public class CapitalTransferAction {
 	@PostMapping(value="/insertCapitalTransfer")
 	@ResponseBody
 	public Map<String,Object> insertCapitalTransfer(  ){
-
+