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 @@
...
@@ -85,272 +85,169 @@
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
a.id,
id
a.dept_name,
,dept_name
a.dept_no,
,dept_no
a.dept_id,
,dept_id
a.employee_name,
,employee_name
a.emp_idcard,
,emp_idcard
a.emp_phone,
,emp_phone
a.position,
,position
a.join_leave_date,
,join_leave_date
a.contract_type,
,contract_type
a.process_status,
,process_status
a.signatory,
,signatory
a.customer_username,
,customer_username
a.customer_user_loginname,
,customer_user_loginname
a.sign_type,
,sign_type
a.fadada_template,
,fadada_template
a.data_source,
,data_source
a.expected_collection_time,
,expected_confirm_time
a.confirm_user,
,expected_collection_time
a.contract_name,
,confirm_user
a.contract_start,
,contract_name
a.contract_end,
,contract_start
a.situation,
,contract_end
a.contract_duration_year,
,situation
a.contract_duration_month,
,period_start
a.CONFIRM_EMP_SELECT,
,period_end
a.TIMEOUT_ELEC_SIGN,
,config_name
a.period_start,
,update_flag
a.period_end,
,try_period_type
a.expected_confirm_time,
,try_period
a.config_name,
,period_salary_per_month
a.update_flag,
,salary_type
a.TRY_PERIOD_TYPE,
,salary_standard_per_hour
a.TRY_PERIOD,
,salary_standard_per_piece
a.PERIOD_SALARY_PER_MONTH,
,config_id
a.SALARY_TYPE,
,working_dept
a.SALARY_STANDARD_PER_HOUR,
,working_company
a.SALARY_STANDARD_PER_PIECE,
,risk_buy_desc
a.config_id,
,other_wage
a.WORKING_DEPT,
,labor_cost
a.WORKING_COMPANY,
,default_amount
a.RISK_BUY_DESC,
,settlement_cycle
a.OTHER_WAGE,
,payment_time
a.LABOR_COST,
,payment_type
a.DEFAULT_AMOUNT,
,dispatch_period_start
a.SETTLEMENT_CYCLE,
,dispatch_period_end
a.PAYMENT_TIME,
,work_type
a.PAYMENT_TYPE,
,work_day_count
a.DISPATCH_PERIOD_START,
,work_day
a.DISPATCH_PERIOD_END,
,work_hours
a.WORK_TYPE,
,other_work_day
a.WORK_DAY_COUNT,
,internship_period
a.WORK_DAY,
,internship_period_start
a.WORK_HOURS,
,internship_period_end
a.OTHER_WORK_DAY,
,post_type
a.INTERNSHIP_PERIOD,
,post
a.INTERNSHIP_PERIOD_START,
,work_address
a.INTERNSHIP_PERIOD_END,
,contract_term
a.POST_TYPE,
,contract_duration_year
a.POST,
,contract_duration_month
a.WORK_ADDRESS,
,register_id
a.update_time,
,sign_flag
a.create_by,
,error_info
a.create_name,
,contract_id
a.create_time,
,revoke_reason
a.update_by,a.contract_term,a.sign_flag,a.error_info,a.contract_id,a.revoke_reason,
,working_reward
a.working_hours,a.working_reward,a.DISPATCH_PERIOD_YEAR,a.DISPATCH_PERIOD_MONTH,a.error_time
,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>
<sql
id=
"tEmployeeContractPre_where"
>
<sql
id=
"tEmployeeContractPre_where"
>
<if
test=
"tEmployeeContractPre != null"
>
<if
test=
"tEmployeeContractPre != null"
>
<if
test=
"tEmployeeContractPre.id != null and tEmployeeContractPre.id.trim() != ''"
>
<if
test=
"tEmployeeContractPre.id != null and tEmployeeContractPre.id.trim() != ''"
>
AND a.id = #{tEmployeeContractPre.id}
AND a.id = #{tEmployeeContractPre.id}
</if>
</if>
<if
test=
"tEmployeeContractPre.idList != null"
>
<if
test=
"tEmployeeContractPre.idList != null"
>
AND a.id in
AND a.id in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeContractPre.idList"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeContractPre.idList"
open=
"("
separator=
","
#{idStr}
close=
")"
>
</foreach>
#{idStr}
</if>
</foreach>
<if
test=
"tEmployeeContractPre.deptName != null and tEmployeeContractPre.deptName.trim() != ''"
>
</if>
AND a.dept_name like CONCAT('%',#{tEmployeeContractPre.deptName},'%')
<if
test=
"tEmployeeContractPre.deptName != null and tEmployeeContractPre.deptName.trim() != ''"
>
</if>
AND a.dept_name like CONCAT('%',#{tEmployeeContractPre.deptName},'%')
<if
test=
"tEmployeeContractPre.deptNo != null and tEmployeeContractPre.deptNo.trim() != ''"
>
</if>
AND a.dept_no = #{tEmployeeContractPre.deptNo}
<if
test=
"tEmployeeContractPre.deptNo != null and tEmployeeContractPre.deptNo.trim() != ''"
>
</if>
AND a.dept_no = #{tEmployeeContractPre.deptNo}
<if
test=
"tEmployeeContractPre.deptId != null and tEmployeeContractPre.deptId.trim() != ''"
>
</if>
AND a.dept_id = #{tEmployeeContractPre.deptId}
<if
test=
"tEmployeeContractPre.deptId != null and tEmployeeContractPre.deptId.trim() != ''"
>
</if>
AND a.dept_id = #{tEmployeeContractPre.deptId}
<if
test=
"tEmployeeContractPre.employeeName != null and tEmployeeContractPre.employeeName.trim() != ''"
>
</if>
AND a.employee_name = #{tEmployeeContractPre.employeeName}
<if
test=
"tEmployeeContractPre.employeeName != null and tEmployeeContractPre.employeeName.trim() != ''"
>
</if>
AND a.employee_name = #{tEmployeeContractPre.employeeName}
<if
test=
"tEmployeeContractPre.empIdcard != null and tEmployeeContractPre.empIdcard.trim() != ''"
>
</if>
AND a.emp_idcard like CONCAT('%',#{tEmployeeContractPre.empIdcard},'%')
<if
test=
"tEmployeeContractPre.empIdcard != null and tEmployeeContractPre.empIdcard.trim() != ''"
>
</if>
AND a.emp_idcard like CONCAT('%',#{tEmployeeContractPre.empIdcard},'%')
<if
test=
"tEmployeeContractPre.empPhone != null and tEmployeeContractPre.empPhone.trim() != ''"
>
</if>
AND a.emp_phone = #{tEmployeeContractPre.empPhone}
<if
test=
"tEmployeeContractPre.empPhone != null and tEmployeeContractPre.empPhone.trim() != ''"
>
</if>
AND a.emp_phone = #{tEmployeeContractPre.empPhone}
<if
test=
"tEmployeeContractPre.position != null and tEmployeeContractPre.position.trim() != ''"
>
</if>
AND a.position like CONCAT('%',#{tEmployeeContractPre.position},'%')
<if
test=
"tEmployeeContractPre.position != null and tEmployeeContractPre.position.trim() != ''"
>
</if>
AND a.position like CONCAT('%',#{tEmployeeContractPre.position},'%')
<if
test=
"tEmployeeContractPre.joinTimeStart != null"
>
</if>
AND a.join_leave_date
<![CDATA[ >= ]]>
#{tEmployeeContractPre.joinTimeStart}
<if
test=
"tEmployeeContractPre.joinTimeStart != null"
>
</if>
AND a.join_leave_date
<![CDATA[ >= ]]>
#{tEmployeeContractPre.joinTimeStart}
<if
test=
"tEmployeeContractPre.joinTimeEnd != null"
>
</if>
AND a.join_leave_date
<![CDATA[ <= ]]>
#{tEmployeeContractPre.joinTimeEnd}
<if
test=
"tEmployeeContractPre.joinTimeEnd != null"
>
</if>
AND a.join_leave_date
<![CDATA[ <= ]]>
#{tEmployeeContractPre.joinTimeEnd}
<if
test=
"tEmployeeContractPre.contractType != null and tEmployeeContractPre.contractType.trim() != ''"
>
</if>
AND a.contract_type = #{tEmployeeContractPre.contractType}
<if
test=
"tEmployeeContractPre.contractType != null and tEmployeeContractPre.contractType.trim() != ''"
>
</if>
AND a.contract_type = #{tEmployeeContractPre.contractType}
<if
test=
"tEmployeeContractPre.processStatus != null and tEmployeeContractPre.processStatus.trim() != ''"
>
</if>
AND a.process_status = #{tEmployeeContractPre.processStatus}
<if
test=
"tEmployeeContractPre.processStatus != null and tEmployeeContractPre.processStatus.trim() != ''"
>
</if>
AND a.process_status = #{tEmployeeContractPre.processStatus}
<if
test=
"tEmployeeContractPre.statusList != null and tEmployeeContractPre.statusList.size() > 0"
>
</if>
AND a.process_status in
<if
test=
"tEmployeeContractPre.statusList != null and tEmployeeContractPre.statusList.size() > 0"
>
<foreach
item=
"item"
index=
"index"
collection=
"tEmployeeContractPre.statusList"
open=
"("
separator=
","
close=
")"
>
AND a.process_status in
'${item}'
<foreach
item=
"item"
index=
"index"
collection=
"tEmployeeContractPre.statusList"
open=
"("
separator=
","
</foreach>
close=
")"
>
</if>
'${item}'
<if
test=
"tEmployeeContractPre.signatory != null and tEmployeeContractPre.signatory.trim() != ''"
>
</foreach>
AND a.signatory like CONCAT('%',#{tEmployeeContractPre.signatory},'%')
</if>
</if>
<if
test=
"tEmployeeContractPre.signatory != null and tEmployeeContractPre.signatory.trim() != ''"
>
<if
test=
"tEmployeeContractPre.customerUsername != null and tEmployeeContractPre.customerUsername.trim() != ''"
>
AND a.signatory like CONCAT('%',#{tEmployeeContractPre.signatory},'%')
AND a.customer_username = #{tEmployeeContractPre.customerUsername}
</if>
</if>
<if
test=
"tEmployeeContractPre.customerUsername != null and tEmployeeContractPre.customerUsername.trim() != ''"
>
<if
test=
"tEmployeeContractPre.customerUserLoginname != null and tEmployeeContractPre.customerUserLoginname.trim() != ''"
>
AND a.customer_username = #{tEmployeeContractPre.customerUsername}
AND a.customer_user_loginname = #{tEmployeeContractPre.customerUserLoginname}
</if>
</if>
<if
test=
"tEmployeeContractPre.customerUserLoginname != null and tEmployeeContractPre.customerUserLoginname.trim() != ''"
>
<if
test=
"tEmployeeContractPre.signType != null and tEmployeeContractPre.signType.trim() != ''"
>
AND a.customer_user_loginname = #{tEmployeeContractPre.customerUserLoginname}
AND a.sign_type = #{tEmployeeContractPre.signType}
</if>
</if>
<if
test=
"tEmployeeContractPre.signType != null and tEmployeeContractPre.signType.trim() != ''"
>
<if
test=
"tEmployeeContractPre.fadadaTemplate != null and tEmployeeContractPre.fadadaTemplate.trim() != ''"
>
AND a.sign_type = #{tEmployeeContractPre.signType}
AND a.fadada_template like CONCAT('%',#{tEmployeeContractPre.fadadaTemplate},'%')
</if>
</if>
<if
test=
"tEmployeeContractPre.fadadaTemplate != null and tEmployeeContractPre.fadadaTemplate.trim() != ''"
>
<if
test=
"tEmployeeContractPre.dataSource != null and tEmployeeContractPre.dataSource.trim() != ''"
>
AND a.fadada_template like CONCAT('%',#{tEmployeeContractPre.fadadaTemplate},'%')
AND a.data_source = #{tEmployeeContractPre.dataSource}
</if>
</if>
<if
test=
"tEmployeeContractPre.expectedCollectionTime != null"
>
<if
test=
"tEmployeeContractPre.expectedCollectionTime != null"
>
AND a.expected_collection_time = #{tEmployeeContractPre.expectedCollectionTime}
AND a.expected_collection_time = #{tEmployeeContractPre.expectedCollectionTime}
</if>
</if>
<if
test=
"tEmployeeContractPre.expectedConfirmTime != null"
>
<if
test=
"tEmployeeContractPre.confirmUser != null and tEmployeeContractPre.confirmUser.trim() != ''"
>
AND DATE_FORMAT(a.expected_confirm_time,"%Y-%m-%d") =
AND a.confirm_user = #{tEmployeeContractPre.confirmUser}
DATE_FORMAT(#{tEmployeeContractPre.expectedConfirmTime},"%Y-%m-%d")
</if>
</if>
<if
test=
"tEmployeeContractPre.contractName != null and tEmployeeContractPre.contractName.trim() != ''"
>
<if
test=
"tEmployeeContractPre.authSql != null and tEmployeeContractPre.authSql.trim() != ''"
>
AND a.contract_name = #{tEmployeeContractPre.contractName}
${tEmployeeContractPre.authSql}
</if>
</if>
<if
test=
"tEmployeeContractPre.contractStart != null"
>
<if
test=
"tEmployeeContractPre.deptNoList != null and tEmployeeContractPre.deptNoList.size > 0"
>
AND a.contract_start = #{tEmployeeContractPre.contractStart}
AND a.dept_no in
</if>
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeContractPre.deptNoList"
open=
"("
separator=
","
<if
test=
"tEmployeeContractPre.contractEnd != null"
>
close=
")"
>
AND a.contract_end = #{tEmployeeContractPre.contractEnd}
#{idStr}
</if>
</foreach>
<if
test=
"tEmployeeContractPre.situation != null and tEmployeeContractPre.situation.trim() != ''"
>
</if>
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>
</if>
</sql>
</sql>
<!--tEmployeeContractPre简单分页查询-->
<!--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