摘要: //获取性别public static function idNoToSex($id_no, $type = 1) { if (empty($id_no)) { return 0; } $sex_int = (int)substr($id_no, 16, 1); if ($type == 1) { 阅读全文
posted @ 2020-12-26 13:59 心之所依 阅读(514) 评论(0) 推荐(0) 编辑
摘要: public static function jieExcelDate($date_str) { if (empty($date_str)) { return ""; } $data_type3 = gettype($date_str); if ($data_type3 == 'string') { 阅读全文
posted @ 2020-12-26 13:45 心之所依 阅读(649) 评论(0) 推荐(0) 编辑
摘要: function getLastSql() { DB::listen(function ($sql) { foreach ($sql->bindings as $i => $binding) { if ($binding instanceof \DateTime) { $sql->bindings[ 阅读全文
posted @ 2020-12-26 11:57 心之所依 阅读(694) 评论(0) 推荐(0) 编辑
摘要: public function timingApplyBorrow() { //截断表数据 YunUserBorrowList::truncate(); YunUserEntry::select('id', 'name', 'company_id', 'id_no', 'id_no')->chunk 阅读全文
posted @ 2020-12-26 10:59 心之所依 阅读(2525) 评论(0) 推荐(0) 编辑
摘要: public function borrowList(Request $request) { $user_id = JwtAuth::getInstance()->getUid(); $limit = $request->input('limit', 20); $data_list = YunUse 阅读全文
posted @ 2020-12-26 10:06 心之所依 阅读(881) 评论(0) 推荐(0) 编辑