shenjingwei 2 месяцев назад
Родитель
Сommit
cc68eb62e7

+ 2 - 2
src/custom/restcontroller/sale/team/team.java

@@ -272,7 +272,7 @@ public class team extends Controller {
 
 
     @API(title = "修改销售线索分配模式")
-    public String changeAgentModel() throws YosException {
+    public String changeOrderClueGetModel() throws YosException {
         Long authmodel = content.getLong("authmodel");
         Long sys_enterprise_hrid = content.getLongValue("sys_enterprise_hrid");
 
@@ -287,7 +287,7 @@ public class team extends Controller {
     }
 
     @API(title = "获取销售线索分配模式")
-    public String getAgentModel() throws YosException {
+    public String getOrderClueGetModel() throws YosException {
         Long sys_enterpriseid = content.getLong("sys_enterpriseid");
         Row row = new Row();
         Rows rows = dbConnect.runSqlQuery("SELECT authmodel from sys_enterprise_hr WHERE sys_enterpriseid = " + sys_enterpriseid + " and siteid = '" + siteid + "'");

+ 3 - 1
src/custom/restcontroller/saletool/orderclue/web/orderclue.java

@@ -338,6 +338,8 @@ public class orderclue extends Controller {
             updateStatus(sat_orderclueid, "跟进中");
         } else if (logtype.contains("成交")) {
             updateStatus(sat_orderclueid, "已成交");
+        } else if (logtype.contains("转化")) {
+            updateStatus(sat_orderclueid, "已转化");
         } else if (logtype.contains("无效")) {
             updateStatus(sat_orderclueid, "已无效");
         }
@@ -351,7 +353,7 @@ public class orderclue extends Controller {
         SQLDump sqlDump = new SQLDump();
         for (Object obj : sat_orderclueid_array) {
             String sat_orderclueid = obj.toString();
-            Rows rows = dbConnect.runSqlQuery("SELECT * FROM sat_orderclue_auth WHERE sat_orderclueid = " + sat_orderclueid + " AND hrid =" + sys_enterprise_hrid + " AND sys_enterpriseid = " + sys_enterpriseid);
+            Rows rows = dbConnect.runSqlQuery("SELECT * FROM sat_orderclue_auth WHERE sat_orderclueid = " + sat_orderclueid + " AND sys_enterpriseid = " + sys_enterpriseid);
             if (rows.isEmpty()) {
                 //新增
                 sqlDump.add(getAddAuthSql(Long.parseLong(sat_orderclueid), sys_enterprise_hrid));