Commit d085a69e authored by zhangqingle's avatar zhangqingle

修改指派推荐回显问题

parent bfe4233b
......@@ -68,10 +68,10 @@ public interface BRecommendRepository extends BaseMapper<BRecommend> {
" where 1=1 " +
" and br.del_flag != 1 and br.flag = 1 " +
" and bl.del_flag != 1 and bl.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " +
// " and su.del_flag != 1 and su.flag = 1 " +
// " and bl.corp_id = #{corpId} "+
" and su.corp_id = #{corpId} "+
// " and su.corp_id = #{corpId} "+
" <if test=\"viewParam!=null and viewParam != ''\">and su.name like CONCAT('%',#{viewParam},'%')</if>" +
" and brs.type = '0' "+
......
......@@ -1381,7 +1381,7 @@ public class BLessonServiceImpl implements BLessonService {
if (ids == null || ids.size() < 1) {
return new ArrayList<>();
}
return sysUserMapper.selectByIds(ids);
return sysUserMapper.selectAppointPersonByIds(ids);
}
@Override
......
......@@ -290,6 +290,14 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
@ResultMap(value = "BaseResultMap")
List<SysUser> selectByIds(@Param("ids") List<String> ids);
@Select("<script>SELECT * FROM s_user " +
"WHERE 1=1 " +
" and business_id in "+
"<foreach item='item' index='index' collection='ids' open='(' separator=',' close=')'> #{item} </foreach> " +
"</script>")
@ResultMap(value = "BaseResultMap")
List<SysUser> selectAppointPersonByIds(@Param("ids") List<String> ids);
/**
* 根据accountId获取businessId
......
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