Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
cloud-fb
Commits
608c3f9c
Commit
608c3f9c
authored
May 19, 2021
by
wukaiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计查询与EXCEL下载 数据为null时的格式错误问题
parent
69323753
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
230 additions
and
74 deletions
+230
-74
AdvancePaymentBalanceSumDaoImpl.java
...tistics/internal/dao/AdvancePaymentBalanceSumDaoImpl.java
+117
-40
OperationsReportsDaoImpl.java
...nas/statistics/internal/dao/OperationsReportsDaoImpl.java
+28
-17
PaymentDetailsDaoImpl.java
.../dinas/statistics/internal/dao/PaymentDetailsDaoImpl.java
+0
-0
SalesSummaryDaoImpl.java
...st/dinas/statistics/internal/dao/SalesSummaryDaoImpl.java
+85
-17
No files found.
backend/xyst.dinas.statistics/src/main/java/com/xyst/dinas/statistics/internal/dao/AdvancePaymentBalanceSumDaoImpl.java
View file @
608c3f9c
...
@@ -140,29 +140,30 @@ public class AdvancePaymentBalanceSumDaoImpl implements AdvancePaymentBalanceSum
...
@@ -140,29 +140,30 @@ public class AdvancePaymentBalanceSumDaoImpl implements AdvancePaymentBalanceSum
}
}
@Override
@Override
public
List
<
AdvancePaymentBalanceSum
>
queryAdvancePaymentBalanceSumByConditions
(
String
dealYear
,
String
regionalCompany
)
{
public
List
<
AdvancePaymentBalanceSum
>
queryAdvancePaymentBalanceSumByConditions
(
String
dealYear
,
String
regionalCompany
)
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
StringBuilder
hql
=
new
StringBuilder
(
"select "
);
StringBuilder
hql
=
new
StringBuilder
(
"select "
);
hql
.
append
(
hql
.
append
(
" result.purchaseSandUnit AS purchaseSandUnit, \r\n"
"result.purchaseSandUnit AS purchaseSandUnit,\r\n"
+
"
result.project AS project,\r\n"
+
"
result.project AS project,\r\n"
+
" result.lastYearAdvance AS lastYearAdvance,\r\n"
+
" result.lastYearAdvance AS lastYearAdvance,\r\n"
+
" result.paymentSales AS paymentSales,\r\n"
+
" result.paymentSales AS paymentSales,\r\n"
+
" result.totalAdvancePayment AS totalAdvancePayment,\r\n"
+
" result.totalAdvancePayment AS totalAdvancePayment,\r\n"
+
" result.refundAmount AS refundAmount,\r\n"
+
" result.refundAmount AS refundAmount,\r\n"
+
" result.advanceBalance AS advanceBalance,\r\n"
+
" result.advanceBalance AS advanceBalance,\r\n"
+
" result.janAmount as janAmount,\r\n"
+
" result.janAmount as janAmount,\r\n"
+
" result.febAmount as febAmount,\r\n"
+
" result.febAmount as febAmount,\r\n"
+
" result.marAmount as marAmount,\r\n"
+
" result.marAmount as marAmount,\r\n"
+
" result.aprAmount as aprAmount,\r\n"
+
" result.aprAmount as aprAmount,\r\n"
+
" result.mayAmount as mayAmount,\r\n"
+
" result.mayAmount as mayAmount,\r\n"
+
" result.junAmount as junAmount,\r\n"
+
" result.junAmount as junAmount,\r\n"
+
" result.julAmount as julAmount,\r\n"
+
" result.julAmount as julAmount,\r\n"
+
" result.augAmount as augAmount,\r\n"
+
" result.augAmount as augAmount,\r\n"
+
" result.septAmount as septAmount,\r\n"
+
" result.septAmount as septAmount,\r\n"
+
" result.octAmount as octAmount,\r\n"
+
" result.octAmount as octAmount,\r\n"
+
" result.novAmount as novAmount,\r\n"
+
" result.novAmount as novAmount,\r\n"
+
" result.decAmount as decAmount
"
);
+
" result.decAmount as decAmount
"
);
hql
.
append
(
"FROM "
);
hql
.
append
(
"
FROM "
);
hql
.
append
(
" (SELECT purchaseSandCompany.NAME AS purchaseSandUnit,\r\n"
hql
.
append
(
" (SELECT purchaseSandCompany.NAME AS purchaseSandUnit,\r\n"
+
" projectFiled.project_Name AS project,\r\n"
+
" projectFiled.project_Name AS project,\r\n"
+
" SUM(advancePaymentAndBalanceSummary.last_Year_Advance) AS lastYearAdvance,\r\n"
+
" SUM(advancePaymentAndBalanceSummary.last_Year_Advance) AS lastYearAdvance,\r\n"
...
@@ -510,25 +511,101 @@ public class AdvancePaymentBalanceSumDaoImpl implements AdvancePaymentBalanceSum
...
@@ -510,25 +511,101 @@ public class AdvancePaymentBalanceSumDaoImpl implements AdvancePaymentBalanceSum
List
<
AdvancePaymentBalanceSum
>
list
=
new
ArrayList
<
AdvancePaymentBalanceSum
>();
List
<
AdvancePaymentBalanceSum
>
list
=
new
ArrayList
<
AdvancePaymentBalanceSum
>();
for
(
Tuple
resule
:
resultList
)
{
for
(
Tuple
resule
:
resultList
)
{
AdvancePaymentBalanceSum
advancePaymentBalanceSum
=
new
AdvancePaymentBalanceSum
();
AdvancePaymentBalanceSum
advancePaymentBalanceSum
=
new
AdvancePaymentBalanceSum
();
advancePaymentBalanceSum
.
setPurchaseSandUnit
(
String
.
valueOf
(
resule
.
get
(
0
)));
if
(
String
.
valueOf
(
resule
.
get
(
0
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setProject
(
String
.
valueOf
(
resule
.
get
(
1
)));
advancePaymentBalanceSum
.
setPurchaseSandUnit
(
String
.
valueOf
(
resule
.
get
(
0
)));
advancePaymentBalanceSum
.
setLastYearAdvance
(
String
.
valueOf
(
resule
.
get
(
2
)));
}
else
{
advancePaymentBalanceSum
.
setPaymentSales
(
String
.
valueOf
(
resule
.
get
(
3
)));
advancePaymentBalanceSum
.
setPurchaseSandUnit
(
null
);
advancePaymentBalanceSum
.
setTotalAdvancePayment
(
String
.
valueOf
(
resule
.
get
(
4
)));
}
advancePaymentBalanceSum
.
setRefundAmount
(
String
.
valueOf
(
resule
.
get
(
5
)));
if
(
String
.
valueOf
(
resule
.
get
(
1
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setAdvanceBalance
(
String
.
valueOf
(
resule
.
get
(
6
)));
advancePaymentBalanceSum
.
setProject
(
String
.
valueOf
(
resule
.
get
(
1
)));
advancePaymentBalanceSum
.
setJanAmount
(
String
.
valueOf
(
resule
.
get
(
7
)));
}
else
{
advancePaymentBalanceSum
.
setFebAmount
(
String
.
valueOf
(
resule
.
get
(
8
)));
advancePaymentBalanceSum
.
setProject
(
null
);
advancePaymentBalanceSum
.
setMarAmount
(
String
.
valueOf
(
resule
.
get
(
9
)));
}
advancePaymentBalanceSum
.
setAprAmount
(
String
.
valueOf
(
resule
.
get
(
10
)));
if
(
String
.
valueOf
(
resule
.
get
(
2
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setMayAmount
(
String
.
valueOf
(
resule
.
get
(
11
)));
advancePaymentBalanceSum
.
setLastYearAdvance
(
String
.
valueOf
(
resule
.
get
(
2
)));
advancePaymentBalanceSum
.
setJunAmount
(
String
.
valueOf
(
resule
.
get
(
12
)));
}
else
{
advancePaymentBalanceSum
.
setJulAmount
(
String
.
valueOf
(
resule
.
get
(
13
)));
advancePaymentBalanceSum
.
setLastYearAdvance
(
null
);
advancePaymentBalanceSum
.
setAugAmount
(
String
.
valueOf
(
resule
.
get
(
14
)));
}
advancePaymentBalanceSum
.
setSeptAmount
(
String
.
valueOf
(
resule
.
get
(
15
)));
if
(
String
.
valueOf
(
resule
.
get
(
3
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setOctAmount
(
String
.
valueOf
(
resule
.
get
(
16
)));
advancePaymentBalanceSum
.
setPaymentSales
(
String
.
valueOf
(
resule
.
get
(
3
)));
advancePaymentBalanceSum
.
setNovAmount
(
String
.
valueOf
(
resule
.
get
(
17
)));
}
else
{
advancePaymentBalanceSum
.
setDecAmount
(
String
.
valueOf
(
resule
.
get
(
18
)));
advancePaymentBalanceSum
.
setPaymentSales
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
4
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setTotalAdvancePayment
(
String
.
valueOf
(
resule
.
get
(
4
)));
}
else
{
advancePaymentBalanceSum
.
setTotalAdvancePayment
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
5
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setRefundAmount
(
String
.
valueOf
(
resule
.
get
(
5
)));
}
else
{
advancePaymentBalanceSum
.
setRefundAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
6
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setAdvanceBalance
(
String
.
valueOf
(
resule
.
get
(
6
)));
}
else
{
advancePaymentBalanceSum
.
setAdvanceBalance
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
7
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setJanAmount
(
String
.
valueOf
(
resule
.
get
(
7
)));
}
else
{
advancePaymentBalanceSum
.
setJanAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
8
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setFebAmount
(
String
.
valueOf
(
resule
.
get
(
8
)));
}
else
{
advancePaymentBalanceSum
.
setFebAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
9
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setMarAmount
(
String
.
valueOf
(
resule
.
get
(
9
)));
}
else
{
advancePaymentBalanceSum
.
setMarAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
10
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setAprAmount
(
String
.
valueOf
(
resule
.
get
(
10
)));
}
else
{
advancePaymentBalanceSum
.
setAprAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
11
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setMayAmount
(
String
.
valueOf
(
resule
.
get
(
11
)));
}
else
{
advancePaymentBalanceSum
.
setMayAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
12
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setJunAmount
(
String
.
valueOf
(
resule
.
get
(
12
)));
}
else
{
advancePaymentBalanceSum
.
setJunAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
13
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setJulAmount
(
String
.
valueOf
(
resule
.
get
(
13
)));
}
else
{
advancePaymentBalanceSum
.
setJulAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
14
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setAugAmount
(
String
.
valueOf
(
resule
.
get
(
14
)));
}
else
{
advancePaymentBalanceSum
.
setAugAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
15
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setSeptAmount
(
String
.
valueOf
(
resule
.
get
(
15
)));
}
else
{
advancePaymentBalanceSum
.
setSeptAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
16
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setOctAmount
(
String
.
valueOf
(
resule
.
get
(
16
)));
}
else
{
advancePaymentBalanceSum
.
setOctAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
17
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setNovAmount
(
String
.
valueOf
(
resule
.
get
(
17
)));
}
else
{
advancePaymentBalanceSum
.
setNovAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
18
))
!=
"null"
)
{
advancePaymentBalanceSum
.
setDecAmount
(
String
.
valueOf
(
resule
.
get
(
18
)));
}
else
{
advancePaymentBalanceSum
.
setDecAmount
(
null
);
}
list
.
add
(
advancePaymentBalanceSum
);
list
.
add
(
advancePaymentBalanceSum
);
}
}
return
list
;
return
list
;
...
...
backend/xyst.dinas.statistics/src/main/java/com/xyst/dinas/statistics/internal/dao/OperationsReportsDaoImpl.java
View file @
608c3f9c
...
@@ -22,7 +22,7 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
...
@@ -22,7 +22,7 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
@Override
@Override
public
List
<
OperationsReports
>
loadOperationsReportsByConditions
(
String
startDate
,
String
endDate
,
public
List
<
OperationsReports
>
loadOperationsReportsByConditions
(
String
startDate
,
String
endDate
,
String
OperationsReportType
,
String
stationList
)
{
String
OperationsReportType
,
String
stationList
)
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
StringBuffer
hql
=
new
StringBuffer
(
" SELECT "
);
StringBuffer
hql
=
new
StringBuffer
(
" SELECT "
);
hql
.
append
(
" result.stationName AS stationName, result.dinasTypeName AS dinasTypeName,\r\n"
hql
.
append
(
" result.stationName AS stationName, result.dinasTypeName AS dinasTypeName,\r\n"
...
@@ -48,12 +48,10 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
...
@@ -48,12 +48,10 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
hql
.
append
(
" and salesSummary.deal_Time <= :endDate "
);
hql
.
append
(
" and salesSummary.deal_Time <= :endDate "
);
if
(
stationList
!=
null
&&
!(
stationList
.
isEmpty
()))
if
(
stationList
!=
null
&&
!(
stationList
.
isEmpty
()))
hql
.
append
(
" AND station.id IN :stationList "
);
hql
.
append
(
" AND station.id IN :stationList "
);
hql
.
append
(
" GROUP BY salesSummary.station_id,\r\n"
hql
.
append
(
" GROUP BY salesSummary.station_id,\r\n"
+
" salesSummary.dinas_type_id "
);
+
" salesSummary.dinas_type_id "
);
hql
.
append
(
" UNION ALL "
);
hql
.
append
(
" UNION ALL "
);
hql
.
append
(
" SELECT \r\n"
hql
.
append
(
+
" station.station_Name AS stationName, \r\n"
" SELECT \r\n"
+
" station.station_Name AS stationName, \r\n"
+
" '小计' AS dinasTypeName, "
);
+
" '小计' AS dinasTypeName, "
);
if
(
OperationsReportType
.
equals
(
"daily"
))
{
if
(
OperationsReportType
.
equals
(
"daily"
))
{
hql
.
append
(
" SUM( salesSummary.sale_Deal_Amount ) AS saleDealAmount, \r\n"
hql
.
append
(
" SUM( salesSummary.sale_Deal_Amount ) AS saleDealAmount, \r\n"
+
" SUM( salesSummary.sale_Amount ) AS saleAmount, "
);
+
" SUM( salesSummary.sale_Amount ) AS saleAmount, "
);
...
@@ -74,9 +72,8 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
...
@@ -74,9 +72,8 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
if
(
stationList
!=
null
&&
!(
stationList
.
isEmpty
()))
if
(
stationList
!=
null
&&
!(
stationList
.
isEmpty
()))
hql
.
append
(
" AND station.id IN :stationList "
);
hql
.
append
(
" AND station.id IN :stationList "
);
hql
.
append
(
" GROUP BY salesSummary.station_id "
);
hql
.
append
(
" GROUP BY salesSummary.station_id "
);
hql
.
append
(
" UNION ALL "
);
hql
.
append
(
" UNION ALL "
);
hql
.
append
(
" SELECT '总计' AS stationName, \r\n"
hql
.
append
(
" SELECT '总计' AS stationName, \r\n"
+
" '———' AS dinasTypeName, "
);
+
" '———' AS dinasTypeName, "
);
if
(
OperationsReportType
.
equals
(
"daily"
))
{
if
(
OperationsReportType
.
equals
(
"daily"
))
{
hql
.
append
(
" SUM( salesSummary.sale_Deal_Amount ) AS saleDealAmount,\r\n"
hql
.
append
(
" SUM( salesSummary.sale_Deal_Amount ) AS saleDealAmount,\r\n"
+
" SUM( salesSummary.sale_Amount ) AS saleAmount, "
);
+
" SUM( salesSummary.sale_Amount ) AS saleAmount, "
);
...
@@ -85,10 +82,8 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
...
@@ -85,10 +82,8 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
+
" FORMAT( SUM( salesSummary.sale_Amount ) / 10000 ,2) AS saleAmount, "
);
+
" FORMAT( SUM( salesSummary.sale_Amount ) / 10000 ,2) AS saleAmount, "
);
}
}
hql
.
append
(
" salesSummary.deal_Time as dealTime, \r\n"
hql
.
append
(
" salesSummary.deal_Time as dealTime, \r\n"
+
" station.id as stationId \r\n"
+
" station.id as stationId \r\n"
+
" FROM \r\n"
+
" xyst_dinas_statistics_sale_summary AS salesSummary \r\n"
+
" FROM \r\n"
+
" xyst_dinas_statistics_sale_summary AS salesSummary \r\n"
+
" LEFT JOIN xyst_dinas_biz_station AS station ON station.id = salesSummary.station_id \r\n"
+
" LEFT JOIN xyst_dinas_biz_station AS station ON station.id = salesSummary.station_id \r\n"
+
" LEFT JOIN xyst_dinas_biz_dinas_type AS dinasType ON dinasType.id = salesSummary.dinas_type_id "
);
+
" LEFT JOIN xyst_dinas_biz_dinas_type AS dinasType ON dinasType.id = salesSummary.dinas_type_id "
);
hql
.
append
(
" where 1=1 "
);
hql
.
append
(
" where 1=1 "
);
...
@@ -118,10 +113,26 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
...
@@ -118,10 +113,26 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
List
<
OperationsReports
>
list
=
new
ArrayList
<
OperationsReports
>();
List
<
OperationsReports
>
list
=
new
ArrayList
<
OperationsReports
>();
for
(
Tuple
resule
:
resultList
)
{
for
(
Tuple
resule
:
resultList
)
{
OperationsReports
operationsReports
=
new
OperationsReports
();
OperationsReports
operationsReports
=
new
OperationsReports
();
operationsReports
.
setStationName
(
String
.
valueOf
(
resule
.
get
(
0
)));
if
(
String
.
valueOf
(
resule
.
get
(
0
))
!=
"null"
)
{
operationsReports
.
setDinasTypeName
(
String
.
valueOf
(
resule
.
get
(
1
)));
operationsReports
.
setStationName
(
String
.
valueOf
(
resule
.
get
(
0
)));
operationsReports
.
setSaleDealAmount
(
String
.
valueOf
(
resule
.
get
(
2
)));
}
else
{
operationsReports
.
setSaleAmount
(
String
.
valueOf
(
resule
.
get
(
3
)));
operationsReports
.
setStationName
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
1
))
!=
"null"
)
{
operationsReports
.
setDinasTypeName
(
String
.
valueOf
(
resule
.
get
(
1
)));
}
else
{
operationsReports
.
setDinasTypeName
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
2
))
!=
"null"
)
{
operationsReports
.
setSaleDealAmount
(
String
.
valueOf
(
resule
.
get
(
2
)));
}
else
{
operationsReports
.
setSaleDealAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
3
))
!=
"null"
)
{
operationsReports
.
setSaleAmount
(
String
.
valueOf
(
resule
.
get
(
3
)));
}
else
{
operationsReports
.
setSaleAmount
(
null
);
}
list
.
add
(
operationsReports
);
list
.
add
(
operationsReports
);
}
}
return
list
;
return
list
;
...
...
backend/xyst.dinas.statistics/src/main/java/com/xyst/dinas/statistics/internal/dao/PaymentDetailsDaoImpl.java
View file @
608c3f9c
This diff is collapsed.
Click to expand it.
backend/xyst.dinas.statistics/src/main/java/com/xyst/dinas/statistics/internal/dao/SalesSummaryDaoImpl.java
View file @
608c3f9c
...
@@ -431,23 +431,91 @@ public class SalesSummaryDaoImpl implements SalesSummaryDao {
...
@@ -431,23 +431,91 @@ public class SalesSummaryDaoImpl implements SalesSummaryDao {
List
<
SalesSummary
>
list
=
new
ArrayList
<
SalesSummary
>();
List
<
SalesSummary
>
list
=
new
ArrayList
<
SalesSummary
>();
for
(
Tuple
resule
:
resultList
)
{
for
(
Tuple
resule
:
resultList
)
{
SalesSummary
salesSummary
=
new
SalesSummary
();
SalesSummary
salesSummary
=
new
SalesSummary
();
salesSummary
.
setStation
(
String
.
valueOf
(
resule
.
get
(
0
)));
if
(
String
.
valueOf
(
resule
.
get
(
0
))
!=
"null"
)
{
salesSummary
.
setDinasType
(
String
.
valueOf
(
resule
.
get
(
1
)));
salesSummary
.
setStation
(
String
.
valueOf
(
resule
.
get
(
0
)));
salesSummary
.
setSaleDealAmount
(
String
.
valueOf
(
resule
.
get
(
2
)));
}
else
{
salesSummary
.
setSaleAmount
(
String
.
valueOf
(
resule
.
get
(
3
)));
salesSummary
.
setStation
(
null
);
salesSummary
.
setAvgAmount
(
String
.
valueOf
(
resule
.
get
(
4
)));
}
salesSummary
.
setJanAmount
(
String
.
valueOf
(
resule
.
get
(
5
)));
if
(
String
.
valueOf
(
resule
.
get
(
1
))
!=
"null"
)
{
salesSummary
.
setFebAmount
(
String
.
valueOf
(
resule
.
get
(
6
)));
salesSummary
.
setDinasType
(
String
.
valueOf
(
resule
.
get
(
1
)));
salesSummary
.
setMarAmount
(
String
.
valueOf
(
resule
.
get
(
7
)));
}
else
{
salesSummary
.
setAprAmount
(
String
.
valueOf
(
resule
.
get
(
8
)));
salesSummary
.
setDinasType
(
null
);
salesSummary
.
setMayAmount
(
String
.
valueOf
(
resule
.
get
(
9
)));
}
salesSummary
.
setJunAmount
(
String
.
valueOf
(
resule
.
get
(
10
)));
if
(
String
.
valueOf
(
resule
.
get
(
2
))
!=
"null"
)
{
salesSummary
.
setJulAmount
(
String
.
valueOf
(
resule
.
get
(
11
)));
salesSummary
.
setSaleDealAmount
(
String
.
valueOf
(
resule
.
get
(
2
)));
salesSummary
.
setAugAmount
(
String
.
valueOf
(
resule
.
get
(
12
)));
}
else
{
salesSummary
.
setSeptAmount
(
String
.
valueOf
(
resule
.
get
(
13
)));
salesSummary
.
setSaleDealAmount
(
null
);
salesSummary
.
setOctAmount
(
String
.
valueOf
(
resule
.
get
(
14
)));
}
salesSummary
.
setNovAmount
(
String
.
valueOf
(
resule
.
get
(
15
)));
if
(
String
.
valueOf
(
resule
.
get
(
3
))
!=
"null"
)
{
salesSummary
.
setDecAmount
(
String
.
valueOf
(
resule
.
get
(
16
)));
salesSummary
.
setSaleAmount
(
String
.
valueOf
(
resule
.
get
(
3
)));
}
else
{
salesSummary
.
setSaleAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
4
))
!=
"null"
)
{
salesSummary
.
setAvgAmount
(
String
.
valueOf
(
resule
.
get
(
4
)));
}
else
{
salesSummary
.
setAvgAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
5
))
!=
"null"
)
{
salesSummary
.
setJanAmount
(
String
.
valueOf
(
resule
.
get
(
5
)));
}
else
{
salesSummary
.
setJanAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
6
))
!=
"null"
)
{
salesSummary
.
setFebAmount
(
String
.
valueOf
(
resule
.
get
(
6
)));
}
else
{
salesSummary
.
setFebAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
7
))
!=
"null"
)
{
salesSummary
.
setMarAmount
(
String
.
valueOf
(
resule
.
get
(
7
)));
}
else
{
salesSummary
.
setMarAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
8
))
!=
"null"
)
{
salesSummary
.
setAprAmount
(
String
.
valueOf
(
resule
.
get
(
8
)));
}
else
{
salesSummary
.
setAprAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
9
))
!=
"null"
)
{
salesSummary
.
setMayAmount
(
String
.
valueOf
(
resule
.
get
(
9
)));
}
else
{
salesSummary
.
setMayAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
10
))
!=
"null"
)
{
salesSummary
.
setJunAmount
(
String
.
valueOf
(
resule
.
get
(
10
)));
}
else
{
salesSummary
.
setJunAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
11
))
!=
"null"
)
{
salesSummary
.
setJulAmount
(
String
.
valueOf
(
resule
.
get
(
11
)));
}
else
{
salesSummary
.
setJulAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
12
))
!=
"null"
)
{
salesSummary
.
setAugAmount
(
String
.
valueOf
(
resule
.
get
(
12
)));
}
else
{
salesSummary
.
setAugAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
13
))
!=
"null"
)
{
salesSummary
.
setSeptAmount
(
String
.
valueOf
(
resule
.
get
(
13
)));
}
else
{
salesSummary
.
setSeptAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
14
))
!=
"null"
)
{
salesSummary
.
setOctAmount
(
String
.
valueOf
(
resule
.
get
(
14
)));
}
else
{
salesSummary
.
setOctAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
15
))
!=
"null"
)
{
salesSummary
.
setNovAmount
(
String
.
valueOf
(
resule
.
get
(
15
)));
}
else
{
salesSummary
.
setNovAmount
(
null
);
}
if
(
String
.
valueOf
(
resule
.
get
(
16
))
!=
"null"
)
{
salesSummary
.
setDecAmount
(
String
.
valueOf
(
resule
.
get
(
16
)));
}
else
{
salesSummary
.
setDecAmount
(
null
);
}
list
.
add
(
salesSummary
);
list
.
add
(
salesSummary
);
}
}
return
list
;
return
list
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment