Commit 89565ec7 authored by 季圣华's avatar 季圣华
Browse files

解决获取当前用户的仓库的bug

parent 6104e87f
......@@ -291,9 +291,9 @@ public class DepotService {
String[] depotArr = depotStr.split(",");
for(String depotId: depotArr) {
JSONObject item = new JSONObject();
item.put("id", depotId);
item.put("id", Long.parseLong(depotId));
for (Depot depot : dataList) {
if(depot.getId() == Integer.parseInt(depotId)){
if(depot.getId() == Long.parseLong(depotId)){
item.put("depotName", depot.getName());
item.put("isDefault", depot.getIsDefault());
}
......
Supports Markdown
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