Browse Source

单品新增或编辑

eganwu 1 year ago
parent
commit
cfcc4efe83
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/custom/restcontroller/webmanage/saletool/fad/Fad.java

+ 6 - 1
src/custom/restcontroller/webmanage/saletool/fad/Fad.java

@@ -4,6 +4,7 @@ import beans.attachment.Attachment;
 import beans.brand.Brand;
 import beans.itemclass.ItemClass;
 import beans.time.Time;
+import com.alibaba.excel.write.handler.RowWriteHandler;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import common.Controller;
@@ -126,7 +127,11 @@ public class Fad extends Controller {
             insertSQL.insert();
         }
 
-        return detail();
+        Row row = new Row();
+        row.put("sa_fadid", sa_fadid);
+
+
+        return getSucReturnObject().setData(row).toString();
     }
 
     @API(title = "单品详情", apiversion = R.ID20240418141002.v1.class, accesstoken = false)