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
ff4ea3b1
Commit
ff4ea3b1
authored
Nov 04, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-chw' into dev-chw
parents
b8c20be5
ac623f80
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
2 deletions
+32
-2
CompanySearchDTO.java
...m/github/wxiaoqi/security/admin/dto/CompanySearchDTO.java
+2
-0
BranchCompanyBiz.java
...m/github/wxiaoqi/security/admin/biz/BranchCompanyBiz.java
+3
-0
BranchCompanyGiveBiz.java
...thub/wxiaoqi/security/admin/biz/BranchCompanyGiveBiz.java
+6
-2
AppBranchCompanyController.java
...iaoqi/security/admin/rest/AppBranchCompanyController.java
+21
-0
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/CompanySearchDTO.java
View file @
ff4ea3b1
...
@@ -32,5 +32,7 @@ public class CompanySearchDTO extends PageParam implements DataInter {
...
@@ -32,5 +32,7 @@ public class CompanySearchDTO extends PageParam implements DataInter {
Integer
goodsType
;
Integer
goodsType
;
Integer
isBrowse
;
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/BranchCompanyBiz.java
View file @
ff4ea3b1
...
@@ -36,6 +36,9 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
...
@@ -36,6 +36,9 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
public
ObjectRestResponse
addOrUpd
(
BranchCompany
branchCompany
){
public
ObjectRestResponse
addOrUpd
(
BranchCompany
branchCompany
){
Long
id
=
branchCompany
.
getId
()
==
null
?
0L
:
branchCompany
.
getId
();
Long
id
=
branchCompany
.
getId
()
==
null
?
0L
:
branchCompany
.
getId
();
BranchCompany
branchCompany1
=
selectById
(
id
);
BranchCompany
branchCompany1
=
selectById
(
id
);
branchCompany
.
setPhone
(
branchCompany
.
getLeaderContactInfo
());
branchCompany
.
setTourServicePhone
(
branchCompany
.
getLeaderContactInfo
());
branchCompany
.
setVehiceServicePhone
(
branchCompany
.
getLeaderContactInfo
());
if
(
branchCompany1
!=
null
){
if
(
branchCompany1
!=
null
){
updateSelectiveById
(
branchCompany
);
updateSelectiveById
(
branchCompany
);
}
else
{
}
else
{
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/BranchCompanyGiveBiz.java
View file @
ff4ea3b1
...
@@ -27,6 +27,7 @@ public class BranchCompanyGiveBiz extends BaseBiz<BranchCompanyGiveMapper, Branc
...
@@ -27,6 +27,7 @@ public class BranchCompanyGiveBiz extends BaseBiz<BranchCompanyGiveMapper, Branc
if
(
branchCompanyGive1
==
null
){
if
(
branchCompanyGive1
==
null
){
insertSelectiveRe
(
branchCompanyGive
);
insertSelectiveRe
(
branchCompanyGive
);
}
else
{
}
else
{
branchCompanyGive
.
setId
(
branchCompanyGive1
.
getId
());
updateSelectiveById
(
branchCompanyGive
);
updateSelectiveById
(
branchCompanyGive
);
}
}
Integer
companyId
=
branchCompanyGive
.
getCompanyId
();
Integer
companyId
=
branchCompanyGive
.
getCompanyId
();
...
@@ -34,10 +35,13 @@ public class BranchCompanyGiveBiz extends BaseBiz<BranchCompanyGiveMapper, Branc
...
@@ -34,10 +35,13 @@ public class BranchCompanyGiveBiz extends BaseBiz<BranchCompanyGiveMapper, Branc
if
(
branchCompany1
!=
null
){
if
(
branchCompany1
!=
null
){
BranchCompany
branchCompany
=
new
BranchCompany
();
BranchCompany
branchCompany
=
new
BranchCompany
();
branchCompany
.
setId
(
companyId
);
branchCompany
.
setId
(
companyId
);
Integer
giveNum
=
branchCompany1
.
getGiveNum
()
==
null
?
0
:
branchCompany1
.
getGiveNum
();
if
(
isDel
==
1
){
if
(
isDel
==
1
){
branchCompany
.
setGiveNum
(
branchCompany1
.
getGiveNum
()-
1
);
giveNum
=
giveNum
>
0
?
(
giveNum
-
1
):
0
;
branchCompany
.
setGiveNum
(
giveNum
);
}
else
{
}
else
{
branchCompany
.
setGiveNum
(
branchCompany1
.
getGiveNum
()+
1
);
giveNum
=
giveNum
+
1
;
branchCompany
.
setGiveNum
(
giveNum
);
}
}
branchCompanyBiz
.
addOrUpd
(
branchCompany
);
branchCompanyBiz
.
addOrUpd
(
branchCompany
);
}
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppBranchCompanyController.java
View file @
ff4ea3b1
...
@@ -69,6 +69,7 @@ public class AppBranchCompanyController extends BaseController<BranchCompanyBiz>
...
@@ -69,6 +69,7 @@ public class AppBranchCompanyController extends BaseController<BranchCompanyBiz>
if
(
list
.
size
()
==
0
){
if
(
list
.
size
()
==
0
){
throw
new
BaseException
(
"店铺不存在"
,
ResultCode
.
FAILED_CODE
);
throw
new
BaseException
(
"店铺不存在"
,
ResultCode
.
FAILED_CODE
);
}
}
doBrowse
(
companySearchDTO
);
return
ObjectRestResponse
.
succ
(
list
.
get
(
0
));
return
ObjectRestResponse
.
succ
(
list
.
get
(
0
));
}
}
...
@@ -110,4 +111,24 @@ public class AppBranchCompanyController extends BaseController<BranchCompanyBiz>
...
@@ -110,4 +111,24 @@ public class AppBranchCompanyController extends BaseController<BranchCompanyBiz>
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
public
void
doBrowse
(
CompanySearchDTO
companySearchDTO
){
try
{
Integer
isBrowse
=
companySearchDTO
.
getIsBrowse
()
==
null
?
0
:
companySearchDTO
.
getIsBrowse
();
Integer
companyId
=
companySearchDTO
.
getId
()
==
null
?
0
:
companySearchDTO
.
getId
();
if
(
isBrowse
==
1
&&
companyId
>
0
){
BranchCompany
branchCompany1
=
baseBiz
.
selectById
(
companyId
);
if
(
branchCompany1
!=
null
){
BranchCompany
branchCompany
=
new
BranchCompany
();
branchCompany
.
setId
(
companyId
);
branchCompany
.
setBrowseNum
(
branchCompany1
.
getBrowseNum
()+
1
);
baseBiz
.
addOrUpd
(
branchCompany
);
}
}
}
catch
(
Exception
e
){
}
}
}
}
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