Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-data-cloud
Commits
8267f210
Commit
8267f210
authored
Mar 30, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商户创建时间
parent
834cd831
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
LoginController.java
...in/java/com/gic/cloud/web/controller/LoginController.java
+3
-0
LoginUserVo.java
...wxapp/src/main/java/com/gic/cloud/web/vo/LoginUserVo.java
+16
-0
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/LoginController.java
View file @
8267f210
...
...
@@ -27,6 +27,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
...
...
@@ -75,6 +76,7 @@ public class LoginController {
List
<
EnterpriseDTO
>
enterpriseDTOList
=
this
.
enterpriseApiService
.
listEnterpriseByIds
(
enterpriseIdList
).
getResult
();
//随机取一个用户
Integer
enterpriseId
=
userDTOList
.
get
(
0
).
getEnterpriseId
();
Date
enterpriseCreateTime
=
userDTOList
.
get
(
0
).
getCreateTime
();
ServiceResponse
<
Void
>
smsSendResult
=
ServiceResponse
.
success
();
if
(!
tsPhone
.
equals
(
phoneNumber
)){
code
=
CreateRandomUtils
.
generateNumberStr
(
4
);
...
...
@@ -84,6 +86,7 @@ public class LoginController {
String
key
=
"GYTCode:"
+
areaCode
+
":"
+
phoneNumber
;
LoginUserVo
userVo
=
new
LoginUserVo
();
userVo
.
setEnterpriseId
(
enterpriseId
);
userVo
.
setCreateTime
(
enterpriseCreateTime
);
userVo
.
setAreaCode
(
areaCode
);
userVo
.
setCode
(
code
);
userVo
.
setPhoneNumber
(
phoneNumber
);
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/vo/LoginUserVo.java
View file @
8267f210
package
com
.
gic
.
cloud
.
web
.
vo
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 登录用户
* @ClassName: LoginUserVo
...
...
@@ -19,6 +21,11 @@ public class LoginUserVo implements Serializable {
private
String
areaCode
;
private
String
code
;
/**
* 商户创建时间
*/
private
Date
createTime
;
public
Integer
getUserId
()
{
return
userId
;
}
...
...
@@ -82,4 +89,13 @@ public class LoginUserVo implements Serializable {
public
void
setIsSingle
(
Integer
isSingle
)
{
this
.
isSingle
=
isSingle
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
LoginUserVo
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
return
this
;
}
}
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