Commit 6d9b0025 by 高晓磊

综合BI 专题

parent bbef2a0e
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>67482357-5796-47fb-855e-17ec0286e50c</id>
<name>com.xyst.dinas.statistics.advanquery.DinasTypeProductionStatisticsAdvQuery</name>
<title>砂石类型生产统计</title>
<description>砂石类型生产统计</description>
<define>advanced.query.template</define>
<define-version>1.0</define-version>
<content>
<template>
<sql-type>NPSQL</sql-type>
<sql>
SELECT
bdt.dinasTypeName as typeName,sum(dtd.dinasWeight)/1000 as weight, bdt.type as type
FROM
xystOrganization AS dbo
LEFT JOIN ProductionPlanReport AS ppr
LEFT JOIN ProductionPlanReportAssociatedDinasTypeDetails as dtd on dtd.master = ppr.id
LEFT JOIN DinasType as bdt on bdt.id = dtd.dinasType
on ppr.regionalCompany = dbo.id
where (dbo.discard = 0 or dbo.discard is null)
and ppr.warehousingStatus = 1
and ppr.productionPlanDate &gt;= :?startDate
and Ppr.productionPlanDate &lt;= :?endDate
GROUP BY bdt.id
</sql>
</template>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>c2cf43c8-8fc4-49cc-95ee-2fbccc5f3abf</id>
<name>com.xyst.dinas.statistics.advanquery.DinasTypeProductionStatisticsQueryView</name>
<title>砂石类型生产统计</title>
<description>砂石类型生产统计</description>
<define>advanced.query.view</define>
<define-version>1.0</define-version>
<content>
<view>
{
"name": "砂石类型生产统计",
"title": "砂石类型生产统计",
"description": "砂石类型生产统计",
"actions": [],
"scenes" : {
"isShowScenes" : true
},
"fuzzySearch": [
],
"isShowTabCountZero": true,
"groups": [
{
"name": "all",
"title": "全部",
"content": {
"datasource": "com.xyst.dinas.statistics.advanquery.DinasTypeProductionStatisticsAdvQuery"
}
}
],
"content": {
"isShowView": "table",
"datasource": "com.xyst.dinas.statistics.advanquery.DinasTypeProductionStatisticsAdvQuery",
"arguments": {
"items": [
]
},
"actions": [
],
"table": {
"selectType": "MULTI",
"serialNumber": "series",
"pageSize": 10,
"orders":[
],
"expand": false,
"columns": [
{
"type": "VALUE",
"title": "砂石种类名称",
"key": "typeName",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "生产量(万吨)",
"key": "weight",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "类型(0砂1石)",
"key": "type",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
}
]
}
}
}
</view>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>a645492e-7fb0-4d48-9499-20ac2d06425e</id>
<name>com.xyst.dinas.statistics.advanquery.RegionalCompanyDischargingCountStatisticsAdvQuery</name>
<title>区域公司接驳量统计</title>
<description>区域公司接驳量统计</description>
<define>advanced.query.template</define>
<define-version>1.0</define-version>
<content>
<template>
<sql-type>NPSQL</sql-type>
<sql>
SELECT
dbo.id,
dbo.NAME as name,
sum( dpd.dischargingWeight )/ 10000 as weight,
d.dw/10000 as allSumCount
FROM
xystOrganization AS dbo
LEFT JOIN Discharging AS dpd ON dbo.id = dpd.regionalCompany
LEFT JOIN ( SELECT sum( dischargingWeight ) AS dw FROM Discharging WHERE parentId IS NULL
and dischargingTime &gt;= :?startDate and dischargingTime &lt;= :?endDate
) AS d ON 1 = 1
WHERE
dpd.del = 0
AND ( dbo.discard IS NULL OR dbo.discard = 0 )
AND dpd.parentId IS NULL
and dpd.dischargingTime &gt;= :?startDate and dpd.dischargingTime &lt;= :?endDate
GROUP BY
dbo.id
order by weight desc
</sql>
</template>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>7e2e8bdc-b54f-4c14-b5ec-a58bddd2cec5</id>
<name>com.xyst.dinas.statistics.advanquery.RegionalCompanyDischargingCountStatisticsQueryView</name>
<title>区域公司接驳量统计</title>
<description>区域公司接驳量统计</description>
<define>advanced.query.view</define>
<define-version>1.0</define-version>
<content>
<view>
{
"name": "区域公司接驳量统计",
"title": "区域公司接驳量统计",
"description": "区域公司接驳量统计",
"actions": [],
"scenes" : {
"isShowScenes" : true
},
"fuzzySearch": [
],
"isShowTabCountZero": true,
"groups": [
{
"name": "all",
"title": "全部",
"content": {
"datasource": "com.xyst.dinas.statistics.advanquery.RegionalCompanyDischargingCountStatisticsAdvQuery"
}
}
],
"content": {
"isShowView": "table",
"datasource": "com.xyst.dinas.statistics.advanquery.RegionalCompanyDischargingCountStatisticsAdvQuery",
"arguments": {
"items": [
]
},
"actions": [
],
"table": {
"selectType": "MULTI",
"serialNumber": "series",
"pageSize": 10,
"orders":[
],
"expand": false,
"columns": [
{
"type": "VALUE",
"title": "区域公司名称",
"key": "name",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "接驳量(万吨)",
"key": "weight",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "总接驳量(所有区域公司的)",
"key": "allSumCount",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
}
]
}
}
}
</view>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>d045e2ce-fc86-4d92-a3e5-6d84132929c5</id>
<name>com.xyst.dinas.statistics.advanquery.RegionalCompanyProductionStatisticsAdvQuery</name>
<title>区域公司生产统计</title>
<description>区域公司生产统计</description>
<define>advanced.query.template</define>
<define-version>1.0</define-version>
<content>
<template>
<sql-type>NPSQL</sql-type>
<sql>
SELECT
dbo.name ,sum(dtd.dinasWeight)/10000 as weight
FROM
xystOrganization AS dbo
LEFT JOIN ProductionPlanReport AS ppr
LEFT JOIN ProductionPlanReportAssociatedDinasTypeDetails as dtd on dtd.master = ppr.id
on ppr.regionalCompany = dbo.id
where (dbo.discard = 0 or dbo.discard is null)
and ppr.warehousingStatus = 1
and ppr.productionPlanDate &gt;= :?startDate
and ppr.productionPlanDate &lt;= :?endDate
GROUP BY dbo.id;
</sql>
</template>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>baaef966-2224-4d12-a267-4fa059da3a32</id>
<name>com.xyst.dinas.statistics.advanquery.RegionalCompanyProductionStatisticsQueryView</name>
<title>区域公司生产统计</title>
<description>区域公司生产统计</description>
<define>advanced.query.view</define>
<define-version>1.0</define-version>
<content>
<view>
{
"name": "区域公司生产统计",
"title": "区域公司生产统计",
"description": "区域公司生产统计",
"actions": [],
"scenes" : {
"isShowScenes" : true
},
"fuzzySearch": [
],
"isShowTabCountZero": true,
"groups": [
{
"name": "all",
"title": "全部",
"content": {
"datasource": "com.xyst.dinas.statistics.advanquery.RegionalCompanyProductionStatisticsAdvQuery"
}
}
],
"content": {
"isShowView": "table",
"datasource": "com.xyst.dinas.statistics.advanquery.RegionalCompanyProductionStatisticsAdvQuery",
"arguments": {
"items": [
]
},
"actions": [
],
"table": {
"selectType": "MULTI",
"serialNumber": "series",
"pageSize": 10,
"orders":[
],
"expand": false,
"columns": [
{
"type": "VALUE",
"title": "区域公司名称",
"key": "name",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "生产量(万吨)",
"key": "weight",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
}
]
}
}
}
</view>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>d233edad-1934-45d6-8bad-d524dd29bc61</id>
<name>com.xyst.dinas.statistics.advanquery.SandMiningAreaScheduleAdvQuery</name>
<title>采区进度</title>
<description>采区进度</description>
<define>advanced.query.template</define>
<define-version>1.0</define-version>
<content>
<template>
<sql-type>NPSQL</sql-type>
<sql>
SELECT
( ma.sandMiningQuantity ) AS quantity,
sum( pd.dischargingWeight )/10000 AS sumWeight,
(
sum( pd.dischargingWeight )/(
sandMiningQuantity * 10000
)) AS quantityRate,
ma.sandMiningAreaName as sandAreaName
FROM
Discharging AS pd
INNER JOIN SandMiningArea AS ma ON pd.sandMiningArea = ma.id
WHERE
pd.del = 0
AND ma.del = 0
and pd.parentId is null
AND year(pd.dischargingTime ) = year(now())
GROUP BY
ma.id
</sql>
</template>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>f578ba36-90db-4386-b823-9cd13d6e8712</id>
<name>com.xyst.dinas.statistics.advanquery.SandMiningAreaScheduleQueryView</name>
<title>采区进度</title>
<description>采区进度</description>
<define>advanced.query.view</define>
<define-version>1.0</define-version>
<content>
<view>
{
"name": "采区进度",
"title": "采区进度",
"description": "采区进度",
"actions": [],
"scenes" : {
"isShowScenes" : true
},
"fuzzySearch": [
],
"isShowTabCountZero": true,
"groups": [
{
"name": "all",
"title": "全部",
"content": {
"datasource": "com.xyst.dinas.statistics.advanquery.SandMiningAreaScheduleAdvQuery"
}
}
],
"content": {
"isShowView": "table",
"datasource": "com.xyst.dinas.statistics.advanquery.SandMiningAreaScheduleAdvQuery",
"arguments": {
"items": [
]
},
"actions": [
],
"table": {
"selectType": "MULTI",
"serialNumber": "series",
"pageSize": 10,
"orders":[
],
"expand": false,
"columns": [
{
"type": "VALUE",
"title": "计划量(万吨炖)",
"key": "quantity",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "实际接驳量(万吨)",
"key": "sumWeight",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "计划进度(没有百分比的)",
"key": "quantityRate",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "采区名称",
"key": "sandAreaName",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
}
]
}
}
}
</view>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>8ef5b5a1-ec85-4b38-bbc0-aa9cab64ab9f</id>
<name>com.xyst.dinas.statistics.advanquery.SandMiningScheduleAdvQuery</name>
<title>采砂许可进度</title>
<description>采砂许可进度</description>
<define>advanced.query.template</define>
<define-version>1.0</define-version>
<content>
<template>
<sql-type>NPSQL</sql-type>
<sql>
SELECT
psm.id,
bsi.shipName AS shipName,
(sum( dpd.dischargingWeight )/10000) AS sumWeight,
(1+datediff ( psm.sandMiningEnd, psm.sandMiningStart ))* psm.miningVolume AS sumVolume.
sum( dpd.dischargingWeight ) / ((1+datediff ( psm.sandMiningEnd, psm.sandMiningStart ))* psm.miningVolume) as volumeRate
FROM
SandMining AS psm
LEFT JOIN ShipInfo bsi ON psm.ship = bsi.id
LEFT JOIN Discharging AS dpd ON dpd.sandMiningShip = bsi.id
WHERE
dpd.dischargingTime &gt;= psm.sandMiningStart
AND dpd.dischargingTime &lt;= psm.sandMiningEnd
and dpd.type = 0
AND dpd.del = 0
AND psm.del = 0
AND bsi.del = 0
and dpd.type = 0
AND psm.STATUS = 1
GROUP BY
psm.id
</sql>
</template>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>103aa4ac-64c1-4aa5-9826-b6ab2fb056e3</id>
<name>com.xyst.dinas.statistics.advanquery.SandMiningScheduleQueryView</name>
<title>采砂许可进度</title>
<description>采砂许可进度</description>
<define>advanced.query.view</define>
<define-version>1.0</define-version>
<content>
<view>
{
"name": "采砂许可进度",
"title": "采砂许可进度",
"description": "采砂许可进度",
"actions": [],
"scenes" : {
"isShowScenes" : true
},
"fuzzySearch": [
],
"isShowTabCountZero": true,
"groups": [
{
"name": "all",
"title": "全部",
"content": {
"datasource": "com.xyst.dinas.statistics.advanquery.SandMiningScheduleAdvQuery"
}
}
],
"content": {
"isShowView": "table",
"datasource": "com.xyst.dinas.statistics.advanquery.SandMiningScheduleAdvQuery",
"arguments": {
"items": [
]
},
"actions": [
],
"table": {
"selectType": "MULTI",
"serialNumber": "series",
"pageSize": 10,
"orders":[
],
"expand": false,
"columns": [
{
"type": "VALUE",
"title": "计划量(万吨炖)",
"key": "sumVolume",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
},
"format": {
"type": "DATE"
}
},
{
"type": "VALUE",
"title": "实际接驳量(万吨)",
"key": "sumWeight",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "计划进度(没有百分比的)",
"key": "volumeRate",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "船只名称",
"key": "shipName",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
}
]
}
}
}
</view>
</content>
</metadata>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment