Ver código fonte

更新调味吧232

调味吧台(白底)
fyf 1 ano atrás
pai
commit
a4658fbc54
2 arquivos alterados com 9 adições e 6 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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);
}
}
}
}


Carregando…
Cancelar
Salvar