|
@@ -2,6 +2,7 @@ package restcontroller.webmanage.sale.itemclass;
|
|
|
|
|
|
|
|
import beans.enterprise.Enterprise;
|
|
import beans.enterprise.Enterprise;
|
|
|
import beans.itemclass.ItemClass;
|
|
import beans.itemclass.ItemClass;
|
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import common.Controller;
|
|
import common.Controller;
|
|
|
import common.YosException;
|
|
import common.YosException;
|
|
@@ -170,6 +171,20 @@ public class itemclass extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @API(title = "营销类别新增修改", apiversion = R.ID20240902145303.v1.class,intervaltime = 200)
|
|
|
|
|
+ @CACHEING_CLEAN(cms = { @cm(clazz = itemclass.class, method = { "queryItemclass", "queryItemclassLaststage" }) })
|
|
|
|
|
+ public String modify_itemclassNum() throws YosException {
|
|
|
|
|
+ JSONArray itemclassinfos = content.getJSONArray("itemclassinfos");
|
|
|
|
|
+ ArrayList<String> sqlList = new ArrayList<>();
|
|
|
|
|
+ for (Object obj : itemclassinfos) {
|
|
|
|
|
+ JSONObject itemclassinfo = (JSONObject) obj;
|
|
|
|
|
+ sqlList.add("update plm_itemclass set num='"+itemclassinfo.getString("num")+"' where itemclassid="+itemclassinfo.getLong("itemclassid"));
|
|
|
|
|
+ }
|
|
|
|
|
+ dbConnect.runSqlUpdate(sqlList);
|
|
|
|
|
+ return getSucReturnObject().toString();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 查询营销类别
|
|
* 查询营销类别
|
|
|
*
|
|
*
|