Fix VUCC grids query to match substring correctly
Updated the query to use or_like on COL_VUCC_GRIDS instead of applying SUBSTRING, ensuring proper matching of the grid prefix. This resolves issues with grid searches not returning expected results.
这个提交包含在:
父节点
f030769b5d
当前提交
1951bb7f29
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -2079,7 +2079,7 @@ class Logbook_model extends CI_Model
|
|||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->group_start();
|
||||
$this->db->like('SUBSTRING(COL_GRIDSQUARE, 1, 4)', substr($grid, 0, 4));
|
||||
$this->db->or_like('SUBSTRING(COL_VUCC_GRIDS, 1, 4)', substr($grid, 0, 4));
|
||||
$this->db->or_like('COL_VUCC_GRIDS', substr($grid, 0, 4));
|
||||
$this->db->group_end();
|
||||
|
||||
if ($band != null && $band != 'SAT') {
|
||||
|
|
|
|||
正在加载…
在新工单中引用