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
e380593b
Commit
e380593b
authored
Dec 19, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-bug-vehiclemodel-hf' into dev
parents
765d1f77
ff5bac93
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
AppDownloadRecord.java
.../java/com/xxfc/platform/app/entity/AppDownloadRecord.java
+1
-1
AppDownloadRecordController.java
.../platform/app/rest/admin/AppDownloadRecordController.java
+6
-6
No files found.
xx-app/xx-app-api/src/main/java/com/xxfc/platform/app/entity/AppDownloadRecord.java
View file @
e380593b
...
@@ -18,5 +18,5 @@ public class AppDownloadRecord {
...
@@ -18,5 +18,5 @@ public class AppDownloadRecord {
private
Integer
id
;
private
Integer
id
;
private
String
source
;
private
String
source
;
private
Date
creTime
;
private
Date
creTime
;
private
String
terminal
;
}
}
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/rest/admin/AppDownloadRecordController.java
View file @
e380593b
...
@@ -5,9 +5,10 @@ import com.github.wxiaoqi.security.common.rest.BaseController;
...
@@ -5,9 +5,10 @@ import com.github.wxiaoqi.security.common.rest.BaseController;
import
com.xxfc.platform.app.biz.AppDownloadRecordBiz
;
import
com.xxfc.platform.app.biz.AppDownloadRecordBiz
;
import
com.xxfc.platform.app.entity.AppDownloadRecord
;
import
com.xxfc.platform.app.entity.AppDownloadRecord
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Date
;
/**
/**
* @Auther: Administrator
* @Auther: Administrator
* @Date: 2019/12/19 15:46
* @Date: 2019/12/19 15:46
...
@@ -16,14 +17,13 @@ import org.springframework.web.bind.annotation.*;
...
@@ -16,14 +17,13 @@ import org.springframework.web.bind.annotation.*;
@RestController
@RestController
@RequestMapping
(
"/app/unauth/adr"
)
@RequestMapping
(
"/app/unauth/adr"
)
public
class
AppDownloadRecordController
extends
BaseController
<
AppDownloadRecordBiz
,
AppDownloadRecord
>
{
public
class
AppDownloadRecordController
extends
BaseController
<
AppDownloadRecordBiz
,
AppDownloadRecord
>
{
@Override
@ApiOperation
(
"添加"
)
@ApiOperation
(
"添加"
)
@PostMapping
(
value
=
"add"
)
@PostMapping
(
value
=
"add"
)
public
ObjectRestResponse
<
AppDownloadRecord
>
add
(
@RequestParam
(
value
=
"source"
)
String
source
){
public
ObjectRestResponse
<
AppDownloadRecord
>
add
(
@RequestBody
AppDownloadRecord
appDownloadRecord
){
if
(
StringUtils
.
isNotBlank
(
source
))
{
appDownloadRecord
.
setCreTime
(
new
Date
());
AppDownloadRecord
appDownloadRecord
=
new
AppDownloadRecord
();
appDownloadRecord
.
setSource
(
source
);
baseBiz
.
insertSelective
(
appDownloadRecord
);
baseBiz
.
insertSelective
(
appDownloadRecord
);
}
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
}
}
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