Commit a16e6129 authored by 刘林's avatar 刘林

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

parent a46c95af
......@@ -198,12 +198,12 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
//区内移装,需判断是否为同一地市,如果不是同一地市,返回异常
if ("0".equals(tableData.get("transferType"))) {
deviceList.forEach(device -> {
String deviceCity = Arrays.stream(((String) device.get("USE_PLACE")).split("/"))
String deviceCity = Arrays.stream(((String) device.get("USE_PLACE_CODE")).split("#"))
.skip(1)
.findFirst()
.orElseThrow(() -> new BadRequest("没有查询到地市信息"));
if (!city.split("_")[1].equals(deviceCity)) {
if (!city.split("_")[0].equals(deviceCity)) {
throw new BadRequest("区内移装只能选择与设备地址中相同地市进行移装!");
}
});
......
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