|
|
@@ -796,7 +796,7 @@ public class DataTeam {
|
|
|
public static ArrayList<Long> getSubAreaUserIds(Controller controller) throws YosException {
|
|
|
ArrayList<Long> userids = new ArrayList<>();
|
|
|
|
|
|
- String sql = "SELECT t1.sa_saleareaid from sys_enterprise_tradefield t1 " +
|
|
|
+ String sql = "SELECT t1.sa_saleareaid from sa_salearea_hr t1 " +
|
|
|
"inner join sys_hr t2 ON t2.hrid=t1.hrid and t2.siteid=t1.siteid " +
|
|
|
"WHERE t1.siteid='" + controller.siteid + "' and t2.userid='" + controller.userid + "' ";
|
|
|
ArrayList<Long> sa_saleareaids = controller.dbConnect.runSqlQuery(sql).toArrayList("sa_saleareaid", new ArrayList<>());
|