Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
505cb3f5
Commit
505cb3f5
authored
Oct 21, 2020
by
lzxry
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分摊+字段套餐
parent
ed285c85
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
15 deletions
+34
-15
workspace.xml
.idea/workspace.xml
+0
-0
manage.iml
manage.iml
+22
-10
pom.xml
pom.xml
+6
-5
ShareIncomeServiceImpl.java
...main/java/common/service/impl/ShareIncomeServiceImpl.java
+6
-0
No files found.
.idea/workspace.xml
View file @
505cb3f5
This diff is collapsed.
Click to expand it.
manage.iml
View file @
505cb3f5
...
...
@@ -19,6 +19,7 @@
<setting
name=
"validation-enabled"
value=
"true"
/>
<setting
name=
"provider-name"
value=
"Hibernate"
/>
<datasource-mapping>
<factory-entry
name=
"Entities"
/>
<factory-entry
name=
"defaultUnit"
/>
<factory-entry
name=
"dmpUnit"
/>
<factory-entry
name=
"ioUnit"
/>
...
...
@@ -26,7 +27,6 @@
<factory-entry
name=
"tkioUnit"
/>
<factory-entry
name=
"tkrackUnit"
/>
</datasource-mapping>
<naming-strategy-map
/>
</configuration>
</facet>
</component>
...
...
@@ -40,24 +40,36 @@
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
scope=
"PROVIDED"
name=
"Maven: javax.servlet:javax.servlet-api:3.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-core:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-logging:commons-logging:1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-beans:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-web:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-webmvc:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-expression:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context-support:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aspects:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aop:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.8.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.8.5"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"PROVIDED"
name=
"Maven: javax.servlet:javax.servlet-api:3.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-core:4.3.29.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-logging:commons-logging:1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-beans:4.3.29.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-web:4.3.29.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-webmvc:4.3.29.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-expression:4.3.29.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context:4.3.29.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context-support:4.3.29.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-jpa:1.3.2.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-commons:1.5.1.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-orm:3.1.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jdbc:3.1.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-tx:3.1.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.aspectj:aspectjrt:1.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aspects:4.3.
4
.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aspects:4.3.
29
.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.aspectj:aspectjweaver:1.8.9"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aop:4.3.
4
.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aop:4.3.
29
.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-redis:1.7.1.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-keyvalue:1.1.1.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-oxm:4.2.5.RELEASE"
level=
"project"
/>
...
...
@@ -87,9 +99,9 @@
<orderEntry
type=
"library"
name=
"Maven: org.logback-extensions:logback-ext-spring:0.1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.javassist:javassist:3.20.0-GA"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: mysql:mysql-connector-java:5.1.25"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.
5
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.8.
5
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.8.
5
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.
11
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.8.
11.6
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.8.
10
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.inject:javax.inject:1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: redis.clients:jedis:2.8.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.commons:commons-pool2:2.3"
level=
"project"
/>
...
...
@@ -97,7 +109,7 @@
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.alibaba:jconsole:1.8.0"
>
<CLASSES>
<root
url=
"jar://
D:/Program Files/Java/jdk1.8.0_18
1/lib/jconsole.jar!/"
/>
<root
url=
"jar://
C:/Program Files/Java/jdk1.8.0_20
1/lib/jconsole.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
...
...
@@ -106,7 +118,7 @@
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.alibaba:tools:1.8.0"
>
<CLASSES>
<root
url=
"jar://
D:/Program Files/Java/jdk1.8.0_18
1/lib/tools.jar!/"
/>
<root
url=
"jar://
C:/Program Files/Java/jdk1.8.0_20
1/lib/tools.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
...
...
pom.xml
View file @
505cb3f5
...
...
@@ -30,9 +30,7 @@
<profiles>
<profile>
<id>
dev
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<label>
dev
</label>
<!--数据源配置-->
...
...
@@ -97,6 +95,9 @@
<profile>
<id>
test
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<label>
dev
</label>
<!--数据源配置-->
...
...
@@ -156,10 +157,10 @@
<redis.ip.requesttimes>
5
</redis.ip.requesttimes>
<redis.ip.unknown.requesttimes>
5
</redis.ip.unknown.requesttimes>
<redis.surl.host>
1
0.3.20.33
</redis.surl.host>
<redis.surl.host>
1
27.0.0.1
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.event.host>
1
0.3.20.33
</redis.event.host>
<redis.event.host>
1
27.0.0.1
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.database>
13
</redis.event.database>
<!--Redis setting//end-->
...
...
src/main/java/common/service/impl/ShareIncomeServiceImpl.java
View file @
505cb3f5
...
...
@@ -54,6 +54,8 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
private
AccountRepository
accountRepository
;
@Autowired
private
AccountFlowRestrictService
accountFlowRestrictService
;
@Autowired
private
PackageBaseRepository
packageBaseRepository
;
@Override
public
List
<
Contract
>
shareIncomeList
(
User
loginAccount
,
String
startDate
,
String
endDate
,
String
platform
,
String
bodyCode
,
String
serchName
)
{
...
...
@@ -110,6 +112,8 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
List
<
BarrioCity
>
barrioCities
=
barrioCityRepository
.
findAll
();
Map
<
Long
,
BarrioCity
>
barrioCitiesNameMap
=
barrioCities
.
stream
().
collect
(
Collectors
.
toMap
(
BarrioCity:
:
getId
,
Function
.
identity
(),
(
v1
,
v2
)
->
v1
));
List
<
PackageBase
>
packageBases
=
packageBaseRepository
.
findByPlatAndStatus
(
platform
,
1
);
Map
<
Long
,
PackageBase
>
packageBaseMap
=
packageBases
.
stream
().
collect
(
Collectors
.
toMap
(
PackageBase:
:
getId
,
Function
.
identity
(),
(
v1
,
v2
)
->
v1
));
DateTime
start
=
new
DateTime
(
startDate
);
DateTime
end
=
new
DateTime
(
endDate
);
...
...
@@ -139,6 +143,8 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
v
.
setMyBodyName
(
bodiesNameMap
.
get
(
v
.
getMyBodyCode
()));
if
(
v
.
getBarrioId
()!=
null
)
v
.
setBarrioName
(
barrioCitiesNameMap
.
get
(
barrioCitiesNameMap
.
get
(
v
.
getBarrioId
()).
getParentId
()).
getName
());
if
(
v
.
getPriceLevel
()!=
null
)
v
.
setPriceLevelName
(
packageBaseMap
.
get
(
v
.
getPriceLevel
()).
getPackageName
());
});
}
logger
.
info
(
"计算分摊收入耗时:{}"
,
(
System
.
currentTimeMillis
()
-
start_
));
...
...
李引
@liyin
mentioned in commit
1249b9f9
Oct 21, 2020
mentioned in commit
1249b9f9
mentioned in commit 1249b9f9cddbea1139f17f5f25eead4ac2630d87
Toggle commit 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