小程序登录
This commit is contained in:
@@ -5,7 +5,6 @@ import com.cool.store.mapper.HyPartnerUserInfoMapper;
|
||||
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;
|
||||
@@ -41,6 +40,18 @@ public class HyPartnerUserInfoDAO {
|
||||
return hyPartnerUserInfoMapper.selectByPartnerId(partnerId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据mobile查询用户
|
||||
* @param mobile
|
||||
* @return
|
||||
*/
|
||||
public HyPartnerUserInfoDO selectByMobile(String mobile){
|
||||
if (StringUtils.isEmpty(mobile)){
|
||||
return null;
|
||||
}
|
||||
return hyPartnerUserInfoMapper.selectByMobile(mobile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据PartnerIds批量查询用户
|
||||
* @param partnerIds
|
||||
@@ -53,4 +64,9 @@ public class HyPartnerUserInfoDAO {
|
||||
return hyPartnerUserInfoMapper.selectByPartnerIds(partnerIds);
|
||||
}
|
||||
|
||||
public int insertSelective( HyPartnerUserInfoDO record){
|
||||
return hyPartnerUserInfoMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.HyPartnerUserPlatformBindDO;
|
||||
import com.cool.store.mapper.HyPartnerUserPlatformBindMapper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @Author wxp
|
||||
* @Date 2023/6/13 19:41
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Repository
|
||||
public class HyPartnerUserPlatformBindDAO {
|
||||
|
||||
|
||||
@Resource
|
||||
HyPartnerUserPlatformBindMapper hyPartnerUserPlatformBindMapper;
|
||||
|
||||
public int insertSelective( HyPartnerUserPlatformBindDO record){
|
||||
return hyPartnerUserPlatformBindMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(HyPartnerUserPlatformBindDO record){
|
||||
return hyPartnerUserPlatformBindMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public HyPartnerUserPlatformBindDO getByPlatformTypeAndUserId(String platformType, String platformUserId){
|
||||
if(StringUtils.isAnyBlank(platformType, platformUserId)){
|
||||
return null;
|
||||
}
|
||||
return hyPartnerUserPlatformBindMapper.getByPlatformTypeAndUserId(platformType, platformUserId);
|
||||
}
|
||||
|
||||
public HyPartnerUserPlatformBindDO getByPartnerId(String partnerId){
|
||||
if (StringUtils.isEmpty(partnerId)){
|
||||
return null;
|
||||
}
|
||||
return hyPartnerUserPlatformBindMapper.getByPartnerId(partnerId);
|
||||
}
|
||||
}
|
||||
@@ -32,6 +32,8 @@ public interface HyPartnerUserInfoMapper {
|
||||
*/
|
||||
HyPartnerUserInfoDO selectByPartnerId(@Param("partnerId") String partnerId);
|
||||
|
||||
HyPartnerUserInfoDO selectByMobile(@Param("mobile") String mobile);
|
||||
|
||||
/**
|
||||
* 根据partnerIDs批量查询用户信息
|
||||
* @param partnerIdList
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.HyPartnerUserInfoDO;
|
||||
import com.cool.store.entity.HyPartnerUserPlatformBindDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@@ -22,4 +23,9 @@ public interface HyPartnerUserPlatformBindMapper {
|
||||
* dateTime:2023-05-29 03:53
|
||||
*/
|
||||
int updateByPrimaryKeySelective(@Param("record") HyPartnerUserPlatformBindDO record);
|
||||
|
||||
HyPartnerUserPlatformBindDO getByPlatformTypeAndUserId(@Param("platformType") String platformType, @Param("platformUserId") String platformUserId);
|
||||
|
||||
HyPartnerUserPlatformBindDO getByPartnerId(@Param("partnerId") String partnerId);
|
||||
|
||||
}
|
||||
@@ -25,6 +25,13 @@
|
||||
where partner_id = #{partnerId}
|
||||
</select>
|
||||
|
||||
<select id="selectByMobile" resultMap="BaseResultMap" >
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_user_info
|
||||
where mobile = #{mobile}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectByPartnerIds" resultMap="BaseResultMap" >
|
||||
select
|
||||
|
||||
@@ -80,4 +80,20 @@
|
||||
</set>
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
|
||||
<select id="getByPlatformTypeAndUserId" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from
|
||||
hy_partner_user_platform_bind
|
||||
where platform_type = #{platformType} and platform_user_id = #{platformUserId}
|
||||
</select>
|
||||
|
||||
<select id="getByPartnerId" resultMap="BaseResultMap" >
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_user_platform_bind
|
||||
where partner_id = #{partnerId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user