Quellcode durchsuchen

U8价格明细调整

wu vor 1 Woche
Ursprung
Commit
fbe1d66992

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

@@ -7025,6 +7025,11 @@ public class R {
         public static class v1 {
         }
     }
+
+    public static class ID2026013110392802 {
+        public static class v1 {
+        }
+    }
 }
 
 

+ 20 - 0
src/custom/restcontroller/webmanage/sale/u8/u8.java

@@ -735,6 +735,26 @@ public class u8 extends Controller {
         return getSucReturnObject().toString();
     }
 
+    @API(title = "价格明细调整", apiversion = R.ID2026013110392802.v1.class)
+    @CACHEING_CLEAN(apiClass = {u8.class, u8billcodes.class, u8bills.class, u8itemprice.class})
+    public String newApiMethod() throws YosException {
+
+
+        Long u8itempriceid = content.getLongValue("u8itempriceid");
+        BigDecimal price = content.getBigDecimal("price");
+        BigDecimal taxprice = content.getBigDecimal("taxprice");
+        BigDecimal taxrate = content.getBigDecimal("taxrate");
+
+        UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, "u8itemprice");
+        updateSQL.setUniqueid(u8itempriceid);
+        updateSQL.setSiteid(siteid);
+        updateSQL.setValue("price", price);
+        updateSQL.setValue("taxprice", taxprice);
+        updateSQL.setValue("taxrate", taxrate);
+        updateSQL.update();
+        return getSucReturnObject().toString();
+    }
+
 
     @API(title = "创建U8发货单", apiversion = R.ID2025080113261703.v1.class)
     public String createU8Bill() throws YosException {