加盟商资质审核

This commit is contained in:
俞扬
2023-06-16 11:46:04 +08:00
parent 81f74c54d6
commit 0479f46eda
18 changed files with 945 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
package com.cool.store.mapper;
import com.cool.store.entity.DingdingUserDO;
/**
* @author zhangchenbiao
* @date 2023-06-15 10:03
*/
public interface DingdingUserMapper {
/**
*
* 默认插入方法,只会给有值的字段赋值
* 会对传进来的字段做判空处理如果字段为空则使用数据库默认字段或者null
* dateTime:2023-06-15 10:03
*/
int insertSelective(DingdingUserDO record);
/**
*
* 默认更新方法根据主键更新不会把null值更新到数据库避免覆盖之前有值的
* dateTime:2023-06-15 10:03
*/
int updateByPrimaryKeySelective(DingdingUserDO record);
DingdingUserDO selectDingDingUserByMobile(String mobile);
}

View File

@@ -68,4 +68,8 @@ public interface HyPartnerInterviewMapper {
*/
PartnerPassLetterDetailVO getPassLetterDetail(@Param("interviewId") String interviewId);
/**
* 根据面试 id 查询面试信息
*/
HyPartnerInterviewDO selectByPrimaryKeySelective(String interviewId);
}

View File

@@ -0,0 +1,309 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cool.store.mapper.DingdingUserMapper">
<resultMap id="BaseResultMap" type="com.cool.store.entity.DingdingUserDO">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="userid" jdbcType="VARCHAR" property="userid" />
<result column="unionid" jdbcType="VARCHAR" property="unionid" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="is_boss" jdbcType="TINYINT" property="isBoss" />
<result column="hired_date" jdbcType="VARCHAR" property="hiredDate" />
<result column="is_senior" jdbcType="TINYINT" property="isSenior" />
<result column="tel" jdbcType="VARCHAR" property="tel" />
<result column="work_place" jdbcType="VARCHAR" property="workPlace" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="active" jdbcType="TINYINT" property="active" />
<result column="avatar" jdbcType="VARCHAR" property="avatar" />
<result column="is_admin" jdbcType="TINYINT" property="isAdmin" />
<result column="is_hide" jdbcType="TINYINT" property="isHide" />
<result column="job_number" jdbcType="VARCHAR" property="jobNumber" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="state_code" jdbcType="VARCHAR" property="stateCode" />
<result column="real_authed" jdbcType="TINYINT" property="realAuthed" />
<result column="db_update_timestamp" jdbcType="TIMESTAMP" property="dbUpdateTimestamp" />
<result column="position" jdbcType="VARCHAR" property="position" />
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
<result column="check_status" jdbcType="TINYINT" property="checkStatus" />
<result column="job_status" jdbcType="TINYINT" property="jobStatus" />
<result column="config_code_id" jdbcType="INTEGER" property="configCodeId" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.cool.store.entity.DingdingUserDO">
<result column="is_leader_in_depts" jdbcType="LONGVARCHAR" property="isLeaderInDepts" />
<result column="department" jdbcType="LONGVARCHAR" property="department" />
<result column="extattr" jdbcType="LONGVARCHAR" property="extattr" />
<result column="roles" jdbcType="LONGVARCHAR" property="roles" />
</resultMap>
<sql id="Base_Column_List">
id, userid, unionid, remark, is_boss, hired_date, is_senior, tel, work_place, email,
active, avatar, is_admin, is_hide, job_number, name, state_code, real_authed, db_update_timestamp,
position, mobile, check_status, job_status, config_code_id
</sql>
<sql id="Blob_Column_List">
is_leader_in_depts, department, extattr, roles
</sql>
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
insert into dingding_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userid != null">
userid,
</if>
<if test="unionid != null">
unionid,
</if>
<if test="remark != null">
remark,
</if>
<if test="isBoss != null">
is_boss,
</if>
<if test="hiredDate != null">
hired_date,
</if>
<if test="isSenior != null">
is_senior,
</if>
<if test="tel != null">
tel,
</if>
<if test="workPlace != null">
work_place,
</if>
<if test="email != null">
email,
</if>
<if test="active != null">
active,
</if>
<if test="avatar != null">
avatar,
</if>
<if test="isAdmin != null">
is_admin,
</if>
<if test="isHide != null">
is_hide,
</if>
<if test="jobNumber != null">
job_number,
</if>
<if test="name != null">
name,
</if>
<if test="stateCode != null">
state_code,
</if>
<if test="realAuthed != null">
real_authed,
</if>
<if test="dbUpdateTimestamp != null">
db_update_timestamp,
</if>
<if test="position != null">
position,
</if>
<if test="mobile != null">
mobile,
</if>
<if test="checkStatus != null">
check_status,
</if>
<if test="jobStatus != null">
job_status,
</if>
<if test="configCodeId != null">
config_code_id,
</if>
<if test="isLeaderInDepts != null">
is_leader_in_depts,
</if>
<if test="department != null">
department,
</if>
<if test="extattr != null">
extattr,
</if>
<if test="roles != null">
roles,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userid != null">
#{userid},
</if>
<if test="unionid != null">
#{unionid},
</if>
<if test="remark != null">
#{remark},
</if>
<if test="isBoss != null">
#{isBoss},
</if>
<if test="hiredDate != null">
#{hiredDate},
</if>
<if test="isSenior != null">
#{isSenior},
</if>
<if test="tel != null">
#{tel},
</if>
<if test="workPlace != null">
#{workPlace},
</if>
<if test="email != null">
#{email},
</if>
<if test="active != null">
#{active},
</if>
<if test="avatar != null">
#{avatar},
</if>
<if test="isAdmin != null">
#{isAdmin},
</if>
<if test="isHide != null">
#{isHide},
</if>
<if test="jobNumber != null">
#{jobNumber},
</if>
<if test="name != null">
#{name},
</if>
<if test="stateCode != null">
#{stateCode},
</if>
<if test="realAuthed != null">
#{realAuthed},
</if>
<if test="dbUpdateTimestamp != null">
#{dbUpdateTimestamp},
</if>
<if test="position != null">
#{position},
</if>
<if test="mobile != null">
#{mobile},
</if>
<if test="checkStatus != null">
#{checkStatus},
</if>
<if test="jobStatus != null">
#{jobStatus},
</if>
<if test="configCodeId != null">
#{configCodeId},
</if>
<if test="isLeaderInDepts != null">
#{isLeaderInDepts},
</if>
<if test="department != null">
#{department},
</if>
<if test="extattr != null">
#{extattr},
</if>
<if test="roles != null">
#{roles},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective">
update dingding_user
<set>
<if test="userid != null">
userid = #{userid},
</if>
<if test="unionid != null">
unionid = #{unionid},
</if>
<if test="remark != null">
remark = #{remark},
</if>
<if test="isBoss != null">
is_boss = #{isBoss},
</if>
<if test="hiredDate != null">
hired_date = #{hiredDate},
</if>
<if test="isSenior != null">
is_senior = #{isSenior},
</if>
<if test="tel != null">
tel = #{tel},
</if>
<if test="workPlace != null">
work_place = #{workPlace},
</if>
<if test="email != null">
email = #{email},
</if>
<if test="active != null">
active = #{active},
</if>
<if test="avatar != null">
avatar = #{avatar},
</if>
<if test="isAdmin != null">
is_admin = #{isAdmin},
</if>
<if test="isHide != null">
is_hide = #{isHide},
</if>
<if test="jobNumber != null">
job_number = #{jobNumber},
</if>
<if test="name != null">
name = #{name},
</if>
<if test="stateCode != null">
state_code = #{stateCode},
</if>
<if test="realAuthed != null">
real_authed = #{realAuthed},
</if>
<if test="dbUpdateTimestamp != null">
db_update_timestamp = #{dbUpdateTimestamp},
</if>
<if test="position != null">
position = #{position},
</if>
<if test="mobile != null">
mobile = #{mobile},
</if>
<if test="checkStatus != null">
check_status = #{checkStatus},
</if>
<if test="jobStatus != null">
job_status = #{jobStatus},
</if>
<if test="configCodeId != null">
config_code_id = #{configCodeId},
</if>
<if test="isLeaderInDepts != null">
is_leader_in_depts = #{isLeaderInDepts},
</if>
<if test="department != null">
department = #{department},
</if>
<if test="extattr != null">
extattr = #{extattr},
</if>
<if test="roles != null">
roles = #{roles},
</if>
</set>
where id = #{id}
</update>
<select id="selectDingDingUserByMobile" resultType="com.cool.store.entity.DingdingUserDO">
select
<include refid="Base_Column_List"/>,
<include refid="Blob_Column_List"/>
from
dingding_user
where
mobile = #{mobile}
</select>
</mapper>

View File

@@ -14,6 +14,7 @@
<result column="record_time" jdbcType="TIMESTAMP" property="recordTime" />
<result column="summary" jdbcType="VARCHAR" property="summary" />
<result column="auth_code" jdbcType="VARCHAR" property="authCode" />
<result column="qualify_verify_id" jdbcType="VARCHAR" property="qualifyVerifyId" />
<result column="pass_file_url" jdbcType="VARCHAR" property="passFileUrl" />
<result column="expiry_date" jdbcType="TIMESTAMP" property="expiryDate" />
<result column="latest_log_message" jdbcType="VARCHAR" property="latestLogMessage" />
@@ -41,7 +42,7 @@
<sql id="Base_Column_List">
id, status, partner_line_id, interview_plan_id, partner_id, deadline, interviewer,
recorder, process_info, record_time, summary, auth_code, pass_file_url, expiry_date,
recorder, process_info, record_time, summary, auth_code, qualify_verify_id, pass_file_url, expiry_date,
latest_log_message, pass_reason, certify_file, create_time, update_time, approve_time,
partner_enter_time, interviewer_enter_time
</sql>
@@ -244,6 +245,9 @@
<if test="interviewerEnterTime != null">
interviewer_enter_time = #{interviewerEnterTime},
</if>
<if test="qualifyVerifyId != null">
qualify_verify_id = #{qualifyVerifyId},
</if>
</set>
where id = #{id}
</update>
@@ -329,5 +333,14 @@
FROM hy_partner_intent_info
WHERE partner_id = #{partner_id}
</select>
<select id="selectByPrimaryKeySelective" resultType="com.cool.store.entity.HyPartnerInterviewDO">
select
<include refid="Base_Column_List"/>
from
hy_partner_intent_info
where
id = #{interviewId}
</select>
</mapper>