Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
c4a16f81
Commit
c4a16f81
authored
Jun 23, 2020
by
tangzhaoqian
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+1
parent
928790b2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
src/main/java/cn/timer/api/controller/jxgl/service/JxglServiceImpl.java
+3
-3
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+3
-6
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+10
-6
src/main/resources/mapping/jxgl/JxglPerformanceAppraisalMapper.xml
+0
-0
No files found.
src/main/java/cn/timer/api/controller/jxgl/service/JxglServiceImpl.java
View file @
c4a16f81
...
@@ -36,7 +36,7 @@ public class JxglServiceImpl implements JxglService {
...
@@ -36,7 +36,7 @@ public class JxglServiceImpl implements JxglService {
performanceRating
.
setName
(
"C"
);
performanceRating
.
setName
(
"C"
);
performanceRating
.
setSectionMinScore
(
0
);
performanceRating
.
setSectionMinScore
(
0
);
performanceRating
.
setSectionMaxScore
(
60
);
performanceRating
.
setSectionMaxScore
(
60
);
performanceRating
.
setRanks
(
0
);
performanceRating
.
setRanks
(
1
);
res
=
!
performanceRating
.
insert
()
&&
res
?
false
:
res
;
res
=
!
performanceRating
.
insert
()
&&
res
?
false
:
res
;
...
@@ -45,7 +45,7 @@ public class JxglServiceImpl implements JxglService {
...
@@ -45,7 +45,7 @@ public class JxglServiceImpl implements JxglService {
performanceRating
.
setName
(
"B"
);
performanceRating
.
setName
(
"B"
);
performanceRating
.
setSectionMinScore
(
60
);
performanceRating
.
setSectionMinScore
(
60
);
performanceRating
.
setSectionMaxScore
(
80
);
performanceRating
.
setSectionMaxScore
(
80
);
performanceRating
.
setRanks
(
0
);
performanceRating
.
setRanks
(
2
);
res
=
!
performanceRating
.
insert
()
&&
res
?
false
:
res
;
res
=
!
performanceRating
.
insert
()
&&
res
?
false
:
res
;
performanceRating
.
setId
(
null
);
performanceRating
.
setId
(
null
);
...
@@ -53,7 +53,7 @@ public class JxglServiceImpl implements JxglService {
...
@@ -53,7 +53,7 @@ public class JxglServiceImpl implements JxglService {
performanceRating
.
setName
(
"A"
);
performanceRating
.
setName
(
"A"
);
performanceRating
.
setSectionMinScore
(
80
);
performanceRating
.
setSectionMinScore
(
80
);
performanceRating
.
setSectionMaxScore
(
100
);
performanceRating
.
setSectionMaxScore
(
100
);
performanceRating
.
setRanks
(
0
);
performanceRating
.
setRanks
(
3
);
res
=
!
performanceRating
.
insert
()
&&
res
?
false
:
res
;
res
=
!
performanceRating
.
insert
()
&&
res
?
false
:
res
;
return
res
;
return
res
;
...
...
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
c4a16f81
...
@@ -127,6 +127,9 @@ public class SpmkController {
...
@@ -127,6 +127,9 @@ public class SpmkController {
@Autowired
@Autowired
private
SpmkInitiatorConfigMapper
spmkInitiatorConfigMapper
;
private
SpmkInitiatorConfigMapper
spmkInitiatorConfigMapper
;
@Autowired
private
SpmkAssoBusinessFactory
spmkAssoBusinessFactory
;
private
boolean
ISFIRST
=
true
;
// 第一次启动审批流程
private
boolean
ISFIRST
=
true
;
// 第一次启动审批流程
//TODO 审批模板组
//TODO 审批模板组
...
@@ -146,7 +149,6 @@ public class SpmkController {
...
@@ -146,7 +149,6 @@ public class SpmkController {
return
spmkApprovalTemplateG
.
insertOrUpdate
()
?
return
spmkApprovalTemplateG
.
insertOrUpdate
()
?
ResultUtil
.
data
(
spmkApprovalTemplateG
)
:
ResultUtil
.
error
();
ResultUtil
.
data
(
spmkApprovalTemplateG
)
:
ResultUtil
.
error
();
}
}
/**
/**
...
@@ -160,10 +162,8 @@ public class SpmkController {
...
@@ -160,10 +162,8 @@ public class SpmkController {
if
(
spmkApprovalTemplateMapper
.
selectCount
(
new
QueryWrapper
<
SpmkApprovalTemplate
>().
lambda
().
eq
(
SpmkApprovalTemplate:
:
getApprovalTemplateGId
,
id
))
>
0
)
if
(
spmkApprovalTemplateMapper
.
selectCount
(
new
QueryWrapper
<
SpmkApprovalTemplate
>().
lambda
().
eq
(
SpmkApprovalTemplate:
:
getApprovalTemplateGId
,
id
))
>
0
)
return
ResultUtil
.
error
(
"审批模板组存在 模板,不可直接删除!"
);
return
ResultUtil
.
error
(
"审批模板组存在 模板,不可直接删除!"
);
return
SpmkApprovalTemplateG
.
builder
().
id
(
id
).
build
().
deleteById
()
?
return
SpmkApprovalTemplateG
.
builder
().
id
(
id
).
build
().
deleteById
()
?
ResultUtil
.
success
()
:
ResultUtil
.
error
(
"没有找到该对象"
);
ResultUtil
.
success
()
:
ResultUtil
.
error
(
"没有找到该对象"
);
}
}
/**
/**
...
@@ -652,9 +652,6 @@ public class SpmkController {
...
@@ -652,9 +652,6 @@ public class SpmkController {
return
ResultUtil
.
data
(
adD
);
return
ResultUtil
.
data
(
adD
);
}
}
@Autowired
private
SpmkAssoBusinessFactory
spmkAssoBusinessFactory
;
//TODO 审批人审批
//TODO 审批人审批
/**
/**
* 审批人审批
* 审批人审批
...
...
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
c4a16f81
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
package
cn
.
timer
.
api
.
controller
.
yggl
;
package
cn
.
timer
.
api
.
controller
.
yggl
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -61,7 +60,6 @@ import cn.hutool.poi.excel.ExcelWriter;
...
@@ -61,7 +60,6 @@ import cn.hutool.poi.excel.ExcelWriter;
import
cn.timer.api.bean.clazz.CommonArea
;
import
cn.timer.api.bean.clazz.CommonArea
;
import
cn.timer.api.bean.clazz.SysRegion
;
import
cn.timer.api.bean.clazz.SysRegion
;
import
cn.timer.api.bean.kqmk.KqglAssoLeaveBalance
;
import
cn.timer.api.bean.kqmk.KqglAssoLeaveBalance
;
import
cn.timer.api.bean.kqmk.KqglAssoLeaveEmployeeBalance
;
import
cn.timer.api.bean.kqmk.KqglAssoLeaveRules
;
import
cn.timer.api.bean.kqmk.KqglAssoLeaveRules
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
...
@@ -291,19 +289,25 @@ public class YgglController {
...
@@ -291,19 +289,25 @@ public class YgglController {
.
empNum
(
login
.
getId
()).
orgCode
(
orgCode
).
bmgwId
(
bmgwId
).
build
();
.
empNum
(
login
.
getId
()).
orgCode
(
orgCode
).
bmgwId
(
bmgwId
).
build
();
ygglMainEmp
.
insert
();
ygglMainEmp
.
insert
();
//假期规则初始化
//假期规则初始化
String
current_time
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
());
List
<
KqglAssoLeaveRules
>
rul
=
KqglAssoLeaveRules
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
KqglAssoLeaveRules
>().
lambda
().
eq
(
KqglAssoLeaveRules:
:
getOrgCode
,
orgCode
));
List
<
KqglAssoLeaveRules
>
rul
=
KqglAssoLeaveRules
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
KqglAssoLeaveRules
>().
lambda
().
eq
(
KqglAssoLeaveRules:
:
getOrgCode
,
orgCode
));
for
(
KqglAssoLeaveRules
r
:
rul
)
{
for
(
KqglAssoLeaveRules
r
:
rul
)
{
if
(
r
.
getLeaveBalance
()
==
0
)
{
if
(
r
.
getLeaveBalance
()
==
0
)
{
KqglAssoLeaveEmployeeBalance
.
builder
().
leaveRulesId
(
r
.
getId
()).
userid
(
ygglMainEmp
.
getEmpNum
()).
balanceDays
(-
1
).
modifyUserid
(
userBean
.
getEmpNum
()).
modifyTimer
(
current_time
).
orgCode
(
userBean
.
getOrgCode
()).
build
().
insert
();
KqglAssoLeaveBalance
.
builder
().
leaveRulesId
(
r
.
getId
()).
userid
(
ygglMainEmp
.
getEmpNum
()).
modifyAction
(
2
).
balanceDays
(
"-1"
)
.
reason
(
"不限制余额"
).
modifyUserid
(
ygglMainEmp
.
getEmpNum
()).
modifyTimer
(
new
Date
().
getTime
()).
orgCode
(
userBean
.
getOrgCode
()).
isAutomatic
(
1
).
modifyNumber
(
1
).
build
().
insert
();
//员工假期余额
}
else
{
}
else
{
KqglAssoLeaveEmployeeBalance
.
builder
().
leaveRulesId
(
r
.
getId
()).
userid
(
ygglMainEmp
.
getEmpNum
()).
balanceDays
(
0.0
).
modifyUserid
(
userBean
.
getEmpNum
()).
modifyTimer
(
current_time
).
orgCode
(
userBean
.
getOrgCode
()).
build
().
insert
();
KqglAssoLeaveBalance
.
builder
().
leaveRulesId
(
r
.
getId
()).
userid
(
ygglMainEmp
.
getEmpNum
()).
modifyAction
(
1
).
balanceDays
(
"+0"
)
.
reason
(
"系统按照规则自动"
).
modifyUserid
(
ygglMainEmp
.
getEmpNum
()).
modifyTimer
(
new
Date
().
getTime
()).
orgCode
(
userBean
.
getOrgCode
()).
isAutomatic
(
1
).
modifyNumber
(
1
).
build
().
insert
();
//员工假期余额
}
}
}
}
return
ResultUtil
.
data
(
ygglMainEmp
,
"添加员工成功!"
);
return
ResultUtil
.
data
(
ygglMainEmp
,
"添加员工成功!"
);
}
else
{
}
else
{
return
ResultUtil
.
error
(
"该手机号已被使用,请输入正确手机号"
);
return
ResultUtil
.
error
(
"该手机号已被使用,请输入正确手机号"
);
...
@@ -1799,7 +1803,7 @@ public class YgglController {
...
@@ -1799,7 +1803,7 @@ public class YgglController {
@ApiOperation
(
value
=
"71.获取用户头像"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"71.获取用户头像"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
71
)
@ApiOperationSupport
(
order
=
71
)
public
Result
<
List
<
YgglMainEmp
>>
headphotos
(
@CurrentUser
UserBean
userBean
,
@RequestBody
List
<
Integer
>
empNumList
)
{
public
Result
<
List
<
YgglMainEmp
>>
headphotos
(
@CurrentUser
UserBean
userBean
,
@RequestBody
List
<
Integer
>
empNumList
)
{
if
(
empNumList
.
size
()
==
0
)
{
if
(
empNumList
==
null
||
empNumList
.
size
()
==
0
)
{
return
ResultUtil
.
error
(
"请输入empNum数组"
);
return
ResultUtil
.
error
(
"请输入empNum数组"
);
}
}
List
<
YgglMainEmp
>
yglList
=
YgglMainEmp
.
builder
().
build
()
List
<
YgglMainEmp
>
yglList
=
YgglMainEmp
.
builder
().
build
()
...
...
src/main/resources/mapping/jxgl/JxglPerformanceAppraisalMapper.xml
View file @
c4a16f81
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment