Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
notes2.0
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zjm
notes2.0
Commits
8b1af424
提交
8b1af424
authored
4月 16, 2020
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
246
上级
62f6e879
流水线
#166
已失败 于阶段
变更
5
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
42 行增加
和
36 行删除
+42
-36
AttendanceDetailsServiceImpl.java
...attendance/service/impl/AttendanceDetailsServiceImpl.java
+2
-0
CardTask.java
.../main/java/com/zjty/tynotes/attendance/task/CardTask.java
+1
-1
UnionApplication.java
...rc/main/java/com/zjty/tynotes/union/UnionApplication.java
+22
-18
application-simc.properties
notes-union/src/main/resources/application-simc.properties
+7
-7
application.properties
notes-union/src/main/resources/application.properties
+10
-10
没有找到文件。
notes-attendance/src/main/java/com/zjty/tynotes/attendance/service/impl/AttendanceDetailsServiceImpl.java
浏览文件 @
8b1af424
...
@@ -126,8 +126,10 @@ public class AttendanceDetailsServiceImpl implements AttendanceDetailsService {
...
@@ -126,8 +126,10 @@ public class AttendanceDetailsServiceImpl implements AttendanceDetailsService {
userAttenVo
.
setAbsenteeismDay
(
attendanceDetails
.
getAbsenteeismDay
()+
userAttenVo
.
getAbsenteeismDay
());
userAttenVo
.
setAbsenteeismDay
(
attendanceDetails
.
getAbsenteeismDay
()+
userAttenVo
.
getAbsenteeismDay
());
}
}
}
}
userAttenVo
.
computerRealAttendanceDay
();
userAttenVo
.
computerRealAttendanceDay
();
}
}
System
.
out
.
println
(
attendanceDetailsList
.
size
());
return
userAttenVo
;
return
userAttenVo
;
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
logger
.
error
(
"时间转换格式错误"
);
logger
.
error
(
"时间转换格式错误"
);
...
...
notes-attendance/src/main/java/com/zjty/tynotes/attendance/task/CardTask.java
浏览文件 @
8b1af424
...
@@ -65,7 +65,7 @@ public class CardTask {
...
@@ -65,7 +65,7 @@ public class CardTask {
/**
/**
* 定时任务,定时获取打卡信息.计算前天的个人考勤信息情况
* 定时任务,定时获取打卡信息.计算前天的个人考勤信息情况
*/
*/
//
@Scheduled(cron = "0 59 23 * * ? ")
@Scheduled
(
cron
=
"0 59 23 * * ? "
)
public
List
<
CardResult
>
getCardDetails
(){
public
List
<
CardResult
>
getCardDetails
(){
List
<
User
>
users
=
pasUserDao
.
findAll
();
List
<
User
>
users
=
pasUserDao
.
findAll
();
List
<
User
>
userList
=
new
ArrayList
<>();
List
<
User
>
userList
=
new
ArrayList
<>();
...
...
notes-union/src/main/java/com/zjty/tynotes/union/UnionApplication.java
浏览文件 @
8b1af424
package
com
.
zjty
.
tynotes
.
union
;
package
com
.
zjty
.
tynotes
.
union
;
import
org.apache.catalina.connector.Connector
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
;
import
org.springframework.boot.web.servlet.server.ServletWebServerFactory
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
...
@@ -19,8 +23,8 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
...
@@ -19,8 +23,8 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
"com.zjty.tynotes.redis"
,
"com.zjty.tynotes.redis"
,
"com.zjty.tynotes.weekly"
,
"com.zjty.tynotes.weekly"
,
"com.zjty.tynotes.misc"
,
"com.zjty.tynotes.misc"
,
"com.zjty.tynotes.union"
,
"com.zjty.tynotes.union"
"com.zjty.tynotes.attendance"
// ,
"com.zjty.tynotes.attendance"
})
})
@EnableCaching
@EnableCaching
@EnableScheduling
@EnableScheduling
...
@@ -29,21 +33,21 @@ public class UnionApplication {
...
@@ -29,21 +33,21 @@ public class UnionApplication {
SpringApplication
.
run
(
UnionApplication
.
class
,
args
);
SpringApplication
.
run
(
UnionApplication
.
class
,
args
);
}
}
// 开始支持http
// 开始支持http
//
@Bean
@Bean
//
public ServletWebServerFactory servletContainer() {
public
ServletWebServerFactory
servletContainer
()
{
//
TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
TomcatServletWebServerFactory
tomcat
=
new
TomcatServletWebServerFactory
();
//
tomcat.addAdditionalTomcatConnectors(createHTTPConnector());
tomcat
.
addAdditionalTomcatConnectors
(
createHTTPConnector
());
//
return tomcat;
return
tomcat
;
//
}
}
//
//
private Connector createHTTPConnector() {
private
Connector
createHTTPConnector
()
{
//
Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
Connector
connector
=
new
Connector
(
"org.apache.coyote.http11.Http11NioProtocol"
);
//
//同时启用http(8080)、https(8443)两个端口
//同时启用http(8080)、https(8443)两个端口
//
connector.setScheme("http");
connector
.
setScheme
(
"http"
);
//
connector.setSecure(false);
connector
.
setSecure
(
false
);
//
connector.setPort(8084);
connector
.
setPort
(
8084
);
//
connector.setRedirectPort(8289);
connector
.
setRedirectPort
(
8289
);
//
return connector;
return
connector
;
//
}
}
}
}
notes-union/src/main/resources/application-simc.properties
浏览文件 @
8b1af424
...
@@ -4,13 +4,13 @@ spring.application.name=workbook
...
@@ -4,13 +4,13 @@ spring.application.name=workbook
# https端口号.
# https端口号.
server.port
=
8289
server.port
=
8289
# 证书的路径.
# 证书的路径.
#
server.ssl.key-store=classpath:2586377_workbook.zjtys.com.cn.pfx
server.ssl.key-store
=
classpath:2586377_workbook.zjtys.com.cn.pfx
#
#
证书密码,请修改为您自己证书的密码.
# 证书密码,请修改为您自己证书的密码.
#
server.ssl.key-store-password=bMEPW9BG
server.ssl.key-store-password
=
bMEPW9BG
#
#
秘钥库类型
# 秘钥库类型
#
server.ssl.keyStoreType=PKCS12
server.ssl.keyStoreType
=
PKCS12
#
#
证书别名
# 证书别名
#
server.ssl.keyAlias= alias
server.ssl.keyAlias
=
alias
#mongodb configuration
#mongodb configuration
...
...
notes-union/src/main/resources/application.properties
浏览文件 @
8b1af424
...
@@ -3,24 +3,24 @@ spring.application.name=workbook
...
@@ -3,24 +3,24 @@ spring.application.name=workbook
## https端口号.
## https端口号.
server.port
=
8289
server.port
=
8289
# 证书的路径.
# 证书的路径.
#
server.ssl.key-store=classpath:2586377_workbook.zjtys.com.cn.pfx
server.ssl.key-store
=
classpath:2586377_workbook.zjtys.com.cn.pfx
#
#
证书密码,请修改为您自己证书的密码.
# 证书密码,请修改为您自己证书的密码.
#
server.ssl.key-store-password=bMEPW9BG
server.ssl.key-store-password
=
bMEPW9BG
#
#
秘钥库类型
# 秘钥库类型
#
server.ssl.keyStoreType=PKCS12
server.ssl.keyStoreType
=
PKCS12
#
#
证书别名
# 证书别名
#
server.ssl.keyAlias= alias
server.ssl.keyAlias
=
alias
#mongodb configuration
#mongodb configuration
spring.data.mongodb.uri
=
mongodb://
localhost
:27017/notes2
spring.data.mongodb.uri
=
mongodb://
192.168.1.246
:27017/notes2
# servlet configuration
# servlet configuration
spring.servlet.multipart.max-file-size
=
100MB
spring.servlet.multipart.max-file-size
=
100MB
spring.servlet.multipart.max-request-size
=
1000MB
spring.servlet.multipart.max-request-size
=
1000MB
spring.redis.host
=
localhost
spring.redis.host
=
192.168.1.246
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.timeout
=
5000ms
spring.redis.timeout
=
5000ms
# es configuraiton
# es configuraiton
es.ip
=
localhost
es.ip
=
192.168.1.246
logging.file
=
./log/note.log
logging.file
=
./log/note.log
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论