Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
This commit is contained in:
@@ -90,4 +90,12 @@ public class EnterpriseUserDAO {
|
||||
}
|
||||
return enterpriseUserMapper.getUserListByDeptLeaders(regionIds);
|
||||
}
|
||||
|
||||
|
||||
public List<EnterpriseUserDO> getUserListByRegionIds(List<String> regionIds){
|
||||
if(CollectionUtils.isEmpty(regionIds)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
return enterpriseUserMapper.getUserListByRegionIds(regionIds);
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,11 @@ public class HyPartnerBaseInfoDAO {
|
||||
public int updateByPartnerId(String userName,String mobile,String partnerId){
|
||||
return hyPartnerBaseInfoMapper.updateByPartnerId(userName,mobile,partnerId);
|
||||
}
|
||||
public int cleanIdCardInfoByPartnerLineId(String idCard, String idCardPhotoFront,
|
||||
String idCardPhotoBlack, Long partnerLineId){
|
||||
return hyPartnerBaseInfoMapper.cleanIdCardInfoByPartnerLineId(idCard, idCardPhotoFront, idCardPhotoBlack, partnerLineId);
|
||||
}
|
||||
|
||||
|
||||
public HyPartnerBaseInfoDO getByPartnerIdAndLineId(String partnerId, Long partnerLineId){
|
||||
if (StringUtils.isEmpty(partnerId) || partnerLineId == null){
|
||||
|
||||
@@ -83,4 +83,11 @@ public interface EnterpriseUserMapper {
|
||||
* @return
|
||||
*/
|
||||
List<EnterpriseUserDO> getUserListByDeptLeaders(@Param("regionIds") List<String> regionIds);
|
||||
|
||||
/**
|
||||
* 获取部门人员
|
||||
* @param regionIds
|
||||
* @return
|
||||
*/
|
||||
List<EnterpriseUserDO> getUserListByRegionIds(@Param("regionIds") List<String> regionIds);
|
||||
}
|
||||
@@ -40,4 +40,9 @@ public interface HyPartnerBaseInfoMapper {
|
||||
|
||||
Long getLineIdByIdCard(@Param("idCard") String idCard);
|
||||
|
||||
int cleanIdCardInfoByPartnerLineId(@Param("idCard") String idCard,
|
||||
@Param("idCardPhotoFront") String idCardPhotoFront,
|
||||
@Param("idCardPhotoBlack") String idCardPhotoBlack,
|
||||
@Param("partnerLineId") Long partnerLineId);
|
||||
|
||||
}
|
||||
@@ -297,4 +297,13 @@
|
||||
where
|
||||
deleted = 0 and <foreach collection="regionIds" separator="or" open="(" close=")" item="regionId"> leader_dept_ids like concat("%", #{regionId}, "%") </foreach>
|
||||
</select>
|
||||
|
||||
<select id="getUserListByRegionIds" resultMap="BaseResultMap">
|
||||
select
|
||||
user_id, name, mobile
|
||||
from
|
||||
enterprise_user
|
||||
where
|
||||
deleted = 0 and <foreach collection="regionIds" separator="or" open="(" close=")" item="regionId"> user_region_ids like concat("%", #{regionId}, "%") </foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -21,7 +21,7 @@
|
||||
<select id="selectById" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from id = #{id}
|
||||
from hy_open_area_info where id = #{id}
|
||||
</select>
|
||||
<insert id="insertSelective" parameterType="com.cool.store.entity.HyOpenAreaInfoDO" keyProperty="record.id" useGeneratedKeys="true">
|
||||
insert into hy_open_area_info
|
||||
|
||||
@@ -238,4 +238,13 @@
|
||||
where id_card = #{idCard}
|
||||
</select>
|
||||
|
||||
<update id="cleanIdCardInfoByPartnerLineId">
|
||||
update hy_partner_base_info
|
||||
set
|
||||
id_card = #{idCard},
|
||||
id_card_photo_front = #{idCardPhotoFront},
|
||||
id_card_photo_black = #{idCardPhotoBlack}
|
||||
where partner_line_id = #{partnerLineId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -306,7 +306,7 @@
|
||||
on a.id = b.partner_line_id
|
||||
<where>
|
||||
<if test="lineId!=null">
|
||||
and a.id = #{id}
|
||||
and a.id = #{lineId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
@@ -491,12 +491,12 @@
|
||||
AND hpuinfo.recommend_partner_mobile like concat('%',#{storeKeyword},'%')
|
||||
</if>
|
||||
<if test="userIdList!=null and userIdList.size>0">
|
||||
<foreach collection="userIdList" item="userId" open="and a.investment_manager in (" close=")" separator=",">
|
||||
<foreach collection="userIdList" item="userId" open="and hpli.investment_manager in (" close=")" separator=",">
|
||||
#{userId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="developmentManagerList!=null and developmentManagerList.size>0">
|
||||
<foreach collection="developmentManagerList" item="developmentManager" open="and a.development_manager in (" close=")" separator=",">
|
||||
<foreach collection="developmentManagerList" item="developmentManager" open="and hpli.development_manager in (" close=")" separator=",">
|
||||
#{developmentManager}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user