diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index ee305eb..707bd19 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -17,6 +17,7 @@
tools:targetApi="31">
materials= QueryDB.GetMaterialALL();
+
+ BPA_SILOSANDMATERIAL al=new BPA_SILOSANDMATERIAL();
+ al.silosID="1231333";
+ al.materialID=materials.get(0).id;
+ QueryDB.AddSilosAndMaterial(al);
+ }
/**
* 测试数据库 新增 修改 删除
*/
diff --git a/app/src/main/java/com/example/bpa/db/QueryDB.java b/app/src/main/java/com/example/bpa/db/QueryDB.java
index 4c44a8d..cea56ef 100644
--- a/app/src/main/java/com/example/bpa/db/QueryDB.java
+++ b/app/src/main/java/com/example/bpa/db/QueryDB.java
@@ -23,6 +23,7 @@ import com.example.bpa.db.mode.BPA_SYSTEMSET;
import com.example.bpa.db.mode.BPA_USER;
import com.example.bpa.db.mode.ModeBase;
import com.example.bpa.helper.Tools;
+import com.example.bpa.view.mode.ResSilosMode;
import java.lang.reflect.Field;
import java.text.SimpleDateFormat;
@@ -122,6 +123,26 @@ public class QueryDB {
}
return data.size()>0;
}
+
+ /**
+ * 物料ID查询物料信息
+ * @param id
+ * @return
+ */
+ public static BPA_MATERIAL GetMaterialID(String id)
+ {
+ BPA_MATERIAL bpa_material=null;
+ boolean isSucess=false;
+ String orderby=Desc_Time_Up;//出料顺序
+ String where="isDelete=? and id=?";
+ String[] args=new String[] { "0" ,id};
+ ArrayList data=new ArrayList<>();
+ ArrayList