chb 7 年之前
父節點
當前提交
e4db5f110a

+ 2 - 2
ccb_fund_trusteeship/src/main/java/com/fuzamei/dao/AccountMaintenanceDao.java

@@ -26,8 +26,8 @@ public class AccountMaintenanceDao {
 	public List<AccountOpeningRecord> selectAccountMaintenanceInfo(Map<String, Object> map){
 		return accountMaintenanceMapper.selectAccountMaintenanceInfo(map);
 	}
-	public  int selectCountAccountMaintenancePage() {
-		return accountMaintenanceMapper.selectCountAccountMaintenancePage();
+	public  int selectCountAccountMaintenancePage(Map<String, Object> map) {
+		return accountMaintenanceMapper.selectCountAccountMaintenancePage(map);
 	}
 	public List<AccountOpeningRecord> selectAccountMaintenanceNoPage(Map<String, Object> map){
 		return accountMaintenanceMapper.selectAccountMaintenanceNoPage(map);

+ 5 - 3
ccb_fund_trusteeship/src/main/java/com/fuzamei/dao/PromptLetterDao.java

@@ -28,9 +28,11 @@ public class PromptLetterDao {
 	public void insertOperationHistory(Map<String, Object> map) {//也插入一条数据到操作记录表   
 		promptLetterMapper.insertOperationHistory(map);
 	}
-	public  int  serchCountPage2(){//提示函 列返回总页数
-		return  promptLetterMapper.serchCountPage2();
+	public  int  serchCountPage2(Map<String, Object> map){//提示函 列返回总页数   发送
+		return  promptLetterMapper.serchCountPage2(map);
+	}
+	public  int  serchCountPage3(Map<String, Object> map){//提示函 列返回总页数   接收
+		return  promptLetterMapper.serchCountPage3(map);
 	}
-	
 	
 }

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

@@ -41,9 +41,20 @@
 	            limit #{startPage},#{rowNum}
 	</select>
 	
-	<!--查询账户维护开立信息总页数  返回一个int类型  -->
+	<!--查询账户维护开立信息总页数  返回一个int类型     待条件查询出来的也要分页-->
 	<select id="selectCountAccountMaintenancePage" resultType="int">
 	  select count(*) from account_opening_record
+	  	 <where>
+		    <if test="customer_name!='' and customer_name!=null ">
+			  customer_name=#{customer_name}
+			</if>
+			<if test="bank_account!='' and bank_account!=null">
+			  and bank_account=#{bank_account}
+			</if>
+		   	<if test="startTime!='' and endTime != ''">
+			  and update_time  between #{startTime} and #{endTime}
+			</if>
+	 </where>
 	</select>
 	
 	<!-- 添加上传账户维护信息表  添加到账户维护开立表 -->

+ 6 - 4
ccb_fund_trusteeship/src/main/java/com/fuzamei/mapper/CapitalTransferMapper.xml

@@ -37,7 +37,9 @@
 	<!--查询资金划转表   返回查询总条数 --><!--带条件分页待做修改  -->
     <select id="selectCapitalTransferPage" resultType="int">
     	 select count(*)  from capital_transfer
-    	 <include refid="query_accountopen_where"></include>
+    	 <where>
+    	   <include refid="query_accountopen_where"></include>
+    	 </where>
     </select>
     <!--动态sql  上面引用 -->
     <sql id="query_accountopen_where">
@@ -47,9 +49,9 @@
     	<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>
+    	<if test="startTime!=null and endTime!=null">
+			and apply_time between #{startTime} and #{endTime}
+	    </if>
     </sql>
   <!--************************************************************************************************  -->  
   <!--查看  资金划转详情     根据前端给我返回的id   在把那一条数据查出来-->

+ 17 - 4
ccb_fund_trusteeship/src/main/java/com/fuzamei/mapper/PromptLetter.xml

@@ -81,10 +81,23 @@
 		      order by send_time desc
 	          limit #{startPage},#{rowNum}
 	</select>
-	<!--查询提示函  返回总页数  -->
-	<select id="serchCountPage2" resultType="int">
-	  select count(*)  from prompt_letter
+	<!--查询提示函  返回总页数   发送列表待条件分页-->
+	 <select id="serchCountPage2" resultType="int">
+	     select count(*)  from prompt_letter 
+	  <where>
+	        <if test="startTime!=null and endTime!=null">
+				 send_time between #{startTime} and #{endTime}
+			</if>
+	  </where>
+	</select>
+	<!--查询提示函  返回总页数   接收列表待条件分页-->
+	 <select id="serchCountPage3" resultType="int">
+	     select count(*)  from prompt_letter 
+	  <where>
+	        <if test="startTime!=null and endTime!=null">
+				 receive_time between #{startTime} and #{endTime}
+			</if>
+	  </where>
 	</select>
-
 
 </mapper>

+ 1 - 1
ccb_fund_trusteeship/src/main/java/com/fuzamei/mapperInterface/AccountMaintenanceMapper.java

@@ -10,6 +10,6 @@ public interface AccountMaintenanceMapper {
 	public  void  insertAccountMaintenanceInfoFuJianBiao(Map<String, Object> map);//账户维护开立 上传一份数据到附件表
 	public  void  insertAccountMaintenanceInfoOperationHistory(Map<String, Object> map);//当经办支行进行账户开立维护上传文件的时候往(操作记录表)也插入一条数据
 	public List<AccountOpeningRecord> selectAccountMaintenanceInfo(Map<String, Object> map);//查询账户开立信息维护列表
-	public  int selectCountAccountMaintenancePage();//查询账户维护开立信息总页数  返回一个int类型
+	public  int selectCountAccountMaintenancePage(Map<String, Object> map);//查询账户维护开立信息总页数  返回一个int类型
 	public List<AccountOpeningRecord> selectAccountMaintenanceNoPage(Map<String, Object> map);//账户开立 通过点击查看  供应下载页面  
 }

+ 2 - 2
ccb_fund_trusteeship/src/main/java/com/fuzamei/mapperInterface/PromptLetterMapper.java

@@ -11,7 +11,7 @@ public interface PromptLetterMapper {
 	public void insertIntoPromptLetterTable(Map<String, Object> map);//提示函插入数据信息
 	public void insertIntoAttachmentTable(Map<String, Object> map);//提示函数据在往附件表也插入
 	public void insertOperationHistory(Map<String, Object> map);//提示函也往操作记录表李插入
-	public  int serchCountPage2();//提示函列表返回总页数or带条件查询分页
-	
+	public  int serchCountPage2(Map<String, Object> map);//提示函列表返回总页数or带条件查询分页   发送
+	public  int serchCountPage3(Map<String, Object> map);//提示函列表返回总页数or带条件查询分页   接收
 	
 }

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

@@ -214,7 +214,7 @@ public class AccountMaintenanceService {
 		}
 		mapToDao.put("rowNum", ROW_NUM); // 默认每页显示数据是10条,可根据需求修改分页数量
 
-		int count = accountMaintenanceDao.selectCountAccountMaintenancePage();
+		int count = accountMaintenanceDao.selectCountAccountMaintenancePage(mapToDao);
 		List<AccountOpeningRecord> list=accountMaintenanceDao.selectAccountMaintenanceInfo(mapToDao);
 		pageDto.setTotal(count);
 		pageDto.setRows(list);

+ 1 - 1
ccb_fund_trusteeship/src/main/java/com/fuzamei/service/CapitalTransferService.java

@@ -130,7 +130,7 @@ public class CapitalTransferService {
 			fund_name = (String)map.get("fund_name");
 		}
 		if (!"".equals(map.get("sum_of_money")) && map.get("sum_of_money") != null) { 
-			sum_of_money = (double)map.get("sum_of_money");
+			sum_of_money = (Double)map.get("sum_of_money");
 		}
 		Map<String, Object> mapToDao = new LinkedHashMap<String, Object>();
 		

+ 4 - 4
ccb_fund_trusteeship/src/main/java/com/fuzamei/service/PromptLetterService.java

@@ -25,7 +25,7 @@ public class PromptLetterService {
     public PageDTO selectPromptLetter(Map<String, Object> map){//查询风险提示函
 		int page = 1; // 默认页是第一页
 		
-		long startTime = 0; // 开始时间默认0
+		long startTime = 0L; // 开始时间默认0
 		long endTime = Long.MAX_VALUE; // 结束时间默认Long最大值
 		
 		if (!"".equals(map.get("page")) && map.get("page") != null) { // 等于空就直接取第一页
@@ -42,7 +42,7 @@ public class PromptLetterService {
 			try {
 				startTime = Long.parseLong((String) map.get("startTime"));
 			} catch (NumberFormatException e) {
-				startTime = 0; // 数据解析异常startTime还是0
+				startTime = 0L; // 数据解析异常startTime还是0
 			}
 		}
 		if (!"".equals(map.get("endTime")) && map.get("endTime") != null) { // 等于空就直接取空值
@@ -63,7 +63,7 @@ public class PromptLetterService {
 			mapToDao.put("endTime", Long.MAX_VALUE);
 		}
 		mapToDao.put("rowNum", ROW_NUM); // 默认每页显示数据是10条,可根据需求修改分页数量
-		int count = promptLetterDao.serchCountPage2();
+		int count = promptLetterDao.serchCountPage3(mapToDao);
 		List<PromptLetter> list=promptLetterDao.selectPromptLetter(mapToDao);
 		pageDto.setTotal(count);
 		pageDto.setRows(list);
@@ -114,7 +114,7 @@ public class PromptLetterService {
  			mapToDao.put("endTime", Long.MAX_VALUE);
  		}
  		mapToDao.put("rowNum", ROW_NUM); // 默认每页显示数据是10条,可根据需求修改分页数量
- 		int count = promptLetterDao.serchCountPage2();
+ 		int count = promptLetterDao.serchCountPage2(mapToDao);
  		List<PromptLetter> list=promptLetterDao.selectTishihan(mapToDao);
  		pageDto.setTotal(count);
  		pageDto.setRows(list);

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

@@ -13,7 +13,6 @@ import java.util.Map;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
-import org.junit.runners.Parameterized.Parameters;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.PostMapping;

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

@@ -66,7 +66,7 @@ public class PromptLetterAction {
 	            //MultipartFile自带的解析方法 
 	    		Map<String, Object> map = new LinkedHashMap<String, Object>();
 	    		map.put("prompt_letter_id",prompt_letter_id);//有问题   待改动 
-	    		map.put("hash", hash);//上传文件产生的哈希值插入到提示函表
+	    		map.put("hash", hash);//上传文件产生的哈希值插入到提示函表
 	    		
 	    		//map.put("fileName", fileName);
 	    		map.put("url","/Content/"+fileName);