Commit 180f038c authored by 刘林's avatar 刘林

fix(jg):移装变更接口修改

parent 855110fb
......@@ -207,6 +207,17 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
throw new BadRequest("区内移装只能选择与设备地址中相同地市进行移装!");
}
});
} else{
deviceList.forEach(device -> {
String deviceCity = Arrays.stream(((String) device.get("USE_PLACE_CODE")).split("#"))
.skip(1)
.findFirst()
.orElseThrow(() -> new BadRequest("没有查询到地市信息"));
if (city.split("_")[0].equals(deviceCity)) {
throw new BadRequest("区外移装只能选择与设备地址中不同地市进行移装!");
}
});
}
CompanyBo company = reginParams.getCompany();
......
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