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
b76458de
Commit
b76458de
authored
Nov 04, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
e15464af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
CompanySearchDTO.java
...m/github/wxiaoqi/security/admin/dto/CompanySearchDTO.java
+2
-0
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 @
b76458de
...
@@ -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/rest/AppBranchCompanyController.java
View file @
b76458de
...
@@ -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
.
setGiveNum
(
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