Explorar el Código

商品档案增加标签修改功能

hu hace 1 año
padre
commit
e5ea3f7ed4

+ 5 - 0
src/custom/restcontroller/R.java

@@ -5543,6 +5543,11 @@ public class R {
         public static class v1 {
         public static class v1 {
         }
         }
     }
     }
+
+    public static class ID2024062609342103 {
+        public static class v1 {
+        }
+    }
 }
 }
 
 
 
 

+ 14 - 0
src/custom/restcontroller/webmanage/sale/item/Item.java

@@ -921,6 +921,20 @@ public class Item extends Controller {
         return getSucReturnObject().setData(rows).toString();
         return getSucReturnObject().setData(rows).toString();
     }
     }
 
 
+    @API(title = "更新标签", apiversion = R.ID2024062609342103.v1.class)
+    @CACHEING_CLEAN(apiClass = {Item.class, restcontroller.sale.item.Item.class})
+    public String newApiMethod() throws YosException {
+        long itemid = content.getLong("itemid");
+        String delistingstatus = content.getStringValue("delistingstatus");// 退市状态
+        UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, "plm_item");
+        updateSQL.setValue("delistingstatus", delistingstatus);
+        updateSQL.setSiteid(siteid);
+        updateSQL.setUniqueid(itemid);
+        updateSQL.update();
+        return getSucReturnObject().toString();
+    }
+
+
     @API(title = "查询商品资料", apiversion = R.ID20221216105402.v1.class)
     @API(title = "查询商品资料", apiversion = R.ID20221216105402.v1.class)
     public String selectTechnicalinfo() throws YosException {
     public String selectTechnicalinfo() throws YosException {
         Long itemid = content.getLong("itemid");
         Long itemid = content.getLong("itemid");