|
|
@@ -7,6 +7,7 @@ import common.Controller;
|
|
|
import common.YosException;
|
|
|
import common.annotation.API;
|
|
|
import common.data.*;
|
|
|
+import common.data.db.DBConnect;
|
|
|
import common.data.db.SQLList;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.poi.xssf.usermodel.*;
|
|
|
@@ -492,7 +493,7 @@ public class orderclue extends Controller {
|
|
|
Rows agentAreaRows = querySQL.query();
|
|
|
|
|
|
|
|
|
- QuerySQL enterprise_hridQuery = SQLFactory.createQuerySQL(this, "sys_enterprise_hr", "sys_enterprise_hrid");
|
|
|
+ QuerySQL enterprise_hridQuery = SQLFactory.createQuerySQL(this, "sys_enterprise_hr", "sys_enterpriseid", "sys_enterprise_hrid");
|
|
|
enterprise_hridQuery.setWhere("isleader", true);
|
|
|
enterprise_hridQuery.setWhere("sys_enterpriseid", agentAreaRows.toArrayList("sys_enterpriseid"));
|
|
|
RowsMap enterprise_hridMap = enterprise_hridQuery.query().toRowsMap("sys_enterpriseid");
|