From c6aafed53690b7e1ed4459f2b6bbfd050d1beb4d Mon Sep 17 00:00:00 2001
From: hellolujian <1370256381@qq.com>
Date: Wed, 10 Oct 2018 10:35:02 +0800
Subject: [PATCH] =?UTF-8?q?[fix]=E9=A3=8E=E6=8E=A7=E4=BA=8B=E4=BB=B6?=
=?UTF-8?q?=E6=B3=A8=E5=86=8C=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mappers/riskbusiness/RiskEventMapper.java | 25 +++++
.../core/RiskBusinessService.java | 10 ++
.../core/impl/RiskBusinessServiceImpl.java | 12 +++
.../{ => web}/RiskBusinessController.java | 10 +-
src/main/ui/static/analysis/risk_business.js | 10 ++
.../analysis/templates/riskEvent_detail.html | 10 ++
.../analysis/templates/risk_business.html | 98 +++++++++++++++++--
7 files changed, 163 insertions(+), 12 deletions(-)
create mode 100644 src/main/java/au/com/royalpay/payment/manage/mappers/riskbusiness/RiskEventMapper.java
create mode 100644 src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/RiskBusinessService.java
create mode 100644 src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskBusinessServiceImpl.java
rename src/main/java/au/com/royalpay/payment/manage/riskbusiness/{ => web}/RiskBusinessController.java (56%)
create mode 100644 src/main/ui/static/analysis/templates/riskEvent_detail.html
diff --git a/src/main/java/au/com/royalpay/payment/manage/mappers/riskbusiness/RiskEventMapper.java b/src/main/java/au/com/royalpay/payment/manage/mappers/riskbusiness/RiskEventMapper.java
new file mode 100644
index 000000000..62c23ea2c
--- /dev/null
+++ b/src/main/java/au/com/royalpay/payment/manage/mappers/riskbusiness/RiskEventMapper.java
@@ -0,0 +1,25 @@
+package au.com.royalpay.payment.manage.mappers.riskbusiness;
+
+import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
+import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
+import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
+import com.alibaba.fastjson.JSONObject;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * @Author lvjian
+ * @Date 2018/10/10 10:25
+ */
+@AutoMapper(tablename = "risk_event", pkName = "risk_id")
+public interface RiskEventMapper {
+
+ @AutoSql(type = SqlType.INSERT)
+ void save(JSONObject riskEvent);
+
+ @AutoSql(type = SqlType.UPDATE)
+ void update(JSONObject riskEvent);
+
+ @AutoSql(type = SqlType.SELECT)
+ JSONObject findById(@Param("risk_id") String riskId);
+
+}
diff --git a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/RiskBusinessService.java b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/RiskBusinessService.java
new file mode 100644
index 000000000..f882a2a20
--- /dev/null
+++ b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/RiskBusinessService.java
@@ -0,0 +1,10 @@
+package au.com.royalpay.payment.manage.riskbusiness.core;
+
+/**
+ * @Author lvjian
+ * @Date 2018/10/10 10:29
+ */
+public interface RiskBusinessService {
+
+
+}
diff --git a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskBusinessServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskBusinessServiceImpl.java
new file mode 100644
index 000000000..9b071836e
--- /dev/null
+++ b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskBusinessServiceImpl.java
@@ -0,0 +1,12 @@
+package au.com.royalpay.payment.manage.riskbusiness.core.impl;
+
+import au.com.royalpay.payment.manage.riskbusiness.core.RiskBusinessService;
+import org.springframework.stereotype.Service;
+
+/**
+ * @Author lvjian
+ * @Date 2018/10/10 10:30
+ */
+@Service
+public class RiskBusinessServiceImpl implements RiskBusinessService {
+}
diff --git a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/RiskBusinessController.java b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/web/RiskBusinessController.java
similarity index 56%
rename from src/main/java/au/com/royalpay/payment/manage/riskbusiness/RiskBusinessController.java
rename to src/main/java/au/com/royalpay/payment/manage/riskbusiness/web/RiskBusinessController.java
index 4eed4d1f4..3b2d5f08e 100644
--- a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/RiskBusinessController.java
+++ b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/web/RiskBusinessController.java
@@ -1,7 +1,8 @@
-package au.com.royalpay.payment.manage.riskbusiness;
+package au.com.royalpay.payment.manage.riskbusiness.web;
import au.com.royalpay.payment.manage.permission.manager.ManagerMapping;
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
+import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@@ -14,9 +15,14 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/risk/business/")
public class RiskBusinessController {
- @ManagerMapping(value = "registration", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
+ @ManagerMapping(value = "event", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
public String testHello() {
return "Hello";
}
+
+ @ManagerMapping(value = "event/{risk_id}", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
+ public JSONObject getRiskEventDetail() {
+ return null;
+ }
}
diff --git a/src/main/ui/static/analysis/risk_business.js b/src/main/ui/static/analysis/risk_business.js
index f11c881f2..808a4bccb 100644
--- a/src/main/ui/static/analysis/risk_business.js
+++ b/src/main/ui/static/analysis/risk_business.js
@@ -10,7 +10,17 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
url: '/risk_business',
templateUrl: '/static/analysis/templates/risk_business.html',
controller: 'riskBusinessCtrl'
+ }).state('analysis_monitoring.risk_business.detail', {
+ url: '/{risk_id}/detail',
+ templateUrl: '/static/analysis/templates/riskEvent_detail.html',
+ controller: 'riskEventDetailCtrl',
+ resolve: {
+ partner: ['$http', '$stateParams', function ($http, $stateParams) {
+ return $http.get('/risk/business/event' + $stateParams.risk_id);
+ }]
+ }
})
+
}]);
app.controller('riskBusinessCtrl', ['$scope', '$http','$filter','chartParser', function ($scope, $http,$filter,chartParser) {
diff --git a/src/main/ui/static/analysis/templates/riskEvent_detail.html b/src/main/ui/static/analysis/templates/riskEvent_detail.html
new file mode 100644
index 000000000..7f23e9322
--- /dev/null
+++ b/src/main/ui/static/analysis/templates/riskEvent_detail.html
@@ -0,0 +1,10 @@
+
+
+
+
+ Title
+
+
+欢迎来到riskDetail页面
+
+
\ No newline at end of file
diff --git a/src/main/ui/static/analysis/templates/risk_business.html b/src/main/ui/static/analysis/templates/risk_business.html
index 36897ee87..212297aca 100644
--- a/src/main/ui/static/analysis/templates/risk_business.html
+++ b/src/main/ui/static/analysis/templates/risk_business.html
@@ -1,10 +1,88 @@
-
-
-
-
- Title
-
-
-欢迎来到风控业务流程页面
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Partner Code |
+ order_type |
+ Sub Merchant ID |
+ Email Status |
+ FillIn Person |
+ Description |
+ Create Time |
+ Operation |
+
+
+
+
+ |
+ |
+ |
+
+ 未发送
+ 已发送
+ |
+ |
+ |
+ |
+
+
+ Detail
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file