|
|
@@ -13,6 +13,7 @@ import common.annotation.CACHEING_CLEAN;
|
|
|
import common.annotation.cm;
|
|
|
import common.data.Rows;
|
|
|
import common.data.SQLFactory;
|
|
|
+import restcontroller.R;
|
|
|
|
|
|
@API(title = "经销商省市县明细管理")
|
|
|
public class agentscope extends Controller {
|
|
|
@@ -22,7 +23,8 @@ public class agentscope extends Controller {
|
|
|
// TODO Auto-generated constructor stub
|
|
|
}
|
|
|
|
|
|
- @API(title = "经销商省市县明细查询")
|
|
|
+
|
|
|
+ @API(title = "经销商省市县明细查询", apiversion = R.ID2025071615124203.v1.class)
|
|
|
@CACHEING
|
|
|
public String query_areascope() throws YosException {
|
|
|
HashMap<Long, JSONArray> map = new HashMap<>();
|
|
|
@@ -31,11 +33,11 @@ public class agentscope extends Controller {
|
|
|
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- @API(title = "经销商省市县新增修改")
|
|
|
- @CACHEING_CLEAN(cms = {@cm(clazz = agentscope.class, method = {"query_areascope"})})
|
|
|
- public String insertormodify_areascope() throws YosException {
|
|
|
+
|
|
|
+
|
|
|
+ @API(title = "经销商省市县新增修改", apiversion = R.ID2025071615130703.v1.class)
|
|
|
+ @CACHEING_CLEAN(cms = {@cm(clazz = agentscope.class, method = {"query_areascope"})})
|
|
|
+ public String insertormodify_areascope() throws YosException {
|
|
|
long sa_agentsid = content.getLongValue("sa_agentsid");//区域id
|
|
|
long sa_agents_salescopeid = content.getLongValue("sa_agents_salescopeid");//新增时传0
|
|
|
|
|
|
@@ -64,8 +66,8 @@ public class agentscope extends Controller {
|
|
|
dbConnect.runSqlUpdate(sqlFactory);
|
|
|
return query_areascope();
|
|
|
}
|
|
|
-
|
|
|
- @API(title = "经销商省市县明细删除")
|
|
|
+
|
|
|
+ @API(title = "经销商省市县明细删除", apiversion = R.ID2025071615133603.v1.class)
|
|
|
@CACHEING_CLEAN(cms = {@cm(clazz = agentscope.class, method = {"query_areascope"})})
|
|
|
public String delete_areascope() throws YosException {
|
|
|
long sa_agents_salescopeid = content.getLongValue("sa_agents_salescopeid");
|
|
|
@@ -76,7 +78,7 @@ public class agentscope extends Controller {
|
|
|
content.put("sa_agentsid", 0);
|
|
|
}
|
|
|
dbConnect.runSqlUpdate("delete from sa_agents_salescope where siteid='" + siteid + "' and sa_agents_salescopeid=" + sa_agents_salescopeid);
|
|
|
-
|
|
|
- return query_areascope();
|
|
|
+
|
|
|
+ return getSucReturnObject().toString();
|
|
|
}
|
|
|
}
|