Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
isoft_psa
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
isoft_psa
Commits
48079aa1
Commit
48079aa1
authored
Mar 28, 2025
by
Mr.Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基本信息自动填入
parent
92dd23f0
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
84 additions
and
11 deletions
+84
-11
EmploymentApprovalController.java
...i/employment/controller/EmploymentApprovalController.java
+6
-0
EmploymentApproval.java
.../java/com/ruoyi/employment/domain/EmploymentApproval.java
+3
-1
EmploymentApprovalDTO.java
...om/ruoyi/employment/domain/dto/EmploymentApprovalDTO.java
+16
-0
EmploymentApprovalMapper.java
...com/ruoyi/employment/mapper/EmploymentApprovalMapper.java
+4
-0
IEmploymentApprovalService.java
.../ruoyi/employment/service/IEmploymentApprovalService.java
+4
-0
EmploymentApprovalServiceImpl.java
...mployment/service/impl/EmploymentApprovalServiceImpl.java
+15
-0
EmploymentApprovalMapper.xml
...in/resources/mapper/approval/EmploymentApprovalMapper.xml
+36
-10
No files found.
ruoyi-psa/src/main/java/com/ruoyi/employment/controller/EmploymentApprovalController.java
View file @
48079aa1
...
@@ -182,4 +182,10 @@ public class EmploymentApprovalController extends BaseController
...
@@ -182,4 +182,10 @@ public class EmploymentApprovalController extends BaseController
{
{
return
toAjax
(
employmentApprovalService
.
updateApproval2
(
employmentApproval
));
return
toAjax
(
employmentApprovalService
.
updateApproval2
(
employmentApproval
));
}
}
@PreAuthorize
(
"@ss.hasRole('admin') or @ss.hasRole('project-manager') or @ss.hasRole('hr') or @ss.hasRole('general-manager') or @ss.hasRole('common')"
)
@GetMapping
(
"/listAll"
)
public
AjaxResult
listAll
()
{
return
AjaxResult
.
success
(
employmentApprovalService
.
getCurrentUserApproval
());
}
}
}
ruoyi-psa/src/main/java/com/ruoyi/employment/domain/EmploymentApproval.java
View file @
48079aa1
...
@@ -121,7 +121,7 @@ public class EmploymentApproval extends BaseEntity
...
@@ -121,7 +121,7 @@ public class EmploymentApproval extends BaseEntity
/** 入职岗位 */
/** 入职岗位 */
@Excel
(
name
=
"入职岗位 "
)
@Excel
(
name
=
"入职岗位 "
)
private
String
entryP
osition
;
private
String
p
osition
;
/** 聘用形式 0全职 1实习 2兼职 3劳务派遣 4其他 */
/** 聘用形式 0全职 1实习 2兼职 3劳务派遣 4其他 */
@Excel
(
name
=
"聘用形式"
,
dictType
=
"employment_form"
)
@Excel
(
name
=
"聘用形式"
,
dictType
=
"employment_form"
)
...
@@ -220,4 +220,6 @@ public class EmploymentApproval extends BaseEntity
...
@@ -220,4 +220,6 @@ public class EmploymentApproval extends BaseEntity
private
Long
empId
;
private
Long
empId
;
private
Long
userId
;
}
}
ruoyi-psa/src/main/java/com/ruoyi/employment/domain/dto/EmploymentApprovalDTO.java
0 → 100644
View file @
48079aa1
package
com
.
ruoyi
.
employment
.
domain
.
dto
;
import
lombok.Data
;
@Data
public
class
EmploymentApprovalDTO
{
private
String
name
;
private
String
idNumber
;
private
Integer
gender
;
private
String
phone
;
private
Integer
serviceDepart
;
private
String
position
;
private
Integer
employmentForm
;
private
Long
userId
;
private
String
userName
;
}
\ No newline at end of file
ruoyi-psa/src/main/java/com/ruoyi/employment/mapper/EmploymentApprovalMapper.java
View file @
48079aa1
...
@@ -4,6 +4,7 @@ import java.util.List;
...
@@ -4,6 +4,7 @@ import java.util.List;
import
com.ruoyi.employment.domain.ApprovalInstance
;
import
com.ruoyi.employment.domain.ApprovalInstance
;
import
com.ruoyi.employment.domain.EmploymentApproval
;
import
com.ruoyi.employment.domain.EmploymentApproval
;
import
com.ruoyi.employment.domain.dto.EmploymentApprovalDTO
;
/**
/**
* 入职审批Mapper接口
* 入职审批Mapper接口
...
@@ -90,4 +91,7 @@ public interface EmploymentApprovalMapper
...
@@ -90,4 +91,7 @@ public interface EmploymentApprovalMapper
public
int
updateApproval
(
EmploymentApproval
employmentApproval
);
public
int
updateApproval
(
EmploymentApproval
employmentApproval
);
public
int
updateApproval2
(
EmploymentApproval
employmentApproval
);
public
int
updateApproval2
(
EmploymentApproval
employmentApproval
);
public
EmploymentApprovalDTO
selectApprovalWithUser
(
Long
userId
);
}
}
ruoyi-psa/src/main/java/com/ruoyi/employment/service/IEmploymentApprovalService.java
View file @
48079aa1
...
@@ -2,6 +2,7 @@ package com.ruoyi.employment.service;
...
@@ -2,6 +2,7 @@ package com.ruoyi.employment.service;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.employment.domain.EmploymentApproval
;
import
com.ruoyi.employment.domain.EmploymentApproval
;
import
com.ruoyi.employment.domain.dto.EmploymentApprovalDTO
;
/**
/**
* 入职审批Service接口
* 入职审批Service接口
...
@@ -83,4 +84,7 @@ public interface IEmploymentApprovalService
...
@@ -83,4 +84,7 @@ public interface IEmploymentApprovalService
public
int
updateApproval
(
EmploymentApproval
employmentApproval
);
public
int
updateApproval
(
EmploymentApproval
employmentApproval
);
public
int
updateApproval2
(
EmploymentApproval
employmentApproval
);
public
int
updateApproval2
(
EmploymentApproval
employmentApproval
);
public
EmploymentApprovalDTO
getCurrentUserApproval
();
}
}
ruoyi-psa/src/main/java/com/ruoyi/employment/service/impl/EmploymentApprovalServiceImpl.java
View file @
48079aa1
...
@@ -2,9 +2,12 @@ package com.ruoyi.employment.service.impl;
...
@@ -2,9 +2,12 @@ package com.ruoyi.employment.service.impl;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.employment.domain.ApprovalInstance
;
import
com.ruoyi.employment.domain.ApprovalInstance
;
import
com.ruoyi.employment.domain.dto.EmploymentApprovalDTO
;
import
com.ruoyi.employment.mapper.ApprovalInstanceMapper
;
import
com.ruoyi.employment.mapper.ApprovalInstanceMapper
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -173,4 +176,16 @@ public class EmploymentApprovalServiceImpl implements IEmploymentApprovalService
...
@@ -173,4 +176,16 @@ public class EmploymentApprovalServiceImpl implements IEmploymentApprovalService
employmentApproval
.
setUpdateTime
(
DateUtils
.
getNowDate
());
employmentApproval
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
employmentApprovalMapper
.
updateApproval2
(
employmentApproval
);
return
employmentApprovalMapper
.
updateApproval2
(
employmentApproval
);
}
}
@Override
public
EmploymentApprovalDTO
getCurrentUserApproval
()
{
// 获取当前登录用户
LoginUser
loginUser
=
SecurityUtils
.
getLoginUser
();
if
(
loginUser
==
null
)
{
throw
new
ServiceException
(
"未登录"
);
}
System
.
out
.
println
(
"loginUser = "
+
loginUser
.
getUserId
());
return
employmentApprovalMapper
.
selectApprovalWithUser
(
loginUser
.
getUserId
());
}
}
}
ruoyi-psa/src/main/resources/mapper/approval/EmploymentApprovalMapper.xml
View file @
48079aa1
...
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"openingBank"
column=
"opening_bank"
/>
<result
property=
"openingBank"
column=
"opening_bank"
/>
<result
property=
"serviceDate"
column=
"service_date"
/>
<result
property=
"serviceDate"
column=
"service_date"
/>
<result
property=
"serviceDepart"
column=
"service_depart"
/>
<result
property=
"serviceDepart"
column=
"service_depart"
/>
<result
property=
"
entryPosition"
column=
"entry_
position"
/>
<result
property=
"
position"
column=
"
position"
/>
<result
property=
"employmentForm"
column=
"employment_form"
/>
<result
property=
"employmentForm"
column=
"employment_form"
/>
<result
property=
"formalSalary"
column=
"formal_salary"
/>
<result
property=
"formalSalary"
column=
"formal_salary"
/>
<result
property=
"employeeState"
column=
"employee_state"
/>
<result
property=
"employeeState"
column=
"employee_state"
/>
...
@@ -59,11 +59,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -59,11 +59,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"employmentApprovalState"
column=
"employment_approval_state"
/>
<result
property=
"employmentApprovalState"
column=
"employment_approval_state"
/>
<result
property=
"isDraft"
column=
"is_draft"
/>
<result
property=
"isDraft"
column=
"is_draft"
/>
<result
property=
"empId"
column=
"emp_id"
/>
<result
property=
"empId"
column=
"emp_id"
/>
<result
property=
"userId"
column=
"user_id"
/>
</resultMap>
</resultMap>
<sql
id=
"selectEmploymentApprovalVo"
>
<sql
id=
"selectEmploymentApprovalVo"
>
select id, name, id_number, gender, birthday, phone, home_type, native_place, nationality, home_address, permanent_address, political_outlook, marital_status, work_date, worker_pic, emergency_contact_name, emergency_contact_phone, emergency_contact_relation, insured_city, social_security_account, housing_fund_account, bank_account, opening_bank, service_date, service_depart,
entry_position, employment_form, formal_salary, employee_state, is_trial_period,trial_period_salary, trial_period_day, date_of_confirmation, education_level,diploma_pic, degree_pic, other_certification, signature, application_time, manager_opinion, approval_time, manager_signature, submitter, submission_time, update_time, process_state, current_node, current_responsible_person,is_borrow_company_assets,assets_name,service_company,employment_approval_state,is_draft,emp
_id from employment_approval
select id, name, id_number, gender, birthday, phone, home_type, native_place, nationality, home_address, permanent_address, political_outlook, marital_status, work_date, worker_pic, emergency_contact_name, emergency_contact_phone, emergency_contact_relation, insured_city, social_security_account, housing_fund_account, bank_account, opening_bank, service_date, service_depart,
position, employment_form, formal_salary, employee_state, is_trial_period,trial_period_salary, trial_period_day, date_of_confirmation, education_level,diploma_pic, degree_pic, other_certification, signature, application_time, manager_opinion, approval_time, manager_signature, submitter, submission_time, update_time, process_state, current_node, current_responsible_person,is_borrow_company_assets,assets_name,service_company,employment_approval_state,is_draft,emp_id,user
_id from employment_approval
</sql>
</sql>
<select
id=
"selectEmploymentApprovalList"
parameterType=
"EmploymentApproval"
resultMap=
"EmploymentApprovalResult"
>
<select
id=
"selectEmploymentApprovalList"
parameterType=
"EmploymentApproval"
resultMap=
"EmploymentApprovalResult"
>
...
@@ -93,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -93,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"openingBank != null and openingBank != ''"
>
and opening_bank = #{openingBank}
</if>
<if
test=
"openingBank != null and openingBank != ''"
>
and opening_bank = #{openingBank}
</if>
<if
test=
"serviceDate != null "
>
and service_date = #{serviceDate}
</if>
<if
test=
"serviceDate != null "
>
and service_date = #{serviceDate}
</if>
<if
test=
"serviceDepart != null "
>
and service_depart = #{serviceDepart}
</if>
<if
test=
"serviceDepart != null "
>
and service_depart = #{serviceDepart}
</if>
<if
test=
"
entryPosition != null "
>
and entry_position = #{entryP
osition}
</if>
<if
test=
"
position != null "
>
and position = #{p
osition}
</if>
<if
test=
"employmentForm != null "
>
and employment_form = #{employmentForm}
</if>
<if
test=
"employmentForm != null "
>
and employment_form = #{employmentForm}
</if>
<if
test=
"formalSalary != null "
>
and formal_salary = #{formalSalary}
</if>
<if
test=
"formalSalary != null "
>
and formal_salary = #{formalSalary}
</if>
<if
test=
"employeeState != null "
>
and employee_state = #{employeeState}
</if>
<if
test=
"employeeState != null "
>
and employee_state = #{employeeState}
</if>
...
@@ -122,6 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -122,6 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"employmentApprovalState != null and employmentApprovalState != ''"
>
and employment_approval_state = #{employmentApprovalState}
</if>
<if
test=
"employmentApprovalState != null and employmentApprovalState != ''"
>
and employment_approval_state = #{employmentApprovalState}
</if>
and is_draft = 1
and is_draft = 1
<if
test=
"empId != null and empId != ''"
>
and emp_id = #{empId}
</if>
<if
test=
"empId != null and empId != ''"
>
and emp_id = #{empId}
</if>
<if
test=
"userId != null and userId != ''"
>
and user_id = #{userId}
</if>
</where>
</where>
order by employment_approval_state
order by employment_approval_state
</select>
</select>
...
@@ -158,7 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -158,7 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"openingBank != null"
>
opening_bank,
</if>
<if
test=
"openingBank != null"
>
opening_bank,
</if>
<if
test=
"serviceDate != null"
>
service_date,
</if>
<if
test=
"serviceDate != null"
>
service_date,
</if>
<if
test=
"serviceDepart != null"
>
service_depart,
</if>
<if
test=
"serviceDepart != null"
>
service_depart,
</if>
<if
test=
"
entryPosition != null"
>
entry_
position,
</if>
<if
test=
"
position != null"
>
position,
</if>
<if
test=
"employmentForm != null"
>
employment_form,
</if>
<if
test=
"employmentForm != null"
>
employment_form,
</if>
<if
test=
"formalSalary != null"
>
formal_salary,
</if>
<if
test=
"formalSalary != null"
>
formal_salary,
</if>
employee_state,
employee_state,
...
@@ -187,6 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -187,6 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
employment_approval_state,
employment_approval_state,
is_draft,
is_draft,
<if
test=
"empId != null"
>
emp_id,
</if>
<if
test=
"empId != null"
>
emp_id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
#{name},
</if>
<if
test=
"name != null"
>
#{name},
</if>
...
@@ -213,7 +216,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -213,7 +216,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"openingBank != null"
>
#{openingBank},
</if>
<if
test=
"openingBank != null"
>
#{openingBank},
</if>
<if
test=
"serviceDate != null"
>
#{serviceDate},
</if>
<if
test=
"serviceDate != null"
>
#{serviceDate},
</if>
<if
test=
"serviceDepart != null"
>
#{serviceDepart},
</if>
<if
test=
"serviceDepart != null"
>
#{serviceDepart},
</if>
<if
test=
"
entryPosition != null"
>
#{entryP
osition},
</if>
<if
test=
"
position != null"
>
#{p
osition},
</if>
<if
test=
"employmentForm != null"
>
#{employmentForm},
</if>
<if
test=
"employmentForm != null"
>
#{employmentForm},
</if>
<if
test=
"formalSalary != null"
>
#{formalSalary},
</if>
<if
test=
"formalSalary != null"
>
#{formalSalary},
</if>
0,
0,
...
@@ -242,6 +245,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -242,6 +245,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
0,
0,
1,
1,
<if
test=
"empId != null"
>
#{empId},
</if>
<if
test=
"empId != null"
>
#{empId},
</if>
<if
test=
"userId != null"
>
#{userId},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -272,7 +276,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -272,7 +276,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"openingBank != null"
>
opening_bank = #{openingBank},
</if>
<if
test=
"openingBank != null"
>
opening_bank = #{openingBank},
</if>
<if
test=
"serviceDate != null"
>
service_date = #{serviceDate},
</if>
<if
test=
"serviceDate != null"
>
service_date = #{serviceDate},
</if>
<if
test=
"serviceDepart != null"
>
service_depart = #{serviceDepart},
</if>
<if
test=
"serviceDepart != null"
>
service_depart = #{serviceDepart},
</if>
<if
test=
"
entryPosition != null"
>
entry_position = #{entryP
osition},
</if>
<if
test=
"
position != null"
>
position = #{p
osition},
</if>
<if
test=
"employmentForm != null"
>
employment_form = #{employmentForm},
</if>
<if
test=
"employmentForm != null"
>
employment_form = #{employmentForm},
</if>
<if
test=
"formalSalary != null"
>
formal_salary = #{formalSalary},
</if>
<if
test=
"formalSalary != null"
>
formal_salary = #{formalSalary},
</if>
<if
test=
"employeeState != null"
>
employee_state = #{employeeState},
</if>
<if
test=
"employeeState != null"
>
employee_state = #{employeeState},
</if>
...
@@ -301,6 +305,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -301,6 +305,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"employmentApprovalState != null"
>
employment_approval_state = #{employmentApprovalState},
</if>
<if
test=
"employmentApprovalState != null"
>
employment_approval_state = #{employmentApprovalState},
</if>
<if
test=
"isDraft != null"
>
is_draft = #{isDraft},
</if>
<if
test=
"isDraft != null"
>
is_draft = #{isDraft},
</if>
<if
test=
"empId != null"
>
emp_id = #{empId},
</if>
<if
test=
"empId != null"
>
emp_id = #{empId},
</if>
<if
test=
"userId != null"
>
user_id = #{userId},
</if>
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
...
@@ -389,7 +394,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -389,7 +394,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"openingBank != null and openingBank != ''"
>
and opening_bank = #{openingBank}
</if>
<if
test=
"openingBank != null and openingBank != ''"
>
and opening_bank = #{openingBank}
</if>
<if
test=
"serviceDate != null "
>
and service_date = #{serviceDate}
</if>
<if
test=
"serviceDate != null "
>
and service_date = #{serviceDate}
</if>
<if
test=
"serviceDepart != null "
>
and service_depart = #{serviceDepart}
</if>
<if
test=
"serviceDepart != null "
>
and service_depart = #{serviceDepart}
</if>
<if
test=
"
entryPosition != null "
>
and entry_position = #{entryP
osition}
</if>
<if
test=
"
position != null "
>
and position = #{p
osition}
</if>
<if
test=
"employmentForm != null "
>
and employment_form = #{employmentForm}
</if>
<if
test=
"employmentForm != null "
>
and employment_form = #{employmentForm}
</if>
<if
test=
"formalSalary != null "
>
and formal_salary = #{formalSalary}
</if>
<if
test=
"formalSalary != null "
>
and formal_salary = #{formalSalary}
</if>
<if
test=
"employeeState != null "
>
and employee_state = #{employeeState}
</if>
<if
test=
"employeeState != null "
>
and employee_state = #{employeeState}
</if>
...
@@ -418,6 +423,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -418,6 +423,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"employmentApprovalState != null and employmentApprovalState != ''"
>
and employment_approval_state = #{employmentApprovalState}
</if>
<if
test=
"employmentApprovalState != null and employmentApprovalState != ''"
>
and employment_approval_state = #{employmentApprovalState}
</if>
and is_draft != 1
and is_draft != 1
<if
test=
"empId !=null and empId !=''"
>
and emp_id = #{empId}
</if>
<if
test=
"empId !=null and empId !=''"
>
and emp_id = #{empId}
</if>
<if
test=
"userId !=null and userId !=''"
>
and user_id = #{userId}
</if>
</where>
</where>
</select>
</select>
...
@@ -448,7 +454,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -448,7 +454,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"openingBank != null"
>
opening_bank,
</if>
<if
test=
"openingBank != null"
>
opening_bank,
</if>
<if
test=
"serviceDate != null"
>
service_date,
</if>
<if
test=
"serviceDate != null"
>
service_date,
</if>
<if
test=
"serviceDepart != null"
>
service_depart,
</if>
<if
test=
"serviceDepart != null"
>
service_depart,
</if>
<if
test=
"
entryPosition != null"
>
entry_
position,
</if>
<if
test=
"
position != null"
>
position,
</if>
<if
test=
"employmentForm != null"
>
employment_form,
</if>
<if
test=
"employmentForm != null"
>
employment_form,
</if>
<if
test=
"formalSalary != null"
>
formal_salary,
</if>
<if
test=
"formalSalary != null"
>
formal_salary,
</if>
<if
test=
"employeeState != null"
>
employee_state,
</if>
<if
test=
"employeeState != null"
>
employee_state,
</if>
...
@@ -477,6 +483,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -477,6 +483,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"employmentApprovalState != null"
>
employment_approval_state,
</if>
<if
test=
"employmentApprovalState != null"
>
employment_approval_state,
</if>
is_draft,
is_draft,
<if
test=
"empId !=null and empId !=''"
>
#{empId},
</if>
<if
test=
"empId !=null and empId !=''"
>
#{empId},
</if>
<if
test=
"userId !=null and userId !=''"
>
#{userId},
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
#{name},
</if>
<if
test=
"name != null"
>
#{name},
</if>
...
@@ -503,7 +510,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -503,7 +510,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"openingBank != null"
>
#{openingBank},
</if>
<if
test=
"openingBank != null"
>
#{openingBank},
</if>
<if
test=
"serviceDate != null"
>
#{serviceDate},
</if>
<if
test=
"serviceDate != null"
>
#{serviceDate},
</if>
<if
test=
"serviceDepart != null"
>
#{serviceDepart},
</if>
<if
test=
"serviceDepart != null"
>
#{serviceDepart},
</if>
<if
test=
"
entryPosition != null"
>
#{entryP
osition},
</if>
<if
test=
"
position != null"
>
#{p
osition},
</if>
<if
test=
"employmentForm != null"
>
#{employmentForm},
</if>
<if
test=
"employmentForm != null"
>
#{employmentForm},
</if>
<if
test=
"formalSalary != null"
>
#{formalSalary},
</if>
<if
test=
"formalSalary != null"
>
#{formalSalary},
</if>
<if
test=
"employeeState != null"
>
#{employeeState},
</if>
<if
test=
"employeeState != null"
>
#{employeeState},
</if>
...
@@ -532,6 +539,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -532,6 +539,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"employmentApprovalState != null"
>
#{employmentApprovalState},
</if>
<if
test=
"employmentApprovalState != null"
>
#{employmentApprovalState},
</if>
0,
0,
<if
test=
"empId !=null and empId !=''"
>
#{empId},
</if>
<if
test=
"empId !=null and empId !=''"
>
#{empId},
</if>
<if
test=
"userId !=null and userId !=''"
>
#{userId},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -563,7 +571,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -563,7 +571,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"openingBank != null"
>
opening_bank = #{openingBank},
</if>
<if
test=
"openingBank != null"
>
opening_bank = #{openingBank},
</if>
<if
test=
"serviceDate != null"
>
service_date = #{serviceDate},
</if>
<if
test=
"serviceDate != null"
>
service_date = #{serviceDate},
</if>
<if
test=
"serviceDepart != null"
>
service_depart = #{serviceDepart},
</if>
<if
test=
"serviceDepart != null"
>
service_depart = #{serviceDepart},
</if>
<if
test=
"
entryPosition != null"
>
entry_position = #{entryP
osition},
</if>
<if
test=
"
position != null"
>
position = #{p
osition},
</if>
<if
test=
"employmentForm != null"
>
employment_form = #{employmentForm},
</if>
<if
test=
"employmentForm != null"
>
employment_form = #{employmentForm},
</if>
<if
test=
"formalSalary != null"
>
formal_salary = #{formalSalary},
</if>
<if
test=
"formalSalary != null"
>
formal_salary = #{formalSalary},
</if>
<if
test=
"employeeState != null"
>
employee_state = #{employeeState},
</if>
<if
test=
"employeeState != null"
>
employee_state = #{employeeState},
</if>
...
@@ -592,8 +600,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -592,8 +600,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"employmentApprovalState != null"
>
employment_approval_state = #{employmentApprovalState},
</if>
<if
test=
"employmentApprovalState != null"
>
employment_approval_state = #{employmentApprovalState},
</if>
<if
test=
"isDraft != null"
>
is_draft = #{isDraft},
</if>
<if
test=
"isDraft != null"
>
is_draft = #{isDraft},
</if>
<if
test=
"empId !=null and empId !=''"
>
emp_id = #{empId},
</if>
<if
test=
"empId !=null and empId !=''"
>
emp_id = #{empId},
</if>
<if
test=
"userId !=null and userId !=''"
>
user_id = #{userId},
</if>
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
<select
id=
"selectApprovalWithUser"
resultType=
"com.ruoyi.employment.domain.dto.EmploymentApprovalDTO"
>
SELECT
a.name,
a.id_number AS idNumber,
<!-- 显式别名 -->
a.gender,
a.phone,
a.user_id AS userId,
a.service_depart AS serviceDepart,
a.position,
a.employment_form AS employmentForm,
u.user_name AS userName
<!-- 关键在这里 -->
FROM employment_approval a
INNER JOIN sys_user u ON a.user_id = u.user_id
WHERE a.user_id = #{userId}
</select>
</mapper>
</mapper>
\ No newline at end of file
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