Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
shr-server
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
inroi
shr-server
Commits
68580200
提交
68580200
authored
4月 15, 2022
作者:
inroi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增日志记录
上级
41128e6a
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
32 行增加
和
5 行删除
+32
-5
WebMvcConfig.java
src/main/java/com/shr/config/WebMvcConfig.java
+7
-0
AdminOrgController.java
src/main/java/com/shr/controller/AdminOrgController.java
+4
-0
EasController.java
src/main/java/com/shr/controller/EasController.java
+2
-0
EmployeeController.java
src/main/java/com/shr/controller/EmployeeController.java
+7
-1
PositionController.java
src/main/java/com/shr/controller/PositionController.java
+5
-0
UserController.java
src/main/java/com/shr/controller/UserController.java
+2
-0
Log.java
src/main/java/com/shr/model/Log.java
+1
-0
AdminOrgServiceImpl.java
src/main/java/com/shr/serivce/impl/AdminOrgServiceImpl.java
+1
-1
application-docker.yml
src/main/resources/application-docker.yml
+1
-1
application-test.yml
src/main/resources/application-test.yml
+2
-2
没有找到文件。
src/main/java/com/shr/config/WebMvcConfig.java
浏览文件 @
68580200
...
@@ -4,6 +4,7 @@ package com.shr.config;
...
@@ -4,6 +4,7 @@ package com.shr.config;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.alibaba.fastjson.support.config.FastJsonConfig
;
import
com.alibaba.fastjson.support.config.FastJsonConfig
;
import
com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
;
import
com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
;
import
com.shr.common.SpringContextHolder
;
import
org.springframework.boot.autoconfigure.http.HttpMessageConverters
;
import
org.springframework.boot.autoconfigure.http.HttpMessageConverters
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
...
@@ -45,5 +46,10 @@ public class WebMvcConfig implements WebMvcConfigurer {
...
@@ -45,5 +46,10 @@ public class WebMvcConfig implements WebMvcConfigurer {
return
new
HttpMessageConverters
(
fastJsonConverter
);
return
new
HttpMessageConverters
(
fastJsonConverter
);
}
}
@Bean
public
SpringContextHolder
springContextHolder
()
{
return
new
SpringContextHolder
();
}
}
}
\ No newline at end of file
src/main/java/com/shr/controller/AdminOrgController.java
浏览文件 @
68580200
package
com
.
shr
.
controller
;
package
com
.
shr
.
controller
;
import
com.shr.annotion.AccessLog
;
import
com.shr.common.response.RestResponse
;
import
com.shr.common.response.RestResponse
;
import
com.shr.serivce.IAdminOrgService
;
import
com.shr.serivce.IAdminOrgService
;
import
com.shr.transfer.adminorg.AdminOrgInVo
;
import
com.shr.transfer.adminorg.AdminOrgInVo
;
...
@@ -23,17 +24,20 @@ public class AdminOrgController {
...
@@ -23,17 +24,20 @@ public class AdminOrgController {
private
IAdminOrgService
adminOrgService
;
private
IAdminOrgService
adminOrgService
;
@AccessLog
(
"组织列表"
)
@PostMapping
(
"/admin/org/list"
)
@PostMapping
(
"/admin/org/list"
)
public
RestResponse
adminOrgList
(
@RequestBody
(
required
=
true
)
@Validated
AdminOrgListInVo
inVo
)
{
public
RestResponse
adminOrgList
(
@RequestBody
(
required
=
true
)
@Validated
AdminOrgListInVo
inVo
)
{
AdminOrgListOutVo
outVo
=
adminOrgService
.
adminOrgList
(
inVo
);
AdminOrgListOutVo
outVo
=
adminOrgService
.
adminOrgList
(
inVo
);
return
RestResponse
.
success
(
outVo
);
return
RestResponse
.
success
(
outVo
);
}
}
@AccessLog
(
"组织录入"
)
@PostMapping
(
"/admin/org/add"
)
@PostMapping
(
"/admin/org/add"
)
public
RestResponse
adminOrgAdd
(
@RequestBody
(
required
=
true
)
@Validated
AdminOrgInVo
inVo
)
{
public
RestResponse
adminOrgAdd
(
@RequestBody
(
required
=
true
)
@Validated
AdminOrgInVo
inVo
)
{
return
adminOrgService
.
adminOrgAddOrUpdate
(
inVo
);
return
adminOrgService
.
adminOrgAddOrUpdate
(
inVo
);
}
}
@AccessLog
(
"组织编辑"
)
@PostMapping
(
"/admin/org/update"
)
@PostMapping
(
"/admin/org/update"
)
public
RestResponse
adminOrgUpdate
(
@RequestBody
(
required
=
true
)
@Validated
AdminOrgInVo
inVo
)
{
public
RestResponse
adminOrgUpdate
(
@RequestBody
(
required
=
true
)
@Validated
AdminOrgInVo
inVo
)
{
return
adminOrgService
.
adminOrgAddOrUpdate
(
inVo
);
return
adminOrgService
.
adminOrgAddOrUpdate
(
inVo
);
...
...
src/main/java/com/shr/controller/EasController.java
浏览文件 @
68580200
package
com
.
shr
.
controller
;
package
com
.
shr
.
controller
;
import
com.kingdee.shr.sso.client.ltpa.LtpaTokenManager
;
import
com.kingdee.shr.sso.client.ltpa.LtpaTokenManager
;
import
com.shr.annotion.AccessLog
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -16,6 +17,7 @@ import java.io.IOException;
...
@@ -16,6 +17,7 @@ import java.io.IOException;
@RequestMapping
(
"/api"
)
@RequestMapping
(
"/api"
)
public
class
EasController
{
public
class
EasController
{
@AccessLog
(
"单点登录"
)
@GetMapping
(
value
=
"/eas/ssoLogin"
)
@GetMapping
(
value
=
"/eas/ssoLogin"
)
public
void
ssoLogin
(
HttpServletResponse
response
)
throws
IOException
{
public
void
ssoLogin
(
HttpServletResponse
response
)
throws
IOException
{
response
.
sendRedirect
(
loginEasportal
());
response
.
sendRedirect
(
loginEasportal
());
...
...
src/main/java/com/shr/controller/EmployeeController.java
浏览文件 @
68580200
package
com
.
shr
.
controller
;
package
com
.
shr
.
controller
;
import
com.shr.annotion.AccessLog
;
import
com.shr.common.response.RestResponse
;
import
com.shr.common.response.RestResponse
;
import
com.shr.transfer.employee.*
;
import
com.shr.serivce.IEmployeeService
;
import
com.shr.serivce.IEmployeeService
;
import
com.shr.transfer.employee.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -21,28 +22,33 @@ public class EmployeeController {
...
@@ -21,28 +22,33 @@ public class EmployeeController {
private
IEmployeeService
employeeService
;
private
IEmployeeService
employeeService
;
@AccessLog
(
"员工列表"
)
@PostMapping
(
"/employee/list"
)
@PostMapping
(
"/employee/list"
)
public
RestResponse
employeeList
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeListInVo
inVo
)
{
public
RestResponse
employeeList
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeListInVo
inVo
)
{
EmployeeListOutVo
outVo
=
employeeService
.
employeeList
(
inVo
);
EmployeeListOutVo
outVo
=
employeeService
.
employeeList
(
inVo
);
return
RestResponse
.
success
(
outVo
);
return
RestResponse
.
success
(
outVo
);
}
}
@AccessLog
(
"员工任职列表"
)
@PostMapping
(
"/employee/employment/list"
)
@PostMapping
(
"/employee/employment/list"
)
public
RestResponse
employeeEmploymentList
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeEmploymentListInVo
inVo
)
{
public
RestResponse
employeeEmploymentList
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeEmploymentListInVo
inVo
)
{
EmployeeEmploymentListOutVo
outVo
=
employeeService
.
employeeEmploymentList
(
inVo
);
EmployeeEmploymentListOutVo
outVo
=
employeeService
.
employeeEmploymentList
(
inVo
);
return
RestResponse
.
success
(
outVo
);
return
RestResponse
.
success
(
outVo
);
}
}
@AccessLog
(
"员工入职"
)
@PostMapping
(
"/employee/induction"
)
@PostMapping
(
"/employee/induction"
)
public
RestResponse
employeeInduction
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeInductionInVo
inVo
)
{
public
RestResponse
employeeInduction
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeInductionInVo
inVo
)
{
return
employeeService
.
employeeInduction
(
inVo
);
return
employeeService
.
employeeInduction
(
inVo
);
}
}
@AccessLog
(
"员工调动"
)
@PostMapping
(
"/employee/transfer"
)
@PostMapping
(
"/employee/transfer"
)
public
RestResponse
employeeTransfer
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeTransferInVo
inVo
)
{
public
RestResponse
employeeTransfer
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeTransferInVo
inVo
)
{
return
employeeService
.
employeeTransfer
(
inVo
);
return
employeeService
.
employeeTransfer
(
inVo
);
}
}
@AccessLog
(
"员工离职"
)
@PostMapping
(
"/employee/turnover"
)
@PostMapping
(
"/employee/turnover"
)
public
RestResponse
employeeTurnover
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeTurnoverInVo
inVo
)
{
public
RestResponse
employeeTurnover
(
@RequestBody
(
required
=
true
)
@Validated
EmployeeTurnoverInVo
inVo
)
{
return
employeeService
.
employeeTurnover
(
inVo
);
return
employeeService
.
employeeTurnover
(
inVo
);
...
...
src/main/java/com/shr/controller/PositionController.java
浏览文件 @
68580200
package
com
.
shr
.
controller
;
package
com
.
shr
.
controller
;
import
com.shr.annotion.AccessLog
;
import
com.shr.common.response.RestResponse
;
import
com.shr.common.response.RestResponse
;
import
com.shr.serivce.IPositionService
;
import
com.shr.serivce.IPositionService
;
import
com.shr.transfer.position.*
;
import
com.shr.transfer.position.*
;
...
@@ -17,23 +18,27 @@ public class PositionController {
...
@@ -17,23 +18,27 @@ public class PositionController {
@Autowired
@Autowired
private
IPositionService
positionService
;
private
IPositionService
positionService
;
@AccessLog
(
"岗位列表"
)
@GetMapping
(
"/position/list"
)
@GetMapping
(
"/position/list"
)
public
RestResponse
positionList
(
@RequestBody
(
required
=
true
)
@Validated
PositionListInVo
inVo
)
{
public
RestResponse
positionList
(
@RequestBody
(
required
=
true
)
@Validated
PositionListInVo
inVo
)
{
PositionListOutVo
outVo
=
positionService
.
positionList
(
inVo
);
PositionListOutVo
outVo
=
positionService
.
positionList
(
inVo
);
return
RestResponse
.
success
(
outVo
);
return
RestResponse
.
success
(
outVo
);
}
}
@AccessLog
(
"职位列表"
)
@GetMapping
(
"/position/job/list"
)
@GetMapping
(
"/position/job/list"
)
public
RestResponse
positionJobList
(
@RequestBody
(
required
=
true
)
@Validated
PositionJobListInVo
inVo
)
{
public
RestResponse
positionJobList
(
@RequestBody
(
required
=
true
)
@Validated
PositionJobListInVo
inVo
)
{
PositionJobListOutVo
outVo
=
positionService
.
positionJobList
(
inVo
);
PositionJobListOutVo
outVo
=
positionService
.
positionJobList
(
inVo
);
return
RestResponse
.
success
(
outVo
);
return
RestResponse
.
success
(
outVo
);
}
}
@AccessLog
(
"岗位录入"
)
@PostMapping
(
"/position/add"
)
@PostMapping
(
"/position/add"
)
public
RestResponse
positionAdd
(
@RequestBody
(
required
=
true
)
@Validated
PositionInVo
inVo
)
{
public
RestResponse
positionAdd
(
@RequestBody
(
required
=
true
)
@Validated
PositionInVo
inVo
)
{
return
positionService
.
positionAddOrUpdate
(
inVo
);
return
positionService
.
positionAddOrUpdate
(
inVo
);
}
}
@AccessLog
(
"岗位编辑"
)
@PostMapping
(
"/position/update"
)
@PostMapping
(
"/position/update"
)
public
RestResponse
positionUpdate
(
@RequestBody
(
required
=
true
)
@Validated
PositionInVo
inVo
)
{
public
RestResponse
positionUpdate
(
@RequestBody
(
required
=
true
)
@Validated
PositionInVo
inVo
)
{
return
positionService
.
positionAddOrUpdate
(
inVo
);
return
positionService
.
positionAddOrUpdate
(
inVo
);
...
...
src/main/java/com/shr/controller/UserController.java
浏览文件 @
68580200
package
com
.
shr
.
controller
;
package
com
.
shr
.
controller
;
import
com.shr.annotion.AccessLog
;
import
com.shr.common.response.RestResponse
;
import
com.shr.common.response.RestResponse
;
import
com.shr.serivce.IUserService
;
import
com.shr.serivce.IUserService
;
import
com.shr.transfer.user.UserListInVo
;
import
com.shr.transfer.user.UserListInVo
;
...
@@ -22,6 +23,7 @@ public class UserController {
...
@@ -22,6 +23,7 @@ public class UserController {
private
IUserService
userService
;
private
IUserService
userService
;
@AccessLog
(
"用户列表"
)
@PostMapping
(
"/user/list"
)
@PostMapping
(
"/user/list"
)
public
RestResponse
userList
(
@RequestBody
(
required
=
true
)
@Validated
UserListInVo
inVo
)
{
public
RestResponse
userList
(
@RequestBody
(
required
=
true
)
@Validated
UserListInVo
inVo
)
{
UserListOutVo
outVo
=
userService
.
userList
(
inVo
);
UserListOutVo
outVo
=
userService
.
userList
(
inVo
);
...
...
src/main/java/com/shr/model/Log.java
浏览文件 @
68580200
...
@@ -27,6 +27,7 @@ public class Log {
...
@@ -27,6 +27,7 @@ public class Log {
/**
/**
* 系统类型
* 系统类型
*/
*/
@TableField
(
"system_type"
)
private
String
systemType
;
private
String
systemType
;
...
...
src/main/java/com/shr/serivce/impl/AdminOrgServiceImpl.java
浏览文件 @
68580200
...
@@ -40,7 +40,7 @@ public class AdminOrgServiceImpl implements IAdminOrgService {
...
@@ -40,7 +40,7 @@ public class AdminOrgServiceImpl implements IAdminOrgService {
map
.
put
(
"org_number"
,
inVo
.
getOrgNumber
());
map
.
put
(
"org_number"
,
inVo
.
getOrgNumber
());
map
.
put
(
"parentOrgNumber"
,
inVo
.
getParentOrgNumber
());
map
.
put
(
"parentOrgNumber"
,
inVo
.
getParentOrgNumber
());
callShrOsfApi
.
callShrOsf
(
"synAdminOrgToSHRService"
,
map
);
//
callShrOsfApi.callShrOsf("synAdminOrgToSHRService", map);
return
RestResponse
.
success
();
return
RestResponse
.
success
();
}
}
...
...
src/main/resources/application-docker.yml
浏览文件 @
68580200
...
@@ -27,7 +27,7 @@ spring:
...
@@ -27,7 +27,7 @@ spring:
mybatis-plus
:
mybatis-plus
:
mapper-locations
:
classpath*:/**/*Mapper.xml
mapper-locations
:
classpath*:/**/*Mapper.xml
typeAliasesPackage
:
inori.blog
.model
typeAliasesPackage
:
com.shr
.model
configuration
:
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
mapUnderscoreToCamelCase
:
true
mapUnderscoreToCamelCase
:
true
...
...
src/main/resources/application-test.yml
浏览文件 @
68580200
...
@@ -20,14 +20,14 @@ spring:
...
@@ -20,14 +20,14 @@ spring:
max-file-size
:
100MB
max-file-size
:
100MB
datasource
:
datasource
:
url
:
jdbc:mysql://127.0.0.1:3306/
demo
?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=CTT
url
:
jdbc:mysql://127.0.0.1:3306/
shr_server
?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=CTT
username
:
inori
username
:
inori
password
:
inori
password
:
inori
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
mybatis-plus
:
mybatis-plus
:
mapper-locations
:
classpath*:/**/*Mapper.xml
mapper-locations
:
classpath*:/**/*Mapper.xml
typeAliasesPackage
:
inori.blog
.model
typeAliasesPackage
:
com.shr
.model
configuration
:
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
mapUnderscoreToCamelCase
:
true
mapUnderscoreToCamelCase
:
true
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论