|
|
|
|
203
|
QueryWrapper<TaOrgCity> taOrgCityParent = new QueryWrapper<>();
|
203
|
QueryWrapper<TaOrgCity> taOrgCityParent = new QueryWrapper<>();
|
204
|
taOrgCityParent.eq("city_id",tdCity.getParentid());
|
204
|
taOrgCityParent.eq("city_id",tdCity.getParentid());
|
205
|
taOrgCityParent.eq("org_id",orgid);
|
205
|
taOrgCityParent.eq("org_id",orgid);
|
|
|
206
|
+ taOrgCityParent.last("limit 1");
|
206
|
TaOrgCity taOrgParent = taOrgCityMapper.selectOne(taOrgCityParent);
|
207
|
TaOrgCity taOrgParent = taOrgCityMapper.selectOne(taOrgCityParent);
|
207
|
|
208
|
|
208
|
if (null == taOrgParent){
|
209
|
if (null == taOrgParent){
|
|
|
|
|
242
|
|
243
|
|
243
|
QueryWrapper<TaMiniapp> wrapper = new QueryWrapper<>();
|
244
|
QueryWrapper<TaMiniapp> wrapper = new QueryWrapper<>();
|
244
|
wrapper.eq("org_id", taOrg.getOrgId());
|
245
|
wrapper.eq("org_id", taOrg.getOrgId());
|
|
|
246
|
+ wrapper.last("limit 1");
|
245
|
|
247
|
|
246
|
TaMiniapp taMiniapp = taMiniappMapper.selectOne(wrapper);
|
248
|
TaMiniapp taMiniapp = taMiniappMapper.selectOne(wrapper);
|
247
|
if (null != taMiniapp) {
|
249
|
if (null != taMiniapp) {
|
|
|
|
|
562
|
|
564
|
|
563
|
QueryWrapper<TaPerson> taPersonQueryWrapper = new QueryWrapper<>();
|
565
|
QueryWrapper<TaPerson> taPersonQueryWrapper = new QueryWrapper<>();
|
564
|
taPersonQueryWrapper.eq("user_id", user.getUserId());
|
566
|
taPersonQueryWrapper.eq("user_id", user.getUserId());
|
|
|
567
|
+ taPersonQueryWrapper.last("limit 1");
|
565
|
TaPerson taPerson = taPersonMapper.selectOne(taPersonQueryWrapper);
|
568
|
TaPerson taPerson = taPersonMapper.selectOne(taPersonQueryWrapper);
|
566
|
|
569
|
|
567
|
if (null != taPerson) {
|
570
|
if (null != taPerson) {
|