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
963d809b
Commit
963d809b
authored
Jun 17, 2020
by
tangzhaoqian
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批bug修复
parent
6beb7c58
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
61 additions
and
27 deletions
+61
-27
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
+1
-1
src/main/java/cn/timer/api/utils/router/business/EvectionBusiness.java
+2
-1
src/main/java/cn/timer/api/utils/router/business/GoOutBusiness.java
+2
-1
src/main/java/cn/timer/api/utils/router/business/LeaveBusiness.java
+2
-1
src/main/java/cn/timer/api/utils/router/business/RecruitBusiness.java
+3
-1
src/main/java/cn/timer/api/utils/router/business/RegularizationBusiness.java
+9
-8
src/main/java/cn/timer/api/utils/router/business/ReissueACardBusiness.java
+2
-1
src/main/java/cn/timer/api/utils/router/business/ResignationBusiness.java
+5
-2
src/main/java/cn/timer/api/utils/router/business/SpmkAssoBusinessFactory.java
+30
-9
src/main/java/cn/timer/api/utils/router/business/TransferPositionBusiness.java
+3
-1
src/main/java/cn/timer/api/utils/router/business/WorkOvertimeBusiness.java
+2
-1
No files found.
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
View file @
963d809b
...
...
@@ -139,7 +139,7 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
@ApiModelProperty
(
value
=
"转正备注 "
,
example
=
"转正备注"
)
private
String
zzRemark
;
@ApiModelProperty
(
value
=
"工作性质 0全职、1实习
生
、2兼职、3劳务派遣、4劳务、5派遣、6外包、7退休返聘"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"工作性质 0全职、1实习、2兼职、3劳务派遣、4劳务、5派遣、6外包、7退休返聘"
,
example
=
"101"
)
private
Integer
jobType
;
@ApiModelProperty
(
value
=
"员工状态 0试用、1正式、2离职中、3已离职"
,
example
=
"101"
)
...
...
src/main/java/cn/timer/api/utils/router/business/EvectionBusiness.java
View file @
963d809b
...
...
@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import
java.text.ParseException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
...
...
@@ -18,7 +19,7 @@ import lombok.Builder;
* @author Tang
*
*/
@
Builder
@
Service
public
class
EvectionBusiness
extends
SpmkAssoBusiness
{
@Autowired
...
...
src/main/java/cn/timer/api/utils/router/business/GoOutBusiness.java
View file @
963d809b
package
cn
.
timer
.
api
.
utils
.
router
.
business
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
...
...
@@ -16,7 +17,7 @@ import lombok.Builder;
* @author Tang
*
*/
@
Builder
@
Service
public
class
GoOutBusiness
extends
SpmkAssoBusiness
{
@Autowired
...
...
src/main/java/cn/timer/api/utils/router/business/LeaveBusiness.java
View file @
963d809b
...
...
@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import
java.text.ParseException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
...
...
@@ -20,7 +21,7 @@ import lombok.Builder;
* @author Tang
*
*/
@
Builder
@
Service
public
class
LeaveBusiness
extends
SpmkAssoBusiness
{
@Autowired
...
...
src/main/java/cn/timer/api/utils/router/business/RecruitBusiness.java
View file @
963d809b
package
cn
.
timer
.
api
.
utils
.
router
.
business
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.json.JSONObject
;
import
cn.timer.api.dto.spmk.FromData
;
...
...
@@ -11,7 +13,7 @@ import lombok.Builder;
* @author Tang
*
*/
@
Builder
@
Service
public
class
RecruitBusiness
extends
SpmkAssoBusiness
{
@Override
...
...
src/main/java/cn/timer/api/utils/router/business/RegularizationBusiness.java
View file @
963d809b
...
...
@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import
java.util.Date
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
...
...
@@ -20,7 +21,7 @@ import lombok.Builder;
* @author Tang
*
*/
@
Builder
@
Service
public
class
RegularizationBusiness
extends
SpmkAssoBusiness
{
@Autowired
...
...
@@ -63,13 +64,13 @@ public class RegularizationBusiness extends SpmkAssoBusiness {
.
build
();
// 调 员工管理 业务
YgglMainEmp
.
builder
()
.
jobStatus
(
2
)
.
zzTime
(
ygzzDto
.
getZzTime
())
.
sjzzTime
(
new
Date
())
.
zzRemark
(
ygzzDto
.
getZzRemark
())
.
build
().
update
(
new
UpdateWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
ygzzDto
.
getEmpNum
()));
//
ygglService.applicationRegularization(ygzzDto);
//
YgglMainEmp.builder()
//
.jobStatus(2)
//
.zzTime(ygzzDto.getZzTime())
//
.sjzzTime(new Date())
//
.zzRemark(ygzzDto.getZzRemark())
//
.build().update(new UpdateWrapper<YgglMainEmp>().lambda().eq(YgglMainEmp::getEmpNum, ygzzDto.getEmpNum()));
ygglService
.
applicationRegularization
(
ygzzDto
);
}
}
src/main/java/cn/timer/api/utils/router/business/ReissueACardBusiness.java
View file @
963d809b
...
...
@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import
java.text.ParseException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
...
...
@@ -18,7 +19,7 @@ import lombok.Builder;
* @author Tang
*
*/
@
Builder
@
Service
public
class
ReissueACardBusiness
extends
SpmkAssoBusiness
{
@Autowired
...
...
src/main/java/cn/timer/api/utils/router/business/ResignationBusiness.java
View file @
963d809b
...
...
@@ -2,7 +2,10 @@ package cn.timer.api.utils.router.business;
import
java.text.ParseException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
cn.hutool.core.date.DateUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.json.JSONObject
;
import
cn.timer.api.controller.yggl.service.YgglService
;
...
...
@@ -16,7 +19,7 @@ import lombok.Builder;
* @author Tang
*
*/
@
Builder
@
Service
public
class
ResignationBusiness
extends
SpmkAssoBusiness
{
@Autowired
...
...
src/main/java/cn/timer/api/utils/router/business/SpmkAssoBusinessFactory.java
View file @
963d809b
package
cn
.
timer
.
api
.
utils
.
router
.
business
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
cn.timer.api.utils.router.enums.ApproveEnum
;
/**
...
...
@@ -9,6 +11,25 @@ import cn.timer.api.utils.router.enums.ApproveEnum;
*/
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
()
{
...
...
@@ -23,31 +44,31 @@ public class SpmkAssoBusinessFactory {
case
DEFAULT:
break
;
case
REGULARIZATION:
sat
=
RegularizationBusiness
.
builder
().
build
()
;
sat
=
regularizationBusiness
;
break
;
case
RESIGNATION:
sat
=
ResignationBusiness
.
builder
().
build
()
;
sat
=
resignationBusiness
;
break
;
case
TRANSFER_POSITION:
sat
=
TransferPositionBusiness
.
builder
().
build
()
;
sat
=
transferPositionBusiness
;
break
;
case
RECRUIT:
sat
=
RecruitBusiness
.
builder
().
build
()
;
sat
=
recruitBusiness
;
break
;
case
WORK_OVERTIME:
sat
=
WorkOvertimeBusiness
.
builder
().
build
()
;
sat
=
workOvertimeBusiness
;
break
;
case
LEAVE:
sat
=
LeaveBusiness
.
builder
().
build
()
;
sat
=
leaveBusiness
;
break
;
case
EVECTION:
sat
=
EvectionBusiness
.
builder
().
build
()
;
sat
=
evectionBusiness
;
break
;
case
GO_OUT:
sat
=
GoOutBusiness
.
builder
().
build
()
;
sat
=
goOutBusiness
;
break
;
case
REISSUE_A_CARD:
sat
=
ReissueACardBusiness
.
builder
().
build
()
;
sat
=
reissueACardBusiness
;
break
;
default
:
break
;
...
...
src/main/java/cn/timer/api/utils/router/business/TransferPositionBusiness.java
View file @
963d809b
package
cn
.
timer
.
api
.
utils
.
router
.
business
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.json.JSONObject
;
...
...
@@ -14,7 +15,8 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public
class
TransferPositionBusiness
extends
SpmkAssoBusiness
{
@Autowired
...
...
src/main/java/cn/timer/api/utils/router/business/WorkOvertimeBusiness.java
View file @
963d809b
...
...
@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import
java.text.ParseException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
...
...
@@ -18,7 +19,7 @@ import lombok.Builder;
* @author Tang
*
*/
@
Builder
@
Service
public
class
WorkOvertimeBusiness
extends
SpmkAssoBusiness
{
@Autowired
...
...
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