|
|
@@ -5,13 +5,13 @@ import com.alibaba.fastjson2.JSONArray;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import common.YosException;
|
|
|
import common.YosLogger;
|
|
|
+import common.crm.bean.core.CrmBase;
|
|
|
import common.data.QuerySQL;
|
|
|
import common.data.Row;
|
|
|
import common.data.Rows;
|
|
|
import common.data.SQLFactory;
|
|
|
import common.data.db.DBConnect;
|
|
|
import org.apache.logging.log4j.Logger;
|
|
|
-import common.crm.bean.core.CrmBase;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
@@ -29,7 +29,7 @@ public class agent extends CrmBase {
|
|
|
QuerySQL querySQL = SQLFactory.createQuerySQL(dbConnect, "sa_agents", "agentnum").setTableAlias("t1");
|
|
|
querySQL.setWhere("t1.sa_agentsid", datasync.ownerid);
|
|
|
Rows agentRows = querySQL.query();
|
|
|
- if (agentRows.isNotEmpty() && !agentRows.get(0).getString("agentnum").isEmpty() && agentRows.get(0).getString("status").equals("1")) {
|
|
|
+ if (agentRows.isNotEmpty() && !agentRows.get(0).getString("agentnum").isEmpty()) {
|
|
|
String agentnum = agentRows.get(0).getString("agentnum");
|
|
|
if (oneAction(agentnum)) {
|
|
|
datasync.suc();
|