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
2526902d
Commit
2526902d
authored
4 years ago
by
tangzhaoqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效、审批bug
parent
a9a7b67e
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
150 additions
and
70 deletions
+150
-70
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
+32
-4
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+9
-1
src/main/java/cn/timer/api/controller/yggl/service/YgglService.java
+2
-0
src/main/java/cn/timer/api/controller/yggl/service/YgglServiceImpl.java
+11
-7
src/main/java/cn/timer/api/dto/yggl/YgzzDto.java
+3
-0
src/main/java/cn/timer/api/utils/DateFormatUtils.java
+1
-1
src/main/java/cn/timer/api/utils/router/business/EvectionBusiness.java
+3
-1
src/main/java/cn/timer/api/utils/router/business/GoOutBusiness.java
+1
-0
src/main/java/cn/timer/api/utils/router/business/LeaveBusiness.java
+1
-0
src/main/java/cn/timer/api/utils/router/business/RegularizationBusiness.java
+5
-1
src/main/java/cn/timer/api/utils/router/business/ReissueACardBusiness.java
+1
-0
src/main/java/cn/timer/api/utils/router/business/ResignationBusiness.java
+3
-2
src/main/java/cn/timer/api/utils/router/business/SpmkAssoBusinessFactory.java
+26
-51
src/main/java/cn/timer/api/utils/router/business/SpmkConfig.java
+49
-0
src/main/java/cn/timer/api/utils/router/business/TransferPositionBusiness.java
+1
-0
src/main/java/cn/timer/api/utils/router/business/WorkOvertimeBusiness.java
+2
-2
No files found.
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
View file @
2526902d
...
...
@@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
...
...
@@ -29,6 +30,7 @@ import cn.hutool.core.bean.BeanUtil;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.ListUtil
;
import
cn.hutool.core.lang.Console
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.timer.api.aspect.lang.annotation.Log
;
import
cn.timer.api.aspect.lang.annotation.Role
;
...
...
@@ -46,6 +48,7 @@ import cn.timer.api.bean.jxgl.JxglBasicSetting;
import
cn.timer.api.bean.jxgl.JxglPerformanceAppraisal
;
import
cn.timer.api.bean.jxgl.JxglPerformanceRating
;
import
cn.timer.api.bean.jxgl.JxglProcessNode
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.spmk.SpmkApproveSummary
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.bean.zzgl.ZzglBmgwM
;
...
...
@@ -61,6 +64,7 @@ import cn.timer.api.config.enuminterface.JxglEnumInterface.IndicatorsType;
import
cn.timer.api.config.enuminterface.JxglEnumInterface.PerformanceAppraisalSts
;
import
cn.timer.api.config.enuminterface.JxglEnumInterface.ProcessNodeSts
;
import
cn.timer.api.config.enuminterface.JxglEnumInterface.ProcessType
;
import
cn.timer.api.config.enums.SysRoleType
;
import
cn.timer.api.config.exception.CustomException
;
import
cn.timer.api.config.validation.ValidList
;
import
cn.timer.api.controller.jxgl.service.JxglService
;
...
...
@@ -79,6 +83,7 @@ import cn.timer.api.dao.jxgl.JxglBasicSettingMapper;
import
cn.timer.api.dao.jxgl.JxglPerformanceAppraisalMapper
;
import
cn.timer.api.dao.jxgl.JxglPerformanceRatingMapper
;
import
cn.timer.api.dao.jxgl.JxglProcessNodeMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
import
cn.timer.api.dao.yggl.YgglMainEmpMapper
;
import
cn.timer.api.dao.zzgl.ZzglBmgwMMapper
;
import
cn.timer.api.dto.jxgl.AppraisalAssessment
;
...
...
@@ -157,6 +162,9 @@ public class JxglController {
@Autowired
private
JxglAppraisalItemMapper
jxglAppraisalItemMapper
;
@Autowired
private
QyzxEmpEntAssoMapper
qyzxEmpEntAssoMapper
;
// TODO 基础设置
/**
...
...
@@ -454,8 +462,26 @@ public class JxglController {
if
(
ExecuteType
.
BEING_APPRAISAL_PERSON
.
getType
().
equals
(
executeType
))
{
processNode
.
setExecutorId
(
bAP
);
}
else
if
(
ExecuteType
.
LEADER
.
getType
().
equals
(
executeType
))
{
processNode
.
setExecutorId
(
ygglService
.
selectLeaderEmpNumById
(
userBean
.
getOrgCode
(),
bAP
,
pN
.
getLeaderTier
()));
Integer
leaderId
=
ygglService
.
selectLeaderEmpNumById
(
userBean
.
getOrgCode
(),
bAP
,
pN
.
getLeaderTier
());
Console
.
log
(
"bAP:"
+
bAP
);
Console
.
log
(
"leaderTier:"
+
pN
.
getLeaderTier
());
Console
.
log
(
"leaderId:"
+
leaderId
);
if
(
leaderId
==
null
)
{
QyzxEmpEntAsso
eEA
=
qyzxEmpEntAssoMapper
.
selectOne
(
new
QueryWrapper
<
QyzxEmpEntAsso
>().
lambda
()
.
select
(
QyzxEmpEntAsso:
:
getEmpNum
)
.
eq
(
QyzxEmpEntAsso:
:
getOrgCode
,
orgCode
)
.
eq
(
QyzxEmpEntAsso:
:
getUserType
,
SysRoleType
.
U_TYPE_ADMIN
.
getType
()));
leaderId
=
eEA
!=
null
?
eEA
.
getEmpNum
()
:
null
;
// 当 该企业无管理员时 报错
if
(
leaderId
==
null
)
{
throw
new
CustomException
(
"该企业不存在管理员,请联系客服"
);
}
}
processNode
.
setExecutorId
(
leaderId
);
}
else
if
(
ExecuteType
.
SPECIFIED_MEMBER
.
getType
().
equals
(
executeType
))
{
processNode
.
setExecutorId
(
pN
.
getExecutorId
());
}
...
...
@@ -502,8 +528,10 @@ public class JxglController {
});
YgglMainEmp
yME
=
ygglMainEmpMapper
.
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
()
.
select
(
YgglMainEmp:
:
getName
).
eq
(
YgglMainEmp:
:
getOrgCode
,
orgCode
).
eq
(
YgglMainEmp:
:
getEmpNum
,
bAP
));
// YgglMainEmp yME = ygglMainEmpMapper.selectOne(new QueryWrapper<YgglMainEmp>().lambda()
// .select(YgglMainEmp::getName)
// .eq(YgglMainEmp::getOrgCode, orgCode)
// .eq(YgglMainEmp::getEmpNum, bAP));
appraisalLog
.
setAppraisalId
(
appraisal
.
getId
());
appraisalLog
.
setExecutorId
(
bAP
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
2526902d
...
...
@@ -596,6 +596,9 @@ public class SpmkController {
return
ResultUtil
.
data
(
adD
);
}
@Autowired
private
SpmkAssoBusinessFactory
spmkAssoBusinessFactory
;
//TODO 审批人审批
/**
* 审批人审批
...
...
@@ -669,11 +672,16 @@ public class SpmkController {
JSONObject
jSONObject
=
ObjectUtil
.
deserialize
(
ad
.
getRequestData
());
jSONObject
.
set
(
"approveId"
,
FromData
.
builder
().
value
(
String
.
valueOf
(
asId
)));
jSONObject
.
set
(
"orgCode"
,
userBean
.
getOrgCode
());
System
.
out
.
println
(
"1----------"
+
aSummary
.
getAssoType
());
System
.
out
.
println
(
"2----------"
+
ApproveEnum
.
getEnums
(
aSummary
.
getAssoType
()));
//审批完成后 业务
SpmkAssoBusiness
sab
=
SpmkAssoBusinessFactory
.
getFactory
().
createSpmkAssoTyp
e
(
ApproveEnum
.
getEnums
(
aSummary
.
getAssoType
()));
SpmkAssoBusiness
sab
=
spmkAssoBusinessFactory
.
createSpmkServic
e
(
ApproveEnum
.
getEnums
(
aSummary
.
getAssoType
()));
if
(
sab
!=
null
)
System
.
out
.
println
(
"3----------"
+
sab
);
sab
.
handleApprove
(
jSONObject
);
System
.
out
.
println
(
"4----------"
+
aSummary
.
getAssoType
());
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/yggl/service/YgglService.java
View file @
2526902d
...
...
@@ -13,4 +13,6 @@ public interface YgglService {
* 根据 员工ID 和 主管层级 查询 主管
*/
Integer
selectLeaderEmpNumById
(
Integer
orgCode
,
Integer
id
,
Integer
leave
);
}
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/yggl/service/YgglServiceImpl.java
View file @
2526902d
...
...
@@ -56,11 +56,14 @@ public class YgglServiceImpl implements YgglService {
public
void
applicationRegularization
(
YgzzDto
ygzzDto
)
{
// TODO Auto-generated method stub
YgglMainEmp
.
builder
()
.
jobStatus
(
2
)
.
jobStatus
(
1
)
.
zzTime
(
ygzzDto
.
getZzTime
())
.
sjzzTime
(
new
Date
())
.
zzRemark
(
ygzzDto
.
getZzRemark
())
.
build
().
update
(
new
UpdateWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
ygzzDto
.
getEmpNum
()));
.
build
().
update
(
new
UpdateWrapper
<
YgglMainEmp
>().
lambda
()
.
eq
(
YgglMainEmp:
:
getEmpNum
,
ygzzDto
.
getEmpNum
())
.
eq
(
YgglMainEmp:
:
getOrgCode
,
ygzzDto
.
getOrgCode
())
);
}
@Override
...
...
@@ -68,7 +71,8 @@ public class YgglServiceImpl implements YgglService {
// TODO Auto-generated method stub
YgglMainEmp
mainEmp
=
ygglMainEmpMapper
.
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
()
.
select
(
YgglMainEmp:
:
getBmgwId
)
.
eq
(
YgglMainEmp:
:
getEmpNum
,
id
));
.
eq
(
YgglMainEmp:
:
getEmpNum
,
id
)
.
eq
(
YgglMainEmp:
:
getOrgCode
,
orgCode
));
Integer
gWId
=
mainEmp
!=
null
?
mainEmp
.
getBmgwId
()
:
null
;
// 企业所有部门岗位
...
...
@@ -85,13 +89,13 @@ public class YgglServiceImpl implements YgglService {
// List<ZzglBmgwM> listbM = ListUtil.toList();
// 指定 主管id
Integer
leaderId
=
null
;
for
(
int
i
=
0
,
n
=
leave
;
i
<
n
;
i
++)
{
Integer
bmgwLeaderId
;
for
(
int
i
=
0
,
n
=
leave
+
1
;
i
<
n
;
i
++)
{
ZzglBmgwM
bmgwM
=
getLeaderEmp
(
listBM
,
baseBmgwId
);
b
aseBmgwId
=
bmgwM
!=
null
?
bmgwM
.
getId
()
:
null
;
b
mgwLeaderId
=
bmgwM
!=
null
?
bmgwM
.
getLeader
()
:
null
;
if
(
i
==
n
-
1
)
{
// listbM.add(bmgwM);
leaderId
=
b
aseBmgw
Id
;
leaderId
=
b
mgwLeader
Id
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dto/yggl/YgzzDto.java
View file @
2526902d
...
...
@@ -19,6 +19,9 @@ public class YgzzDto implements Serializable{
@ApiModelProperty
(
value
=
"工号"
,
example
=
"9527"
)
private
Integer
empNum
;
@ApiModelProperty
(
value
=
"企业id"
,
example
=
"12"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"应转正时间"
,
example
=
"1999-12-03"
)
private
Date
zzTime
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/DateFormatUtils.java
View file @
2526902d
...
...
@@ -109,7 +109,7 @@ public class DateFormatUtils {
public
static
Date
getDateByString
(
String
date
)
throws
ParseException
{
if
(
date
==
null
)
{
if
(
date
==
null
||
""
.
equals
(
date
)
)
{
return
null
;
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/EvectionBusiness.java
View file @
2526902d
...
...
@@ -56,7 +56,9 @@ public class EvectionBusiness extends SpmkAssoBusiness {
.
endtime
(
DateUtil
.
getStringTime
(
endTime
,
"yyyy-MM-dd HH:mm:ss"
))
.
duration
(
Convert
.
toDouble
(
longTime
))
.
build
();
System
.
out
.
println
(
"出差:"
+
eaD
);
// 调 考勤管理 业务-出差
kqglService
.
attevectionapproval
(
eaD
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/GoOutBusiness.java
View file @
2526902d
...
...
@@ -55,6 +55,7 @@ public class GoOutBusiness extends SpmkAssoBusiness {
.
duration
(
Convert
.
toDouble
(
longTime
))
.
build
();
System
.
out
.
println
(
"外出:"
+
eaD
);
// 调 考勤管理 业务-外出
kqglService
.
attevectionapproval
(
eaD
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/LeaveBusiness.java
View file @
2526902d
...
...
@@ -62,6 +62,7 @@ public class LeaveBusiness extends SpmkAssoBusiness {
.
duration
(
Convert
.
toDouble
(
longTime
))
.
build
();
System
.
out
.
println
(
"请假:"
+
laD
);
// 调 考勤管理 业务-请假
kqglService
.
attleaveapproval
(
laD
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/RegularizationBusiness.java
View file @
2526902d
...
...
@@ -7,6 +7,7 @@ import org.springframework.stereotype.Service;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.json.JSONObject
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
...
...
@@ -49,6 +50,8 @@ public class RegularizationBusiness extends SpmkAssoBusiness {
// 发起人id
Integer
id
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"id"
,
FromData
.
class
))
?
null
:
Integer
.
parseInt
(
jsonObj
.
get
(
"id"
,
FromData
.
class
).
getValue
());
// 企业id
Integer
orgCode
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"orgCode"
))
?
null
:
Convert
.
toInt
(
jsonObj
.
get
(
"orgCode"
));
// 计划转正时间
String
confirmationTime
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"confirmationTime"
,
FromData
.
class
))
?
null
:
jsonObj
.
get
(
"confirmationTime"
,
FromData
.
class
).
getValue
();
// 实际转正时间
...
...
@@ -58,11 +61,12 @@ public class RegularizationBusiness extends SpmkAssoBusiness {
YgzzDto
ygzzDto
=
YgzzDto
.
builder
()
.
empNum
(
id
)
.
orgCode
(
orgCode
)
.
zzTime
(
DateFormatUtils
.
getDateByString
(
confirmationTime
))
.
sjzzTime
(
DateFormatUtils
.
getDateByString
(
newConfirmationTime
))
.
zzRemark
(
Remarks
)
.
build
();
System
.
out
.
println
(
"转正:"
+
ygzzDto
);
// 调 员工管理 业务
// YgglMainEmp.builder()
// .jobStatus(2)
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/ReissueACardBusiness.java
View file @
2526902d
...
...
@@ -55,6 +55,7 @@ public class ReissueACardBusiness extends SpmkAssoBusiness {
.
cardreplperiod
(
Convert
.
toInt
(
cardreplperiod
))
.
build
();
System
.
out
.
println
(
"补卡:"
+
raD
);
// 调 考勤管理 业务-补卡
kqglService
.
attrepairapproval
(
raD
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/ResignationBusiness.java
View file @
2526902d
...
...
@@ -44,15 +44,16 @@ public class ResignationBusiness extends SpmkAssoBusiness {
// 备注
String
Remarks
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"Remarks"
,
FromData
.
class
))
?
null
:
jsonObj
.
get
(
"Remarks"
,
FromData
.
class
).
getValue
();
LzygQueryDto
dt
o
=
LzygQueryDto
.
builder
()
LzygQueryDto
dt
O
=
LzygQueryDto
.
builder
()
.
orgCode
(
orgCode
)
.
empNum
(
id
)
.
lzTime
(
DateFormatUtils
.
getDateByString
(
terminationDate
))
.
lzyy
(
ReasonForResignation
)
.
lzbz
(
Remarks
)
.
build
();
System
.
out
.
println
(
"离职:"
+
dtO
);
// 调 员工管理 业务
ygglService
.
applicationResignation
(
dt
o
);
ygglService
.
applicationResignation
(
dt
O
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/SpmkAssoBusinessFactory.java
View file @
2526902d
package
cn
.
timer
.
api
.
utils
.
router
.
business
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
cn.timer.api.utils.router.enums.ApproveEnum
;
/**
* 审批关联业务工厂类
*
* @author Tang
*
*/
public
class
SpmkAssoBusinessFactory
{
@Autowired
private
RegularizationBusiness
regularizationBusiness
;
@Autowired
private
TransferPositionBusiness
transferPositionBusiness
;
@Autowired
private
ResignationBusiness
resignationBusiness
;
@Autowired
private
RecruitBusiness
recruitBusiness
;
@Autowired
private
WorkOvertimeBusiness
workOvertimeBusiness
;
@Autowired
private
LeaveBusiness
leaveBusiness
;
@Autowired
private
EvectionBusiness
evectionBusiness
;
@Autowired
private
GoOutBusiness
goOutBusiness
;
@Autowired
private
ReissueACardBusiness
reissueACardBusiness
;
static
SpmkAssoBusinessFactory
factory
;
public
static
SpmkAssoBusinessFactory
getFactory
()
{
return
factory
==
null
?
new
SpmkAssoBusinessFactory
()
:
factory
;
}
public
SpmkAssoBusiness
createSpmkAssoType
(
ApproveEnum
assotype
)
{
SpmkAssoBusiness
sat
=
null
;
/*
* Map中的Value是 ServiceBean
*/
private
Map
<
String
,
SpmkAssoBusiness
>
serviceMap
;
public
SpmkAssoBusiness
createSpmkService
(
ApproveEnum
assotype
)
{
switch
(
assotype
)
{
case
DEFAULT:
break
;
case
REGULARIZATION:
sat
=
regularizationBusiness
;
break
;
return
serviceMap
.
get
(
"regularizationBusiness"
);
case
RESIGNATION:
sat
=
resignationBusiness
;
break
;
return
serviceMap
.
get
(
"resignationBusiness"
);
case
TRANSFER_POSITION:
sat
=
transferPositionBusiness
;
break
;
return
serviceMap
.
get
(
"transferPositionBusiness"
);
case
RECRUIT:
sat
=
recruitBusiness
;
break
;
return
serviceMap
.
get
(
"recruitBusiness"
);
case
WORK_OVERTIME:
sat
=
workOvertimeBusiness
;
break
;
return
serviceMap
.
get
(
"workOvertimeBusiness"
);
case
LEAVE:
sat
=
leaveBusiness
;
break
;
return
serviceMap
.
get
(
"leaveBusiness"
);
case
EVECTION:
sat
=
evectionBusiness
;
break
;
return
serviceMap
.
get
(
"evectionBusiness"
);
case
GO_OUT:
sat
=
goOutBusiness
;
break
;
return
serviceMap
.
get
(
"goOutBusiness"
);
case
REISSUE_A_CARD:
sat
=
reissueACardBusiness
;
break
;
return
serviceMap
.
get
(
"reissueACardBusiness"
);
default
:
break
;
}
return
sat
;
return
serviceMap
.
get
(
"regularizationBusiness"
);
}
public
void
setServiceMap
(
Map
<
String
,
SpmkAssoBusiness
>
serviceMap
)
{
this
.
serviceMap
=
serviceMap
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/SpmkConfig.java
0 → 100644
View file @
2526902d
package
cn
.
timer
.
api
.
utils
.
router
.
business
;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
public
class
SpmkConfig
{
@Autowired
private
RegularizationBusiness
regularizationBusiness
;
@Autowired
private
TransferPositionBusiness
transferPositionBusiness
;
@Autowired
private
ResignationBusiness
resignationBusiness
;
@Autowired
private
RecruitBusiness
recruitBusiness
;
@Autowired
private
WorkOvertimeBusiness
workOvertimeBusiness
;
@Autowired
private
LeaveBusiness
leaveBusiness
;
@Autowired
private
EvectionBusiness
evectionBusiness
;
@Autowired
private
GoOutBusiness
goOutBusiness
;
@Autowired
private
ReissueACardBusiness
reissueACardBusiness
;
@Bean
public
SpmkAssoBusinessFactory
createFactory
()
{
SpmkAssoBusinessFactory
factory
=
new
SpmkAssoBusinessFactory
();
Map
<
String
,
SpmkAssoBusiness
>
serviceMap
=
new
HashMap
<>();
serviceMap
.
put
(
"regularizationBusiness"
,
regularizationBusiness
);
serviceMap
.
put
(
"transferPositionBusiness"
,
transferPositionBusiness
);
serviceMap
.
put
(
"resignationBusiness"
,
resignationBusiness
);
serviceMap
.
put
(
"recruitBusiness"
,
recruitBusiness
);
serviceMap
.
put
(
"workOvertimeBusiness"
,
workOvertimeBusiness
);
serviceMap
.
put
(
"leaveBusiness"
,
leaveBusiness
);
serviceMap
.
put
(
"evectionBusiness"
,
evectionBusiness
);
serviceMap
.
put
(
"goOutBusiness"
,
goOutBusiness
);
serviceMap
.
put
(
"reissueACardBusiness"
,
reissueACardBusiness
);
factory
.
setServiceMap
(
serviceMap
);
return
factory
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/TransferPositionBusiness.java
View file @
2526902d
...
...
@@ -52,6 +52,7 @@ public class TransferPositionBusiness extends SpmkAssoBusiness {
.
isdg
(
1
)
.
build
();
System
.
out
.
println
(
"调岗:"
+
upEmpDeptDto
);
// 调 员工管理 业务
zzglBmgwMService
.
applicationTransferPosition
(
id
,
orgCode
,
upEmpDeptDto
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/business/WorkOvertimeBusiness.java
View file @
2526902d
...
...
@@ -12,7 +12,6 @@ import cn.timer.api.controller.kqgl.service.KqglService;
import
cn.timer.api.dto.kqmk.AttOvertimeApprovalDto
;
import
cn.timer.api.dto.spmk.FromData
;
import
cn.timer.api.utils.DateUtil
;
import
lombok.Builder
;
/**
* 加班-业务
...
...
@@ -62,7 +61,8 @@ public class WorkOvertimeBusiness extends SpmkAssoBusiness {
.
duration
(
Convert
.
toDouble
(
timeLong
))
.
compensate
(
Convert
.
toInt
(
compensate
))
.
build
();
System
.
out
.
println
(
"加班:"
+
oaD
);
// 调 考勤管理 业务-加班
kqglService
.
attovertimeapproval
(
oaD
);
...
...
This diff is collapsed.
Click to expand it.
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