Maintable as var
这个提交包含在:
父节点
9e633d3b86
当前提交
1d33c5d938
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -9,8 +9,8 @@ class Logbookadvanced_model extends CI_Model {
|
|||
|
||||
if ($searchCriteria['dupes'] !== '') {
|
||||
$id_sql="select group_concat(x.qsoids separator ',') as QSO_IDs from (
|
||||
select GROUP_CONCAT(col_primary_key separator ',') as qsoids, COL_CALL, COL_MODE, COL_SUBMODE, station_callsign, COL_SAT_NAME, COL_BAND, min(col_time_on) Mintime, max(col_time_on) Maxtime from
|
||||
TABLE_HRD_CONTACTS_V01 join station_profile on TABLE_HRD_CONTACTS_V01.station_id = station_profile.station_id where station_profile.user_id=?
|
||||
select GROUP_CONCAT(col_primary_key separator ',') as qsoids, COL_CALL, COL_MODE, COL_SUBMODE, station_callsign, COL_SAT_NAME, COL_BAND, min(col_time_on) Mintime, max(col_time_on) Maxtime from " . $this->config->item('table_name') . "
|
||||
join station_profile on " . $this->config->item('table_name') . ".station_id = station_profile.station_id where station_profile.user_id=?
|
||||
group by col_call, col_mode, COL_SUBMODE, STATION_CALLSIGN, col_band, COL_SAT_NAME having count(*) > 1 and timediff(maxtime, mintime) < 3000) x";
|
||||
$id_query = $this->db->query($id_sql, $searchCriteria['user_id']);
|
||||
foreach ($id_query->result() as $id) {
|
||||
|
|
|
|||
正在加载…
在新工单中引用