[R] R Services fix

master
liuxinxin 5 years ago
parent ca012fa766
commit 9a5ce125a2

@ -344,8 +344,10 @@
oo.channel = #{chan} oo.channel = #{chan}
</foreach> </foreach>
</if> </if>
<if test="source != 'ALL'">
AND AND
oo.source != 'system' oo.source = #{source}
</if>
</where> </where>
) o ) o
INNER JOIN sys_clients p INNER JOIN sys_clients p

@ -54,7 +54,7 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
}) })
} }
$scope.initDate(); $scope.initDate();
$scope.params = {source: $scope.serviceInfo.channel,status: 'PAID', channel :'ALL' ,textType: 'all', datefrom: new Date(), dateto: new Date()}; $scope.params = {source: $stateParams.channel,status: 'PAID', channel :'ALL' ,textType: 'all', datefrom: new Date(), dateto: new Date()};
$scope.pagination = {}; $scope.pagination = {};
$scope.today = new Date(); $scope.today = new Date();
$scope.isAll = true; $scope.isAll = true;
@ -100,7 +100,6 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
$scope.loadTradeLogs(1); $scope.loadTradeLogs(1);
}; };
$scope.loadTradeLogs = function (page) { $scope.loadTradeLogs = function (page) {
$scope.params.source = $scope.serviceInfo.channel;
var params = angular.copy($scope.params); var params = angular.copy($scope.params);
if (params.datefrom) { if (params.datefrom) {
params.datefrom = $filter('date')(params.datefrom, 'yyyyMMdd'); params.datefrom = $filter('date')(params.datefrom, 'yyyyMMdd');

Loading…
Cancel
Save