Commit 2c713d8d authored by huyuchen's avatar huyuchen

huych-合同自动化代码提交

parent 162603a0
...@@ -85,73 +85,84 @@ ...@@ -85,73 +85,84 @@
<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">
...@@ -160,7 +171,8 @@ ...@@ -160,7 +171,8 @@
</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=","
close=")">
#{idStr} #{idStr}
</foreach> </foreach>
</if> </if>
...@@ -199,7 +211,8 @@ ...@@ -199,7 +211,8 @@
</if> </if>
<if test="tEmployeeContractPre.statusList != null and tEmployeeContractPre.statusList.size() > 0"> <if test="tEmployeeContractPre.statusList != null and tEmployeeContractPre.statusList.size() > 0">
AND a.process_status in AND a.process_status in
<foreach item="item" index="index" collection="tEmployeeContractPre.statusList" open="(" separator="," close=")"> <foreach item="item" index="index" collection="tEmployeeContractPre.statusList" open="(" separator=","
close=")">
'${item}' '${item}'
</foreach> </foreach>
</if> </if>
...@@ -218,128 +231,12 @@ ...@@ -218,128 +231,12 @@
<if test="tEmployeeContractPre.fadadaTemplate != null and tEmployeeContractPre.fadadaTemplate.trim() != ''"> <if test="tEmployeeContractPre.fadadaTemplate != null and tEmployeeContractPre.fadadaTemplate.trim() != ''">
AND a.fadada_template like CONCAT('%',#{tEmployeeContractPre.fadadaTemplate},'%') AND a.fadada_template like CONCAT('%',#{tEmployeeContractPre.fadadaTemplate},'%')
</if> </if>
<if test="tEmployeeContractPre.dataSource != null and tEmployeeContractPre.dataSource.trim() != ''">
AND a.data_source = #{tEmployeeContractPre.dataSource}
</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.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"> <if test="tEmployeeContractPre.expectedConfirmTime != null">
AND DATE_FORMAT(a.expected_confirm_time,"%Y-%m-%d") = DATE_FORMAT(#{tEmployeeContractPre.expectedConfirmTime},"%Y-%m-%d") AND DATE_FORMAT(a.expected_confirm_time,"%Y-%m-%d") =
</if> DATE_FORMAT(#{tEmployeeContractPre.expectedConfirmTime},"%Y-%m-%d")
<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>
<if test="tEmployeeContractPre.authSql != null and tEmployeeContractPre.authSql.trim() != ''"> <if test="tEmployeeContractPre.authSql != null and tEmployeeContractPre.authSql.trim() != ''">
${tEmployeeContractPre.authSql} ${tEmployeeContractPre.authSql}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment