Commit 59e8ad3a by yao.xiao

增加-判断经纪人是否可以登入ydLife,是否可以看到新增单

parent f8f0a9fd
......@@ -216,6 +216,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
responseVO.setPractitionerTypeId(practitionerType);
responseVO.setPractitionerBasicInfo(basicInfo);
responseVO.setLoginTimes(logTimes);
responseVO.setCanSeeSalaryList(practitionerInfo.getCanLoginDyd());
responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
// }
}else{
......
......@@ -10,6 +10,7 @@ public class PractitionerLoginResponseVO {
private String practitionerIdEG;
private Integer loginTimes;
private String getOpenIdUrl;
private Long canSeeSalaryList;
private PractitionerLoginBasicInfo practitionerBasicInfo;
private CommonResult commonResult;
......@@ -76,4 +77,12 @@ public class PractitionerLoginResponseVO {
public void setPractitionerTypeId(Long practitionerTypeId) {
this.practitionerTypeId = practitionerTypeId;
}
public Long getCanSeeSalaryList() {
return this.canSeeSalaryList;
}
public void setCanSeeSalaryList(Long canSeeSalaryList) {
this.canSeeSalaryList = canSeeSalaryList;
}
}
package com.yd.dal.entity.customer;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ag_acl_practitioner
* @author
* 从业人员执业证信息表
*/
@Data
public class AclPractitioner implements Serializable {
public class AclPractitioner {
private static final long serialVersionUID = 1L;
/**
* serial id
*/
......@@ -106,6 +105,11 @@ public class AclPractitioner implements Serializable {
private String employeeNo;
/**
* 员工合同编号
*/
private String contractNo;
/**
* 0=No, 1=Yes
*/
private Integer isActive;
......@@ -188,6 +192,11 @@ public class AclPractitioner implements Serializable {
private String educationLevel;
/**
* 毕业学校
*/
private String graduatedUniversity;
/**
* FK ag_acl_practitioner.id 辅导人
*/
private Long mentorId;
......@@ -203,19 +212,22 @@ public class AclPractitioner implements Serializable {
private Integer gender;
/**
* 经纪人合同号
* 经纪人通过最后一步审批后生成的电子合同
*/
private String contractNo;
private String contractOssPath;
/**
* 经纪人PDF合同地址
* FK ag_acl_practitioner_hiring_basic_info.id
*/
private String contractOssPath;
private Long hiringBasicInfoId;
/**
* 经纪人报聘信息表id
* 能够登录dyd
*/
private Long hiringBasicInfoId;
private Long canLoginDyd;
private static final long serialVersionUID = 1L;
/**
* 能够查看薪资表
*/
private Long canSeeSalaryList;
}
\ No newline at end of file
......@@ -13,6 +13,7 @@ public class PractitionerInfo {
private String weChatId;
private String qqId;
private String practitionerRegNo;
private Long canLoginDyd;
public Long getCustomerId() {
return customerId;
......@@ -109,4 +110,12 @@ public class PractitionerInfo {
public void setGender(Integer gender) {
this.gender = gender;
}
public Long getCanLoginDyd() {
return canLoginDyd;
}
public void setCanLoginDyd(Long canLoginDyd) {
this.canLoginDyd = canLoginDyd;
}
}
package com.yd.dal.mapper.customer;
import com.yd.api.practitioner.vo.payscale.PayScaleInfo;
import com.yd.api.practitioner.vo.subordinate.TeamMemberDetail;
import com.yd.dal.entity.practitioner.opportunity.PlayerSalesActivityInfo;
import com.yd.dal.entity.customer.AclPractitioner;
import com.yd.dal.entity.customer.practitioner.PractitionerBasicInfo;
import com.yd.dal.entity.customer.practitioner.PractitionerInfo;
import com.yd.dal.entity.customer.practitioner.PractitionerRankInfo;
import com.yd.dal.entity.practitioner.opportunity.OwnOpportunityInfo;
import com.yd.dal.entity.practitioner.payscale.PayScaleBasicInfo;
import org.apache.ibatis.annotations.Param;
import com.yd.api.practitioner.vo.payscale.PayScaleInfo;import com.yd.api.practitioner.vo.subordinate.TeamMemberDetail;import com.yd.dal.entity.customer.AclPractitioner;
import java.util.List;
import com.yd.dal.entity.customer.practitioner.PractitionerBasicInfo;import com.yd.dal.entity.customer.practitioner.PractitionerInfo;import com.yd.dal.entity.customer.practitioner.PractitionerRankInfo;import com.yd.dal.entity.practitioner.opportunity.OwnOpportunityInfo;import com.yd.dal.entity.practitioner.opportunity.PlayerSalesActivityInfo;import com.yd.dal.entity.practitioner.payscale.PayScaleBasicInfo;import org.apache.ibatis.annotations.Param;
public interface AclPractitionerMapper {
int deleteByPrimaryKey(Long id);
......@@ -26,43 +17,49 @@ public interface AclPractitionerMapper {
int updateByPrimaryKey(AclPractitioner record);
int updateBatch(List<AclPractitioner> list);
int updateBatchSelective(List<AclPractitioner> list);
int batchInsert(@Param("list") List<AclPractitioner> list);
PractitionerBasicInfo getPractitionerInfoByMobileNoForOffline(String mobileNo);
List<PractitionerRankInfo> getPractitionerRankInfoForOffline(@Param("time") Integer time);
PractitionerBasicInfo getPractitionerInfoByMobileNoForOnline(String mobileNo);
List<PractitionerRankInfo> getPractitionerRankInfoForOnline(@Param("time")Integer time,@Param("practitionerTypeId")Long practitionerTypeId);
List<PractitionerRankInfo> getPractitionerRankInfoForOnline(@Param("time") Integer time, @Param("practitionerTypeId") Long practitionerTypeId);
List<PractitionerRankInfo> getPractitionerRankInfoForSpecials(@Param("mobileSpecials") List<String> mobileSpecials, @Param("time")Integer time);
List<PractitionerRankInfo> getPractitionerRankInfoForSpecials(@Param("mobileSpecials") List<String> mobileSpecials, @Param("time") Integer time);
PractitionerInfo findPractitionerInfoByLogin(@Param("mobileNo")String mobileNo);
PractitionerInfo findPractitionerInfoByLogin(@Param("mobileNo") String mobileNo);
AclPractitioner findByCustomerIdIsActive(@Param("customerId") Long customerId, @Param("isActive")int isActive);
AclPractitioner findByCustomerIdIsActive(@Param("customerId") Long customerId, @Param("isActive") int isActive);
List<OwnOpportunityInfo> ownOpportunityQuery(@Param("practitionerId")Long practitionerId);
List<OwnOpportunityInfo> ownOpportunityQuery(@Param("practitionerId") Long practitionerId);
List<AclPractitioner> findByIds(@Param("practitionerIdList") List<Long> practitionerIdList);
List<AclPractitioner> findForSubordinateIdByPractitionerId(Long practitionerId);
List<PlayerSalesActivityInfo> playerSalesActivityQuery(@Param("practitionerId") Long practitionerId,@Param("optionsId") Long optionsId);
List<PlayerSalesActivityInfo> playerSalesActivityQuery(@Param("practitionerId") Long practitionerId, @Param("optionsId") Long optionsId);
List<AclPractitioner> findBySubordinateSystemId(@Param("subordinateSystemId")Long subordinateSystemId);
List<AclPractitioner> findBySubordinateSystemId(@Param("subordinateSystemId") Long subordinateSystemId);
String findMobileNoByPractitionerId(@Param("practitionerId")Long practitionerId);
String findMobileNoByPractitionerId(@Param("practitionerId") Long practitionerId);
PractitionerBasicInfo findByMobileNoE(@Param("mobileNo")String mobileNo);
PractitionerBasicInfo findByMobileNoE(@Param("mobileNo") String mobileNo);
PractitionerRankInfo getPractitionerRankInfoByPractitionerIdEG(@Param("practitionerIdEG") String practitionerIdEG, @Param("time") Integer time);
PractitionerRankInfo getPractitionerRankInfoByPractitionerIdYD(@Param("practitionerId")Long practitionerId, @Param("time")Integer time);
PractitionerRankInfo getPractitionerRankInfoByPractitionerIdYD(@Param("practitionerId") Long practitionerId, @Param("time") Integer time);
List<PayScaleInfo> findPayScaleByPractitionerEG(@Param("practitionerIdEG")String practitionerIdEG);
List<PayScaleInfo> findPayScaleByPractitionerEG(@Param("practitionerIdEG") String practitionerIdEG);
PayScaleBasicInfo findFilePathByMonShId(@Param("monShId")Integer monShId);
PayScaleBasicInfo findFilePathByMonShId(@Param("monShId") Integer monShId);
PractitionerBasicInfo findByIdEG(@Param("practitionerIdEG")String practitionerIdEG);
PractitionerBasicInfo findByIdEG(@Param("practitionerIdEG") String practitionerIdEG);
AclPractitioner findPractitionerByLeadsAssignedId(Long leadsAssignedId);
......@@ -79,5 +76,4 @@ public interface AclPractitionerMapper {
AclPractitioner selectByMobileNo(String mobileNo);
List<TeamMemberDetail> queryTeamMemberDetailList(List<Long> practitionerIdList);
}
\ No newline at end of file
......@@ -2,6 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yd.dal.mapper.customer.AclPractitionerMapper">
<resultMap id="BaseResultMap" type="com.yd.dal.entity.customer.AclPractitioner">
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="insurer_id" jdbcType="BIGINT" property="insurerId" />
<result column="insurer_branch_id" jdbcType="BIGINT" property="insurerBranchId" />
......@@ -9,18 +11,19 @@
<result column="subordinate_system_id" jdbcType="BIGINT" property="subordinateSystemId" />
<result column="practitioner_code" jdbcType="VARCHAR" property="practitionerCode" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="mobile_no" jdbcType="VARCHAR" property="mobileNo" typeHandler="com.yd.util.deshandler.DESTypeHandler"/>
<result column="mobile_no" jdbcType="VARCHAR" property="mobileNo" />
<result column="id_type_id" jdbcType="BIGINT" property="idTypeId" />
<result column="id_type" jdbcType="VARCHAR" property="idType" />
<result column="id_no" jdbcType="VARCHAR" property="idNo" typeHandler="com.yd.util.deshandler.DESTypeHandler"/>
<result column="id_no" jdbcType="VARCHAR" property="idNo" />
<result column="practitioner_birthdate" jdbcType="DATE" property="practitionerBirthdate" />
<result column="practitioner_reg_no" jdbcType="VARCHAR" property="practitionerRegNo" />
<result column="practitioner_reg_company" jdbcType="VARCHAR" property="practitionerRegCompany" />
<result column="effective_start_date" jdbcType="DATE" property="effectiveStartDate" />
<result column="effective_end_date" jdbcType="DATE" property="effectiveEndDate" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="remark" jdbcType="LONGVARCHAR" property="remark" />
<result column="customer_id" jdbcType="BIGINT" property="customerId" />
<result column="employee_no" jdbcType="VARCHAR" property="employeeNo" />
<result column="contract_no" jdbcType="VARCHAR" property="contractNo" />
<result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
......@@ -31,71 +34,82 @@
<result column="city_id" jdbcType="BIGINT" property="cityId" />
<result column="city_name" jdbcType="VARCHAR" property="cityName" />
<result column="cert_list" jdbcType="VARCHAR" property="certList" />
<result column="bio_intro" jdbcType="VARCHAR" property="bioIntro" />
<result column="bio_intro" jdbcType="LONGVARCHAR" property="bioIntro" />
<result column="wechat_id" jdbcType="VARCHAR" property="wechatId" />
<result column="qq_id" jdbcType="VARCHAR" property="qqId" />
<result column="is_profile_show" jdbcType="INTEGER" property="isProfileShow" />
<result column="is_name_show" jdbcType="INTEGER" property="isNameShow" />
<result column="is_mobile_show" jdbcType="INTEGER" property="isMobileShow" />
<result column="education_level" jdbcType="VARCHAR" property="educationLevel" />
<result column="graduated_university" jdbcType="VARCHAR" property="graduatedUniversity" />
<result column="mentor_id" jdbcType="BIGINT" property="mentorId" />
<result column="introducer_id" jdbcType="BIGINT" property="introducerId" />
<result column="gender" jdbcType="INTEGER" property="gender" />
<result column="contract_no" jdbcType="VARCHAR" property="contractNo" />
<result column="contract_oss_path" jdbcType="VARCHAR" property="contractOssPath" />
<result column="hiring_basic_info_id" jdbcType="BIGINT" property="hiringBasicInfoId" />
<result column="can_login_dyd" jdbcType="BIGINT" property="canLoginDyd" />
<result column="can_see_salary_list" jdbcType="BIGINT" property="canSeeSalaryList" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, insurer_id, insurer_branch_id, dept_id, subordinate_system_id, practitioner_code,
`name`, mobile_no, id_type_id, id_type, id_no, practitioner_birthdate, practitioner_reg_no,
practitioner_reg_company, effective_start_date, effective_end_date, remark, customer_id,
employee_no, is_active, created_at, created_by, updated_at, updated_by, province_id,
province_name, city_id, city_name, cert_list, bio_intro, wechat_id, qq_id, is_profile_show,
is_name_show, is_mobile_show, education_level, mentor_id, introducer_id, gender,
contract_no, contract_oss_path, hiring_basic_info_id
employee_no, contract_no, is_active, created_at, created_by, updated_at, updated_by,
province_id, province_name, city_id, city_name, cert_list, bio_intro, wechat_id,
qq_id, is_profile_show, is_name_show, is_mobile_show, education_level, graduated_university,
mentor_id, introducer_id, gender, contract_oss_path, hiring_basic_info_id, can_login_dyd,
can_see_salary_list
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from ag_acl_practitioner
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--@mbg.generated-->
delete from ag_acl_practitioner
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.AclPractitioner" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into ag_acl_practitioner (insurer_id, insurer_branch_id, dept_id,
subordinate_system_id, practitioner_code, `name`,
mobile_no, id_type_id, id_type,
id_no, practitioner_birthdate, practitioner_reg_no,
practitioner_reg_company, effective_start_date,
effective_end_date, remark, customer_id,
employee_no, is_active, created_at,
created_by, updated_at, updated_by,
province_id, province_name, city_id,
city_name, cert_list, bio_intro,
wechat_id, qq_id, is_profile_show,
is_name_show, is_mobile_show, education_level,
mentor_id, introducer_id, gender, hiring_basic_info_id
employee_no, contract_no, is_active,
created_at, created_by, updated_at,
updated_by, province_id, province_name,
city_id, city_name, cert_list,
bio_intro, wechat_id, qq_id,
is_profile_show, is_name_show, is_mobile_show,
education_level, graduated_university, mentor_id,
introducer_id, gender, contract_oss_path,
hiring_basic_info_id, can_login_dyd, can_see_salary_list
)
values (#{insurerId,jdbcType=BIGINT}, #{insurerBranchId,jdbcType=BIGINT}, #{deptId,jdbcType=BIGINT},
#{subordinateSystemId,jdbcType=BIGINT}, #{practitionerCode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{mobileNo,jdbcType=VARCHAR,typeHandler=com.yd.util.deshandler.DESTypeHandler}, #{idTypeId,jdbcType=BIGINT}, #{idType,jdbcType=VARCHAR},
#{idNo,jdbcType=VARCHAR,typeHandler=com.yd.util.deshandler.DESTypeHandler}, #{practitionerBirthdate,jdbcType=DATE}, #{practitionerRegNo,jdbcType=VARCHAR},
#{mobileNo,jdbcType=VARCHAR}, #{idTypeId,jdbcType=BIGINT}, #{idType,jdbcType=VARCHAR},
#{idNo,jdbcType=VARCHAR}, #{practitionerBirthdate,jdbcType=DATE}, #{practitionerRegNo,jdbcType=VARCHAR},
#{practitionerRegCompany,jdbcType=VARCHAR}, #{effectiveStartDate,jdbcType=DATE},
#{effectiveEndDate,jdbcType=DATE}, #{remark,jdbcType=VARCHAR}, #{customerId,jdbcType=BIGINT},
#{employeeNo,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT},
#{provinceId,jdbcType=BIGINT}, #{provinceName,jdbcType=VARCHAR}, #{cityId,jdbcType=BIGINT},
#{cityName,jdbcType=VARCHAR}, #{certList,jdbcType=VARCHAR}, #{bioIntro,jdbcType=VARCHAR},
#{wechatId,jdbcType=VARCHAR}, #{qqId,jdbcType=VARCHAR}, #{isProfileShow,jdbcType=INTEGER},
#{isNameShow,jdbcType=INTEGER}, #{isMobileShow,jdbcType=INTEGER}, #{educationLevel,jdbcType=VARCHAR},
#{mentorId,jdbcType=BIGINT}, #{introducerId,jdbcType=BIGINT}, #{gender,jdbcType=INTEGER},
#{hiringBasicInfoId,jdbcType=BIGINT}
#{effectiveEndDate,jdbcType=DATE}, #{remark,jdbcType=LONGVARCHAR}, #{customerId,jdbcType=BIGINT},
#{employeeNo,jdbcType=VARCHAR}, #{contractNo,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT}, #{provinceId,jdbcType=BIGINT}, #{provinceName,jdbcType=VARCHAR},
#{cityId,jdbcType=BIGINT}, #{cityName,jdbcType=VARCHAR}, #{certList,jdbcType=VARCHAR},
#{bioIntro,jdbcType=LONGVARCHAR}, #{wechatId,jdbcType=VARCHAR}, #{qqId,jdbcType=VARCHAR},
#{isProfileShow,jdbcType=INTEGER}, #{isNameShow,jdbcType=INTEGER}, #{isMobileShow,jdbcType=INTEGER},
#{educationLevel,jdbcType=VARCHAR}, #{graduatedUniversity,jdbcType=VARCHAR}, #{mentorId,jdbcType=BIGINT},
#{introducerId,jdbcType=BIGINT}, #{gender,jdbcType=INTEGER}, #{contractOssPath,jdbcType=VARCHAR},
#{hiringBasicInfoId,jdbcType=BIGINT}, #{canLoginDyd,jdbcType=BIGINT}, #{canSeeSalaryList,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.AclPractitioner" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into ag_acl_practitioner
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="insurerId != null">
......@@ -152,6 +166,9 @@
<if test="employeeNo != null">
employee_no,
</if>
<if test="contractNo != null">
contract_no,
</if>
<if test="isActive != null">
is_active,
</if>
......@@ -203,6 +220,9 @@
<if test="educationLevel != null">
education_level,
</if>
<if test="graduatedUniversity != null">
graduated_university,
</if>
<if test="mentorId != null">
mentor_id,
</if>
......@@ -212,6 +232,18 @@
<if test="gender != null">
gender,
</if>
<if test="contractOssPath != null">
contract_oss_path,
</if>
<if test="hiringBasicInfoId != null">
hiring_basic_info_id,
</if>
<if test="canLoginDyd != null">
can_login_dyd,
</if>
<if test="canSeeSalaryList != null">
can_see_salary_list,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="insurerId != null">
......@@ -260,7 +292,7 @@
#{effectiveEndDate,jdbcType=DATE},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
#{remark,jdbcType=LONGVARCHAR},
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
......@@ -268,6 +300,9 @@
<if test="employeeNo != null">
#{employeeNo,jdbcType=VARCHAR},
</if>
<if test="contractNo != null">
#{contractNo,jdbcType=VARCHAR},
</if>
<if test="isActive != null">
#{isActive,jdbcType=INTEGER},
</if>
......@@ -299,7 +334,7 @@
#{certList,jdbcType=VARCHAR},
</if>
<if test="bioIntro != null">
#{bioIntro,jdbcType=VARCHAR},
#{bioIntro,jdbcType=LONGVARCHAR},
</if>
<if test="wechatId != null">
#{wechatId,jdbcType=VARCHAR},
......@@ -319,6 +354,9 @@
<if test="educationLevel != null">
#{educationLevel,jdbcType=VARCHAR},
</if>
<if test="graduatedUniversity != null">
#{graduatedUniversity,jdbcType=VARCHAR},
</if>
<if test="mentorId != null">
#{mentorId,jdbcType=BIGINT},
</if>
......@@ -328,9 +366,22 @@
<if test="gender != null">
#{gender,jdbcType=INTEGER},
</if>
<if test="contractOssPath != null">
#{contractOssPath,jdbcType=VARCHAR},
</if>
<if test="hiringBasicInfoId != null">
#{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if test="canLoginDyd != null">
#{canLoginDyd,jdbcType=BIGINT},
</if>
<if test="canSeeSalaryList != null">
#{canSeeSalaryList,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yd.dal.entity.customer.AclPractitioner">
<!--@mbg.generated-->
update ag_acl_practitioner
<set>
<if test="insurerId != null">
......@@ -352,7 +403,7 @@
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="mobileNo != null">
mobile_no = #{mobileNo,jdbcType=VARCHAR,typeHandler=com.yd.util.deshandler.DESTypeHandler},
mobile_no = #{mobileNo,jdbcType=VARCHAR},
</if>
<if test="idTypeId != null">
id_type_id = #{idTypeId,jdbcType=BIGINT},
......@@ -361,7 +412,7 @@
id_type = #{idType,jdbcType=VARCHAR},
</if>
<if test="idNo != null">
id_no = #{idNo,jdbcType=VARCHAR,typeHandler=com.yd.util.deshandler.DESTypeHandler},
id_no = #{idNo,jdbcType=VARCHAR},
</if>
<if test="practitionerBirthdate != null">
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
......@@ -379,7 +430,7 @@
effective_end_date = #{effectiveEndDate,jdbcType=DATE},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
remark = #{remark,jdbcType=LONGVARCHAR},
</if>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=BIGINT},
......@@ -387,6 +438,9 @@
<if test="employeeNo != null">
employee_no = #{employeeNo,jdbcType=VARCHAR},
</if>
<if test="contractNo != null">
contract_no = #{contractNo,jdbcType=VARCHAR},
</if>
<if test="isActive != null">
is_active = #{isActive,jdbcType=INTEGER},
</if>
......@@ -418,7 +472,7 @@
cert_list = #{certList,jdbcType=VARCHAR},
</if>
<if test="bioIntro != null">
bio_intro = #{bioIntro,jdbcType=VARCHAR},
bio_intro = #{bioIntro,jdbcType=LONGVARCHAR},
</if>
<if test="wechatId != null">
wechat_id = #{wechatId,jdbcType=VARCHAR},
......@@ -438,6 +492,9 @@
<if test="educationLevel != null">
education_level = #{educationLevel,jdbcType=VARCHAR},
</if>
<if test="graduatedUniversity != null">
graduated_university = #{graduatedUniversity,jdbcType=VARCHAR},
</if>
<if test="mentorId != null">
mentor_id = #{mentorId,jdbcType=BIGINT},
</if>
......@@ -447,19 +504,23 @@
<if test="gender != null">
gender = #{gender,jdbcType=INTEGER},
</if>
<if test="contractNo != null">
contract_no = #{contractNo,jdbcType=INTEGER},
</if>
<if test="contractOssPath != null">
contract_oss_path = #{contractOssPath,jdbcType=INTEGER},
contract_oss_path = #{contractOssPath,jdbcType=VARCHAR},
</if>
<if test="hiringBasicInfoId != null">
hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=INTEGER},
hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if test="canLoginDyd != null">
can_login_dyd = #{canLoginDyd,jdbcType=BIGINT},
</if>
<if test="canSeeSalaryList != null">
can_see_salary_list = #{canSeeSalaryList,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.yd.dal.entity.customer.AclPractitioner">
<!--@mbg.generated-->
update ag_acl_practitioner
set insurer_id = #{insurerId,jdbcType=BIGINT},
insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT},
......@@ -476,9 +537,10 @@
practitioner_reg_company = #{practitionerRegCompany,jdbcType=VARCHAR},
effective_start_date = #{effectiveStartDate,jdbcType=DATE},
effective_end_date = #{effectiveEndDate,jdbcType=DATE},
remark = #{remark,jdbcType=VARCHAR},
remark = #{remark,jdbcType=LONGVARCHAR},
customer_id = #{customerId,jdbcType=BIGINT},
employee_no = #{employeeNo,jdbcType=VARCHAR},
contract_no = #{contractNo,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
......@@ -489,28 +551,614 @@
city_id = #{cityId,jdbcType=BIGINT},
city_name = #{cityName,jdbcType=VARCHAR},
cert_list = #{certList,jdbcType=VARCHAR},
bio_intro = #{bioIntro,jdbcType=VARCHAR},
bio_intro = #{bioIntro,jdbcType=LONGVARCHAR},
wechat_id = #{wechatId,jdbcType=VARCHAR},
qq_id = #{qqId,jdbcType=VARCHAR},
is_profile_show = #{isProfileShow,jdbcType=INTEGER},
is_name_show = #{isNameShow,jdbcType=INTEGER},
is_mobile_show = #{isMobileShow,jdbcType=INTEGER},
education_level = #{educationLevel,jdbcType=VARCHAR},
graduated_university = #{graduatedUniversity,jdbcType=VARCHAR},
mentor_id = #{mentorId,jdbcType=BIGINT},
introducer_id = #{introducerId,jdbcType=BIGINT},
gender = #{gender,jdbcType=INTEGER}
gender = #{gender,jdbcType=INTEGER},
contract_oss_path = #{contractOssPath,jdbcType=VARCHAR},
hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
can_login_dyd = #{canLoginDyd,jdbcType=BIGINT},
can_see_salary_list = #{canSeeSalaryList,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update ag_acl_practitioner
<trim prefix="set" suffixOverrides=",">
<trim prefix="insurer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.insurerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="insurer_branch_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.insurerBranchId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="dept_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.deptId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="subordinate_system_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.subordinateSystemId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="practitioner_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerCode,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`name` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.name,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="mobile_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.mobileNo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="id_type_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.idTypeId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="id_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.idType,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="id_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.idNo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="practitioner_birthdate = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerBirthdate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="practitioner_reg_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerRegNo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="practitioner_reg_company = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerRegCompany,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="effective_start_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.effectiveStartDate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="effective_end_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.effectiveEndDate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.customerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="employee_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.employeeNo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="contract_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.contractNo,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}
</foreach>
</trim>
<trim prefix="created_at = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="created_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="updated_at = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="updated_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="province_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.provinceId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="province_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.provinceName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="city_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.cityId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="city_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.cityName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="cert_list = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.certList,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="bio_intro = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.bioIntro,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="wechat_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.wechatId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="qq_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.qqId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="is_profile_show = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.isProfileShow,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="is_name_show = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.isNameShow,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="is_mobile_show = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.isMobileShow,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="education_level = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.educationLevel,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="graduated_university = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.graduatedUniversity,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="mentor_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.mentorId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="introducer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.introducerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="gender = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.gender,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="contract_oss_path = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.contractOssPath,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="hiring_basic_info_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="can_login_dyd = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.canLoginDyd,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="can_see_salary_list = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.canSeeSalaryList,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update ag_acl_practitioner
<trim prefix="set" suffixOverrides=",">
<trim prefix="insurer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.insurerId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.insurerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="insurer_branch_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.insurerBranchId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.insurerBranchId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="dept_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deptId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.deptId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="subordinate_system_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.subordinateSystemId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.subordinateSystemId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="practitioner_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.practitionerCode != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerCode,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`name` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.name != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.name,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="mobile_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.mobileNo != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.mobileNo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="id_type_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.idTypeId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.idTypeId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="id_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.idType != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.idType,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="id_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.idNo != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.idNo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="practitioner_birthdate = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.practitionerBirthdate != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerBirthdate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="practitioner_reg_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.practitionerRegNo != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerRegNo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="practitioner_reg_company = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.practitionerRegCompany != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerRegCompany,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="effective_start_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.effectiveStartDate != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.effectiveStartDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="effective_end_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.effectiveEndDate != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.effectiveEndDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=LONGVARCHAR}
</if>
</foreach>
</trim>
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.customerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="employee_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.employeeNo != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.employeeNo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="contract_no = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.contractNo != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.contractNo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="is_active = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isActive != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="created_at = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createdAt != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="created_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createdBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="updated_at = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updatedAt != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="updated_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updatedBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="province_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.provinceId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.provinceId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="province_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.provinceName != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.provinceName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="city_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.cityId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.cityId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="city_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.cityName != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.cityName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="cert_list = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.certList != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.certList,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="bio_intro = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.bioIntro != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.bioIntro,jdbcType=LONGVARCHAR}
</if>
</foreach>
</trim>
<trim prefix="wechat_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.wechatId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.wechatId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="qq_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.qqId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.qqId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="is_profile_show = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isProfileShow != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.isProfileShow,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="is_name_show = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isNameShow != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.isNameShow,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="is_mobile_show = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isMobileShow != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.isMobileShow,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="education_level = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.educationLevel != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.educationLevel,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="graduated_university = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.graduatedUniversity != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.graduatedUniversity,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="mentor_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.mentorId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.mentorId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="introducer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.introducerId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.introducerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="gender = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.gender != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.gender,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="contract_oss_path = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.contractOssPath != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.contractOssPath,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="hiring_basic_info_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.hiringBasicInfoId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="can_login_dyd = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.canLoginDyd != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.canLoginDyd,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="can_see_salary_list = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.canSeeSalaryList != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.canSeeSalaryList,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into ag_acl_practitioner
(insurer_id, insurer_branch_id, dept_id, subordinate_system_id, practitioner_code,
`name`, mobile_no, id_type_id, id_type, id_no, practitioner_birthdate, practitioner_reg_no,
practitioner_reg_company, effective_start_date, effective_end_date, remark, customer_id,
employee_no, contract_no, is_active, created_at, created_by, updated_at, updated_by,
province_id, province_name, city_id, city_name, cert_list, bio_intro, wechat_id,
qq_id, is_profile_show, is_name_show, is_mobile_show, education_level, graduated_university,
mentor_id, introducer_id, gender, contract_oss_path, hiring_basic_info_id, can_login_dyd,
can_see_salary_list)
values
<foreach collection="list" item="item" separator=",">
(#{item.insurerId,jdbcType=BIGINT}, #{item.insurerBranchId,jdbcType=BIGINT}, #{item.deptId,jdbcType=BIGINT},
#{item.subordinateSystemId,jdbcType=BIGINT}, #{item.practitionerCode,jdbcType=VARCHAR},
#{item.name,jdbcType=VARCHAR}, #{item.mobileNo,jdbcType=VARCHAR}, #{item.idTypeId,jdbcType=BIGINT},
#{item.idType,jdbcType=VARCHAR}, #{item.idNo,jdbcType=VARCHAR}, #{item.practitionerBirthdate,jdbcType=DATE},
#{item.practitionerRegNo,jdbcType=VARCHAR}, #{item.practitionerRegCompany,jdbcType=VARCHAR},
#{item.effectiveStartDate,jdbcType=DATE}, #{item.effectiveEndDate,jdbcType=DATE},
#{item.remark,jdbcType=LONGVARCHAR}, #{item.customerId,jdbcType=BIGINT}, #{item.employeeNo,jdbcType=VARCHAR},
#{item.contractNo,jdbcType=VARCHAR}, #{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP},
#{item.createdBy,jdbcType=BIGINT}, #{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT},
#{item.provinceId,jdbcType=BIGINT}, #{item.provinceName,jdbcType=VARCHAR}, #{item.cityId,jdbcType=BIGINT},
#{item.cityName,jdbcType=VARCHAR}, #{item.certList,jdbcType=VARCHAR}, #{item.bioIntro,jdbcType=LONGVARCHAR},
#{item.wechatId,jdbcType=VARCHAR}, #{item.qqId,jdbcType=VARCHAR}, #{item.isProfileShow,jdbcType=INTEGER},
#{item.isNameShow,jdbcType=INTEGER}, #{item.isMobileShow,jdbcType=INTEGER}, #{item.educationLevel,jdbcType=VARCHAR},
#{item.graduatedUniversity,jdbcType=VARCHAR}, #{item.mentorId,jdbcType=BIGINT},
#{item.introducerId,jdbcType=BIGINT}, #{item.gender,jdbcType=INTEGER}, #{item.contractOssPath,jdbcType=VARCHAR},
#{item.hiringBasicInfoId,jdbcType=BIGINT}, #{item.canLoginDyd,jdbcType=BIGINT},
#{item.canSeeSalaryList,jdbcType=BIGINT})
</foreach>
</insert>
<resultMap id="base_result_map_practitioner_info" type="com.yd.dal.entity.customer.practitioner.PractitionerBasicInfo">
<result column="customerId" property="customerId"/>
<result column="practitionerIdForOnline" property="practitionerIdForOnline"/>
<result column="practitionerId" property="practitionerId"/>
<result column="name" property="name"/>
<result column="customerId" property="customerId" />
<result column="practitionerIdForOnline" property="practitionerIdForOnline" />
<result column="practitionerId" property="practitionerId" />
<result column="name" property="name" />
<result column="titleCode" property="titleCode" />
<!-- <result column="mobile_no" property="titleCode" typeHandler="com.yd.util.deshandler.DESTypeHandler"/>-->
<result column="titleName" property="titleName"/>
<result column="gender" property="gender"/>
<!-- &lt;result column="mobile_no" property="titleCode" typeHandler="com.yd.util.deshandler.DESTypeHandler"/&gt;-->
<result column="titleName" property="titleName" />
<result column="gender" property="gender" />
</resultMap>
......@@ -544,45 +1192,45 @@
<resultMap id="practitioner_rank_map" type="com.yd.dal.entity.customer.practitioner.PractitionerRankInfo">
<result column="customerId" property="customerId"/>
<result column="practitionerIdForOnLine" property="practitionerIdForOnLine"/>
<result column="practitionerId" property="practitionerId"/>
<result column="name" property="name"/>
<result column="customerId" property="customerId" />
<result column="practitionerIdForOnLine" property="practitionerIdForOnLine" />
<result column="practitionerId" property="practitionerId" />
<result column="name" property="name" />
<result column="titleCode" property="titleCode" />
<result column="titleName" property="titleName"/>
<result column="count" property="count"/>
<result column="fyp" property="fyp"/>
<result column="fyc" property="fyc"/>
<result column="titleName" property="titleName" />
<result column="count" property="count" />
<result column="fyp" property="fyp" />
<result column="fyc" property="fyc" />
</resultMap>
<!-- <select id="getPractitionerRankInfoForOffline" resultMap="practitioner_rank_map" resultType="java.lang.Integer">-->
<!-- &lt;select id="getPractitionerRankInfoForOffline" resultMap="practitioner_rank_map" resultType="java.lang.Integer"&gt;-->
<!-- SELECT-->
<!-- p.SAL_MST_ID as practitionerId ,-->
<!-- p.SAL_MST_NAME as name ,&#45;&#45; 姓名-->
<!-- md.DRP_TITLE_LEVEL as titleCode,&#45;&#45; 职称code-->
<!-- md.DRP_TITLE_NAME as titleName,&#45;&#45; 职称名称-->
<!-- spc.SPC_DIV_NAME as spcDivName,&#45;&#45; 体系id-->
<!-- ifnull(count(m.MON025_002),0) as count,&#45;&#45; 保单id-->
<!-- ifnull(sum(m.MON025_401),0) as fyp,&#45;&#45; 保费-->
<!-- ifnull(sum(policy.INS001_FYCTOTAL),0) as fyc &#45;&#45; 应发佣金-->
<!-- FROM MON025 m INNER JOIN sal001 p on m.MON025_007 = p.SAL_MST_ID &#45;&#45; 业务员id-->
<!-- p.SAL_MST_NAME as name ,&amp;#45;&amp;#45; 姓名-->
<!-- md.DRP_TITLE_LEVEL as titleCode,&amp;#45;&amp;#45; 职称code-->
<!-- md.DRP_TITLE_NAME as titleName,&amp;#45;&amp;#45; 职称名称-->
<!-- spc.SPC_DIV_NAME as spcDivName,&amp;#45;&amp;#45; 体系id-->
<!-- ifnull(count(m.MON025_002),0) as count,&amp;#45;&amp;#45; 保单id-->
<!-- ifnull(sum(m.MON025_401),0) as fyp,&amp;#45;&amp;#45; 保费-->
<!-- ifnull(sum(policy.INS001_FYCTOTAL),0) as fyc &amp;#45;&amp;#45; 应发佣金-->
<!-- FROM MON025 m INNER JOIN sal001 p on m.MON025_007 = p.SAL_MST_ID &amp;#45;&amp;#45; 业务员id-->
<!-- left join DRP003 md on p.FK_DRP_TITLE_CODE = md.DRP_TITLE_CODE-->
<!-- inner JOIN ins001 policy on m.MON025_002 = policy.INS_MST_ID &#45;&#45; 保单id-->
<!-- inner join spc004 spc on m.MON025_006 = spc.SPC_DIV_ID &#45;&#45; 体系-->
<!-- inner JOIN ins001 policy on m.MON025_002 = policy.INS_MST_ID &amp;#45;&amp;#45; 保单id-->
<!-- inner join spc004 spc on m.MON025_006 = spc.SPC_DIV_ID &amp;#45;&amp;#45; 体系-->
<!-- WHERE m.MON025_109 IN (1,2,3,4,7) AND m.MON025_303 = 1 AND m.mon025_108 = 'S01'-->
<!-- <choose>-->
<!-- <when test="time == 1">-->
<!-- &lt;choose&gt;-->
<!-- &lt;when test="time == 1"&gt;-->
<!-- and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )-->
<!-- </when>-->
<!-- <when test="time == 3">-->
<!-- &lt;/when&gt;-->
<!-- &lt;when test="time == 3"&gt;-->
<!-- and QUARTER(policy.INS_MST_ACCEPT_DATE) = QUARTER(NOW()) AND year(policy.INS_MST_ACCEPT_DATE)=year(now())-->
<!-- </when>-->
<!-- <otherwise>-->
<!-- &lt;/when&gt;-->
<!-- &lt;otherwise&gt;-->
<!-- and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())-->
<!-- </otherwise>-->
<!-- </choose>-->
<!-- &lt;/otherwise&gt;-->
<!-- &lt;/choose&gt;-->
<!-- group by p.SAL_MST_ID;-->
<!-- </select>-->
<!-- &lt;/select&gt;-->
<select id="getPractitionerRankInfoForOffline" resultMap="practitioner_rank_map" resultType="java.lang.Integer">
SELECT
......@@ -625,7 +1273,7 @@
ifnull(count(f.id),0) as count,-- 保单id
ifnull(sum(f.order_price),0) as fyp,-- 保费
ifnull(sum(f.fyc_amount),0) as fyc -- 应发佣金
FROM (select t.* from ag_acl_customer_fortune t where t.drop_option_code = "S01" group by t.order_id ) f INNER JOIN ag_po_order o ON f.order_id = o.id and o.order_price > 0
FROM (select t.* from ag_acl_customer_fortune t where t.drop_option_code = "S01" group by t.order_id ) f INNER JOIN ag_po_order o ON f.order_id = o.id and o.order_price &gt; 0
inner JOIN ag_acl_practitioner p ON f.customer_id = p.customer_id
left join ag_acl_practitioner_setting s on p.id = s.practitioner_id
left join ag_acl_practitioner_subordinate_system ss on p.subordinate_system_id = ss.id
......@@ -657,13 +1305,13 @@
ifnull(count(f.id),0) as count,-- 保单id
ifnull(sum(f.order_price),0) as fyp,-- 保费
ifnull(sum(f.fyc_amount),0) as fyc -- 应发佣金
FROM ag_acl_customer_fortune f INNER JOIN ag_po_order o ON f.order_id = o.id and o.order_price > 0
FROM ag_acl_customer_fortune f INNER JOIN ag_po_order o ON f.order_id = o.id and o.order_price &gt; 0
inner JOIN ag_acl_practitioner p ON f.customer_id = p.customer_id
left join ag_acl_customer c on p.customer_id = c.id
left join ag_acl_practitioner_subordinate_system ss on p.subordinate_system_id = ss.id
WHERE o.status = 3 and f.drop_option_code = "S01"
and c.login in
<foreach collection="mobileSpecials" index="index" item="item" open="(" separator="," close=")">
<foreach close=")" collection="mobileSpecials" index="index" item="item" open="(" separator=",">
#{item}
</foreach>
<choose>
......@@ -683,18 +1331,19 @@
<resultMap id="practitioner_info_map" type="com.yd.dal.entity.customer.practitioner.PractitionerInfo">
<result column="customerId" property="customerId"/>
<result column="practitionerId" property="practitionerId"/>
<result column="name" property="name"/>
<result column="gender" property="gender"/>
<result column="customerId" property="customerId" />
<result column="practitionerId" property="practitionerId" />
<result column="name" property="name" />
<result column="gender" property="gender" />
<result column="practitionerType" property="practitionerType" />
<result column="levelCode" property="levelCode" />
<result column="levelName" property="levelName"/>
<result column="insurerBranchName" property="insurerBranchName"/>
<result column="subordinateId" property="subordinateId"/>
<result column="weChatId" property="weChatId"/>
<result column="qqId" property="qqId"/>
<result column="practitionerRegNo" property="practitionerRegNo"/>
<result column="levelName" property="levelName" />
<result column="insurerBranchName" property="insurerBranchName" />
<result column="subordinateId" property="subordinateId" />
<result column="weChatId" property="weChatId" />
<result column="qqId" property="qqId" />
<result column="practitionerRegNo" property="practitionerRegNo" />
<result column="canLoginDyd" property="canLoginDyd" />
</resultMap>
<select id="findPractitionerInfoByLogin" resultMap="practitioner_info_map">
......@@ -710,13 +1359,15 @@
p.subordinate_system_id as subordinateId,
p.wechat_id as weChatId,
p.qq_id as qqId,
p.practitioner_reg_no as practitionerRegNo
p.practitioner_reg_no as practitionerRegNo,
p.can_login_dyd as canLoginDyd
from ag_acl_customer c inner join ag_acl_practitioner p on c.id = p.customer_id
left join ag_acl_insurer_branch b on p.insurer_branch_id = b.id
left join ag_acl_practitioner_setting s on p.id = s.practitioner_id
left join ag_md_drop_options o on s.practitioner_level = o.id
where c.login = #{mobileNo}
and p.is_active = 1
and can_login_dyd != 0
</select>
<select id="findByCustomerIdIsActive" resultType="com.yd.dal.entity.customer.AclPractitioner">
......@@ -727,16 +1378,16 @@
and is_active = #{isActive,jdbcType=INTEGER}
</select>
<resultMap id="opportunityQuery" type="com.yd.dal.entity.practitioner.opportunity.OwnOpportunityInfo">
<result column="opportunityId" property="opportunityId"/>
<result column="name" property="name"/>
<result column="mobileNo" property="mobileNo" typeHandler="com.yd.util.deshandler.DESTypeHandler"/>
<result column="opportunityFrom" property="opportunityFrom"/>
<result column="opportunityDate" property="opportunityDate"/>
<result column="leadsAssignedId" property="leadsAssignedId"/>
<result column="mdDropOptionName" property="mdDropOptionName"/>
<result column="scoreDay" property="scoreDay"/>
<result column="scoreTotal" property="scoreTotal"/>
<result column="expertType" property="expertType"/>
<result column="opportunityId" property="opportunityId" />
<result column="name" property="name" />
<result column="mobileNo" property="mobileNo" typeHandler="com.yd.util.deshandler.DESTypeHandler" />
<result column="opportunityFrom" property="opportunityFrom" />
<result column="opportunityDate" property="opportunityDate" />
<result column="leadsAssignedId" property="leadsAssignedId" />
<result column="mdDropOptionName" property="mdDropOptionName" />
<result column="scoreDay" property="scoreDay" />
<result column="scoreTotal" property="scoreTotal" />
<result column="expertType" property="expertType" />
</resultMap>
<select id="ownOpportunityQuery" resultMap="opportunityQuery">
SELECT
......@@ -766,7 +1417,7 @@
<include refid="Base_Column_List" />
from ag_acl_practitioner
where id in
<foreach collection="practitionerIdList" index="index" item="item" open="(" separator="," close=")">
<foreach close=")" collection="practitionerIdList" index="index" item="item" open="(" separator=",">
#{item}
</foreach>
</select>
......@@ -780,12 +1431,12 @@
and s.is_active = 1
</select>
<resultMap id="playerSalesActivityQuery" type="com.yd.dal.entity.practitioner.opportunity.PlayerSalesActivityInfo">
<result column="practitionerId" property="practitionerId"/>
<result column="name" property="name"/>
<result column="scoreDay" property="scoreDay"/>
<result column="scoreWeek" property="scoreWeek"/>
<result column="scoreMonth" property="scoreMonth"/>
<result column="addOpportunityNum" property="addOpportunityNum"/>
<result column="practitionerId" property="practitionerId" />
<result column="name" property="name" />
<result column="scoreDay" property="scoreDay" />
<result column="scoreWeek" property="scoreWeek" />
<result column="scoreMonth" property="scoreMonth" />
<result column="addOpportunityNum" property="addOpportunityNum" />
</resultMap>
<select id="playerSalesActivityQuery" resultMap="playerSalesActivityQuery">
select
......@@ -832,8 +1483,7 @@
FROM sal001 p
where p.SAL_MST_MOBILE like concat(concat('%',#{mobileNo,jdbcType=VARCHAR}),'%') limit 1
</select>
<select id="getPractitionerRankInfoByPractitionerIdEG"
resultType="com.yd.dal.entity.customer.practitioner.PractitionerRankInfo">
<select id="getPractitionerRankInfoByPractitionerIdEG" resultType="com.yd.dal.entity.customer.practitioner.PractitionerRankInfo">
SELECT
p.SAL_MST_ID as practitionerId ,
p.SAL_MST_NAME as name ,-- 姓名
......@@ -863,8 +1513,7 @@
</otherwise>
</choose>
</select>
<select id="getPractitionerRankInfoByPractitionerIdYD"
resultType="com.yd.dal.entity.customer.practitioner.PractitionerRankInfo">
<select id="getPractitionerRankInfoByPractitionerIdYD" resultType="com.yd.dal.entity.customer.practitioner.PractitionerRankInfo">
SELECT
p.customer_id as customerId,
p.id as practitionerIdForOnLine ,
......@@ -873,7 +1522,7 @@
ifnull(count(f.id),0) as count,-- 保单id
ifnull(sum(f.order_price),0) as fyp,-- 保费
ifnull(sum(f.fyc_amount),0) as fyc -- 应发佣金
FROM (select t.* from ag_acl_customer_fortune t group by t.order_id ) f INNER JOIN ag_po_order o ON f.order_id = o.id and o.status = 3 and o.order_price > 0
FROM (select t.* from ag_acl_customer_fortune t group by t.order_id ) f INNER JOIN ag_po_order o ON f.order_id = o.id and o.status = 3 and o.order_price &gt; 0
inner JOIN ag_acl_practitioner p ON f.customer_id = p.customer_id
left join ag_acl_practitioner_setting s on p.id = s.practitioner_id
left join ag_acl_practitioner_subordinate_system ss on p.subordinate_system_id = ss.id
......@@ -989,25 +1638,25 @@
</select>
<resultMap id="teamMemberDetail" type="com.yd.api.practitioner.vo.subordinate.TeamMemberDetail">
<result column="id" property="practitionerId"/>
<result column="name" property="name"/>
<result column="mobile_no" property="mobileNo" typeHandler="com.yd.util.deshandler.DESTypeHandler"/>
<result column="practitionerLevel" property="practitionerLevel"/>
<result column="practitionerTitle" property="practitionerTitle"/>
<result column="branch_name" property="branch"/>
<result column="system" property="system"/>
<result column="mentor" property="mentor"/>
<result column="introducer" property="introducer"/>
<result column="gender" property="gender"/>
<result column="age" property="age"/>
<result column="practitioner_birthdate" property="birthDate"/>
<result column="educationLevel" property="educationLevel"/>
<result column="province" property="province"/>
<result column="city" property="city"/>
<result column="id_type" property="idType"/>
<result column="id_no" property="idNo" typeHandler="com.yd.util.deshandler.DESTypeHandler"/>
<result column="effective_start_date" property="effectiveStartDate"/>
<result column="practitioner_reg_no" property="practitionerRegNo"/>
<result column="id" property="practitionerId" />
<result column="name" property="name" />
<result column="mobile_no" property="mobileNo" typeHandler="com.yd.util.deshandler.DESTypeHandler" />
<result column="practitionerLevel" property="practitionerLevel" />
<result column="practitionerTitle" property="practitionerTitle" />
<result column="branch_name" property="branch" />
<result column="system" property="system" />
<result column="mentor" property="mentor" />
<result column="introducer" property="introducer" />
<result column="gender" property="gender" />
<result column="age" property="age" />
<result column="practitioner_birthdate" property="birthDate" />
<result column="educationLevel" property="educationLevel" />
<result column="province" property="province" />
<result column="city" property="city" />
<result column="id_type" property="idType" />
<result column="id_no" property="idNo" typeHandler="com.yd.util.deshandler.DESTypeHandler" />
<result column="effective_start_date" property="effectiveStartDate" />
<result column="practitioner_reg_no" property="practitionerRegNo" />
</resultMap>
<select id="queryTeamMemberDetailList" resultMap="teamMemberDetail">
select
......@@ -1036,7 +1685,7 @@
subordinate_system_id,insurer_branch_id,mentor_id,introducer_id,practitioner_reg_no,education_level
from ag_acl_practitioner
where id in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
#{item}
</foreach>
) p
......
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