|
@@ -203,6 +203,7 @@ public class TaUserServiceImpl extends ServiceImpl<TaUserMapper, TaUser> impleme
|
203
|
203
|
QueryWrapper<TaOrgCity> taOrgCityParent = new QueryWrapper<>();
|
204
|
204
|
taOrgCityParent.eq("city_id",tdCity.getParentid());
|
205
|
205
|
taOrgCityParent.eq("org_id",orgid);
|
|
206
|
+ taOrgCityParent.last("limit 1");
|
206
|
207
|
TaOrgCity taOrgParent = taOrgCityMapper.selectOne(taOrgCityParent);
|
207
|
208
|
// 如果为空,查询行政表
|
208
|
209
|
if (null == taOrgParent){
|
|
@@ -242,6 +243,7 @@ public class TaUserServiceImpl extends ServiceImpl<TaUserMapper, TaUser> impleme
|
242
|
243
|
|
243
|
244
|
QueryWrapper<TaMiniapp> wrapper = new QueryWrapper<>();
|
244
|
245
|
wrapper.eq("org_id", taOrg.getOrgId());
|
|
246
|
+ wrapper.last("limit 1");
|
245
|
247
|
|
246
|
248
|
TaMiniapp taMiniapp = taMiniappMapper.selectOne(wrapper);
|
247
|
249
|
if (null != taMiniapp) {
|
|
@@ -562,6 +564,7 @@ public class TaUserServiceImpl extends ServiceImpl<TaUserMapper, TaUser> impleme
|
562
|
564
|
|
563
|
565
|
QueryWrapper<TaPerson> taPersonQueryWrapper = new QueryWrapper<>();
|
564
|
566
|
taPersonQueryWrapper.eq("user_id", user.getUserId());
|
|
567
|
+ taPersonQueryWrapper.last("limit 1");
|
565
|
568
|
TaPerson taPerson = taPersonMapper.selectOne(taPersonQueryWrapper);
|
566
|
569
|
// 可能存在没有绑定小程序端
|
567
|
570
|
if (null != taPerson) {
|