|
|
@@ -7,6 +7,7 @@ import com.alibaba.fastjson2.JSONObject;
|
|
|
import common.Controller;
|
|
|
import common.YosException;
|
|
|
import common.annotation.API;
|
|
|
+import common.annotation.Param;
|
|
|
import common.data.*;
|
|
|
import restcontroller.R;
|
|
|
|
|
|
@@ -307,7 +308,6 @@ public class orderclue extends Controller {
|
|
|
return getSucReturnObject().setData(detailRow).toString();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@API(title = "美大CRM_经销商_线索跟进列表", apiversion = R.ID20221101094602.v1.class)
|
|
|
public String getFollowList() throws YosException {
|
|
|
Long sat_orderclueid = content.getLong("sat_orderclueid");
|
|
|
@@ -357,10 +357,15 @@ public class orderclue extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
|
|
|
|
- @API(title = "美大CRM_经销商_线索转移")
|
|
|
+ @API(title = "美大CRM_经销商_线索转移", params = {
|
|
|
+ @Param(paramname = "sys_enterprise_hrid", fieldtype = FieldType.BigInt, remarks = "转移人", isrequired = true),
|
|
|
+ @Param(paramname = "sat_orderclueid", fieldtype = FieldType.JSON, remarks = "线索id数组,[1,2,3]", isrequired = true),
|
|
|
+ @Param(paramname = "ordercluestatus", fieldtype = FieldType.Varchar, remarks = "线索状态,不传则不更新状态")
|
|
|
+ })
|
|
|
public String changeClue() throws YosException {
|
|
|
Long sys_enterprise_hrid = content.getLong("sys_enterprise_hrid");
|
|
|
JSONArray sat_orderclueid_array = content.getJSONArray("sat_orderclueid");
|
|
|
+ String ordercluestatus = content.getStringValue("ordercluestatus");
|
|
|
SQLDump sqlDump = new SQLDump();
|
|
|
for (Object obj : sat_orderclueid_array) {
|
|
|
String sat_orderclueid = obj.toString();
|
|
|
@@ -376,6 +381,13 @@ public class orderclue extends Controller {
|
|
|
updateSQL.setValue("sys_enterpriseid", sys_enterpriseid);
|
|
|
sqlDump.add(updateSQL);
|
|
|
}
|
|
|
+ if (!ordercluestatus.isBlank()) {
|
|
|
+ UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, "sat_orderclue");
|
|
|
+ updateSQL.setValue("status", ordercluestatus);
|
|
|
+ updateSQL.setWhere("sat_orderclueid", sat_orderclueid);
|
|
|
+ updateSQL.setSiteid(siteid);
|
|
|
+ sqlDump.add(updateSQL);
|
|
|
+ }
|
|
|
}
|
|
|
sqlDump.commit(this);
|
|
|
//发送消息
|