Przeglądaj źródła

2021-11-18 11:09 bgj

sjw 4 lat temu
rodzic
commit
538d5c9373

+ 3 - 3
src/rest/openapi/restcontroller/housekeeper/titem/AgentTitem.java

@@ -91,13 +91,13 @@ public class AgentTitem extends Controller {
                     addtitem.setValue("FITEMNO",where.getString("fitemno"),11l);
                     addtitem.setValue("fitemname",where.getString("fitemname"),11l);
                     addtitem.setValue("fisused",where.getBoolean("fisused"),11l);
-                    if(where.containsKey("fmodel")&&StringUtils.isBlank("fmodel")){
+                    if(where.containsKey("fmodel")&&!StringUtils.isBlank("fmodel")){
                         addtitem.setValue("fmodel",where.getString("fmodel"),11l);
                     }
-                    if(where.containsKey("fspec")&&StringUtils.isBlank("fspec")){
+                    if(where.containsKey("fspec")&&!StringUtils.isBlank("fspec")){
                         addtitem.setValue("fspec",where.getString("fspec"),11l);
                     }
-                    if(where.containsKey("fnotes")&&StringUtils.isBlank("fnotes")){
+                    if(where.containsKey("fnotes")&&!StringUtils.isBlank("fnotes")){
                         addtitem.setValue("fnotes",where.getString("fnotes"),11l);
                     }
                     long uniqueIDValue = addtitem.getUniqueIDValue();