Merge branch 'cc_20230520_partner' of http://gitlab.coolcollege.cn/hangzhou/java/coolstore-partner-manage into cc_20230520_partner
# Conflicts: # coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyPartnerInterviewMapper.java # coolstore-partner-webb/src/main/resources/application-dev.properties
This commit is contained in:
@@ -29,7 +29,7 @@ public class EnterpriseUserDAO {
|
||||
return enterpriseUserMapper.getUserInfoById(userId);
|
||||
}
|
||||
|
||||
public List<EnterpriseUserDO> getUserInfoByUserIds(List<String> userIdList){
|
||||
public List<EnterpriseUserDO> getUserInfoByUserIds(List<String> userIdList){
|
||||
if(CollectionUtils.isEmpty(userIdList)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
@@ -60,4 +60,8 @@ public class EnterpriseUserDAO {
|
||||
}
|
||||
return enterpriseUserMapper.deleteUserByUserId(userId);
|
||||
}
|
||||
|
||||
public List<EnterpriseUserDO> searchUserByRegionIdsAndKeyword(List<String> regionIds, String keyword, boolean isLeader){
|
||||
return enterpriseUserMapper.searchUserByRegionIdsAndKeyword(regionIds, keyword, isLeader);
|
||||
}
|
||||
}
|
||||
@@ -46,5 +46,4 @@ public class HyIntendDevZoneInfoDAO {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -30,9 +30,6 @@ public class HyOpenAreaInfoDAO {
|
||||
}
|
||||
|
||||
public List<HyOpenAreaInfoDO> queryByKeyword(String keyword,Boolean filterData){
|
||||
if (StringUtils.isEmpty(keyword)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return hyOpenAreaInfoMapper.queryByKeyword(keyword,filterData);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.HyPartnerBaseInfoDO;
|
||||
import com.cool.store.mapper.HyPartnerBaseInfoMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@@ -38,4 +38,11 @@ public class HyPartnerBaseInfoDAO {
|
||||
return hyPartnerBaseInfoMapper.updateByPartnerId(userName,mobile,partnerId);
|
||||
}
|
||||
|
||||
public HyPartnerBaseInfoDO getByPartnerIdAndLineId(String partnerId, Long partnerLineId){
|
||||
if (StringUtils.isEmpty(partnerId) || partnerLineId == null){
|
||||
return null;
|
||||
}
|
||||
return hyPartnerBaseInfoMapper.getByPartnerIdAndLineId(partnerId, partnerLineId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.HyPartnerClerkDO;
|
||||
import com.cool.store.mapper.HyPartnerClerkMapper;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2023/6/15 10:09
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Repository
|
||||
public class HyPartnerClerkDAO {
|
||||
|
||||
@Resource
|
||||
HyPartnerClerkMapper hyPartnerClerkMapper;
|
||||
|
||||
public int insertSelective( HyPartnerClerkDO record){
|
||||
return hyPartnerClerkMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(HyPartnerClerkDO record){
|
||||
return hyPartnerClerkMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public List<HyPartnerClerkDO> getHyPartnerClerkList(Long lineId){
|
||||
return hyPartnerClerkMapper.getHyPartnerClerkList(lineId);
|
||||
}
|
||||
|
||||
public int batchInsert(List<HyPartnerClerkDO> hyPartnerClerkDOList){
|
||||
if (CollectionUtils.isEmpty(hyPartnerClerkDOList)){
|
||||
return -1;
|
||||
}
|
||||
return hyPartnerClerkMapper.batchInsert(hyPartnerClerkDOList);
|
||||
}
|
||||
|
||||
public void deleteByPartnerIdAndLineId(String partnerId, Long partnerLineId){
|
||||
if (StringUtils.isEmpty(partnerId) || Objects.isNull(partnerLineId)){
|
||||
return;
|
||||
}
|
||||
hyPartnerClerkMapper.deleteByPartnerIdAndLineId(partnerId, partnerLineId);
|
||||
}
|
||||
|
||||
public List<HyPartnerClerkDO> listByPartnerIdAndLineId(String partnerId, Long partnerLineId){
|
||||
if (StringUtils.isEmpty(partnerId) || Objects.isNull(partnerLineId)){
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return hyPartnerClerkMapper.listByPartnerIdAndLineId(partnerId, partnerLineId);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,13 +4,11 @@ import com.cool.store.dto.partner.PartnerIntentApplyInfoDTO;
|
||||
import com.cool.store.entity.HyPartnerIntentInfoDO;
|
||||
import com.cool.store.mapper.HyPartnerIntentInfoMapper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
@@ -48,12 +46,19 @@ public class HyPartnerIntentInfoDAO {
|
||||
}
|
||||
|
||||
|
||||
public PartnerIntentApplyInfoDTO selectByLineId(Long lineId){
|
||||
public HyPartnerIntentInfoDO selectByLineId(Long lineId){
|
||||
if (lineId==null){
|
||||
return null;
|
||||
}
|
||||
return hyPartnerIntentInfoMapper.selectByLineId(lineId);
|
||||
}
|
||||
|
||||
public HyPartnerIntentInfoDO getByPartnerIdAndLineId(String partnerId, Long partnerLineId){
|
||||
if (StringUtils.isEmpty(partnerId) || Objects.isNull(partnerLineId)){
|
||||
return null;
|
||||
}
|
||||
return hyPartnerIntentInfoMapper.getByPartnerIdAndLineId(partnerId, partnerLineId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.dto.partner.PartnerBlackListDTO;
|
||||
import com.cool.store.dto.partner.PartnerIntentApplyInfoDTO;
|
||||
import com.cool.store.dto.partner.PartnerLineInfoAndBaseInfoDTO;
|
||||
import com.cool.store.dto.partner.StageCountDTO;
|
||||
import com.cool.store.dto.partner.*;
|
||||
import com.cool.store.entity.HyPartnerLineInfoDO;
|
||||
import com.cool.store.mapper.HyPartnerLineInfoMapper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -113,8 +114,8 @@ public class HyPartnerLineInfoDAO {
|
||||
}
|
||||
|
||||
|
||||
public PageInfo<PartnerBlackListDTO> getBlackList( String keyWord, String intentArea , Integer acceptAdjustType){
|
||||
return hyPartnerLineInfoMapper.getBlackList(keyWord,intentArea,acceptAdjustType);
|
||||
public PageInfo<PartnerBlackListDTO> getBlackList( String userNameKeyword,String phoneKeyword, String intentArea , Integer acceptAdjustType){
|
||||
return hyPartnerLineInfoMapper.getBlackList(userNameKeyword,phoneKeyword,intentArea,acceptAdjustType);
|
||||
}
|
||||
|
||||
|
||||
@@ -125,7 +126,30 @@ public class HyPartnerLineInfoDAO {
|
||||
return hyPartnerLineInfoMapper.joinAndRemoveBlack(lineId,status,joinReason,removeReason);
|
||||
}
|
||||
|
||||
public PageInfo<PublicSeaLineDTO> getPublicSeaLineList( String userNameKeyword, String phoneKeyword, String intentArea, Integer acceptAdjustType, Date updateStartTime, Date updateEndTime, List<String> userIdList){
|
||||
return hyPartnerLineInfoMapper.getPublicSeaLineList(userNameKeyword,phoneKeyword,intentArea,acceptAdjustType,updateStartTime,updateEndTime,userIdList);
|
||||
}
|
||||
|
||||
|
||||
public List<HyPartnerLineInfoDO> getPartnerLastLine(List<String> partnerIdList){
|
||||
if (CollectionUtils.isEmpty(partnerIdList)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return hyPartnerLineInfoMapper.getPartnerLastLine(partnerIdList);
|
||||
}
|
||||
public HyPartnerLineInfoDO getByPartnerId(String partnerId){
|
||||
if (StringUtils.isEmpty(partnerId)){
|
||||
return null;
|
||||
}
|
||||
return hyPartnerLineInfoMapper.getByPartnerId(partnerId);
|
||||
}
|
||||
|
||||
|
||||
public List<LineCountDTO> getFollowCountList( List<String> partnerIdList){
|
||||
if (CollectionUtils.isEmpty(partnerIdList)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return hyPartnerLineInfoMapper.getFollowCountList(partnerIdList);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -68,5 +68,12 @@ public class HyPartnerUserInfoDAO {
|
||||
return hyPartnerUserInfoMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateJoinKnowById(Integer isWritePartnerKnow, Long id){
|
||||
if (id == null || isWritePartnerKnow == null){
|
||||
return 0;
|
||||
}
|
||||
return hyPartnerUserInfoMapper.updateJoinKnowById(isWritePartnerKnow, id);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.cool.store.constants.CommonConstants;
|
||||
import com.cool.store.entity.UserRegionMappingDO;
|
||||
import com.cool.store.enums.DataSourceEnum;
|
||||
import com.cool.store.mapper.UserRegionMappingMapper;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
@@ -59,4 +60,28 @@ public class UserRegionMappingDAO {
|
||||
return userRegionMappingMapper.deleteUserRegionByUserId(userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取一个区域下直挂的人
|
||||
* @param regionId
|
||||
* @return
|
||||
*/
|
||||
public List<String> getUserListByRegionId(String regionId){
|
||||
if(StringUtils.isBlank(regionId)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
return userRegionMappingMapper.getUserListByRegionId(regionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取一个人所属的部门
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
public List<String> getRegionIdsByUserId(String userId){
|
||||
if(StringUtils.isBlank(userId)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
return userRegionMappingMapper.getRegionIdsByUserId(userId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -52,4 +52,13 @@ public interface EnterpriseUserMapper {
|
||||
* @return
|
||||
*/
|
||||
Integer deleteUserByUserId(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 根据关键字搜索部门下的用户
|
||||
* @param regionIds
|
||||
* @param keyword
|
||||
* @param isLeader
|
||||
* @return
|
||||
*/
|
||||
List<EnterpriseUserDO> searchUserByRegionIdsAndKeyword(@Param("regionIds") List<String> regionIds, @Param("keyword") String keyword, @Param("isLeader") boolean isLeader);
|
||||
}
|
||||
@@ -33,4 +33,7 @@ public interface HyPartnerBaseInfoMapper {
|
||||
int updateByPartnerId(@Param("userName") String userName,
|
||||
@Param("mobile") String mobile,
|
||||
@Param("partnerId") String partnerId);
|
||||
|
||||
HyPartnerBaseInfoDO getByPartnerIdAndLineId(@Param("partnerId") String partnerId, @Param("partnerLineId") Long partnerLineId);
|
||||
|
||||
}
|
||||
@@ -3,6 +3,8 @@ package com.cool.store.mapper;
|
||||
import com.cool.store.entity.HyPartnerClerkDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zhangchenbiao
|
||||
* @date 2023-05-29 03:51
|
||||
@@ -22,4 +24,20 @@ public interface HyPartnerClerkMapper {
|
||||
* dateTime:2023-05-29 03:51
|
||||
*/
|
||||
int updateByPrimaryKeySelective(@Param("record") HyPartnerClerkDO record);
|
||||
|
||||
List<HyPartnerClerkDO> getHyPartnerClerkList(@Param("lineId") Long lineId);
|
||||
|
||||
|
||||
int batchInsert(@Param("recordList") List<HyPartnerClerkDO> recordList);
|
||||
|
||||
void deleteByPartnerIdAndLineId(@Param("partnerId") String partnerId, @Param("partnerLineId") Long partnerLineId);
|
||||
|
||||
/**
|
||||
* 查询店员信息
|
||||
* @return
|
||||
*/
|
||||
List<HyPartnerClerkDO> listByPartnerIdAndLineId(@Param("partnerId") String partnerId,
|
||||
@Param("partnerLineId") Long partnerLineId);
|
||||
|
||||
|
||||
}
|
||||
@@ -46,5 +46,7 @@ public interface HyPartnerIntentInfoMapper {
|
||||
* @param lineId
|
||||
* @return
|
||||
*/
|
||||
PartnerIntentApplyInfoDTO selectByLineId(@Param("lineId") Long lineId);
|
||||
HyPartnerIntentInfoDO selectByLineId(@Param("lineId") Long lineId);
|
||||
|
||||
HyPartnerIntentInfoDO getByPartnerIdAndLineId(@Param("partnerId") String partnerId, @Param("partnerLineId") Long partnerLineId);
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.HyPartnerInterviewDO;
|
||||
import com.cool.store.vo.EnterInterviewVO;
|
||||
import com.cool.store.vo.PartnerInterviewInfoVO;
|
||||
import com.cool.store.vo.PartnerPassLetterDetailVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@@ -61,13 +62,18 @@ public interface HyPartnerInterviewMapper {
|
||||
/**
|
||||
* 根据会议 id 查询面试官 id
|
||||
*/
|
||||
String getInterviewerByInterviewId(@Param("interviewId") String interviewId);
|
||||
EnterInterviewVO getInterviewerByInterviewId(@Param("interviewId") String interviewId);
|
||||
|
||||
/**
|
||||
* 获取通知函详情
|
||||
*/
|
||||
PartnerPassLetterDetailVO getPassLetterDetail(@Param("interviewId") String interviewId);
|
||||
|
||||
/**
|
||||
* 生成通过函 pdf 后修改
|
||||
*/
|
||||
int updatePassLetterInfo(@Param("passCode") String passCode, @Param("passFileUrl") String passFileUrl, @Param("expiryDate") String expiryDate, @Param("interviewId") String interviewId);
|
||||
|
||||
/**
|
||||
* 根据面试 id 查询面试信息
|
||||
*/
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.dto.partner.*;
|
||||
import com.cool.store.dto.partner.PartnerBlackListDTO;
|
||||
import com.cool.store.dto.partner.PartnerIntentApplyInfoDTO;
|
||||
import com.cool.store.dto.partner.PartnerLineInfoAndBaseInfoDTO;
|
||||
import com.cool.store.dto.partner.StageCountDTO;
|
||||
import com.cool.store.entity.HyPartnerLineInfoDO;
|
||||
import com.cool.store.entity.HyPartnerLineInfoDO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -109,12 +109,14 @@ public interface HyPartnerLineInfoMapper {
|
||||
|
||||
/**
|
||||
* 查询黑名单列表
|
||||
* @param keyWord
|
||||
* @param userNameKeyword
|
||||
* @param phoneKeyword
|
||||
* @param intentArea
|
||||
* @param acceptAdjustType
|
||||
* @return
|
||||
*/
|
||||
PageInfo<PartnerBlackListDTO> getBlackList(@Param("keyWord") String keyWord,
|
||||
PageInfo<PartnerBlackListDTO> getBlackList(@Param("userNameKeyword") String userNameKeyword,
|
||||
@Param("phoneKeyword") String phoneKeyword,
|
||||
@Param("intentArea") String intentArea ,
|
||||
@Param("acceptAdjustType") Integer acceptAdjustType);
|
||||
|
||||
@@ -132,4 +134,40 @@ public interface HyPartnerLineInfoMapper {
|
||||
@Param("joinReason") String joinReason,
|
||||
@Param("removeReason") String removeReason);
|
||||
|
||||
HyPartnerLineInfoDO getByPartnerId(@Param("partnerId") String partnerId);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 查询公海线索
|
||||
* @param userNameKeyword
|
||||
* @param phoneKeyword
|
||||
* @param intentArea
|
||||
* @param acceptAdjustType
|
||||
* @param updateStartTime
|
||||
* @param updateEndTime
|
||||
* @param userIdList
|
||||
* @return
|
||||
*/
|
||||
PageInfo<PublicSeaLineDTO> getPublicSeaLineList(@Param("userNameKeyword") String userNameKeyword,
|
||||
@Param("phoneKeyword") String phoneKeyword,
|
||||
@Param("intentArea") String intentArea,
|
||||
@Param("acceptAdjustType") Integer acceptAdjustType,
|
||||
@Param("updateStartTime") Date updateStartTime,
|
||||
@Param("updateEndTime") Date updateEndTime,
|
||||
@Param("userIdList") List<String> userIdList);
|
||||
|
||||
/**
|
||||
* 查询对应的加盟商最近线索
|
||||
* @param partnerIdList
|
||||
* @return
|
||||
*/
|
||||
List<HyPartnerLineInfoDO> getPartnerLastLine(@Param("partnerIdList") List<String> partnerIdList);
|
||||
|
||||
/**
|
||||
* 加盟商跟进次数
|
||||
* @param partnerIdList
|
||||
* @return
|
||||
*/
|
||||
List<LineCountDTO> getFollowCountList(@Param("partnerIdList") List<String> partnerIdList);
|
||||
}
|
||||
@@ -40,4 +40,7 @@ public interface HyPartnerUserInfoMapper {
|
||||
* @return
|
||||
*/
|
||||
List<HyPartnerUserInfoDO> selectByPartnerIds(@Param("partnerIdList") List<String> partnerIdList);
|
||||
|
||||
int updateJoinKnowById(@Param("isWritePartnerKnow")Integer isWritePartnerKnow, @Param("id")Long id);
|
||||
|
||||
}
|
||||
@@ -54,4 +54,18 @@ public interface UserRegionMappingMapper {
|
||||
* @return
|
||||
*/
|
||||
Integer deleteUserRegionByUserId(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 获取一个区域下是直挂的人
|
||||
* @param regionId
|
||||
* @return
|
||||
*/
|
||||
List<String> getUserListByRegionId(@Param("regionId") String regionId);
|
||||
|
||||
/**
|
||||
* 获取人所在的区域
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
List<String> getRegionIdsByUserId(@Param("userId") String userId);
|
||||
}
|
||||
@@ -261,4 +261,23 @@
|
||||
<update id="deleteUserByUserId">
|
||||
update enterprise_user set deleted = 1 where user_id = #{userId}
|
||||
</update>
|
||||
|
||||
<select id="searchUserByRegionIdsAndKeyword" resultMap="BaseResultMap">
|
||||
select
|
||||
user_id, name, mobile
|
||||
from
|
||||
enterprise_user
|
||||
<where>
|
||||
deleted = 0
|
||||
<if test="regionIds != null and regionIds.size()>0">
|
||||
and <foreach collection="regionIds" item="regionId" separator="or" open="(" close=")"> user_region_ids like concat("%", #{regionId}, "%") </foreach>
|
||||
</if>
|
||||
<if test="keyword != null">
|
||||
and (name like concat("%", #{keyword}, "%") or mobile like concat("%", #{keyword}, "%"))
|
||||
</if>
|
||||
<if test="isLeader!= null and isLeader">
|
||||
and is_leader = 1 and leader_dept_ids in <foreach collection="regionIds" item="regionId" separator="," open="(" close=")">#{regionId}</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -84,7 +84,7 @@
|
||||
partner_url = #{record.partnerUrl},
|
||||
tencent_video_account = #{record.tencentVideoAccount},
|
||||
tencent_video_key = #{record.tencentVideoKey},
|
||||
update_user_id = #{record.updateUserId},
|
||||
update_user_id = #{record.updateUserId}
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -106,10 +106,10 @@
|
||||
<if test="record.contentTitle != null and record.contentTitle != ''">
|
||||
content_title = #{record.contentTitle},
|
||||
</if>
|
||||
<if test="record.subject != null and record.subject != ''">
|
||||
<if test="record.subject != null">
|
||||
subject = #{record.subject},
|
||||
</if>
|
||||
<if test="record.contentType != null and record.contentType != ''">
|
||||
<if test="record.contentType != null">
|
||||
content_type = #{record.contentType},
|
||||
</if>
|
||||
<if test="record.cover != null and record.cover != ''">
|
||||
@@ -153,10 +153,10 @@
|
||||
<if test="contentTitle != null and contentTitle != ''">
|
||||
and content_title like concat('%', #{contentTitle}, '%')
|
||||
</if>
|
||||
<if test="subject != null and subject != ''">
|
||||
<if test="subject != null">
|
||||
and subject = #{subject}
|
||||
</if>
|
||||
<if test="contentType != null and contentType != ''">
|
||||
<if test="contentType != null">
|
||||
and content_type = #{contentType}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
<foreach collection="recordList" item="record" separator=",">
|
||||
(#{record.mappingId},
|
||||
#{record.openAreaMappingId},
|
||||
#{record.type}
|
||||
#{record.type})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
|
||||
@@ -185,10 +185,14 @@
|
||||
<select id="queryByKeyword" resultMap="BaseResultMap">
|
||||
select * from
|
||||
hy_open_area_info
|
||||
where area_path like concat('%',#{keyword},'%')
|
||||
<if test="filterData!=null and filterData==true">
|
||||
and province_city_flag = 1
|
||||
</if>
|
||||
<where>
|
||||
<if test="keyword!=null and keyword!=''">
|
||||
and area_path like concat('%',#{keyword},'%')
|
||||
</if>
|
||||
<if test="filterData!=null and filterData==true">
|
||||
and province_city_flag = 1
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
@@ -216,4 +216,12 @@
|
||||
where partner_id = #{partnerId}
|
||||
</set>
|
||||
</update>
|
||||
|
||||
<select id="getByPartnerIdAndLineId" resultMap="BaseResultMap" >
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_base_info
|
||||
where partner_id = #{partnerId} and partner_line_id = #{partnerLineId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -101,4 +101,44 @@
|
||||
</set>
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
|
||||
<select id="getHyPartnerClerkList" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_clerk
|
||||
where partner_line_id = #{lineId}
|
||||
</select>
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into
|
||||
hy_partner_clerk
|
||||
(
|
||||
partner_line_id,
|
||||
partner_id,
|
||||
username,
|
||||
relationship,
|
||||
age,
|
||||
choose_reason
|
||||
)
|
||||
values
|
||||
<foreach collection="recordList" item="record" separator=",">
|
||||
(#{record.partnerLineId},
|
||||
#{record.partnerId},
|
||||
#{record.username},
|
||||
#{record.relationship},
|
||||
#{record.age},
|
||||
#{record.chooseReason})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByPartnerIdAndLineId">
|
||||
delete from hy_partner_clerk where partner_id = #{partnerId} and partner_line_id = #{partnerLineId}
|
||||
</delete>
|
||||
|
||||
<select id="listByPartnerIdAndLineId" resultMap="BaseResultMap">
|
||||
select <include refid="Base_Column_List"></include> from
|
||||
hy_partner_clerk
|
||||
where partner_id = #{partnerId} and partner_line_id = #{partnerLineId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -279,7 +279,7 @@
|
||||
order by b.create_time
|
||||
</select>
|
||||
|
||||
<select id="selectByLineId" resultType="com.cool.store.dto.partner.PartnerIntentApplyInfoDTO">
|
||||
<select id="selectByLineId" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_intent_info
|
||||
@@ -288,4 +288,11 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getByPartnerIdAndLineId" resultMap="BaseResultMap" >
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_intent_info
|
||||
where partner_id = #{partnerId} and partner_line_id = #{partnerLineId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -35,6 +35,11 @@
|
||||
<association property="interviewerName" column="interviewerId" select="queryInterviewerName" javaType="string"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="partnerEnterInterviewVO" type="com.cool.store.vo.EnterInterviewVO">
|
||||
<association property="partnerName" column="partner_id" select="queryPartnerName"></association>
|
||||
<association property="interviewerName" column="interviewer" select="queryInterviewerName"></association>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="passLetterDetail" type="com.cool.store.vo.PartnerPassLetterDetailVO">
|
||||
<association property="partnerName" column="partner_id" select="queryPartnerName"></association>
|
||||
<association property="verifyCity" column="partner_id" select="getVerifyCity"></association>
|
||||
@@ -315,23 +320,27 @@
|
||||
</update>
|
||||
|
||||
<!-- 根据会议 id 获取面试官 id -->
|
||||
<select id="getInterviewerByInterviewId" resultType="java.lang.String">
|
||||
SELECT interviewer
|
||||
<select id="getInterviewerByInterviewId" resultMap="partnerEnterInterviewVO">
|
||||
SELECT interviewer, interviewer interviewer_id, partner_id
|
||||
FROM hy_partner_interview
|
||||
WHERE id = #{interviewId}
|
||||
</select>
|
||||
|
||||
<!-- 获取通知函详情 -->
|
||||
<select id="getPassLetterDetail" resultMap="passLetterDetail">
|
||||
SELECT pass_code, pass_file_url, expiry_date, partner_id
|
||||
SELECT auth_code, pass_code, pass_file_url, expiry_date, partner_id
|
||||
FROM hy_partner_interview
|
||||
WHERE id = #{interviewId}
|
||||
</select>
|
||||
<!-- 获取意向开店区域 -->
|
||||
<select id="getVerifyCity" resultType="string">
|
||||
SELECT want_shop_area
|
||||
FROM hy_partner_intent_info
|
||||
WHERE partner_id = #{partner_id}
|
||||
SELECT area_path
|
||||
FROM hy_open_area_info
|
||||
WHERE id = (
|
||||
SELECT want_shop_area
|
||||
FROM hy_partner_intent_info
|
||||
WHERE partner_id = #{partner_id}
|
||||
)
|
||||
</select>
|
||||
<select id="selectByPrimaryKeySelective" resultType="com.cool.store.entity.HyPartnerInterviewDO">
|
||||
select
|
||||
@@ -343,4 +352,21 @@
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 生成通过函 pdf 后修改 -->
|
||||
<update id="updatePassLetterInfo">
|
||||
UPDATE hy_partner_interview
|
||||
<set>
|
||||
<if test="passCode != null and passCode != ''">
|
||||
pass_code = #{passCode},
|
||||
</if>
|
||||
<if test="passFileUrl != null and passFileUrl != ''">
|
||||
pass_file_url = #{passFileUrl},
|
||||
</if>
|
||||
<if test="expiryDate != null and expiryDate != ''">
|
||||
expiry_date = #{expiryDate}
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{interviewId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -357,8 +357,11 @@
|
||||
from hy_partner_line_info a inner join hy_partner_user_info b where a.partner_id = b.partner_id
|
||||
where deleted = 0
|
||||
and line_status = 3
|
||||
<if test="keyWord!=null and keyWord !=''">
|
||||
and (b.username like concat('%', #{keyWord}, '%') or b.mobile like concat('%', #{keyWord}, '%'))
|
||||
<if test="userNameKeyword!=null and userNameKeyword !=''">
|
||||
and b.username like concat('%', #{userNameKeyword}, '%')
|
||||
</if>
|
||||
<if test="phoneKeyword!=null and phoneKeyword !=''">
|
||||
and b.mobile like concat('%', #{phoneKeyword}, '%')
|
||||
</if>
|
||||
<if test="intentArea!=null and intentArea!=''">
|
||||
and b.want_shop_area = #{intentArea}
|
||||
@@ -384,4 +387,67 @@
|
||||
where id = #{lineId}
|
||||
</update>
|
||||
|
||||
<select id="getByPartnerId" resultMap="BaseResultMap" >
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_line_info
|
||||
where partner_id = #{partnerId}
|
||||
</select>
|
||||
|
||||
<select id="getPublicSeaLineList" resultType="com.cool.store.dto.partner.PublicSeaLineDTO">
|
||||
select
|
||||
a.create_time as createTime,
|
||||
b.partner_id as partner_id,
|
||||
b.mobile as mobile,
|
||||
b.username as userName,
|
||||
b.want_shop_area as wantShopArea,
|
||||
b.accept_adjust_type as acceptAdjustType
|
||||
FROM hy_partner_line_info a inner JOIN hy_partner_user_info b on a.partner_id = b.partner_id
|
||||
where a.line_status = 1
|
||||
<if test="userNameKeyword!=null and userNameKeyword!=''">
|
||||
and b.username like concat('%',#{userNameKeyword},'%')
|
||||
</if>
|
||||
<if test="phoneKeyword!=null and phoneKeyword!=''">
|
||||
and b.mobile like concat('%',#{phoneKeyword},'%')
|
||||
</if>
|
||||
<if test="intentArea!=null and intentArea!=''">
|
||||
and b.want_shop_area = #{intentArea}
|
||||
</if>
|
||||
<if test="acceptAdjustType!=null">
|
||||
and b.accept_adjust_type = #{acceptAdjustType}
|
||||
</if>
|
||||
<if test="updateStartTime!=null and updateEndTime!=''">
|
||||
and a.update_time BETWEEN #{updateStartTime} and #{updateEndTime}
|
||||
</if>
|
||||
<if test="userIdList!=null and userIdList.size>0">
|
||||
<foreach collection="userIdList" item="userId" open="and a.investment_manager in (" close=")" separator=",">
|
||||
#{userId}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getPartnerLastLine" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"></include>
|
||||
FROM hy_partner_line_info h1
|
||||
WHERE h1.create_time = (
|
||||
SELECT MAX(h2.create_time)
|
||||
FROM hy_partner_line_info h2
|
||||
WHERE h1.partner_id = h2.partner_id
|
||||
<if test="partnerIdList!=null and partnerIdList.size>0">
|
||||
<foreach collection="partnerIdList" item="partnerId" open="and h1.partner_id in (" close=")" separator=",">
|
||||
#{partnerId}
|
||||
</foreach>
|
||||
</if>
|
||||
)
|
||||
</select>
|
||||
|
||||
<select id="getFollowCountList" resultType="com.cool.store.dto.partner.LineCountDTO">
|
||||
SELECT partner_id, COUNT(1) AS num_of_leads
|
||||
FROM hy_partner_line_info
|
||||
GROUP BY partner_id;
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -147,4 +147,11 @@
|
||||
</set>
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
|
||||
<update id="updateJoinKnowById">
|
||||
update hy_partner_user_info
|
||||
set `is_write_partner_know`=#{isWritePartnerKnow,jdbcType=INTEGER}
|
||||
where id=#{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -123,4 +123,12 @@
|
||||
update user_region_mapping set deleted = 1 where user_id = #{userId}
|
||||
</update>
|
||||
|
||||
<select id="getUserListByRegionId" resultType="string">
|
||||
select user_id from user_region_mapping where region_id = #{regionId}
|
||||
</select>
|
||||
|
||||
<select id="getRegionIdsByUserId" resultType="string">
|
||||
select region_id from user_region_mapping where user_id = #{userId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user