Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
ff4a5ebd
Commit
ff4a5ebd
authored
Jun 14, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'base-modify' of
http://113.105.137.151:22280/youjj/cloud-platform
into base-modify
parents
a69d75f6
bce3f156
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
10 deletions
+38
-10
TourGoodVerification.java
...a/com/xxfc/platform/tour/entity/TourGoodVerification.java
+1
-8
TourGoodBiz.java
...src/main/java/com/xxfc/platform/tour/biz/TourGoodBiz.java
+37
-1
TourGoodVerificationBiz.java
...a/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
+0
-1
No files found.
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/entity/TourGoodVerification.java
View file @
ff4a5ebd
...
@@ -50,14 +50,7 @@ public class TourGoodVerification implements Serializable {
...
@@ -50,14 +50,7 @@ public class TourGoodVerification implements Serializable {
@ApiModelProperty
(
value
=
"出发路线id"
)
@ApiModelProperty
(
value
=
"出发路线id"
)
private
Integer
siteId
;
private
Integer
siteId
;
/**
* 出发时间
*/
@Column
(
name
=
"depart_time"
)
@ApiModelProperty
(
"出发时间"
)
private
Long
departTime
;
/**
/**
* 总人数
* 总人数
*/
*/
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodBiz.java
View file @
ff4a5ebd
...
@@ -46,6 +46,8 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
...
@@ -46,6 +46,8 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
private
TourGoodTagBiz
tagBiz
;
private
TourGoodTagBiz
tagBiz
;
@Autowired
@Autowired
private
TourGoodSpeBiz
speBiz
;
private
TourGoodSpeBiz
speBiz
;
@Autowired
private
TourGoodVerificationBiz
verificationBiz
;
@Autowired
@Autowired
private
UserFeign
userFeign
;
private
UserFeign
userFeign
;
...
@@ -141,6 +143,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
...
@@ -141,6 +143,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
site
.
setGoodId
(
goodId
);
site
.
setGoodId
(
goodId
);
if
(
siteId
==
null
||
siteId
==
0
){
if
(
siteId
==
null
||
siteId
==
0
){
siteBiz
.
insertSelective
(
site
);
siteBiz
.
insertSelective
(
site
);
siteId
=
site
.
getId
();
}
else
{
}
else
{
siteBiz
.
updateById
(
site
);
siteBiz
.
updateById
(
site
);
siteIds
.
add
(
siteId
);
siteIds
.
add
(
siteId
);
...
@@ -210,9 +213,9 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
...
@@ -210,9 +213,9 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
}
}
if
(
priceId
==
null
||
priceId
==
0
){
if
(
priceId
==
null
||
priceId
==
0
){
speBiz
.
insertSelective
(
spePrice
);
speBiz
.
insertSelective
(
spePrice
);
priceId
=
spePrice
.
getId
();
}
else
{
}
else
{
speBiz
.
updateById
(
spePrice
);
speBiz
.
updateById
(
spePrice
);
priceId
=
spePrice
.
getId
();
priceIds
.
add
(
priceId
);
priceIds
.
add
(
priceId
);
}
}
prices
.
add
(
priceId
);
prices
.
add
(
priceId
);
...
@@ -221,7 +224,40 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
...
@@ -221,7 +224,40 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
speBiz
.
delGoodSpe
(
null
,
priceIds
);
speBiz
.
delGoodSpe
(
null
,
priceIds
);
}
}
}
}
if
(
sites
.
size
()>
0
){
List
<
Integer
>
vids
=
new
ArrayList
<>();
List
<
TourGoodVerification
>
verifications
=
new
ArrayList
<>();
for
(
Integer
siteId:
sites
){
if
(
prices
.
size
()>
0
){
for
(
Integer
priceId:
prices
){
TourGoodVerification
verification
=
new
TourGoodVerification
();
verification
.
setGoodId
(
goodId
);
verification
.
setSiteId
(
siteId
);
verification
.
setSpeId
(
priceId
);
verification
.
setIsDel
(
0
);
TourGoodVerification
verification1
=
verificationBiz
.
selectOne
(
verification
);
if
(
verification1
==
null
){
verification
.
setTotalPerson
(
0
);
verification
.
setVerificationPerson
(
0
);
verification
.
setStatus
(
0
);
verifications
.
add
(
verification
);
}
else
{
vids
.
add
(
verification1
.
getId
());
}
}
}
}
if
(
vids
.
size
()>
0
){
verificationBiz
.
delGoodVerification
(
vids
);
}
if
(
verifications
.
size
()>
0
){
verificationBiz
.
addBathTourGoodVerification
(
verifications
);
}
}
List
<
TourGoodVerification
>
verifications
=
new
ArrayList
<>();
List
<
TourGoodVerification
>
verifications
=
new
ArrayList
<>();
}
}
}
catch
(
IllegalAccessException
e
)
{
}
catch
(
IllegalAccessException
e
)
{
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
View file @
ff4a5ebd
...
@@ -4,7 +4,6 @@ import org.springframework.stereotype.Service;
...
@@ -4,7 +4,6 @@ import org.springframework.stereotype.Service;
import
com.xxfc.platform.tour.entity.TourGoodVerification
;
import
com.xxfc.platform.tour.entity.TourGoodVerification
;
import
com.xxfc.platform.tour.mapper.TourGoodVerificationMapper
;
import
com.xxfc.platform.tour.mapper.TourGoodVerificationMapper
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
java.util.List
;
import
java.util.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