|
|
@@ -22,7 +22,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="personnelCategory" column="personnel_category"/>
|
|
|
<result property="registrationUnit" column="registration_unit"/>
|
|
|
<result property="unitLeaderSignature" column="unit_leader_signature"/>
|
|
|
- <result property="unitContact" column="unit_contact"/>
|
|
|
<result property="officePhone" column="office_phone"/>
|
|
|
<result property="mobilePhone" column="mobile_phone"/>
|
|
|
<result property="contactPhone" column="contact_phone"/>
|
|
|
@@ -40,7 +39,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="startDate" column="start_date"/>
|
|
|
<result property="endDate" column="end_date"/>
|
|
|
<result property="duration" column="duration"/>
|
|
|
- <result property="budget" column="budget"/>
|
|
|
<result property="invitation" column="invitation"/>
|
|
|
<result property="itinerary" column="itinerary"/>
|
|
|
<result property="accommodationPlan" column="accommodation_plan"/>
|
|
|
@@ -56,8 +54,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="signature" column="signature"/>
|
|
|
<result property="stampedRegistrationFilePath" column="stamped_registration_file_path"/>
|
|
|
<result property="stampedRegistrationFileName" column="stamped_registration_file_name"/>
|
|
|
+ <result property="stampedFileOssId" column="stamped_file_oss_id"/>
|
|
|
<result property="stampedFileUploadTime" column="stamped_file_upload_time"/>
|
|
|
<result property="stampedFileUploadStatus" column="stamped_file_upload_status"/>
|
|
|
+ <result property="partyRetentionFilePath" column="party_retention_file_path"/>
|
|
|
+ <result property="partyRetentionFileName" column="party_retention_file_name"/>
|
|
|
+ <result property="partyRetentionFileOssId" column="party_retention_file_oss_id"/>
|
|
|
+ <result property="partyRetentionUploadTime" column="party_retention_upload_time"/>
|
|
|
+ <result property="partyRetentionUploadStatus" column="party_retention_upload_status"/>
|
|
|
<result property="tenantId" column="tenant_id"/>
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
@@ -80,16 +84,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select oa.application_id, oa.serial_number, oa.applicant_id, oa.applicant_name,
|
|
|
oa.gender, oa.birth_date, oa.photo, oa.id_number, oa.political_status, oa.registered_address,
|
|
|
oa.department, oa.position, oa.professional_title, oa.administrative_level, oa.personnel_category,
|
|
|
- oa.registration_unit, oa.unit_leader_signature, oa.unit_contact, oa.office_phone, oa.mobile_phone,
|
|
|
+ oa.registration_unit, oa.unit_leader_signature, oa.office_phone, oa.mobile_phone,
|
|
|
oa.contact_phone, oa.contact_email, oa.document_name, oa.document_number,
|
|
|
oa.destination_country, oa.exit_reason, oa.visit_relationship, oa.remarks,
|
|
|
oa.purpose, oa.purpose_detail, oa.destination, oa.destination_city,
|
|
|
- oa.start_date, oa.end_date, oa.duration, oa.budget, oa.invitation, oa.itinerary,
|
|
|
+ oa.start_date, oa.end_date, oa.duration, oa.invitation, oa.itinerary,
|
|
|
oa.accommodation_plan, oa.transportation_plan, oa.status, oa.current_approver, oa.approval_level,
|
|
|
oa.apply_time, oa.approval_time, oa.admin_remark, oa.applicant_remark,
|
|
|
oa.emergency_contact, oa.signature,
|
|
|
oa.stamped_registration_file_path, oa.stamped_registration_file_name,
|
|
|
- oa.stamped_file_upload_time, oa.stamped_file_upload_status,
|
|
|
+ oa.stamped_file_upload_time, oa.stamped_file_upload_status, oa.stamped_file_oss_id,
|
|
|
+ oa.party_retention_file_path, oa.party_retention_file_name,
|
|
|
+ oa.party_retention_upload_time, oa.party_retention_upload_status, oa.party_retention_file_oss_id,
|
|
|
oa.tenant_id, oa.create_by, oa.create_time, oa.update_by, oa.update_time, oa.deleted,
|
|
|
CASE
|
|
|
WHEN oa.status IS NULL OR oa.status = '' THEN '草稿'
|
|
|
@@ -191,12 +197,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applicantId != null">
|
|
|
AND oa.applicant_id = #{applicantId}
|
|
|
</if>
|
|
|
- <if test="budgetMin != null">
|
|
|
- AND oa.budget >= #{budgetMin}
|
|
|
- </if>
|
|
|
- <if test="budgetMax != null">
|
|
|
- AND oa.budget <= #{budgetMax}
|
|
|
- </if>
|
|
|
<if test="applyTimeBegin != null">
|
|
|
AND oa.apply_time >= #{applyTimeBegin}
|
|
|
</if>
|
|
|
@@ -246,12 +246,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applicantId != null">
|
|
|
AND oa.applicant_id = #{applicantId}
|
|
|
</if>
|
|
|
- <if test="budgetMin != null">
|
|
|
- AND oa.budget >= #{budgetMin}
|
|
|
- </if>
|
|
|
- <if test="budgetMax != null">
|
|
|
- AND oa.budget <= #{budgetMax}
|
|
|
- </if>
|
|
|
<if test="applyTimeBegin != null">
|
|
|
AND oa.apply_time >= #{applyTimeBegin}
|
|
|
</if>
|
|
|
@@ -320,7 +314,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="personnelCategory != null and personnelCategory != ''">personnel_category,</if>
|
|
|
<if test="registrationUnit != null and registrationUnit != ''">registration_unit,</if>
|
|
|
<if test="unitLeaderSignature != null and unitLeaderSignature != ''">unit_leader_signature,</if>
|
|
|
- <if test="unitContact != null and unitContact != ''">unit_contact,</if>
|
|
|
<if test="officePhone != null and officePhone != ''">office_phone,</if>
|
|
|
<if test="mobilePhone != null and mobilePhone != ''">mobile_phone,</if>
|
|
|
<if test="contactPhone != null and contactPhone != ''">contact_phone,</if>
|
|
|
@@ -338,7 +331,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="startDate != null">start_date,</if>
|
|
|
<if test="endDate != null">end_date,</if>
|
|
|
<if test="duration != null">duration,</if>
|
|
|
- <if test="budget != null">budget,</if>
|
|
|
<if test="invitation != null and invitation != ''">invitation,</if>
|
|
|
<if test="itinerary != null and itinerary != ''">itinerary,</if>
|
|
|
<if test="accommodationPlan != null and accommodationPlan != ''">accommodation_plan,</if>
|
|
|
@@ -380,7 +372,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="personnelCategory != null and personnelCategory != ''">#{personnelCategory},</if>
|
|
|
<if test="registrationUnit != null and registrationUnit != ''">#{registrationUnit},</if>
|
|
|
<if test="unitLeaderSignature != null and unitLeaderSignature != ''">#{unitLeaderSignature},</if>
|
|
|
- <if test="unitContact != null and unitContact != ''">#{unitContact},</if>
|
|
|
<if test="officePhone != null and officePhone != ''">#{officePhone},</if>
|
|
|
<if test="mobilePhone != null and mobilePhone != ''">#{mobilePhone},</if>
|
|
|
<if test="contactPhone != null and contactPhone != ''">#{contactPhone},</if>
|
|
|
@@ -398,7 +389,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="startDate != null">#{startDate},</if>
|
|
|
<if test="endDate != null">#{endDate},</if>
|
|
|
<if test="duration != null">#{duration},</if>
|
|
|
- <if test="budget != null">#{budget},</if>
|
|
|
<if test="invitation != null and invitation != ''">#{invitation},</if>
|
|
|
<if test="itinerary != null and itinerary != ''">#{itinerary},</if>
|
|
|
<if test="accommodationPlan != null and accommodationPlan != ''">#{accommodationPlan},</if>
|
|
|
@@ -445,7 +435,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="personnelCategory != null">personnel_category = #{personnelCategory},</if>
|
|
|
<if test="registrationUnit != null">registration_unit = #{registrationUnit},</if>
|
|
|
<if test="unitLeaderSignature != null">unit_leader_signature = #{unitLeaderSignature},</if>
|
|
|
- <if test="unitContact != null">unit_contact = #{unitContact},</if>
|
|
|
<if test="officePhone != null">office_phone = #{officePhone},</if>
|
|
|
<if test="mobilePhone != null">mobile_phone = #{mobilePhone},</if>
|
|
|
<if test="contactPhone != null">contact_phone = #{contactPhone},</if>
|
|
|
@@ -463,7 +452,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="startDate != null">start_date = #{startDate},</if>
|
|
|
<if test="endDate != null">end_date = #{endDate},</if>
|
|
|
<if test="duration != null">duration = #{duration},</if>
|
|
|
- <if test="budget != null">budget = #{budget},</if>
|
|
|
<if test="invitation != null">invitation = #{invitation},</if>
|
|
|
<if test="itinerary != null">itinerary = #{itinerary},</if>
|
|
|
<if test="accommodationPlan != null">accommodation_plan = #{accommodationPlan},</if>
|