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

RiskEvent List

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Partner Codeorder_typeSub Merchant IDEmail StatusFillIn PersonDescriptionCreate TimeOperation
+ 未发送 + 已发送 + + + Detail + +
+ +
+ +
+ + +
+ +
+
+
+ \ No newline at end of file