|
@@ -448,23 +448,23 @@ $fliterEmployee = $_GET['fliterEmployee'] ?? '';
|
|
|
$fliterStr = "";
|
|
|
|
|
|
if (!empty($fliterQudao)) {
|
|
|
- $fliterStr .= " AND cs_from = " . intval($fliterQudao);
|
|
|
+ $fliterStr .= " AND c.cs_from = " . intval($fliterQudao);
|
|
|
$urlStr .= "&fliterQudao=" . $fliterQudao;
|
|
|
}
|
|
|
|
|
|
if (!empty($fliterDeal)) {
|
|
|
- $fliterStr .= " AND cs_deal = " . intval($fliterDeal);
|
|
|
+ $fliterStr .= " AND c.cs_deal = " . intval($fliterDeal);
|
|
|
$urlStr .= "&fliterDeal=" . $fliterDeal;
|
|
|
}
|
|
|
|
|
|
if (!empty($fliterTeam)) {
|
|
|
- $fliterStr .= " AND (cs_belong = " . intval($fliterTeam) .
|
|
|
- " OR cs_belong IN (SELECT id FROM employee WHERE em_role = " . intval($fliterTeam) . "))";
|
|
|
+ $fliterStr .= " AND (c.cs_belong = " . intval($fliterTeam) .
|
|
|
+ " OR c.cs_belong IN (SELECT id FROM employee WHERE em_role = " . intval($fliterTeam) . "))";
|
|
|
$urlStr .= "&fliterTeam=" . $fliterTeam;
|
|
|
}
|
|
|
|
|
|
if (!empty($fliterEmployee)) {
|
|
|
- $fliterStr .= " AND cs_belong = " . intval($fliterEmployee);
|
|
|
+ $fliterStr .= " AND c.cs_belong = " . intval($fliterEmployee);
|
|
|
$urlStr .= "&fliterEmployee=" . $fliterEmployee;
|
|
|
}
|
|
|
|
|
@@ -592,22 +592,22 @@ $urlStr = "";
|
|
|
|
|
|
// Build filter conditions
|
|
|
if (!empty($filters['Country'])) {
|
|
|
- $filterStr .= " AND cs_country=" . (int)$filters['Country'];
|
|
|
+ $filterStr .= " AND c.cs_country=" . (int)$filters['Country'];
|
|
|
$urlStr .= "&fliterCountry=" . $filters['Country'];
|
|
|
}
|
|
|
|
|
|
if (!empty($filters['Qudao'])) {
|
|
|
- $filterStr .= " AND cs_from=" . (int)$filters['Qudao'];
|
|
|
+ $filterStr .= " AND c.cs_from=" . (int)$filters['Qudao'];
|
|
|
$urlStr .= "&fliterQudao=" . $filters['Qudao'];
|
|
|
}
|
|
|
|
|
|
if (!empty($filters['Deal'])) {
|
|
|
- $filterStr .= " AND cs_deal=" . (int)$filters['Deal'];
|
|
|
+ $filterStr .= " AND c.cs_deal=" . (int)$filters['Deal'];
|
|
|
$urlStr .= "&fliterDeal=" . $filters['Deal'];
|
|
|
}
|
|
|
|
|
|
if (!empty($filters['Business'])) {
|
|
|
- $filterStr .= " AND cs_type=" . (int)$filters['Business'];
|
|
|
+ $filterStr .= " AND c.cs_type=" . (int)$filters['Business'];
|
|
|
$urlStr .= "&fliterBusiness=" . $filters['Business'];
|
|
|
}
|
|
|
|