From 8e0e61bc669ad41234fbe921a186e41ff0df6e44 Mon Sep 17 00:00:00 2001 From: fyf <11621@LAPTOP-04QQU0AO> Date: Thu, 31 Aug 2023 11:08:39 +0800 Subject: [PATCH] 3 --- .../java/com/example/bpa/view/from/add_pf_activity.java | 6 ++++++ 1 file changed, 6 insertions(+) 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)//新增 {