Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
notes2.0
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zjm
notes2.0
Commits
2434725f
提交
2434725f
authored
4月 20, 2020
作者:
gongwenjie
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'gwj' 到 'master'
Gwj 查看合并请求
!116
上级
7181a5e9
7415db72
流水线
#168
已失败 于阶段
变更
4
流水线
1
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
27 行增加
和
7 行删除
+27
-7
ApprovalInformationServiceImpl.java
...tendance/service/impl/ApprovalInformationServiceImpl.java
+5
-2
UnionApplication.java
...rc/main/java/com/zjty/tynotes/union/UnionApplication.java
+1
-1
application.properties
notes-union/src/main/resources/application.properties
+3
-3
UserManageServiceImpl.java
...es/weekly/subject/service/impl/UserManageServiceImpl.java
+18
-1
没有找到文件。
notes-attendance/src/main/java/com/zjty/tynotes/attendance/service/impl/ApprovalInformationServiceImpl.java
浏览文件 @
2434725f
...
...
@@ -242,7 +242,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
return
approvalInformationDao
.
save
(
approvalInformation
);
}
/**
* 查找所有我提交的审批
* @param pageRequest
* @return
*/
@Override
public
PageResponse
<
ApprovalInformation
>
findAllApproval
(
PageRequestAtten
pageRequest
)
{
PageResponse
<
ApprovalInformation
>
pageResponse
=
new
PageResponse
();
...
...
@@ -495,7 +499,6 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
}
});
}
}
if
(
workoverApproList
!=
null
){
int
currentPage
=
pageRequest
.
getCurrentPage
();
...
...
notes-union/src/main/java/com/zjty/tynotes/union/UnionApplication.java
浏览文件 @
2434725f
...
...
@@ -24,7 +24,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
"com.zjty.tynotes.weekly"
,
"com.zjty.tynotes.misc"
,
"com.zjty.tynotes.union"
,
"com.zjty.tynotes.attendance"
// ,
"com.zjty.tynotes.attendance"
})
@EnableCaching
@EnableScheduling
...
...
notes-union/src/main/resources/application.properties
浏览文件 @
2434725f
...
...
@@ -12,15 +12,15 @@ server.ssl.keyStoreType=PKCS12
server.ssl.keyAlias
=
alias
#mongodb configuration
spring.data.mongodb.uri
=
mongodb://
localhost:27017/notes3
spring.data.mongodb.uri
=
mongodb://
192.168.1.246:27017/notes2
# servlet configuration
spring.servlet.multipart.max-file-size
=
100MB
spring.servlet.multipart.max-request-size
=
1000MB
spring.redis.host
=
localhost
spring.redis.host
=
192.168.1.246
spring.redis.port
=
6379
spring.redis.timeout
=
5000ms
# es configuraiton
es.ip
=
localhost
es.ip
=
192.168.1.246
logging.file
=
./log/note.log
notes-weekly/src/main/java/com/zjty/tynotes/weekly/subject/service/impl/UserManageServiceImpl.java
浏览文件 @
2434725f
...
...
@@ -19,6 +19,7 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import
org.springframework.stereotype.Service
;
import
java.lang.reflect.Array
;
import
java.math.BigDecimal
;
import
java.text.DecimalFormat
;
import
java.text.ParseException
;
import
java.util.*
;
...
...
@@ -83,13 +84,29 @@ public class UserManageServiceImpl implements UserManageService {
return
user
;
}
public
static
void
main
(
String
[]
args
)
{
DecimalFormat
df
=
new
DecimalFormat
(
"#.00"
);
double
a
=
0.3333333333333333333333333333333d
;
BigDecimal
bg
=
new
BigDecimal
(
a
);
double
v
=
bg
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
String
format
=
df
.
format
(
a
);
Number
parse
=
null
;
try
{
parse
=
df
.
parse
(
format
);
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
println
(
parse
.
doubleValue
());
System
.
out
.
println
(
v
);
}
/**
* 查询人员列表
* @param pageRequest
* @return
*/
@Override
public
PageResponse
<
UserVo
>
findUserList
(
PageRequest
pageRequest
)
throws
ParseException
{
public
PageResponse
<
UserVo
>
findUserList
(
PageRequest
pageRequest
)
throws
ParseException
{
DecimalFormat
df
=
new
DecimalFormat
(
"#.00"
);
List
<
UserVo
>
userVos
=
new
ArrayList
<>();
PageResponse
<
UserVo
>
pageResponse
=
new
PageResponse
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论