|
|
@@ -12,10 +12,7 @@ import com.bonait.bnframework.common.db.mode.BPA_GOODSTYPE; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_MATERIAL; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Optional; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
import java.util.concurrent.atomic.AtomicReference; |
|
|
@@ -36,20 +33,16 @@ public class APIService { |
|
|
|
} |
|
|
|
|
|
|
|
private static void GetGoodsInfo(){ |
|
|
|
String url = "https://cfv.black-pa.com/api/goods/getbyidgoods?deviceId=03192d70-bd37-40b2-8c03-2721c236e8f2"; |
|
|
|
// String url = "http://192.168.1.50:5007/api/goods/Getdevicegoods?deviceId=1a2a1d72-752f-44cf-87f8-ec9fe4ea15b8"; |
|
|
|
|
|
|
|
APIHelper.GetT(url,null,new TypeReference<APIResultT<List<DeviceGoodInfo>>>(){}).OnSource(s->{ |
|
|
|
String url = "https://cfv.black-pa.com/kitchbase/api/goods/Getdevicegoods?deviceId=73a4aa15-72d8-4ed1-b220-6878cd7297d4"; |
|
|
|
APIHelper.PostT(url,null,null,new TypeReference<APIResultT<List<DeviceGoodInfo>>>(){}).OnSource(s->{ |
|
|
|
deviceGoodInfo=s.Content; |
|
|
|
UpdateLocalGoodsInfo(); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private static void GetMaterialInfo(){ |
|
|
|
String url = "https://cfv.black-pa.com/api/ExternalPlatform/Material/GetMaterialPageList"; |
|
|
|
// String url = "http://192.168.1.50:5006/api/ExternalPlatform/Material/GetMaterialPageList"; |
|
|
|
String url = "https://cfv.black-pa.com/saasbase/api/ExternalPlatform/Material/GetMaterialPageList"; |
|
|
|
String key ="2c39bc05-25c2-46c4-b5c6-dba349058492"; |
|
|
|
// String key ="962a5892-0f7f-47b4-a1ec-925bd7914a6d"; |
|
|
|
APIHelper.PostT(url,new MaterialRequestPar(1,100),key,new TypeReference<APIResultT<MaterialData>>(){}).OnSource(s->{ |
|
|
|
materialModels=s.Content; |
|
|
|
UpdateLocalMaterial(); |
|
|
|