|
@@ -75,7 +75,6 @@ public class AccountOpenService {
|
|
|
}
|
|
|
mapToDao.put("rowNum", ROW_NUM); // 默认每页显示数据是10条,可根据需求修改分页数量
|
|
|
|
|
|
-
|
|
|
int count = accountOpenDao.serchCountPage();
|
|
|
List<AccountOpeningRecord> list=accountOpenDao.queryAllAccountOpening(mapToDao);
|
|
|
pageDto.setTotal(count);
|
|
@@ -90,8 +89,10 @@ public class AccountOpenService {
|
|
|
*/
|
|
|
public PageDTO selectPromptLetter(Map<String, Object> map){//查询风险提示函
|
|
|
int page = 1; // 默认页是第一页
|
|
|
+
|
|
|
long startTime = 0; // 开始时间默认0
|
|
|
long endTime = Long.MAX_VALUE; // 结束时间默认Long最大值
|
|
|
+
|
|
|
if (!"".equals(map.get("page")) && map.get("page") != null) { // 等于空就直接取第一页
|
|
|
try {
|
|
|
page = Integer.parseInt((String) map.get("page"));
|
|
@@ -139,7 +140,7 @@ public class AccountOpenService {
|
|
|
}
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
/**
|
|
|
- * 提示函 风管岗查询
|
|
|
+ * 提示函 风管岗发送列表查询
|
|
|
* @param map
|
|
|
* @return
|
|
|
*/
|
|
@@ -157,7 +158,6 @@ public class AccountOpenService {
|
|
|
page = 1; // 数据解析异常page还是1
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if (!"".equals(map.get("startTime")) && map.get("startTime") != null) { // 等于空就直接取空值
|
|
|
try {
|
|
|
startTime = Long.parseLong((String) map.get("startTime"));
|
|
@@ -198,19 +198,54 @@ public class AccountOpenService {
|
|
|
* @param map
|
|
|
*/
|
|
|
@Transactional
|
|
|
- public void insertTiShiHanOrUser(Map<String, Object> map) {//只上传了id到数据库 待修改哦
|
|
|
- String prompt_letter_id=""; // 提示函id
|
|
|
-
|
|
|
+ public void insertTiShiHanOrUserOrOtherTable(Map<String, Object> map) {//只上传了id到数据库 待修改哦
|
|
|
+ Integer prompt_letter_id=null;
|
|
|
+ String prompt_letter_name="";
|
|
|
+ Integer send_person=null;
|
|
|
+ Integer receive_person=null;
|
|
|
+ long send_time=0;
|
|
|
+ long receive_time=0;
|
|
|
+ String hash="";
|
|
|
+
|
|
|
+ String url=""; //url路径名称
|
|
|
+ String attachmentName=""; //附件名称
|
|
|
|
|
|
- String attachment_id=""; //附件id
|
|
|
+ /* String attachment_id=""; //附件id
|
|
|
String attachment_name=""; //附件名称
|
|
|
String url=""; //附件url
|
|
|
- String upload_person_id=""; //附件上传人的id
|
|
|
- long create_time=0; //附件添加的时间
|
|
|
-
|
|
|
- if (!"".equals(map.get("prompt_letter_id")) && map.get("prompt_letter_id") != null) {
|
|
|
- prompt_letter_id = (String) map.get("prompt_letter_id");
|
|
|
+ String user_id=""; //附件上传人的id
|
|
|
+ long create_time=0; */ //附件添加的时间
|
|
|
+ if (!"".equals(map.get("url")) && map.get("url") != null) {
|
|
|
+ url = (String) map.get("url");
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("attachmentName")) && map.get("attachmentName") != null) {
|
|
|
+ attachmentName = (String) map.get("attachmentName");
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ if (!"".equals(map.get("prompt_letter_id")) && map.get("prompt_letter_id") != null) {
|
|
|
+ prompt_letter_id = Integer.parseInt((String) map.get("prompt_letter_id"));
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("prompt_letter_name")) && map.get("prompt_letter_name") != null) {
|
|
|
+ prompt_letter_name = (String) map.get("prompt_letter_name");
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("send_person")) && map.get("send_person") != null) {
|
|
|
+ send_person = Integer.parseInt((String) map.get("send_person"));
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("receive_person")) && map.get("receive_person") != null) {
|
|
|
+ receive_person = Integer.parseInt((String) map.get("receive_person"));
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("receive_time")) && map.get("receive_time") != null) {
|
|
|
+ receive_time = (Long) map.get("receive_time");
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("send_time")) && map.get("send_time") != null) {
|
|
|
+ send_time = (Long) map.get("send_time");
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("hash")) && map.get("hash") != null) {
|
|
|
+ hash = (String) map.get("hash");
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
if (!"".equals(map.get("attachment_id")) && map.get("attachment_id") != null) {
|
|
|
attachment_id = (String) map.get("attachment_id");
|
|
|
}
|
|
@@ -220,32 +255,37 @@ public class AccountOpenService {
|
|
|
if (!"".equals(map.get("url")) && map.get("url") != null) {
|
|
|
url = (String) map.get("url");
|
|
|
}
|
|
|
- if (!"".equals(map.get("upload_person_id")) && map.get("upload_person_id") != null) {
|
|
|
- upload_person_id = (String) map.get("upload_person_id");
|
|
|
+ if (!"".equals(map.get("user_id")) && map.get("user_id") != null) {
|
|
|
+ user_id = (String) map.get("user_id");
|
|
|
}
|
|
|
if (!"".equals(map.get("create_time")) && map.get("create_time") != null) {
|
|
|
create_time = (Long) map.get("create_time");
|
|
|
- }
|
|
|
+ }*/
|
|
|
Map<String, Object> mapToDao2 = new LinkedHashMap<String, Object>();
|
|
|
- mapToDao2.put("prompt_letter_id", prompt_letter_id);//提示函id
|
|
|
- //mapToDao.put("hash","1a2b3c4d5e");//先注视
|
|
|
- accountOpenDao.insertTiShiHanOrUser(mapToDao2);//将数据添加到提示函数据库里
|
|
|
+ mapToDao2.put("prompt_letter_id", prompt_letter_id);//提示函 id
|
|
|
+ mapToDao2.put("prompt_letter_name","提示名称");//提示函名称 先写死 没弄明白
|
|
|
+ mapToDao2.put("send_person",2 );//发送人暂时写死的
|
|
|
+ mapToDao2.put("receive_person",11);//接收人 暂时写死的
|
|
|
+ mapToDao2.put("receive_time", System.currentTimeMillis());//接收时间
|
|
|
+ mapToDao2.put("send_time",System.currentTimeMillis());//发送时间
|
|
|
+ mapToDao2.put("hash", "21a5s2e4x5x");//hash值 暂写死
|
|
|
+ accountOpenDao.insertIntoPromptLetterTable(mapToDao2);//将账号插入提示函表
|
|
|
|
|
|
Map<String, Object> mapToDao = new LinkedHashMap<String, Object>();
|
|
|
- mapToDao.put("attachment_id", 110120119);//附件id 目前写死
|
|
|
- mapToDao.put("attachment_name", attachment_name);//附件名称 暂时没写
|
|
|
+ mapToDao.put("attachment_id",(int)Math.round(Math.random()*8999+100));//附件id 目前写死写的是个随机数 待修改
|
|
|
+ mapToDao.put("attachmentName",attachmentName );//附件名称 拿到了
|
|
|
mapToDao.put("url", url);//附件url 后面有下载的 需要地址
|
|
|
- mapToDao.put("upload_person_id", 111222333);//附件人上传的id这里写的是死值
|
|
|
- mapToDao.put("create_time", System.currentTimeMillis());//附件添加时间,这里应该写添加得到的当前系统时间 目前写的是死值
|
|
|
- accountOpenDao.insertAccountUploadFileFuJianBiao(mapToDao);//将数据添加到附件表数据库里
|
|
|
-
|
|
|
+ mapToDao.put("upload_person_id", 123321123);//附件人上传的id这里写的是死值
|
|
|
+ mapToDao.put("create_time", (Long)mapToDao2.get("send_time") );//附件添加时间,这里应该写发送时间 目前写的是死值//System.currentTimeMillis()
|
|
|
+ accountOpenDao.insertIntoAttachmentTable(mapToDao);//将数据添加到附件表数据库里
|
|
|
+
|
|
|
Map<String, Object> mapToOperation = new LinkedHashMap<String,Object>();
|
|
|
- mapToOperation.put("operatorTypeId", 1001); //写死目前
|
|
|
- mapToOperation.put("operatorAccount", 500000266); //操作账号先定死
|
|
|
- mapToOperation.put("operatorRole", "经办支行5"); //创建这个操作的角色 目前是写死
|
|
|
- mapToOperation.put("operatorPerson", "张三3"); //操作人先写死
|
|
|
- mapToOperation.put("operatorTime", mapToDao.get("create_time")); //操作时间为当前操作时间
|
|
|
- mapToOperation.put("hash", "222a2s3d4f5g"); //写的时死值
|
|
|
+ mapToOperation.put("operatorTypeId", 1009); //写死目前
|
|
|
+ mapToOperation.put("operatorAccount", 60000289); //操作账号先定死
|
|
|
+ mapToOperation.put("operatorRole", "经办支行9"); //创建这个操作的角色 目前是写死
|
|
|
+ mapToOperation.put("operatorPerson", "操作人小王"); //操作人先写死
|
|
|
+ mapToOperation.put("operatorTime",(Long)mapToDao2.get("send_time")); //操作时间为当前操作时间
|
|
|
+ mapToOperation.put("hash", "d9892a2s3d4f5g"); //写的时死值
|
|
|
accountOpenDao.insertOperationHistory(mapToOperation); //将提示函泛函添加上传的操作记录信息插入到操作记录表中
|
|
|
}
|
|
|
|
|
@@ -278,13 +318,22 @@ public class AccountOpenService {
|
|
|
}
|
|
|
|
|
|
Map<String, Object> mapToDao = new LinkedHashMap<String, Object>();
|
|
|
- mapToDao.put("attachment_id", 123456789);//附件id 目前写死
|
|
|
+ mapToDao.put("attachment_id", 123456);//附件id 目前写死
|
|
|
mapToDao.put("attachment_name", attachment_name);//附件名称 暂时没写
|
|
|
mapToDao.put("url", url);//附件url 后面有下载的 需要地址
|
|
|
- mapToDao.put("upload_person_id", 223344);//附件人上传的id这里写的是死值
|
|
|
+ mapToDao.put("upload_person_id", 223346);//附件人上传的id这里写的是死值
|
|
|
mapToDao.put("create_time", System.currentTimeMillis());//附件添加时间,这里应该写添加得到的当前系统时间
|
|
|
- accountOpenDao.insertTrueFalseSelect(mapToDao);//把数据插入到附件表里
|
|
|
-
|
|
|
+ accountOpenDao.insertAccountUploadFileFuJianBiao(mapToDao);//把数据插入到 (附件表)里
|
|
|
+
|
|
|
+ //还要将真伪查询上传的这个操作信息插入到操作记录表中
|
|
|
+ Map<String, Object> mapToOperationHistory = new LinkedHashMap<String,Object>();
|
|
|
+ mapToOperationHistory.put("operatorTypeId", 1002); //id应该是写死的目前
|
|
|
+ mapToOperationHistory.put("operatorAccount", 600000289); //操作账号先定死,到时候再改
|
|
|
+ mapToOperationHistory.put("operatorRole", "经办支行8"); //创建这个操作的角色只能是经办支行
|
|
|
+ mapToOperationHistory.put("operatorPerson", "张八"); //操作人先写死
|
|
|
+ mapToOperationHistory.put("operatorTime", mapToDao.get("create_time")); //操作时间为当前操作时间
|
|
|
+ mapToOperationHistory.put("hash", "re43h333a2s3d4f5gj"); //写的时死值
|
|
|
+ accountOpenDao.insertOperationHistory(mapToOperationHistory); //将账户开立添加上传的操作记录信息插入到操作记录表中
|
|
|
|
|
|
}
|
|
|
|
|
@@ -434,12 +483,31 @@ public class AccountOpenService {
|
|
|
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
+ //账户开立 下载页面
|
|
|
+ public Map<String, Object> selectAccountopenNoPage(Map<String, Object> map){
|
|
|
+ Integer customer_id=null; //ID
|
|
|
+ String customer_name="";//客户名称
|
|
|
+ String bank_account="";//银行账号
|
|
|
+ if(!"".equals(map.get("customer_id")) && null!=map.get("customer_id")){
|
|
|
+ customer_id = Integer.parseInt((String)map.get("customer_id"));
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("customer_name")) && map.get("customer_name") != null) {
|
|
|
+ customer_name = (String) map.get("customer_name");
|
|
|
+ }
|
|
|
+ if (!"".equals(map.get("bank_account")) && map.get("bank_account") != null) {
|
|
|
+ bank_account = (String) map.get("bank_account");
|
|
|
+ }
|
|
|
+ Map<String, Object> mapToDao = new LinkedHashMap<String, Object>();
|
|
|
+ mapToDao.put("customer_id", customer_id);
|
|
|
+ mapToDao.put("customer_name", customer_name);
|
|
|
+ mapToDao.put("bank_account", bank_account);
|
|
|
+ List<AccountOpeningRecord> AccountOpenlist=accountOpenDao.selectAccountopenNoPage(mapToDao);
|
|
|
+ Map<String, Object> AccountOpenAction = new LinkedHashMap<String, Object>();
|
|
|
+ AccountOpenAction.put("customer_id", customer_id);
|
|
|
+ AccountOpenAction.put("customer_name", customer_name);
|
|
|
+ AccountOpenAction.put("bank_account", bank_account);
|
|
|
+ AccountOpenAction.put("AccountOpenlist", AccountOpenlist);
|
|
|
+
|
|
|
+ return AccountOpenAction;
|
|
|
+ }
|
|
|
+}
|