Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
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
李丛阳
education
Commits
5c69679d
Commit
5c69679d
authored
Nov 29, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改时区问题
parent
feae305c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
8 deletions
+20
-8
BLessonPerson.java
...va/org/rcisoft/business/blesson/entity/BLessonPerson.java
+2
-0
BLessonPersonServiceImpl.java
...siness/blesson/service/impl/BLessonPersonServiceImpl.java
+2
-1
MicroappFeignClient.java
.../rcisoft/common/util/feignClient/MicroappFeignClient.java
+4
-2
MTMicroappApiRequestClient.java
...oft/common/util/outClient/MTMicroappApiRequestClient.java
+8
-2
messageTask.java
src/main/java/org/rcisoft/core/task/messageTask.java
+1
-1
application-mt.yml
src/main/resources/application-mt.yml
+1
-1
application-test.yml
src/main/resources/application-test.yml
+1
-1
UserMapper.xml
src/main/resources/mapper/sys/user/mapper/UserMapper.xml
+1
-0
No files found.
src/main/java/org/rcisoft/business/blesson/entity/BLessonPerson.java
View file @
5c69679d
package
org
.
rcisoft
.
business
.
blesson
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
...
...
@@ -79,6 +80,7 @@ public class BLessonPerson extends IdEntity<BLessonPerson> {
private
Date
finishDate
;
@ApiModelProperty
(
value
=
"签到日期"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy/MM/dd HH:mm:ss"
)
private
Date
signDate
;
//-----------------------------
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonPersonServiceImpl.java
View file @
5c69679d
...
...
@@ -388,7 +388,8 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
}
bLessonPerson
.
setSignDate
(
new
Date
());
bLessonPerson
.
setTrainIsSign
(
"2"
);
int
line
=
bLessonPersonRepository
.
updateByPrimaryKeySelective
(
bLessonPerson
);
UserUtil
.
setCurrentMergeOperation
(
bLessonPerson
);
int
line
=
bLessonPersonRepository
.
updateByPrimaryKey
(
bLessonPerson
);
return
new
PersistModel
(
line
);
}
...
...
src/main/java/org/rcisoft/common/util/feignClient/MicroappFeignClient.java
View file @
5c69679d
...
...
@@ -21,6 +21,8 @@ public interface MicroappFeignClient {
@RequestMapping
(
value
=
"/micro_app/isHaveApps"
,
method
=
RequestMethod
.
GET
)
Ret
isHaveApps
(
@RequestParam
(
"UserId"
)
Long
UserId
,
@RequestParam
(
"corpId"
)
Long
corpId
,
@RequestParam
(
"appId"
)
Long
appId
);
@RequestParam
(
"appId"
)
Long
appId
,
@RequestParam
(
"zxClientType"
)
String
zxClientType
,
@RequestParam
(
"zxAccountId"
)
Long
zxAccountId
);
}
src/main/java/org/rcisoft/common/util/outClient/MTMicroappApiRequestClient.java
View file @
5c69679d
...
...
@@ -5,6 +5,7 @@ import org.rcisoft.common.util.feignClient.FileFeignClient;
import
org.rcisoft.common.util.feignClient.MicroappFeignClient
;
import
org.rcisoft.common.util.feignDto.MTOssRspDTO
;
import
org.rcisoft.core.result.Ret
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
@@ -16,13 +17,18 @@ import org.springframework.web.multipart.MultipartFile;
@Component
public
class
MTMicroappApiRequestClient
{
public
static
String
zxClientType
=
"app"
;
public
static
Long
zxAccountId
=
(
long
)
1
;
public
static
Long
appId
=
(
long
)
1
;
//
@Autowired
@Autowired
private
MicroappFeignClient
microappFeignClient
;
public
boolean
isHaveApps
(
long
userId
,
long
corpId
)
{
Ret
ret
=
microappFeignClient
.
isHaveApps
(
userId
,
corpId
,
appId
);
Ret
ret
=
microappFeignClient
.
isHaveApps
(
userId
,
corpId
,
appId
,
zxClientType
,
zxAccountId
);
if
(
ret
!=
null
&&
"M0000"
.
equals
(
ret
.
getCode
())){
return
(
boolean
)
ret
.
getData
();
}
...
...
src/main/java/org/rcisoft/core/task/messageTask.java
View file @
5c69679d
...
...
@@ -40,7 +40,7 @@ public class messageTask {
@Autowired
BNoticeService
bNoticeServiceImpl
;
//
@Scheduled(cron = "0 0/1 * * * ?")
@Scheduled
(
cron
=
"0 0/1 * * * ?"
)
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
readOnly
=
false
)
public
void
work
()
throws
Exception
{
Date
nowDate
=
new
Date
();
...
...
src/main/resources/application-mt.yml
View file @
5c69679d
...
...
@@ -43,7 +43,7 @@ pagehelper:
spring
:
datasource
:
url
:
jdbc:mysql://mt_mysql:3306/edu_db?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true
url
:
jdbc:mysql://mt_mysql:3306/edu_db?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true
&serverTimezone=GMT%2B8
username
:
root
password
:
91isoft
type
:
com.zaxxer.hikari.HikariDataSource
...
...
src/main/resources/application-test.yml
View file @
5c69679d
...
...
@@ -43,7 +43,7 @@ pagehelper:
spring
:
datasource
:
url
:
jdbc:mysql://192.168.5.41:3306/zx_education?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true
url
:
jdbc:mysql://192.168.5.41:3306/zx_education?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true
&serverTimezone=GMT%2B8
username
:
edu
password
:
edu20191127
type
:
com.zaxxer.hikari.HikariDataSource
...
...
src/main/resources/mapper/sys/user/mapper/UserMapper.xml
View file @
5c69679d
...
...
@@ -19,6 +19,7 @@
<result
column=
"update_date"
property=
"updateDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"create_date"
property=
"createDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"lock_num"
property=
"lockNum"
jdbcType=
"INTEGER"
/>
<result
column=
"corp_id"
property=
"corpId"
jdbcType=
"VARCHAR"
/>
<!-- <result column="role_name" property="roleName" jdbcType="VARCHAR" />-->
<collection
property=
"roleList"
ofType=
"org.rcisoft.sys.user.entity.SysUser"
javaType=
"java.util.ArrayList"
select=
"org.rcisoft.sys.user.dao.SysUserMapper.queryRoleByUserId"
...
...
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