提交 3c9e1294 authored 作者: gongwenjie's avatar gongwenjie

Merge branch 'master' of git.yfzx.zjtys.com.cn:zjm/notes2.0

# Conflicts: # notes-attendance/src/main/java/com/zjty/tynotes/attendance/controller/AttendanceController.java
上级 cbad331a
...@@ -33,7 +33,7 @@ public class ApprovalInformation { ...@@ -33,7 +33,7 @@ public class ApprovalInformation {
private String userId; private String userId;
@ApiModelProperty(value = "提交审批用户姓名",example = "1") @ApiModelProperty(value = "提交审批用户姓名",example = "1")
private String name; private String userName;
@ApiModelProperty(value = "审批用户id1",example = "1") @ApiModelProperty(value = "审批用户id1",example = "1")
private String approvalUserIdOne; private String approvalUserIdOne;
......
...@@ -242,7 +242,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic ...@@ -242,7 +242,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
return approvalInformationDao.save(approvalInformation); return approvalInformationDao.save(approvalInformation);
} }
/**
* 查找所有我提交的审批
* @param pageRequest
* @return
*/
@Override @Override
public PageResponse<ApprovalInformation> findAllApproval(PageRequestAtten pageRequest) { public PageResponse<ApprovalInformation> findAllApproval(PageRequestAtten pageRequest) {
PageResponse<ApprovalInformation> pageResponse = new PageResponse(); PageResponse<ApprovalInformation> pageResponse = new PageResponse();
...@@ -259,6 +263,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic ...@@ -259,6 +263,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
}else{ }else{
totalPage = (approvalInformations.size())/pageSize + 1; totalPage = (approvalInformations.size())/pageSize + 1;
} }
if(end>=approvalInformations.size()){
approvalInformations.subList(start,approvalInformations.size());
}else{
approvalInformations.subList(start,end);
}
pageResponse.setRows(approvalInformations); pageResponse.setRows(approvalInformations);
pageResponse.setTotalCount(approvalInformations.size()); pageResponse.setTotalCount(approvalInformations.size());
}else { }else {
...@@ -346,6 +355,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic ...@@ -346,6 +355,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
}else{ }else{
totalPage = (approvalInformationList.size())/pageSize + 1; totalPage = (approvalInformationList.size())/pageSize + 1;
} }
if(end>=approvalInformationList.size()){
approvalInformationList.subList(start,approvalInformationList.size());
}else{
approvalInformationList.subList(start,end);
}
pageResponse.setRows(approvalInformationList); pageResponse.setRows(approvalInformationList);
pageResponse.setTotalCount(approvalInformationList.size()); pageResponse.setTotalCount(approvalInformationList.size());
}else { }else {
...@@ -424,6 +438,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic ...@@ -424,6 +438,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
}else{ }else{
totalPage = (workoverAppros.size())/pageSize + 1; totalPage = (workoverAppros.size())/pageSize + 1;
} }
if(end>=workoverAppros.size()){
workoverAppros.subList(start,workoverAppros.size());
}else{
workoverAppros.subList(start,end);
}
pageResponse.setRows(workoverAppros); pageResponse.setRows(workoverAppros);
pageResponse.setTotalCount(workoverAppros.size()); pageResponse.setTotalCount(workoverAppros.size());
}else { }else {
...@@ -480,7 +499,6 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic ...@@ -480,7 +499,6 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
} }
}); });
} }
workoverApproList.addAll(workoverAppros);
} }
if(workoverApproList!=null){ if(workoverApproList!=null){
int currentPage = pageRequest.getCurrentPage(); int currentPage = pageRequest.getCurrentPage();
...@@ -493,6 +511,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic ...@@ -493,6 +511,11 @@ public class ApprovalInformationServiceImpl implements ApprovalInformationServic
}else{ }else{
totalPage = (workoverApproList.size())/pageSize + 1; totalPage = (workoverApproList.size())/pageSize + 1;
} }
if(end>=workoverApproList.size()){
workoverApproList.subList(start,workoverApproList.size());
}else{
workoverApproList.subList(start,end);
}
pageResponse.setRows(workoverApproList); pageResponse.setRows(workoverApproList);
pageResponse.setTotalCount(workoverApproList.size()); pageResponse.setTotalCount(workoverApproList.size());
}else { }else {
......
...@@ -24,7 +24,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; ...@@ -24,7 +24,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
"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
...@@ -33,21 +33,21 @@ public class UnionApplication { ...@@ -33,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;
} // }
} }
...@@ -3,13 +3,13 @@ spring.application.name=workbook ...@@ -3,13 +3,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
spring.data.mongodb.uri=mongodb://localhost:27017/notes2 spring.data.mongodb.uri=mongodb://localhost:27017/notes2
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论