entry_in表里面的workID字段是这样的“JP20230801”,在work表里面的workID是20230801,
看了下thinkphp6的手册,发现join方法不支持闭包查询。
这样的话,使用join的时候,怎么把JP去掉?
$res->leftJoin('work', 'work.workID = REPLACE(entry_in.workID, "JP", "entry_in.workID")')->where('work.customer_id',$customer_id);
这样会报错