[fix]bd页面

master
lujian 6 years ago
parent 98a301ba4a
commit b8265440ca

@ -89,7 +89,7 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
private RoyalThreadPoolExecutor royalThreadPoolExecutor; private RoyalThreadPoolExecutor royalThreadPoolExecutor;
private final String UPLOAD_MAIL_PREFIX = "UPLOAD_MAIL"; private final String UPLOAD_MAIL_PREFIX = "UPLOAD_MAIL";
@Autowired @Resource
private RiskMaterialMapper riskMaterialMapper; private RiskMaterialMapper riskMaterialMapper;
@Resource @Resource
private RiskFileMapper riskFileMapper; private RiskFileMapper riskFileMapper;
@ -176,7 +176,9 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
params.put("fillin_person", manager.getString("display_name")); params.put("fillin_person", manager.getString("display_name"));
String orderIds = params.getString("order_ids"); String orderIds = params.getString("order_ids");
if (StringUtils.isNotBlank(orderIds)) { if (StringUtils.isNotBlank(orderIds)) {
orderIds = orderIds.trim().replace("", ","); // 去除所有空格与中文逗号''
orderIds = orderIds.replace("", ",");
orderIds = orderIds.replace(" ", "");
params.put("order_ids", orderIds); params.put("order_ids", orderIds);
String[] orderIdArray = orderIds.split(","); String[] orderIdArray = orderIds.split(",");
List<String> orderAmountList = new ArrayList<>(); List<String> orderAmountList = new ArrayList<>();

@ -738,6 +738,15 @@
<if test="clearing_status!=null">and t.clearing_status=#{clearing_status}</if> <if test="clearing_status!=null">and t.clearing_status=#{clearing_status}</if>
</where> </where>
</select> </select>
<!--
由于当时定的是order_id, 所以是根据order_id查的
现在要改成依据system_transaction_id查
直接改成t.system_transaction_id = #{order_id}
否则要改的地方太多了,
所以这里的参数order_id其实是system_transaction_id
特此说明!
-->
<select id="findOrderById" resultType="com.alibaba.fastjson.JSONObject"> <select id="findOrderById" resultType="com.alibaba.fastjson.JSONObject">
SELECT SELECT
o.order_id order_id, o.order_id order_id,
@ -810,7 +819,7 @@
AND t.refund_id IS NULL AND t.refund_id IS NULL
AND t.transaction_type = 'Credit' AND t.transaction_type = 'Credit'
AND t.channel != 'System' AND t.channel != 'System'
WHERE o.order_id = #{order_id} WHERE t.system_transaction_id = #{order_id}
</select> </select>
<select id="listHalloweenActOrder" resultType="com.alibaba.fastjson.JSONObject"> <select id="listHalloweenActOrder" resultType="com.alibaba.fastjson.JSONObject">

@ -51,13 +51,14 @@
</if> </if>
<if test="bd_id != null"> <if test="bd_id != null">
LEFT JOIN( INNER JOIN(
SELECT DISTINCT client_id SELECT DISTINCT client_id
FROM sys_client_bd FROM sys_client_bd
WHERE WHERE
is_valid = 1 is_valid = 1
AND bd_id = #{bd_id} AND bd_id = #{bd_id}
AND end_date &gt; NOW() AND ( end_date IS NULL OR end_date &gt; NOW())
) scb ) scb
ON sc.client_id = scb.client_id ON sc.client_id = scb.client_id
</if> </if>

@ -439,7 +439,19 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
type: 'error' type: 'error'
}); });
}); });
} };
// 加载提交材料
$scope.loadRiskMaterial = function() {
$http.get('/risk/business/' + $scope.riskEvent.risk_id + '/material').then(function(resp) {
$scope.material = resp.data;
})
};
// BD是否可上传
$scope.uploadShowFlag = ($scope.riskEvent.result_type == 1 || $scope.riskEvent.result_type == 4) ? true : false;
if (!$scope.uploadShowFlag)
$scope.loadRiskMaterial();
} }
]); ]);
@ -503,7 +515,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
app.controller('newRiskEventCtrl', ['$scope', '$state', '$http', '$uibModal', '$filter', 'commonDialog', app.controller('newRiskEventCtrl', ['$scope', '$state', '$http', '$uibModal', '$filter', 'commonDialog',
function ($scope, $state, $http, $uibModal, $filter, commonDialog) { function ($scope, $state, $http, $uibModal, $filter, commonDialog) {
$scope.receive_email_date = new Date();
$scope.today = new Date(); $scope.today = new Date();
$scope.orderTypes = orderTypesMap; $scope.orderTypes = orderTypesMap;
$scope.royapayOrderTypes = royalpayOrderTypesMap; $scope.royapayOrderTypes = royalpayOrderTypesMap;
@ -518,7 +530,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
}); });
return; return;
} }
$scope.riskEvent.receive_email_date = $scope.receive_email_date;
if ($scope.riskEvent.receive_email_date == null) if ($scope.riskEvent.receive_email_date == null)
$scope.riskEvent.receive_email_date = new Date(); $scope.riskEvent.receive_email_date = new Date();
// 默认设置邮件回复截止日期为收到邮件的七天后,如果是内部调单,设置三天后 // 默认设置邮件回复截止日期为收到邮件的七天后,如果是内部调单,设置三天后

@ -185,7 +185,7 @@
<input class="form-control" <input class="form-control"
id="receive-date-input" id="receive-date-input"
type="text" type="text"
ng-model="riskEvent.receive_email_date" ng-model="receive_email_date"
uib-datepicker-popup uib-datepicker-popup
size="10" size="10"
placeholder="{{(riskEvent.order_type == 1 || riskEvent.order_type ==2) ? 'Receive Date' : 'Create Date'}}" placeholder="{{(riskEvent.order_type == 1 || riskEvent.order_type ==2) ? 'Receive Date' : 'Create Date'}}"

@ -73,7 +73,7 @@
</p> </p>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="col-xs-12"> <div class="col-xs-12" ng-if="uploadShowFlag">
<button class="btn btn-primary" type="button" <button class="btn btn-primary" type="button"
ngf-select="uploadFile1($files)" ngf-multiple="true"> ngf-select="uploadFile1($files)" ngf-multiple="true">
<i class="fa fa-upload"></i> Upload <i class="fa fa-upload"></i> Upload
@ -83,7 +83,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<uib-progressbar value="file1Progress.value" type="success" animate="true" ng-if="file1Progress.value" max="100" <uib-progressbar value="file1Progress.value" type="success" animate="true" ng-if="file1Progress.value" max="100"
>{{file1Progress.value}}%</uib-progressbar> >{{file1Progress.value}}%</uib-progressbar>
<img class="col-xs-3 logo-width" ng-repeat="url in material.file1_url" ng-src="{{url}}"> <img class="col-xs-3 logo-width" ng-repeat="url in (material.file1 || material.file1_url)" ng-src="{{url}}">
</div> </div>
</div> </div>
</div> </div>
@ -105,7 +105,7 @@
</p> </p>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="col-xs-12"> <div class="col-xs-12" ng-if="uploadShowFlag">
<button class="btn btn-primary" type="button" <button class="btn btn-primary" type="button"
ngf-select="uploadFile2($files)" ngf-multiple="true"> ngf-select="uploadFile2($files)" ngf-multiple="true">
<i class="fa fa-upload"></i> Upload <i class="fa fa-upload"></i> Upload
@ -115,7 +115,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<uib-progressbar value="file2Progress.value" type="success" animate="true" ng-if="file2Progress.value" max="100" <uib-progressbar value="file2Progress.value" type="success" animate="true" ng-if="file2Progress.value" max="100"
>{{file2Progress.value}}%</uib-progressbar> >{{file2Progress.value}}%</uib-progressbar>
<img class="col-xs-3 logo-width" ng-repeat="url in material.file2_url" ng-src="{{url}}"> <img class="col-xs-3 logo-width" ng-repeat="url in (material.file2 ||material.file2_url)" ng-src="{{url}}">
</div> </div>
</div> </div>
@ -137,7 +137,7 @@
</p> </p>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="col-xs-12"> <div class="col-xs-12" ng-if="uploadShowFlag">
<button class="btn btn-primary" type="button" <button class="btn btn-primary" type="button"
ngf-select="uploadFile3($files)" ngf-multiple="true"> ngf-select="uploadFile3($files)" ngf-multiple="true">
<i class="fa fa-upload"></i> Upload <i class="fa fa-upload"></i> Upload
@ -147,7 +147,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<uib-progressbar value="file3Progress.value" type="success" animate="true" ng-if="file3Progress.value" max="100" <uib-progressbar value="file3Progress.value" type="success" animate="true" ng-if="file3Progress.value" max="100"
>{{file3Progress.value}}%</uib-progressbar> >{{file3Progress.value}}%</uib-progressbar>
<img class="col-xs-3 logo-width" ng-repeat="url in material.file3_url" ng-src="{{url}}"> <img class="col-xs-3 logo-width" ng-repeat="url in (material.file3 || material.file3_url)" ng-src="{{url}}">
</div> </div>
</div> </div>
</div> </div>
@ -165,7 +165,7 @@
</p> </p>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="col-xs-12"> <div class="col-xs-12" ng-if="uploadShowFlag">
<button class="btn btn-primary" type="button" <button class="btn btn-primary" type="button"
ngf-select="uploadFile4($files)" ngf-multiple="true"> ngf-select="uploadFile4($files)" ngf-multiple="true">
<i class="fa fa-upload"></i> Upload <i class="fa fa-upload"></i> Upload
@ -175,7 +175,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<uib-progressbar value="file4Progress.value" type="success" animate="true" ng-if="file4Progress.value" max="100" <uib-progressbar value="file4Progress.value" type="success" animate="true" ng-if="file4Progress.value" max="100"
>{{file4Progress.value}}%</uib-progressbar> >{{file4Progress.value}}%</uib-progressbar>
<img class="col-xs-3 logo-width" ng-repeat="url in material.file4_url" ng-src="{{url}}"> <img class="col-xs-3 logo-width" ng-repeat="url in (material.file4 || material.file4_url)" ng-src="{{url}}">
</div> </div>
</div> </div>
@ -197,7 +197,7 @@
</p> </p>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="col-xs-12"> <div class="col-xs-12" ng-if="uploadShowFlag">
<button class="btn btn-primary" type="button" <button class="btn btn-primary" type="button"
ngf-select="uploadFile5($files)" ngf-multiple="true"> ngf-select="uploadFile5($files)" ngf-multiple="true">
<i class="fa fa-upload"></i> Upload <i class="fa fa-upload"></i> Upload
@ -207,7 +207,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<uib-progressbar value="file5Progress.value" type="success" animate="true" ng-if="file5Progress.value" max="100" <uib-progressbar value="file5Progress.value" type="success" animate="true" ng-if="file5Progress.value" max="100"
>{{file5Progress.value}}%</uib-progressbar> >{{file5Progress.value}}%</uib-progressbar>
<img class="col-xs-3 logo-width" ng-repeat="url in material.file5_url" ng-src="{{url}}"> <img class="col-xs-3 logo-width" ng-repeat="url in (material.file5 || material.file5_url)" ng-src="{{url}}">
</div> </div>
</div> </div>
@ -219,7 +219,7 @@
</p> </p>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="col-xs-12"> <div class="col-xs-12" ng-if="uploadShowFlag">
<button class="btn btn-primary" type="button" <button class="btn btn-primary" type="button"
ngf-select="uploadFile6($files)" ngf-multiple="true"> ngf-select="uploadFile6($files)" ngf-multiple="true">
<i class="fa fa-upload"></i> Upload <i class="fa fa-upload"></i> Upload
@ -229,7 +229,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<uib-progressbar value="file6Progress.value" type="success" animate="true" ng-if="file6Progress.value" max="100" <uib-progressbar value="file6Progress.value" type="success" animate="true" ng-if="file6Progress.value" max="100"
>{{file6Progress.value}}%</uib-progressbar> >{{file6Progress.value}}%</uib-progressbar>
<img class="col-xs-3 logo-width" ng-repeat="url in material.file6_url" ng-src="{{url}}"> <img class="col-xs-3 logo-width" ng-repeat="url in (material.file6 || material.file6_url)" ng-src="{{url}}">
</div> </div>
</div> </div>
@ -240,6 +240,7 @@
<textarea class="form-control" required <textarea class="form-control" required
ng-model="material.description" placeholder="No more than 500" ng-model="material.description" placeholder="No more than 500"
name="description" name="description"
ng-disabled="!uploadShowFlag"
maxlength="500"></textarea> maxlength="500"></textarea>
</div> </div>
@ -248,7 +249,7 @@
</div> </div>
</form> </form>
<div style="text-align: center"> <div style="text-align: center" ng-if="uploadShowFlag">
<a role="button" style="margin-bottom: 25px;" class="btn btn-success btn-sm ng-scope" ng-disabled="!(material.description)" <a role="button" style="margin-bottom: 25px;" class="btn btn-success btn-sm ng-scope" ng-disabled="!(material.description)"
ng-click="submit(uploadForm)">Submit</a> ng-click="submit(uploadForm)">Submit</a>
</div> </div>

Loading…
Cancel
Save