Sfoglia il codice sorgente

更新调味吧232

调味吧台(白底)
fyf 1 anno fa
parent
commit
a4658fbc54
2 ha cambiato i file con 9 aggiunte e 6 eliminazioni
  1. +1
    -1
      app/src/main/java/com/example/bpa/Model/GyAction.java
  2. +8
    -5
      app/src/main/java/com/example/bpa/service/OrderServer.java

+ 1
- 1
app/src/main/java/com/example/bpa/Model/GyAction.java Vedi File

@@ -3,7 +3,7 @@ package com.example.bpa.Model;
public class GyAction {
public String TechnologyactionId ;//工艺id
public String ActionName ;//名称
public int ActionValue ;//变量
public String ActionValue ;//变量
public String BatchingId ;//物料id

}

+ 8
- 5
app/src/main/java/com/example/bpa/service/OrderServer.java Vedi File

@@ -348,11 +348,14 @@ public class OrderServer {
List<GyAction> gyActions= new Json<List<GyAction>>().jsonToListobject(GyAction.class,((String)actions.ActionJson));
for (GyAction a:gyActions)
{
da.id=java.util.UUID.randomUUID().toString();
da.materialID = a.BatchingId;
da.value = a.ActionValue;
da.sort =Integer.parseInt(actions.Sort);
QueryDB.AddGoodsSrecipe(da);
if(!a.BatchingId.isEmpty())
{
da.id=java.util.UUID.randomUUID().toString();
da.materialID = a.BatchingId;
da.value = Integer.valueOf(a.ActionValue) ;
da.sort =Integer.parseInt(actions.Sort);
QueryDB.AddGoodsSrecipe(da);
}
}
}
}


Caricamento…
Annulla
Salva