Commit 0bf181a7 by wenyang Committed by jianan

经纪人电子报娉时增加视频认证流程

parent 2f7264df
...@@ -86,4 +86,9 @@ public class SaveBasicInfoRequestVO { ...@@ -86,4 +86,9 @@ public class SaveBasicInfoRequestVO {
* email地址 * email地址
*/ */
private String email; private String email;
/**
* 视频URl
*/
private String videoOssPath;
} }
...@@ -134,6 +134,11 @@ public class PractitionerHiringBasicInfo { ...@@ -134,6 +134,11 @@ public class PractitionerHiringBasicInfo {
private String personalSignOssPath; private String personalSignOssPath;
/** /**
* 视频URl
*/
private String videoOssPath;
/**
* 获取 邀请人名字 * 获取 邀请人名字
* *
* @return inviteePractitionerName 邀请人名字 * @return inviteePractitionerName 邀请人名字
...@@ -518,7 +523,15 @@ public class PractitionerHiringBasicInfo { ...@@ -518,7 +523,15 @@ public class PractitionerHiringBasicInfo {
public void setPayrollOssPath(String payrollOssPath) { public void setPayrollOssPath(String payrollOssPath) {
this.payrollOssPath = payrollOssPath; this.payrollOssPath = payrollOssPath;
} }
public String getVideoOssPath() {
return videoOssPath;
}
public void setVideoOssPath(String videoOssPath) {
this.videoOssPath = videoOssPath;
}
public String getApproveStatus() { public String getApproveStatus() {
return approveStatus; return approveStatus;
} }
......
...@@ -165,6 +165,11 @@ public class AclPractitionerHiringBasicInfo { ...@@ -165,6 +165,11 @@ public class AclPractitionerHiringBasicInfo {
private String personalSignOssPath; private String personalSignOssPath;
/** /**
* 视频URl
*/
private String videoOssPath;
/**
* 0=No, 1=Yes * 0=No, 1=Yes
*/ */
private Integer isActive; private Integer isActive;
......
...@@ -18,16 +18,17 @@ import java.util.Map; ...@@ -18,16 +18,17 @@ import java.util.Map;
public class HttpUtil { public class HttpUtil {
public static String defaultEncoding= "utf-8"; public static String defaultEncoding= "utf-8";
/** /**
* 通过url取得文件返回InputStream类型数据 * 通过url取得文件返回InputStream类型数据
* *
*/ */
public static Map<String,Object> getInput(String path) { public static Map<String,Object> getInput(String path) {
URL url = null; URL url = null;
InputStream is =null; InputStream is = null;
boolean success=true; boolean success = true;
String message="下载文件成功"; String message = "下载文件成功";
Map<String,Object> resp=new HashMap<>(); Map<String,Object> resp = new HashMap<>();
try { try {
url = new URL(path); url = new URL(path);
...@@ -35,15 +36,23 @@ public class HttpUtil { ...@@ -35,15 +36,23 @@ public class HttpUtil {
conn.setDoInput(true); conn.setDoInput(true);
conn.connect(); conn.connect();
is = conn.getInputStream(); //得到网络返回的输入流 is = conn.getInputStream(); //得到网络返回的输入流
resp.put("is", is);
} catch (IOException e) { } catch (IOException e) {
success=false; success = false;
message="下载文件失败"; message = "下载文件失败";
} finally { } finally {
resp.put("is",is); if(is != null){
resp.put("message",message); try {
resp.put("success",success); is.close();
return resp; } catch (Exception e) {
}
}
} }
resp.put("message", message);
resp.put("success", success);
return resp;
} }
/** /**
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
<result column="bankAccountId" jdbcType="VARCHAR" property="bankAccountId"/> <result column="bankAccountId" jdbcType="VARCHAR" property="bankAccountId"/>
<result column="personalSignOssPath" jdbcType="VARCHAR" property="personalSignOssPath"/> <result column="personalSignOssPath" jdbcType="VARCHAR" property="personalSignOssPath"/>
<result column="payrollOssPath" jdbcType="VARCHAR" property="payrollOssPath" /> <result column="payrollOssPath" jdbcType="VARCHAR" property="payrollOssPath" />
<result column="videoOssPath" jdbcType="VARCHAR" property="videoOssPath" />
<result column="approveStatus" jdbcType="VARCHAR" property="approveStatus" /> <result column="approveStatus" jdbcType="VARCHAR" property="approveStatus" />
</resultMap> </resultMap>
<select id="findPractitionerHiringBasicInfo" resultMap="practitionerHiringBasicInfo"> <select id="findPractitionerHiringBasicInfo" resultMap="practitionerHiringBasicInfo">
...@@ -55,7 +56,8 @@ ...@@ -55,7 +56,8 @@
b.bank_account_opening bankAccountOpening, b.bank_account_opening bankAccountOpening,
b.bank_account_id bankAccountId, b.bank_account_id bankAccountId,
b.payroll_oss_path payrollOssPath, b.payroll_oss_path payrollOssPath,
b.personal_sign_oss_path personalSignOssPath b.personal_sign_oss_path personalSignOssPath,
b.video_oss_path videoOssPath
from ag_acl_practitioner_hiring_basic_info b from ag_acl_practitioner_hiring_basic_info b
left join ag_acl_practitioner p on b.invitee_practitioner_id = p.id left join ag_acl_practitioner p on b.invitee_practitioner_id = p.id
where b.id = #{hiringBasicInfoId,jdbcType=BIGINT} where b.id = #{hiringBasicInfoId,jdbcType=BIGINT}
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<result column="bank_account_opening" jdbcType="VARCHAR" property="bankAccountOpening" /> <result column="bank_account_opening" jdbcType="VARCHAR" property="bankAccountOpening" />
<result column="bank_account_id" jdbcType="VARCHAR" property="bankAccountId" /> <result column="bank_account_id" jdbcType="VARCHAR" property="bankAccountId" />
<result column="personal_sign_oss_path" jdbcType="VARCHAR" property="personalSignOssPath" /> <result column="personal_sign_oss_path" jdbcType="VARCHAR" property="personalSignOssPath" />
<result column="video_oss_path" jdbcType="VARCHAR" property="videoOssPath" />
<result column="is_active" jdbcType="INTEGER" property="isActive" /> <result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="created_by" jdbcType="BIGINT" property="createdBy" /> <result column="created_by" jdbcType="BIGINT" property="createdBy" />
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id, id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id,
city_name, political_outlook, resident_address, wechat_id, wechat_QRcode_oss_path, email, personer_picture_oss_path, payroll_oss_path, id_front_page_oss_path, city_name, political_outlook, resident_address, wechat_id, wechat_QRcode_oss_path, email, personer_picture_oss_path, payroll_oss_path, id_front_page_oss_path,
id_back_page_oss_path, last_graduate_code, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path, id_back_page_oss_path, last_graduate_code, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path,
bank_account_opening, bank_account_id, personal_sign_oss_path, is_active, created_at, bank_account_opening, bank_account_id, personal_sign_oss_path,video_oss_path, is_active, created_at,
created_by, updated_at, updated_by, approve_status created_by, updated_at, updated_by, approve_status
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
...@@ -73,7 +74,7 @@ ...@@ -73,7 +74,7 @@
id_front_page_oss_path, id_back_page_oss_path, id_front_page_oss_path, id_back_page_oss_path,
last_graduate_grade, last_graduate_school, last_graduate_grade, last_graduate_school,
last_graduate_certification_oss_path, bank_account_opening, last_graduate_certification_oss_path, bank_account_opening,
bank_account_id, personal_sign_oss_path, is_active, bank_account_id, personal_sign_oss_path,video_oss_path, is_active,
created_at, created_by, updated_at, created_at, created_by, updated_at,
updated_by) updated_by)
values (#{practitionerPotentialId,jdbcType=BIGINT}, #{inviteePractitionerId,jdbcType=BIGINT}, values (#{practitionerPotentialId,jdbcType=BIGINT}, #{inviteePractitionerId,jdbcType=BIGINT},
...@@ -85,7 +86,7 @@ ...@@ -85,7 +86,7 @@
#{idFrontPageOssPath,jdbcType=VARCHAR}, #{idBackPageOssPath,jdbcType=VARCHAR}, #{idFrontPageOssPath,jdbcType=VARCHAR}, #{idBackPageOssPath,jdbcType=VARCHAR},
#{lastGraduateGrade,jdbcType=VARCHAR}, #{lastGraduateSchool,jdbcType=VARCHAR}, #{lastGraduateGrade,jdbcType=VARCHAR}, #{lastGraduateSchool,jdbcType=VARCHAR},
#{lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{bankAccountOpening,jdbcType=VARCHAR}, #{lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{bankAccountOpening,jdbcType=VARCHAR},
#{bankAccountId,jdbcType=VARCHAR}, #{personalSignOssPath,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{bankAccountId,jdbcType=VARCHAR}, #{personalSignOssPath,jdbcType=VARCHAR}, #{videoOssPath,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT}) #{updatedBy,jdbcType=BIGINT})
</insert> </insert>
...@@ -168,6 +169,9 @@ ...@@ -168,6 +169,9 @@
<if test="personalSignOssPath != null"> <if test="personalSignOssPath != null">
personal_sign_oss_path, personal_sign_oss_path,
</if> </if>
<if test="videoOssPath != null">
video_oss_path,
</if>
<if test="isActive != null"> <if test="isActive != null">
is_active, is_active,
</if> </if>
...@@ -260,6 +264,9 @@ ...@@ -260,6 +264,9 @@
<if test="personalSignOssPath != null"> <if test="personalSignOssPath != null">
#{personalSignOssPath,jdbcType=VARCHAR}, #{personalSignOssPath,jdbcType=VARCHAR},
</if> </if>
<if test="videoOssPath != null">
#{videoOssPath,jdbcType=VARCHAR},
</if>
<if test="isActive != null"> <if test="isActive != null">
#{isActive,jdbcType=INTEGER}, #{isActive,jdbcType=INTEGER},
</if> </if>
...@@ -368,6 +375,9 @@ ...@@ -368,6 +375,9 @@
<if test="personalSignOssPath != null"> <if test="personalSignOssPath != null">
personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR}, personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR},
</if> </if>
<if test="videoOssPath != null">
video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
</if>
<if test="approveStatus != null"> <if test="approveStatus != null">
approve_status = #{approveStatus,jdbcType=VARCHAR}, approve_status = #{approveStatus,jdbcType=VARCHAR},
</if> </if>
...@@ -419,6 +429,7 @@ ...@@ -419,6 +429,7 @@
bank_account_opening = #{bankAccountOpening,jdbcType=VARCHAR}, bank_account_opening = #{bankAccountOpening,jdbcType=VARCHAR},
bank_account_id = #{bankAccountId,jdbcType=VARCHAR}, bank_account_id = #{bankAccountId,jdbcType=VARCHAR},
personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR}, personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR},
video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER}, is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT}, created_by = #{createdBy,jdbcType=BIGINT},
...@@ -555,6 +566,11 @@ ...@@ -555,6 +566,11 @@
when id = #{item.id,jdbcType=BIGINT} then #{item.personalSignOssPath,jdbcType=VARCHAR} when id = #{item.id,jdbcType=BIGINT} then #{item.personalSignOssPath,jdbcType=VARCHAR}
</foreach> </foreach>
</trim> </trim>
<trim prefix="video_oss_path = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.videoOssPath,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="is_active = case" suffix="end,"> <trim prefix="is_active = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER} when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
...@@ -765,6 +781,13 @@ ...@@ -765,6 +781,13 @@
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="video_oss_path = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.videoOssPath != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.videoOssPath,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="is_active = case" suffix="end,"> <trim prefix="is_active = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.isActive != null"> <if test="item.isActive != null">
...@@ -813,7 +836,7 @@ ...@@ -813,7 +836,7 @@
id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id, id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id,
city_name, resident_address, wechat_id, email, personer_picture_oss_path, id_front_page_oss_path, city_name, resident_address, wechat_id, email, personer_picture_oss_path, id_front_page_oss_path,
id_back_page_oss_path, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path, id_back_page_oss_path, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path,
bank_account_opening, bank_account_id, personal_sign_oss_path, is_active, created_at, bank_account_opening, bank_account_id, personal_sign_oss_path, video_oss_path, is_active, created_at,
created_by, updated_at, updated_by) created_by, updated_at, updated_by)
values values
<foreach collection="list" item="item" separator=","> <foreach collection="list" item="item" separator=",">
...@@ -827,7 +850,7 @@ ...@@ -827,7 +850,7 @@
#{item.idFrontPageOssPath,jdbcType=VARCHAR}, #{item.idBackPageOssPath,jdbcType=VARCHAR}, #{item.idFrontPageOssPath,jdbcType=VARCHAR}, #{item.idBackPageOssPath,jdbcType=VARCHAR},
#{item.lastGraduateGrade,jdbcType=VARCHAR}, #{item.lastGraduateSchool,jdbcType=VARCHAR}, #{item.lastGraduateGrade,jdbcType=VARCHAR}, #{item.lastGraduateSchool,jdbcType=VARCHAR},
#{item.lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{item.bankAccountOpening,jdbcType=VARCHAR}, #{item.lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{item.bankAccountOpening,jdbcType=VARCHAR},
#{item.bankAccountId,jdbcType=VARCHAR}, #{item.personalSignOssPath,jdbcType=VARCHAR}, #{item.bankAccountId,jdbcType=VARCHAR}, #{item.personalSignOssPath,jdbcType=VARCHAR}, #{item.videoOssPath,jdbcType=VARCHAR},
#{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT}, #{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}) #{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT})
</foreach> </foreach>
......
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