|
|
|
@ -2,6 +2,7 @@ package com.glxp.sale.admin.service.inventory.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.ReflectUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.glxp.sale.admin.dao.basic.BasicThirdSysDao;
|
|
|
|
|
import com.glxp.sale.admin.dao.inventory.InvWarehouseDao;
|
|
|
|
@ -125,12 +126,12 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean bindThrWarehouse(Integer id, String thridWarehouseId, String sysId) {
|
|
|
|
|
public boolean bindThrWarehouse(Integer id, String thridWarehouseId, String sysId) {
|
|
|
|
|
return invWarehouseDao.updateThridId(id, thridWarehouseId, sysId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean unbindThrWarehouse(Integer id,String sysId) {
|
|
|
|
|
public boolean unbindThrWarehouse(Integer id, String sysId) {
|
|
|
|
|
return invWarehouseDao.updateThridId(id, null, sysId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -173,7 +174,7 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
|
|
|
|
|
response.setThirdName(thrInvWarehouseEntity.getName());
|
|
|
|
|
}
|
|
|
|
|
result.add(response);
|
|
|
|
|
}else if (sys.getThirdId().equals("thirdId2")) {
|
|
|
|
|
} else if (sys.getThirdId().equals("thirdId2")) {
|
|
|
|
|
InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse();
|
|
|
|
|
response.setSysId(sys.getThirdId());
|
|
|
|
|
response.setSysName(sys.getThirdName());
|
|
|
|
@ -184,7 +185,7 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
|
|
|
|
|
response.setThirdName(thrInvWarehouseEntity.getName());
|
|
|
|
|
}
|
|
|
|
|
result.add(response);
|
|
|
|
|
}else if (sys.getThirdId().equals("thirdId3")) {
|
|
|
|
|
} else if (sys.getThirdId().equals("thirdId3")) {
|
|
|
|
|
InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse();
|
|
|
|
|
response.setSysId(sys.getThirdId());
|
|
|
|
|
response.setSysName(sys.getThirdName());
|
|
|
|
@ -195,7 +196,7 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
|
|
|
|
|
response.setThirdName(thrInvWarehouseEntity.getName());
|
|
|
|
|
}
|
|
|
|
|
result.add(response);
|
|
|
|
|
}else if (sys.getThirdId().equals("thirdId4")) {
|
|
|
|
|
} else if (sys.getThirdId().equals("thirdId4")) {
|
|
|
|
|
InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse();
|
|
|
|
|
response.setSysId(sys.getThirdId());
|
|
|
|
|
response.setSysName(sys.getThirdName());
|
|
|
|
@ -210,4 +211,12 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getInvName(String code) {
|
|
|
|
|
if (StrUtil.isBlank(code)) {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
return invWarehouseDao.getNameByCode(code);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|