select templatename,t.templateid,t.templatecontent,t.lastupdateby,t.lastupdatetime,t.createtime,createby from T_OBS_SMSTEMPLATE t where tenantid="+this.getCurrTenantID()); 谁能给我解释一下这句话,不胜感激
这是一个sql语句啊,查询表字段 条件是tenantid
select templatename,t.templateid,t.templatecontent,t.lastupdateby,t.lastupdatetime,t.createtime,createby from T_OBS_SMSTEMPLATE t where tenantid="+this.getCurrTenantID()); 根据tenantid来查询T_OBS_SMSTEMPLATE表的数据
T_OBS_SMSTEMPLATE t 这里的t是对表取的别名
this.getCurrTenantID() 这个是这个类中的方法,返回结果是tenantid
从表T_OBS_SMSTEMPLATE中抽出tenantid为当前值(getCurrTenantID())的记录。
同时只要得到templatename,templateid,templatecontent,lastupdateby,lastupdatetime,createtime,createby的项目。