ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
代码 ``` /** * 2020年6月18日10:57:17 卓良晟 * 获取上笔社保结算单信息 * @param $where 查询条件 * @param $field 查询字段 * @return array|\PDOStatement|string|Model|null * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException * @throws \think\exception\DbException */ public static function sb_qyjs_find($where=[],$field='*'){ return SbQyjsModel::where('jituanid',session('jituanid')) ->where($where) ->field($field) ->order('qyjs_id DESC') ->find(); } ``` 使用方法 ``` use app\shebao\zhuoliangsheng\SheBaoPublicModel; SheBaoPublicModel::sb_qyjs_find($where,$field); ```