讨论数量:
数据库中字段 user_code
值是 大写字符串,ss_account
值是小写字符串。
生成sql:
- " select * from
shensu
whereshensu
.ss_account
= 'x77****52jh' " - " select
user_code
,user_id
fromuser
whereuser
.user_code
in ('X77****52JH') "
sql 数据查找没有问题,orm最终做对象关联时 由于PHP 数组 key 区服大小写,导致关联后的user为null
,
推荐文章: