Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
notes2.0
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zjm
notes2.0
Commits
81ab1018
提交
81ab1018
authored
3月 04, 2020
作者:
gongwenjie
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into 'gwj'
# Conflicts: # notes-union/src/main/resources/application.properties
上级
e79fb1ec
610af9b4
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
109 行增加
和
34 行删除
+109
-34
WorkController.java
...com/zjty/tynotes/job/basic/controller/WorkController.java
+21
-3
pom.xml
notes-misc/pom.xml
+4
-4
Swagger2Config.java
...ain/java/com/zjty/tynotes/misc/config/Swagger2Config.java
+3
-3
PasUserDao.java
...as/src/main/java/com/zjty/tynotes/pas/dao/PasUserDao.java
+39
-0
pom.xml
notes-union/pom.xml
+1
-3
UnionApplication.java
...rc/main/java/com/zjty/tynotes/union/UnionApplication.java
+2
-2
application-prod.properties
notes-union/src/main/resources/application-prod.properties
+17
-7
application-simc.properties
notes-union/src/main/resources/application-simc.properties
+18
-8
application.properties
notes-union/src/main/resources/application.properties
+4
-4
没有找到文件。
notes-job/src/main/java/com/zjty/tynotes/job/basic/controller/WorkController.java
浏览文件 @
81ab1018
...
@@ -8,9 +8,7 @@ import com.zjty.tynotes.job.basic.service.WorkService;
...
@@ -8,9 +8,7 @@ import com.zjty.tynotes.job.basic.service.WorkService;
import
com.zjty.tynotes.job.common.Action
;
import
com.zjty.tynotes.job.common.Action
;
import
com.zjty.tynotes.job.status.service.BusinessTreeManagement
;
import
com.zjty.tynotes.job.status.service.BusinessTreeManagement
;
import
com.zjty.tynotes.misc.config.AutoDocument
;
import
com.zjty.tynotes.misc.config.AutoDocument
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.*
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
...
@@ -82,6 +80,13 @@ public class WorkController {
...
@@ -82,6 +80,13 @@ public class WorkController {
@PutMapping
(
value
=
"/delete"
)
@PutMapping
(
value
=
"/delete"
)
@ApiOperation
(
value
=
"根据id删除工作."
,
notes
=
"本次删除选择是否要把个人工作量以及任务工作量纳入统计中."
)
@ApiOperation
(
value
=
"根据id删除工作."
,
notes
=
"本次删除选择是否要把个人工作量以及任务工作量纳入统计中."
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"workId"
,
value
=
"任务id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"personalWorkload"
,
value
=
"是否统计个人工作量"
,
dataType
=
"int"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"userId"
,
value
=
"人员id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"workloadCount"
,
value
=
"是否统计任务工作量"
,
dataType
=
"int"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"msg"
,
value
=
"消息"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
)
})
public
ResponseEntity
<
JobResponse
>
delete
(
@RequestParam
String
workId
,
public
ResponseEntity
<
JobResponse
>
delete
(
@RequestParam
String
workId
,
@RequestParam
int
personalWorkload
,
@RequestParam
int
personalWorkload
,
@RequestParam
String
userId
,
@RequestParam
String
userId
,
...
@@ -104,6 +109,13 @@ public class WorkController {
...
@@ -104,6 +109,13 @@ public class WorkController {
@PutMapping
(
value
=
"/upDate/Workload"
)
@PutMapping
(
value
=
"/upDate/Workload"
)
@ApiOperation
(
value
=
"修改任务的工作量、考评系数."
)
@ApiOperation
(
value
=
"修改任务的工作量、考评系数."
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"workId"
,
value
=
"任务id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"workload"
,
value
=
"工作量"
,
dataType
=
"int"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"userId"
,
value
=
"人员id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"workCoefficient"
,
value
=
"考评系数"
,
dataType
=
"int"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"msg"
,
value
=
"消息"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
)
})
public
ResponseEntity
<
JobResponse
>
updateWorkload
(
@RequestParam
String
workId
,
public
ResponseEntity
<
JobResponse
>
updateWorkload
(
@RequestParam
String
workId
,
@RequestParam
String
userId
,
@RequestParam
String
userId
,
@RequestParam
int
workCoefficient
,
@RequestParam
int
workCoefficient
,
...
@@ -118,6 +130,12 @@ public class WorkController {
...
@@ -118,6 +130,12 @@ public class WorkController {
@PutMapping
(
value
=
"/status"
)
@PutMapping
(
value
=
"/status"
)
@ApiOperation
(
value
=
"修改工作状态"
)
@ApiOperation
(
value
=
"修改工作状态"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"workId"
,
value
=
"任务id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"userId"
,
value
=
"人员id"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"status"
,
value
=
"状态"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"msg"
,
value
=
"消息"
,
dataType
=
"String"
,
paramType
=
"query"
,
required
=
true
)
})
public
ResponseEntity
alterTaskStatus
(
@RequestParam
String
workId
,
public
ResponseEntity
alterTaskStatus
(
@RequestParam
String
workId
,
@RequestParam
String
userId
,
@RequestParam
String
userId
,
@RequestParam
String
status
,
@RequestParam
String
status
,
...
...
notes-misc/pom.xml
浏览文件 @
81ab1018
...
@@ -27,25 +27,25 @@
...
@@ -27,25 +27,25 @@
<groupId>
io.springfox
</groupId>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<artifactId>
springfox-swagger2
</artifactId>
<!--<version>${swagger.version}</version>-->
<!--<version>${swagger.version}</version>-->
<version>
2.9.
0
</version>
<version>
2.9.
1
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.9.
0
</version>
<version>
2.9.
1
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.github.caspar-chen
</groupId>
<groupId>
com.github.caspar-chen
</groupId>
<artifactId>
swagger-ui-layer
</artifactId>
<artifactId>
swagger-ui-layer
</artifactId>
<version>
0.0.
4
</version>
<version>
0.0.
5
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-bean-validators
</artifactId>
<artifactId>
springfox-bean-validators
</artifactId>
<version>
2.9.
0
</version>
<version>
2.9.
1
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
notes-misc/src/main/java/com/zjty/tynotes/misc/config/Swagger2Config.java
浏览文件 @
81ab1018
...
@@ -47,11 +47,11 @@ public class Swagger2Config {
...
@@ -47,11 +47,11 @@ public class Swagger2Config {
private
ApiInfo
apiInfo
()
{
private
ApiInfo
apiInfo
()
{
return
new
ApiInfoBuilder
()
return
new
ApiInfoBuilder
()
// 文档标题
// 文档标题
.
title
(
"工作薄
本
平台接口文档"
)
.
title
(
"工作薄
2.0
平台接口文档"
)
// 文档描述
// 文档描述
.
description
(
"工作薄平台的接口文档与测试页面"
)
.
description
(
"工作薄
2.0
平台的接口文档与测试页面"
)
.
termsOfServiceUrl
(
"http://192.168.1.249:8080/ty-note/ty-note-blackend.git"
)
.
termsOfServiceUrl
(
"http://192.168.1.249:8080/ty-note/ty-note-blackend.git"
)
.
version
(
"v 0.
1
.0"
)
.
version
(
"v 0.
2
.0"
)
.
contact
(
new
Contact
(
"ty-note"
,
"http://localhost:8080/tynotes"
,
"ty@example.com"
))
.
contact
(
new
Contact
(
"ty-note"
,
"http://localhost:8080/tynotes"
,
"ty@example.com"
))
.
build
();
.
build
();
}
}
...
...
notes-pas/src/main/java/com/zjty/tynotes/pas/dao/PasUserDao.java
浏览文件 @
81ab1018
...
@@ -21,6 +21,45 @@ public interface PasUserDao extends MongoRepository<User, String> {
...
@@ -21,6 +21,45 @@ public interface PasUserDao extends MongoRepository<User, String> {
*/
*/
User
findByUsername
(
String
username
);
User
findByUsername
(
String
username
);
// /**
// * 根据用户姓名查询用户对象
// * @param name 用户姓名
// * @param status 删除状态
// * @return User
// */
// List<User> findAllByNameEqualsAndStatusEquals(String name,Integer status);
//
// /**
// * 根据用户名查询用户对象
// * @param status 状态
// * @return User
// */
// List<User> findAllByStatusEquals(Integer status);
//
// /**
// * 根据id集合搜索用户
// * @param ids id集合
// * @param status 删除状态
// * @return list
// */
// List<User> findAllByIdInAndStatusEquals(List<String> ids,Integer status);
//
// /**
// * 根据部门id查询用户
// * @param ids 部门id
// * @param status 删除状态
// * @return User
// */
// List<User> findAllByDepartIdInAndStatusEquals(List<String> ids,Integer status);
//
// /**
// * 查询未删除的人员
// * @param id 用户id
// * @param status 删除状态
// * @return User
// */
// User findAllByIdEqualsAndStatusEquals(String id,Integer status);
/**
/**
* 根据id列表查询
* 根据id列表查询
* @param ids id列表
* @param ids id列表
...
...
notes-union/pom.xml
浏览文件 @
81ab1018
...
@@ -19,9 +19,7 @@
...
@@ -19,9 +19,7 @@
<properties>
<properties>
<activatedProperties>
simc
</activatedProperties>
<activatedProperties>
simc
</activatedProperties>
</properties>
</properties>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
</profile>
</profile>
<!--生产环境-->
<!--生产环境-->
...
...
notes-union/src/main/java/com/zjty/tynotes/union/UnionApplication.java
浏览文件 @
81ab1018
...
@@ -27,7 +27,7 @@ public class UnionApplication {
...
@@ -27,7 +27,7 @@ public class UnionApplication {
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
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();
...
@@ -41,7 +41,7 @@ public class UnionApplication {
...
@@ -41,7 +41,7 @@ public class UnionApplication {
// connector.setScheme("http");
// connector.setScheme("http");
// connector.setSecure(false);
// connector.setSecure(false);
// connector.setPort(8084);
// connector.setPort(8084);
// connector.setRedirectPort(8
0
90);
// connector.setRedirectPort(8
2
90);
// return connector;
// return connector;
//}
//}
...
...
notes-union/src/main/resources/application-prod.properties
浏览文件 @
81ab1018
spring.application.name
=
workbook
spring.application.name
=
workbook
# port
server.port
=
8090
# mongodb configuration
# https端口号.
spring.data.mongodb.uri
=
mongodb://192.168.1.244:27017/workbook
server.port
=
8289
## 证书的路径.
#server.ssl.key-store=classpath:2586377_workbook.zjtys.com.cn.pfx
## 证书密码,请修改为您自己证书的密码.
#server.ssl.key-store-password=bMEPW9BG
## 秘钥库类型
#server.ssl.keyStoreType=PKCS12
## 证书别名
#server.ssl.keyAlias= alias
#mongodb configuration
spring.data.mongodb.uri
=
mongodb://localhost:27017/notes
# 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.timeout
=
5000
spring.redis.host
=
localhost
spring.redis.port
=
6379
spring.redis.timeout
=
5000ms
# es configuraiton
# es configuraiton
es.ip
=
192.168.1.244
es.ip
=
localhost
logging.file
=
./log/note.log
logging.file
=
./log/note.log
notes-union/src/main/resources/application-simc.properties
浏览文件 @
81ab1018
spring.application.name
=
simc
spring.application.name
=
workbook
# port
server.port
=
8082
# mongodb configuration
# https端口号.
server.port
=
8289
## 证书的路径.
#server.ssl.key-store=classpath:2586377_workbook.zjtys.com.cn.pfx
## 证书密码,请修改为您自己证书的密码.
#server.ssl.key-store-password=bMEPW9BG
## 秘钥库类型
#server.ssl.keyStoreType=PKCS12
## 证书别名
#server.ssl.keyAlias= alias
#mongodb configuration
spring.data.mongodb.uri
=
mongodb://localhost:27017/notes
spring.data.mongodb.uri
=
mongodb://localhost:27017/notes
# 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.timeout
=
5000
spring.redis.host
=
localhost
spring.redis.port
=
6379
spring.redis.timeout
=
5000ms
# es configuraiton
# es configuraiton
es.ip
=
localhost
es.ip
=
localhost
es.prefix
=
event_list
logging.file
=
./log/note.log
\ No newline at end of file
logging.file
=
./log/note.log
notes-union/src/main/resources/application.properties
浏览文件 @
81ab1018
...
@@ -3,9 +3,9 @@ spring.application.name=workbook
...
@@ -3,9 +3,9 @@ spring.application.name=workbook
# https端口号.
# https端口号.
server.port
=
8
082
server.port
=
8
289
## 证书的路径.
## 证书的路径.
#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
## 秘钥库类型
## 秘钥库类型
...
@@ -14,7 +14,7 @@ server.port=8082
...
@@ -14,7 +14,7 @@ server.port=8082
#server.ssl.keyAlias= alias
#server.ssl.keyAlias= alias
#mongodb configuration
#mongodb configuration
spring.data.mongodb.uri
=
mongodb://localhost:27017/note
spring.data.mongodb.uri
=
mongodb://localhost:27017/note
s
# 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
...
@@ -24,5 +24,5 @@ spring.redis.port=6379
...
@@ -24,5 +24,5 @@ spring.redis.port=6379
spring.redis.timeout
=
5000ms
spring.redis.timeout
=
5000ms
# es configuraiton
# es configuraiton
es.ip
=
192.168.1.248
es.ip
=
localhost
logging.file
=
./log/note.log
logging.file
=
./log/note.log
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论