|
@@ -68,6 +68,7 @@ import java.text.SimpleDateFormat;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Random;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
@Service
|
|
@@ -1054,6 +1055,7 @@ public class ClientUserServiceImpl extends ServiceImpl<ClientUserMapper, ClientU
|
|
Long shyyzx = orgService.findByName("上海运营中心").getId(); //上海运营中心
|
|
Long shyyzx = orgService.findByName("上海运营中心").getId(); //上海运营中心
|
|
Long szyyzx = orgService.findByName("深圳运营中心").getId();
|
|
Long szyyzx = orgService.findByName("深圳运营中心").getId();
|
|
; //深圳运营中心
|
|
; //深圳运营中心
|
|
|
|
+ List<Long> orgIdList = Lists.newArrayList(xayyzx,zcglzx,shyyzx,szyyzx);
|
|
|
|
|
|
List<ClientUserDO> userList = new ArrayList<>();
|
|
List<ClientUserDO> userList = new ArrayList<>();
|
|
List<ClientUserDO> userList1 = new ArrayList<>();
|
|
List<ClientUserDO> userList1 = new ArrayList<>();
|
|
@@ -1076,6 +1078,13 @@ public class ClientUserServiceImpl extends ServiceImpl<ClientUserMapper, ClientU
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
Long provinceId = user.getProvinceId();
|
|
Long provinceId = user.getProvinceId();
|
|
|
|
+ if(provinceId==null){
|
|
|
|
+ Random p1=new Random();
|
|
|
|
+ int p=p1.nextInt(3);
|
|
|
|
+ user.setOrgId(orgIdList.get(p));
|
|
|
|
+ this.baseMapper.updateById(user);
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
if (list.indexOf(provinceId) >= 0) {
|
|
if (list.indexOf(provinceId) >= 0) {
|
|
userList.add(user);
|
|
userList.add(user);
|
|
}
|
|
}
|