Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
2c713d8d
Commit
2c713d8d
authored
Jun 18, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-合同自动化代码提交
parent
162603a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
160 additions
and
263 deletions
+160
-263
TEmployeeContractPreMapper.xml
.../src/main/resources/mapper/TEmployeeContractPreMapper.xml
+160
-263
No files found.
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeContractPreMapper.xml
View file @
2c713d8d
...
...
@@ -85,272 +85,169 @@
<result
property=
"updateBy"
column=
"update_by"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.id,
a.dept_name,
a.dept_no,
a.dept_id,
a.employee_name,
a.emp_idcard,
a.emp_phone,
a.position,
a.join_leave_date,
a.contract_type,
a.process_status,
a.signatory,
a.customer_username,
a.customer_user_loginname,
a.sign_type,
a.fadada_template,
a.data_source,
a.expected_collection_time,
a.confirm_user,
a.contract_name,
a.contract_start,
a.contract_end,
a.situation,
a.contract_duration_year,
a.contract_duration_month,
a.CONFIRM_EMP_SELECT,
a.TIMEOUT_ELEC_SIGN,
a.period_start,
a.period_end,
a.expected_confirm_time,
a.config_name,
a.update_flag,
a.TRY_PERIOD_TYPE,
a.TRY_PERIOD,
a.PERIOD_SALARY_PER_MONTH,
a.SALARY_TYPE,
a.SALARY_STANDARD_PER_HOUR,
a.SALARY_STANDARD_PER_PIECE,
a.config_id,
a.WORKING_DEPT,
a.WORKING_COMPANY,
a.RISK_BUY_DESC,
a.OTHER_WAGE,
a.LABOR_COST,
a.DEFAULT_AMOUNT,
a.SETTLEMENT_CYCLE,
a.PAYMENT_TIME,
a.PAYMENT_TYPE,
a.DISPATCH_PERIOD_START,
a.DISPATCH_PERIOD_END,
a.WORK_TYPE,
a.WORK_DAY_COUNT,
a.WORK_DAY,
a.WORK_HOURS,
a.OTHER_WORK_DAY,
a.INTERNSHIP_PERIOD,
a.INTERNSHIP_PERIOD_START,
a.INTERNSHIP_PERIOD_END,
a.POST_TYPE,
a.POST,
a.WORK_ADDRESS,
a.update_time,
a.create_by,
a.create_name,
a.create_time,
a.update_by,a.contract_term,a.sign_flag,a.error_info,a.contract_id,a.revoke_reason,
a.working_hours,a.working_reward,a.DISPATCH_PERIOD_YEAR,a.DISPATCH_PERIOD_MONTH,a.error_time
id
,dept_name
,dept_no
,dept_id
,employee_name
,emp_idcard
,emp_phone
,position
,join_leave_date
,contract_type
,process_status
,signatory
,customer_username
,customer_user_loginname
,sign_type
,fadada_template
,data_source
,expected_confirm_time
,expected_collection_time
,confirm_user
,contract_name
,contract_start
,contract_end
,situation
,period_start
,period_end
,config_name
,update_flag
,try_period_type
,try_period
,period_salary_per_month
,salary_type
,salary_standard_per_hour
,salary_standard_per_piece
,config_id
,working_dept
,working_company
,risk_buy_desc
,other_wage
,labor_cost
,default_amount
,settlement_cycle
,payment_time
,payment_type
,dispatch_period_start
,dispatch_period_end
,work_type
,work_day_count
,work_day
,work_hours
,other_work_day
,internship_period
,internship_period_start
,internship_period_end
,post_type
,post
,work_address
,contract_term
,contract_duration_year
,contract_duration_month
,register_id
,sign_flag
,error_info
,contract_id
,revoke_reason
,working_reward
,working_hours
,dispatch_period_year
,dispatch_period_month
,error_time
,contract_end_type
,confirm_emp_select
,timeout_elec_sign
,update_time
,create_by
,create_name
,create_time
,update_by
</sql>
<sql
id=
"tEmployeeContractPre_where"
>
<if
test=
"tEmployeeContractPre != null"
>
<if
test=
"tEmployeeContractPre.id != null and tEmployeeContractPre.id.trim() != ''"
>
AND a.id = #{tEmployeeContractPre.id}
</if>
<if
test=
"tEmployeeContractPre.idList != null"
>
AND a.id in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeContractPre.idList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<if
test=
"tEmployeeContractPre.deptName != null and tEmployeeContractPre.deptName.trim() != ''"
>
AND a.dept_name like CONCAT('%',#{tEmployeeContractPre.deptName},'%')
</if>
<if
test=
"tEmployeeContractPre.deptNo != null and tEmployeeContractPre.deptNo.trim() != ''"
>
AND a.dept_no = #{tEmployeeContractPre.deptNo}
</if>
<if
test=
"tEmployeeContractPre.deptId != null and tEmployeeContractPre.deptId.trim() != ''"
>
AND a.dept_id = #{tEmployeeContractPre.deptId}
</if>
<if
test=
"tEmployeeContractPre.employeeName != null and tEmployeeContractPre.employeeName.trim() != ''"
>
AND a.employee_name = #{tEmployeeContractPre.employeeName}
</if>
<if
test=
"tEmployeeContractPre.empIdcard != null and tEmployeeContractPre.empIdcard.trim() != ''"
>
AND a.emp_idcard like CONCAT('%',#{tEmployeeContractPre.empIdcard},'%')
</if>
<if
test=
"tEmployeeContractPre.empPhone != null and tEmployeeContractPre.empPhone.trim() != ''"
>
AND a.emp_phone = #{tEmployeeContractPre.empPhone}
</if>
<if
test=
"tEmployeeContractPre.position != null and tEmployeeContractPre.position.trim() != ''"
>
AND a.position like CONCAT('%',#{tEmployeeContractPre.position},'%')
</if>
<if
test=
"tEmployeeContractPre.joinTimeStart != null"
>
AND a.join_leave_date
<![CDATA[ >= ]]>
#{tEmployeeContractPre.joinTimeStart}
</if>
<if
test=
"tEmployeeContractPre.joinTimeEnd != null"
>
AND a.join_leave_date
<![CDATA[ <= ]]>
#{tEmployeeContractPre.joinTimeEnd}
</if>
<if
test=
"tEmployeeContractPre.contractType != null and tEmployeeContractPre.contractType.trim() != ''"
>
AND a.contract_type = #{tEmployeeContractPre.contractType}
</if>
<if
test=
"tEmployeeContractPre.processStatus != null and tEmployeeContractPre.processStatus.trim() != ''"
>
AND a.process_status = #{tEmployeeContractPre.processStatus}
</if>
<if
test=
"tEmployeeContractPre.statusList != null and tEmployeeContractPre.statusList.size() > 0"
>
AND a.process_status in
<foreach
item=
"item"
index=
"index"
collection=
"tEmployeeContractPre.statusList"
open=
"("
separator=
","
close=
")"
>
'${item}'
</foreach>
</if>
<if
test=
"tEmployeeContractPre.signatory != null and tEmployeeContractPre.signatory.trim() != ''"
>
AND a.signatory like CONCAT('%',#{tEmployeeContractPre.signatory},'%')
</if>
<if
test=
"tEmployeeContractPre.customerUsername != null and tEmployeeContractPre.customerUsername.trim() != ''"
>
AND a.customer_username = #{tEmployeeContractPre.customerUsername}
</if>
<if
test=
"tEmployeeContractPre.customerUserLoginname != null and tEmployeeContractPre.customerUserLoginname.trim() != ''"
>
AND a.customer_user_loginname = #{tEmployeeContractPre.customerUserLoginname}
</if>
<if
test=
"tEmployeeContractPre.signType != null and tEmployeeContractPre.signType.trim() != ''"
>
AND a.sign_type = #{tEmployeeContractPre.signType}
</if>
<if
test=
"tEmployeeContractPre.fadadaTemplate != null and tEmployeeContractPre.fadadaTemplate.trim() != ''"
>
AND a.fadada_template like CONCAT('%',#{tEmployeeContractPre.fadadaTemplate},'%')
</if>
<if
test=
"tEmployeeContractPre.dataSource != null and tEmployeeContractPre.dataSource.trim() != ''"
>
AND a.data_source = #{tEmployeeContractPre.dataSource}
</if>
<if
test=
"tEmployeeContractPre.expectedCollectionTime != null"
>
AND a.expected_collection_time = #{tEmployeeContractPre.expectedCollectionTime}
</if>
<if
test=
"tEmployeeContractPre.confirmUser != null and tEmployeeContractPre.confirmUser.trim() != ''"
>
AND a.confirm_user = #{tEmployeeContractPre.confirmUser}
</if>
<if
test=
"tEmployeeContractPre.contractName != null and tEmployeeContractPre.contractName.trim() != ''"
>
AND a.contract_name = #{tEmployeeContractPre.contractName}
</if>
<if
test=
"tEmployeeContractPre.contractStart != null"
>
AND a.contract_start = #{tEmployeeContractPre.contractStart}
</if>
<if
test=
"tEmployeeContractPre.contractEnd != null"
>
AND a.contract_end = #{tEmployeeContractPre.contractEnd}
</if>
<if
test=
"tEmployeeContractPre.situation != null and tEmployeeContractPre.situation.trim() != ''"
>
AND a.situation = #{tEmployeeContractPre.situation}
</if>
<if
test=
"tEmployeeContractPre.contractDurationYear != null and tEmployeeContractPre.contractDurationYear.trim() != ''"
>
AND a.contract_duration_year = #{tEmployeeContractPre.contractDurationYear}
</if>
<if
test=
"tEmployeeContractPre.contractDurationMonth != null and tEmployeeContractPre.contractDurationMonth.trim() != ''"
>
AND a.contract_duration_month = #{tEmployeeContractPre.contractDurationMonth}
</if>
<if
test=
"tEmployeeContractPre.periodStart != null"
>
AND a.period_start = #{tEmployeeContractPre.periodStart}
</if>
<if
test=
"tEmployeeContractPre.periodEnd != null"
>
AND a.period_end = #{tEmployeeContractPre.periodEnd}
</if>
<if
test=
"tEmployeeContractPre.expectedConfirmTime != null"
>
AND DATE_FORMAT(a.expected_confirm_time,"%Y-%m-%d") = DATE_FORMAT(#{tEmployeeContractPre.expectedConfirmTime},"%Y-%m-%d")
</if>
<if
test=
"tEmployeeContractPre.configName != null and tEmployeeContractPre.configName.trim() != ''"
>
AND a.config_name = #{tEmployeeContractPre.configName}
</if>
<if
test=
"tEmployeeContractPre.updateFlag != null and tEmployeeContractPre.updateFlag.trim() != ''"
>
AND a.update_flag = #{tEmployeeContractPre.updateFlag}
</if>
<if
test=
"tEmployeeContractPre.tryPeriodType != null and tEmployeeContractPre.tryPeriodType.trim() != ''"
>
AND a.TRY_PERIOD_TYPE = #{tEmployeeContractPre.tryPeriodType}
</if>
<if
test=
"tEmployeeContractPre.tryPeriod != null and tEmployeeContractPre.tryPeriod.trim() != ''"
>
AND a.TRY_PERIOD = #{tEmployeeContractPre.tryPeriod}
</if>
<if
test=
"tEmployeeContractPre.periodSalaryPerMonth != null"
>
AND a.PERIOD_SALARY_PER_MONTH = #{tEmployeeContractPre.periodSalaryPerMonth}
</if>
<if
test=
"tEmployeeContractPre.salaryType != null and tEmployeeContractPre.salaryType.trim() != ''"
>
AND a.SALARY_TYPE = #{tEmployeeContractPre.salaryType}
</if>
<if
test=
"tEmployeeContractPre.salaryStandardPerHour != null"
>
AND a.SALARY_STANDARD_PER_HOUR = #{tEmployeeContractPre.salaryStandardPerHour}
</if>
<if
test=
"tEmployeeContractPre.salaryStandardPerPiece != null"
>
AND a.SALARY_STANDARD_PER_PIECE = #{tEmployeeContractPre.salaryStandardPerPiece}
</if>
<if
test=
"tEmployeeContractPre.configId != null and tEmployeeContractPre.configId.trim() != ''"
>
AND a.config_id = #{tEmployeeContractPre.configId}
</if>
<if
test=
"tEmployeeContractPre.workingDept != null and tEmployeeContractPre.workingDept.trim() != ''"
>
AND a.WORKING_DEPT = #{tEmployeeContractPre.workingDept}
</if>
<if
test=
"tEmployeeContractPre.workingCompany != null and tEmployeeContractPre.workingCompany.trim() != ''"
>
AND a.WORKING_COMPANY = #{tEmployeeContractPre.workingCompany}
</if>
<if
test=
"tEmployeeContractPre.riskBuyDesc != null and tEmployeeContractPre.riskBuyDesc.trim() != ''"
>
AND a.RISK_BUY_DESC = #{tEmployeeContractPre.riskBuyDesc}
</if>
<if
test=
"tEmployeeContractPre.otherWage != null and tEmployeeContractPre.otherWage.trim() != ''"
>
AND a.OTHER_WAGE = #{tEmployeeContractPre.otherWage}
</if>
<if
test=
"tEmployeeContractPre.laborCost != null and tEmployeeContractPre.laborCost.trim() != ''"
>
AND a.LABOR_COST = #{tEmployeeContractPre.laborCost}
</if>
<if
test=
"tEmployeeContractPre.defaultAmount != null and tEmployeeContractPre.defaultAmount.trim() != ''"
>
AND a.DEFAULT_AMOUNT = #{tEmployeeContractPre.defaultAmount}
</if>
<if
test=
"tEmployeeContractPre.settlementCycle != null and tEmployeeContractPre.settlementCycle.trim() != ''"
>
AND a.SETTLEMENT_CYCLE = #{tEmployeeContractPre.settlementCycle}
</if>
<if
test=
"tEmployeeContractPre.paymentTime != null and tEmployeeContractPre.paymentTime.trim() != ''"
>
AND a.PAYMENT_TIME = #{tEmployeeContractPre.paymentTime}
</if>
<if
test=
"tEmployeeContractPre.paymentType != null and tEmployeeContractPre.paymentType.trim() != ''"
>
AND a.PAYMENT_TYPE = #{tEmployeeContractPre.paymentType}
</if>
<if
test=
"tEmployeeContractPre.workType != null and tEmployeeContractPre.workType.trim() != ''"
>
AND a.WORK_TYPE = #{tEmployeeContractPre.workType}
</if>
<if
test=
"tEmployeeContractPre.workDayCount != null and tEmployeeContractPre.workDayCount.trim() != ''"
>
AND a.WORK_DAY_COUNT = #{tEmployeeContractPre.workDayCount}
</if>
<if
test=
"tEmployeeContractPre.workDay != null and tEmployeeContractPre.workDay.trim() != ''"
>
AND a.WORK_DAY = #{tEmployeeContractPre.workDay}
</if>
<if
test=
"tEmployeeContractPre.workHours != null and tEmployeeContractPre.workHours.trim() != ''"
>
AND a.WORK_HOURS = #{tEmployeeContractPre.workHours}
</if>
<if
test=
"tEmployeeContractPre.otherWorkDay != null and tEmployeeContractPre.otherWorkDay.trim() != ''"
>
AND a.OTHER_WORK_DAY = #{tEmployeeContractPre.otherWorkDay}
</if>
<if
test=
"tEmployeeContractPre.internshipPeriod != null and tEmployeeContractPre.internshipPeriod.trim() != ''"
>
AND a.INTERNSHIP_PERIOD = #{tEmployeeContractPre.internshipPeriod}
</if>
<if
test=
"tEmployeeContractPre.internshipPeriodStart != null"
>
AND a.INTERNSHIP_PERIOD_START = #{tEmployeeContractPre.internshipPeriodStart}
</if>
<if
test=
"tEmployeeContractPre.internshipPeriodEnd != null"
>
AND a.INTERNSHIP_PERIOD_END = #{tEmployeeContractPre.internshipPeriodEnd}
</if>
<if
test=
"tEmployeeContractPre.postType != null and tEmployeeContractPre.postType.trim() != ''"
>
AND a.POST_TYPE = #{tEmployeeContractPre.postType}
</if>
<if
test=
"tEmployeeContractPre.post != null and tEmployeeContractPre.post.trim() != ''"
>
AND a.POST = #{tEmployeeContractPre.post}
</if>
<if
test=
"tEmployeeContractPre.workAddress != null and tEmployeeContractPre.workAddress.trim() != ''"
>
AND a.WORK_ADDRESS = #{tEmployeeContractPre.workAddress}
</if>
<if
test=
"tEmployeeContractPre.authSql != null and tEmployeeContractPre.authSql.trim() != ''"
>
${tEmployeeContractPre.authSql}
</if>
<if
test=
"tEmployeeContractPre.deptNoList != null and tEmployeeContractPre.deptNoList.size > 0"
>
AND a.dept_no in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeContractPre.deptNoList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<if
test=
"tEmployeeContractPre.id != null and tEmployeeContractPre.id.trim() != ''"
>
AND a.id = #{tEmployeeContractPre.id}
</if>
<if
test=
"tEmployeeContractPre.idList != null"
>
AND a.id in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeContractPre.idList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<if
test=
"tEmployeeContractPre.deptName != null and tEmployeeContractPre.deptName.trim() != ''"
>
AND a.dept_name like CONCAT('%',#{tEmployeeContractPre.deptName},'%')
</if>
<if
test=
"tEmployeeContractPre.deptNo != null and tEmployeeContractPre.deptNo.trim() != ''"
>
AND a.dept_no = #{tEmployeeContractPre.deptNo}
</if>
<if
test=
"tEmployeeContractPre.deptId != null and tEmployeeContractPre.deptId.trim() != ''"
>
AND a.dept_id = #{tEmployeeContractPre.deptId}
</if>
<if
test=
"tEmployeeContractPre.employeeName != null and tEmployeeContractPre.employeeName.trim() != ''"
>
AND a.employee_name = #{tEmployeeContractPre.employeeName}
</if>
<if
test=
"tEmployeeContractPre.empIdcard != null and tEmployeeContractPre.empIdcard.trim() != ''"
>
AND a.emp_idcard like CONCAT('%',#{tEmployeeContractPre.empIdcard},'%')
</if>
<if
test=
"tEmployeeContractPre.empPhone != null and tEmployeeContractPre.empPhone.trim() != ''"
>
AND a.emp_phone = #{tEmployeeContractPre.empPhone}
</if>
<if
test=
"tEmployeeContractPre.position != null and tEmployeeContractPre.position.trim() != ''"
>
AND a.position like CONCAT('%',#{tEmployeeContractPre.position},'%')
</if>
<if
test=
"tEmployeeContractPre.joinTimeStart != null"
>
AND a.join_leave_date
<![CDATA[ >= ]]>
#{tEmployeeContractPre.joinTimeStart}
</if>
<if
test=
"tEmployeeContractPre.joinTimeEnd != null"
>
AND a.join_leave_date
<![CDATA[ <= ]]>
#{tEmployeeContractPre.joinTimeEnd}
</if>
<if
test=
"tEmployeeContractPre.contractType != null and tEmployeeContractPre.contractType.trim() != ''"
>
AND a.contract_type = #{tEmployeeContractPre.contractType}
</if>
<if
test=
"tEmployeeContractPre.processStatus != null and tEmployeeContractPre.processStatus.trim() != ''"
>
AND a.process_status = #{tEmployeeContractPre.processStatus}
</if>
<if
test=
"tEmployeeContractPre.statusList != null and tEmployeeContractPre.statusList.size() > 0"
>
AND a.process_status in
<foreach
item=
"item"
index=
"index"
collection=
"tEmployeeContractPre.statusList"
open=
"("
separator=
","
close=
")"
>
'${item}'
</foreach>
</if>
<if
test=
"tEmployeeContractPre.signatory != null and tEmployeeContractPre.signatory.trim() != ''"
>
AND a.signatory like CONCAT('%',#{tEmployeeContractPre.signatory},'%')
</if>
<if
test=
"tEmployeeContractPre.customerUsername != null and tEmployeeContractPre.customerUsername.trim() != ''"
>
AND a.customer_username = #{tEmployeeContractPre.customerUsername}
</if>
<if
test=
"tEmployeeContractPre.customerUserLoginname != null and tEmployeeContractPre.customerUserLoginname.trim() != ''"
>
AND a.customer_user_loginname = #{tEmployeeContractPre.customerUserLoginname}
</if>
<if
test=
"tEmployeeContractPre.signType != null and tEmployeeContractPre.signType.trim() != ''"
>
AND a.sign_type = #{tEmployeeContractPre.signType}
</if>
<if
test=
"tEmployeeContractPre.fadadaTemplate != null and tEmployeeContractPre.fadadaTemplate.trim() != ''"
>
AND a.fadada_template like CONCAT('%',#{tEmployeeContractPre.fadadaTemplate},'%')
</if>
<if
test=
"tEmployeeContractPre.expectedCollectionTime != null"
>
AND a.expected_collection_time = #{tEmployeeContractPre.expectedCollectionTime}
</if>
<if
test=
"tEmployeeContractPre.expectedConfirmTime != null"
>
AND DATE_FORMAT(a.expected_confirm_time,"%Y-%m-%d") =
DATE_FORMAT(#{tEmployeeContractPre.expectedConfirmTime},"%Y-%m-%d")
</if>
<if
test=
"tEmployeeContractPre.authSql != null and tEmployeeContractPre.authSql.trim() != ''"
>
${tEmployeeContractPre.authSql}
</if>
<if
test=
"tEmployeeContractPre.deptNoList != null and tEmployeeContractPre.deptNoList.size > 0"
>
AND a.dept_no in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeContractPre.deptNoList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
</if>
</sql>
<!--tEmployeeContractPre简单分页查询-->
...
...
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