diff --git a/app/src/main/java/com/example/bpa/view/from/add_pf_activity.java b/app/src/main/java/com/example/bpa/view/from/add_pf_activity.java index c3580a2..565bb7e 100644 --- a/app/src/main/java/com/example/bpa/view/from/add_pf_activity.java +++ b/app/src/main/java/com/example/bpa/view/from/add_pf_activity.java @@ -252,6 +252,12 @@ public class add_pf_activity extends AppCompatActivity implements View.OnClickLi T.show(this, "配方信息不能为空!"); return; } + + if(fzlist_spinner.getSelectedItem().toString().isEmpty()) + { + T.show(this, "分组不能为空!"); + return; + } String name = edittext.getText().toString(); if (good == null)//新增 {