Commit d5226b50 by 邹磊浩

修改代码

parent 1ab82426
...@@ -78,11 +78,11 @@ public class InsertTestOrderTask { ...@@ -78,11 +78,11 @@ public class InsertTestOrderTask {
for (Company company : companies) { for (Company company : companies) {
Employees employees = employeesMapper.selectOne(Wrappers.<Employees>lambdaQuery().eq(Employees::getCompanyId, company.getId()).last("limit 1")); Employees employees = employeesMapper.selectOne(Wrappers.<Employees>lambdaQuery().eq(Employees::getCompanyId, company.getId()).last("limit 1"));
executorService.submit(() -> { executorService.submit(() -> {
List<Hospital> hospitals = hospitalMapper.selectList(Wrappers.<Hospital>lambdaQuery().eq(Hospital::getCityId, employees.getCityId()).last("limit 10")); List<Hospital> hospitals = hospitalMapper.selectList(Wrappers.<Hospital>lambdaQuery().eq(Hospital::getCityId, company.getCityId()).last("limit 10"));
Hospital hospital = getRandomElement(hospitals); Hospital hospital = getRandomElement(hospitals);
for (Integer businessId : businessIds) { for (Integer businessId : businessIds) {
//获取服务价格 //获取服务价格
List<Services> services = servicesMapper.selectList(Wrappers.<Services>lambdaQuery().eq(Services::getBid, businessId).eq(Services::getCityId, employees.getCityId())); List<Services> services = servicesMapper.selectList(Wrappers.<Services>lambdaQuery().eq(Services::getBid, businessId).eq(Services::getCityId, company.getCityId()));
// 每日单量 // 每日单量
Integer num = RandomUtil.randomInt(4, 10); Integer num = RandomUtil.randomInt(4, 10);
for (int i = 0; i <= num; i++) { for (int i = 0; i <= num; i++) {
......
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