|
|
@@ -6,9 +6,10 @@ const dmsPath = systemConfig.dmsDataProxy
|
|
|
|
|
|
const oauthPath = systemConfig.oauthServiceUrl
|
|
|
|
|
|
-const multiSearch = dmsPath + "/content/multipleFormsOfJointInvestigation"
|
|
|
+const multiSearch = "http://127.0.0.1:10081/dms" + "/content/multipleFormsOfJointInvestigation"
|
|
|
|
|
|
const oauthCountUser = oauthPath + "/user/countUser"
|
|
|
+const oauthCountPermission = oauthPath + "/permission/countPermission"
|
|
|
|
|
|
const preCountDmsId = 1652
|
|
|
|
|
|
@@ -132,7 +133,7 @@ export function countServiceUseByApp(start, end, app) {
|
|
|
return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
}
|
|
|
|
|
|
-export function topService(num) {
|
|
|
+export function topService(num,start, end) {
|
|
|
let data = {
|
|
|
"columnId": preCountDmsId,
|
|
|
"autoSelectItem": false,
|
|
|
@@ -141,7 +142,8 @@ export function topService(num) {
|
|
|
"columnAlias": "precount",
|
|
|
"orderBy": "_select_list,count,desc",
|
|
|
"conditionsList": JSON.stringify([
|
|
|
- ...notNullAndEmptyCheckers("precount", "c_path_comment")
|
|
|
+ ...notNullAndEmptyCheckers("precount", "c_path_comment"),
|
|
|
+ ...timeCheckers(start, end),
|
|
|
]),
|
|
|
"selectItem": JSON.stringify([
|
|
|
{
|
|
|
@@ -166,7 +168,7 @@ export function topService(num) {
|
|
|
return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
}
|
|
|
|
|
|
-export function topUnit(num) {
|
|
|
+export function topUnit(num,start, end) {
|
|
|
let data = {
|
|
|
"columnId": preCountDmsId,
|
|
|
"autoSelectItem": false,
|
|
|
@@ -175,7 +177,8 @@ export function topUnit(num) {
|
|
|
"columnAlias": "precount",
|
|
|
"orderBy": "_select_list,count,desc",
|
|
|
"conditionsList": JSON.stringify([
|
|
|
- ...notNullAndEmptyCheckers("precount", "c_unit")
|
|
|
+ ...notNullAndEmptyCheckers("precount", "c_unit"),
|
|
|
+ ...timeCheckers(start, end),
|
|
|
]),
|
|
|
"selectItem": JSON.stringify([
|
|
|
{
|
|
|
@@ -199,7 +202,40 @@ export function topUnit(num) {
|
|
|
}
|
|
|
return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
}
|
|
|
-
|
|
|
+export function topApp(num,start, end) {
|
|
|
+ let data = {
|
|
|
+ "columnId": preCountDmsId,
|
|
|
+ "autoSelectItem": false,
|
|
|
+ "page": 1,
|
|
|
+ "pageSize": num,
|
|
|
+ "columnAlias": "precount",
|
|
|
+ "orderBy": "_select_list,count,desc",
|
|
|
+ "conditionsList": JSON.stringify([
|
|
|
+ ...notNullAndEmptyCheckers("precount", "c_application"),
|
|
|
+ ...timeCheckers(start, end),
|
|
|
+ ]),
|
|
|
+ "selectItem": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_application",
|
|
|
+ "alias": "name"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_count",
|
|
|
+ "function": "sum",
|
|
|
+ "alias": "count"
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ "groupBy": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_application"
|
|
|
+ }
|
|
|
+ ])
|
|
|
+ }
|
|
|
+ return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
+}
|
|
|
export function totalCount(start, end) {
|
|
|
let data = {
|
|
|
"columnId": preCountDmsId,
|
|
|
@@ -255,6 +291,169 @@ export function totalCountGroupByTime(start, end) {
|
|
|
|
|
|
return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
}
|
|
|
+export function countUserList(start, end) {
|
|
|
+ let data = {
|
|
|
+ "columnId": preCountDmsId,
|
|
|
+ "autoSelectItem": false,
|
|
|
+ "page": 1,
|
|
|
+ "pageSize": 10000,
|
|
|
+ "columnAlias": "precount",
|
|
|
+ "selectItem": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_count",
|
|
|
+ "function": "sum",
|
|
|
+ "alias": "count"
|
|
|
+ }, {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_user_name",
|
|
|
+ "function": "count",
|
|
|
+ "alias": "user",
|
|
|
+ "distinct": true
|
|
|
+ }, {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_date",
|
|
|
+ "function": "count",
|
|
|
+ "alias": "active",
|
|
|
+ "distinct": true
|
|
|
+ }, {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_unit",
|
|
|
+ "alias": "unit"
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ "groupBy": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_unit"
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ "conditionsList": JSON.stringify([
|
|
|
+ ...timeCheckers(start, end),
|
|
|
+ ...notNullAndEmptyCheckers("precount", "c_unit")
|
|
|
+ ]),
|
|
|
+ }
|
|
|
+ return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
+}
|
|
|
+export function countAppInfo(start, end, app) {
|
|
|
+ let data = {
|
|
|
+ "columnId": preCountDmsId,
|
|
|
+ "autoSelectItem": false,
|
|
|
+ "page": 1,
|
|
|
+ "pageSize": 10000,
|
|
|
+ "columnAlias": "precount",
|
|
|
+ "selectItem": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_count",
|
|
|
+ "function": "sum",
|
|
|
+ "alias": "count"
|
|
|
+ }, {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_user_name",
|
|
|
+ "function": "count",
|
|
|
+ "alias": "user",
|
|
|
+ "distinct": true
|
|
|
+ }, {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_date",
|
|
|
+ "alias": "time"
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ "groupBy": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_date"
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ "conditionsList": JSON.stringify([
|
|
|
+ ...timeCheckers(start, end),
|
|
|
+ {
|
|
|
+ "columnId": "precount",
|
|
|
+ "columnName": "c_application",
|
|
|
+ "condition": "=",
|
|
|
+ "value": app
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ }
|
|
|
+
|
|
|
+ return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
+}
|
|
|
+export function countGroupService(start, end){
|
|
|
+ let data = {
|
|
|
+ "columnId": preCountDmsId,
|
|
|
+ "autoSelectItem": false,
|
|
|
+ "page": 1,
|
|
|
+ "pageSize": 10000,
|
|
|
+ "columnAlias": "precount",
|
|
|
+ "selectItem": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_count",
|
|
|
+ "function": "sum",
|
|
|
+ "alias": "count"
|
|
|
+ }, {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_path_comment",
|
|
|
+ "alias": "service"
|
|
|
+ }, {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_path",
|
|
|
+ "alias": "service_path"
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ "groupBy": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_path_comment"
|
|
|
+ },{
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_path"
|
|
|
+ },
|
|
|
+ ]),
|
|
|
+ "conditionsList": JSON.stringify([
|
|
|
+ ...timeCheckers(start, end),
|
|
|
+ ...notNullAndEmptyCheckers("precount","c_path_comment"),
|
|
|
+ ...notNullAndEmptyCheckers("precount","c_path")
|
|
|
+ ]),
|
|
|
+ }
|
|
|
+
|
|
|
+ return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
+}
|
|
|
+export function countUnitActive(start, end){
|
|
|
+ let data = {
|
|
|
+ "columnId": preCountDmsId,
|
|
|
+ "autoSelectItem": false,
|
|
|
+ "page": 1,
|
|
|
+ "pageSize": 10000,
|
|
|
+ "columnAlias": "precount",
|
|
|
+ "selectItem": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_unit",
|
|
|
+ "function": "count",
|
|
|
+ "alias": "count",
|
|
|
+ "disinct":true
|
|
|
+ }, {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_date",
|
|
|
+ "alias": "time"
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ "groupBy": JSON.stringify([
|
|
|
+ {
|
|
|
+ "table": "precount",
|
|
|
+ "column": "c_date"
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ "conditionsList": JSON.stringify([
|
|
|
+ ...timeCheckers(start, end),
|
|
|
+ ...notNullAndEmptyCheckers("precount", "c_unit"),
|
|
|
+ ]),
|
|
|
+ }
|
|
|
+
|
|
|
+ return resolveDmsMultiTableResult(postform(multiSearch, data));
|
|
|
+}
|
|
|
|
|
|
export function countUserData() {
|
|
|
return resolveoauthResult(get(oauthCountUser))
|
|
|
@@ -277,6 +476,10 @@ export function countUserDataByTime(time1, time2, time3) {
|
|
|
return resolveoauthResult(postform(oauthCountUser, data))
|
|
|
}
|
|
|
|
|
|
+export function coutService() {
|
|
|
+ return resolveoauthResult(postform(oauthCountPermission))
|
|
|
+}
|
|
|
+
|
|
|
function timeCheckers(start, end) {
|
|
|
let output = []
|
|
|
if (start != null) {
|