Commit 0bf181a7 by wenyang Committed by jianan

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

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