Commit dac447a9 by wukaiqiang

购砂单位专题部分接口

parent 924d2b72
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>8aaee9ff-2a19-4503-ab34-0f72de13dbed</id>
<name>com.xyst.dinas.statistics.advanquery.PurchaseSandCompanyByRegionalCompanySummaryAdvQuery</name>
<title>区域公司购砂单位统计</title>
<description>区域公司购砂单位统计</description>
<define>advanced.query.template</define>
<define-version>1.0</define-version>
<content>
<template>
<sql-type>SQL</sql-type>
<sql>
SELECT
xystOrganization.id AS regionalCompanyId,
xystOrganization.NAME AS regionalCompanyName,
count(purchaseSandCompany.regionalCompany) AS purchaseSandCompanyConcat
FROM
xystOrganization AS xystOrganization
LEFT JOIN PurchaseSandCompany AS purchaseSandCompany on purchaseSandCompany.regionalCompany = xystOrganization.id
WHERE 1=1
AND xystOrganization.type &lt;&gt; 'GROUP_COMPANY'
AND xystOrganization.discard &lt;&gt; 1
GROUP BY xystOrganization.id
</sql>
</template>
</content>
</metadata>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>16574e27-1112-4db8-9631-b34db6d80989</id>
<name>com.xyst.dinas.statistics.advanquery.PurchaseSandCompanyByRegionalCompanySummaryQueryView</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.PurchaseSandCompanyByRegionalCompanySummaryAdvQuery"
}
}
],
"content": {
"isShowView": "table",
"datasource": "com.xyst.dinas.statistics.advanquery.PurchaseSandCompanyByRegionalCompanySummaryAdvQuery",
"arguments": {
"items": [
]
},
"actions": [
{
"param": [],
"enable": "ALL",
"name": "query_export",
"action": "query_export",
"title": "导出",
"type": "",
"privage": "com.xyst.dinas.statistics.auth.SaleAnalyseExport"
}
],
"table": {
"selectType": "MULTI",
"serialNumber": "series",
"pageSize": 10,
"orders":[
],
"expand": false,
"columns": [
{
"type": "VALUE",
"title": "区域公司ID",
"key": "regionalCompanyId",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "区域公司",
"key": "regionalCompanyName",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "区域公司个数",
"key": "purchaseSandCompanyConcat",
"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>b580a4b5-15cd-4bde-b040-56e50f65a02e</id>
<name>com.xyst.dinas.statistics.advanquery.PurchaseSandCompanyConcatSummaryAdvQuery</name>
<title>近半年购砂单位签订趋势</title>
<description>近半年购砂单位签订趋势</description>
<define>advanced.query.template</define>
<define-version>1.0</define-version>
<content>
<template>
<sql-type>SQL</sql-type>
<sql>
select
yearof(purchaseSandCompany.createTime ) AS year,
monthof(purchaseSandCompany.createTime) AS month,
COUNT(1) AS purchaseSandCompanyConcat
FROM
PurchaseSandCompany AS purchaseSandCompany
LEFT JOIN xystOrganization AS xystOrganization ON purchaseSandCompany.regionalCompany = xystOrganization.id
WHERE 1=1
AND xystOrganization.type &lt;&gt; 'GROUP_COMPANY'
AND purchaseSandCompany.discard &lt;&gt; 1
AND purchaseSandCompany.createTime &gt;= :?startDate
AND purchaseSandCompany.createTime &lt;= :?endDate
AND purchaseSandCompany.regionalCompany = :?regionalCompanyId
GROUP BY yearof(purchaseSandCompany.createTime ),
monthof(purchaseSandCompany.createTime)
</sql>
</template>
</content>
</metadata>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>5446e8b5-0fea-49de-8b4b-e1b6b3eb447a</id>
<name>com.xyst.dinas.statistics.advanquery.PurchaseSandCompanyConcatSummaryQueryView</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.PurchaseSandCompanyConcatSummaryAdvQuery"
}
}
],
"content": {
"isShowView": "table",
"datasource": "com.xyst.dinas.statistics.advanquery.PurchaseSandCompanyConcatSummaryAdvQuery",
"arguments": {
"items": [
]
},
"actions": [
{
"param": [],
"enable": "ALL",
"name": "query_export",
"action": "query_export",
"title": "导出",
"type": "",
"privage": "com.xyst.dinas.statistics.auth.SaleAnalyseExport"
}
],
"table": {
"selectType": "MULTI",
"serialNumber": "series",
"pageSize": 10,
"orders":[
],
"expand": false,
"columns": [
{
"type": "VALUE",
"title": "年",
"key": "year",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "月",
"key": "month",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "购砂单位备案个数",
"key": "purchaseSandCompanyConcat",
"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>4123413d-ac6e-4cf9-ae2d-e189688ac69f</id>
<name>com.xyst.dinas.statistics.advanquery.PurchaseSandCompanySalesDetailsSummaryAdvQuery</name>
<title>购砂单位销售详情</title>
<description>购砂单位销售详情</description>
<define>advanced.query.template</define>
<define-version>1.0</define-version>
<content>
<template>
<sql-type>SQL</sql-type>
<sql>
SELECT
purchaseSandCompany.regionalCompany AS regionalCompanyId,
xystOrganization.name AS regionalCompanyName,
purchaseSandCompany.id AS purchaseSandCompanyId,
purchaseSandCompany.name AS purchaseSandCompanyName,
CASE
WHEN
SUM(salesRecord.amount)
IS NULL THEN 0 ELSE
SUM(salesRecord.amount)
END
AS purchaseSandCompanyAmount,
CASE
WHEN
SUM(salesRecord.dealAmount)
IS NULL THEN 0 ELSE
SUM(salesRecord.dealAmount)
END
AS purchaseSandCompanyDealAmount
FROM
PurchaseSandCompany AS purchaseSandCompany
LEFT JOIN xystOrganization AS xystOrganization ON purchaseSandCompany.regionalCompany = xystOrganization.id
LEFT JOIN SalesRecord AS salesRecord ON salesRecord.purchaseSandCompany = purchaseSandCompany.id
WHERE 1=1
AND purchaseSandCompany.discard &lt;&gt; 1
AND purchaseSandCompany.regionalCompany = :?regionalCompanyId
AND xystOrganization.type &lt;&gt; 'GROUP_COMPANY'
GROUP BY purchaseSandCompany.id
</sql>
</template>
</content>
</metadata>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata">
<specification>1.0</specification>
<id>89d8fd43-4ad3-4315-92a4-672b56688299</id>
<name>com.xyst.dinas.statistics.advanquery.PurchaseSandCompanySalesDetailsSummaryQueryView</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.PurchaseSandCompanySalesDetailsSummaryAdvQuery"
}
}
],
"content": {
"isShowView": "table",
"datasource": "com.xyst.dinas.statistics.advanquery.PurchaseSandCompanySalesDetailsSummaryAdvQuery",
"arguments": {
"items": [
]
},
"actions": [
{
"param": [],
"enable": "ALL",
"name": "query_export",
"action": "query_export",
"title": "导出",
"type": "",
"privage": "com.xyst.dinas.statistics.auth.SaleAnalyseExport"
}
],
"table": {
"selectType": "MULTI",
"serialNumber": "series",
"pageSize": 10,
"orders":[
],
"expand": false,
"columns": [
{
"type": "VALUE",
"title": "区域公司ID",
"key": "regionalCompanyId",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "区域公司",
"key": "regionalCompanyName",
"columnType": {
"name" : "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "购砂单位ID",
"key": "purchaseSandCompanyId",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "购砂单位",
"key": "purchaseSandCompanyName",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "购砂单位销售额(元)",
"key": "purchaseSandCompanyAmount",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "购砂单位销售量(吨)",
"key": "purchaseSandCompanyDealAmount",
"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