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
5f52e07d
Commit
5f52e07d
authored
Jul 20, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app自动更新
parent
9db4f363
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
AppVersionBiz.java
...rc/main/java/com/xxfc/platform/app/biz/AppVersionBiz.java
+12
-0
AppVersionController.java
...java/com/xxfc/platform/app/rest/AppVersionController.java
+9
-2
No files found.
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/biz/AppVersionBiz.java
View file @
5f52e07d
...
@@ -85,6 +85,18 @@ public class AppVersionBiz extends BaseBiz<AppVersionMapper,AppVersion> {
...
@@ -85,6 +85,18 @@ public class AppVersionBiz extends BaseBiz<AppVersionMapper,AppVersion> {
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
public
ObjectRestResponse
getVersionH5
(
Integer
type
){
Example
example
=
new
Example
(
AppVersion
.
class
);
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"downloadSwitch"
,
0
).
andEqualTo
(
"sysType"
,
type
);
example
.
setOrderByClause
(
"version DESC"
);
List
<
AppVersion
>
list
=
selectByExample
(
example
);
if
(
list
.
size
()>
0
){
AppVersion
appVersion
=
list
.
get
(
0
);
return
new
ObjectRestResponse
().
status
(
RestCode
.
SUCCESS
.
getStatus
()).
msg
(
RestCode
.
SUCCESS
.
getMsg
()).
data
(
appVersion
).
rel
(
false
);
}
return
ObjectRestResponse
.
succ
();
}
public
RestResponse
uploadDrivingLicense
(
MultipartFile
file
)
throws
IOException
{
public
RestResponse
uploadDrivingLicense
(
MultipartFile
file
)
throws
IOException
{
DateTime
now
=
DateTime
.
now
();
DateTime
now
=
DateTime
.
now
();
String
dirPathToday
=
File
.
separator
+
now
.
toString
(
DEFAULT_DATE_TIME_FORMATTER
);
String
dirPathToday
=
File
.
separator
+
now
.
toString
(
DEFAULT_DATE_TIME_FORMATTER
);
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/rest/AppVersionController.java
View file @
5f52e07d
...
@@ -46,9 +46,16 @@ public class AppVersionController extends BaseController<AppVersionBiz,AppVersio
...
@@ -46,9 +46,16 @@ public class AppVersionController extends BaseController<AppVersionBiz,AppVersio
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
info
(
public
ObjectRestResponse
info
(
@RequestParam
(
value
=
"type"
,
defaultValue
=
"0"
)
Integer
type
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"0"
)
Integer
type
,
@RequestParam
(
value
=
"version"
,
defaultValue
=
""
)
String
version
@RequestParam
(
value
=
"version"
,
defaultValue
=
""
)
String
version
,
@RequestParam
(
value
=
"isH5"
,
defaultValue
=
"0"
)
Integer
isH5
){
){
return
baseBiz
.
getVersion
(
version
,
type
);
ObjectRestResponse
restResponse
=
null
;
if
(
isH5
!=
null
&&
isH5
==
1
){
restResponse
=
baseBiz
.
getVersion
(
version
,
type
);
}
else
{
restResponse
=
baseBiz
.
getVersionH5
(
type
);
}
return
restResponse
;
}
}
...
...
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