| 14:28:55.357 | 2.3 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:28:55.360 | 1.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:28:55.365 | 1.0 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_provident_funds" WHERE ("created_at" >= '2025-12-18 00:00:00') AND ("created_at" <= '2025-12-18 23:59:59') AND ("serial_no" ILIKE '%GJJD-20251218-%') AND (LENGTH(serial_no) = 19) ORDER BY "serial_no" DESC |
| 14:28:55.366 | 0.7 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_provident_funds" WHERE "serial_no"='GJJD-20251218-00001') |
| 14:28:55.367 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 14:28:55.368 | 4.1 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_provident_funds" ("wrote_date", "settle_month", "serial_no", "abstract", "status", "verify_type", "created_by", "created_at", "is_resubmitted", "amount", "settle_amount", "description") VALUES ('now()', '2025-12-01', NULL, NULL, 0, 2, 1001, 'now()', FALSE, '0', '0', NULL) RETURNING "id" |
| 14:28:55.372 | 1.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpProvidentFunds', 7, 'a:25:{s:2:"id";i:7;s:9:"serial_no";N;s:10:"wrote_date";s:5:"now()";s:12:"settle_month";s:10:"2025-12-01";s:6:"status";s:1:"0";s:8:"abstract";N;s:11:"description";N;s:11:"verify_type";s:1:"2";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"amount";i:0;s:6:"number";N;s:13:"settle_amount";i:0;s:10:"created_by";i:1001;s:16:"stop_description";N;s:9:"is_settle";N;s:17:"is_payment_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:14:"bank_settle_at";N;s:11:"print_times";N;}', '', 1001, '223.72.15.22') |
| 14:28:55.373 | 2.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20043) AND ("object_id"=7) |
| 14:28:55.376 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_erp_provident_fund_amounts" WHERE "erp_provident_fund_id"=7 |
| 14:28:55.376 | 4.3 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_erp_provident_fund_amounts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:28:55.381 | 8.9 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_erp_provident_fund_amounts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:28:55.390 | 3.6 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_provident_fund_amounts" ("erp_provident_fund_id", "user_id", "amount", "settle_month", "company_amount", "personal_amount") VALUES (7, 1001, '0', '2025-12-01', '0', '0'), (7, 5087, '0', '2025-12-01', '0', '0'), (7, 5300, '0', '2025-12-01', '0', '0'), (7, 5295, '0', '2025-12-01', '0', '0'), (7, 1004, '0', '2025-12-01', '0', '0'), (7, 1005, '0', '2025-12-01', '0', '0'), (7, 5449, '0', '2025-12-01', '0', '0'), (7, 5085, '0', '2025-12-01', '0', '0'), (7, 5248, '0', '2025-12-01', '0', '0'), (7, 1015, '0', '2025-12-01', '0', '0'), (7, 1022, '0', '2025-12-01', '0', '0'), (7, 1023, '0', '2025-12-01', '0', '0'), (7, 1011, '0', '2025-12-01', '0', '0'), (7, 5360, '0', '2025-12-01', '0', '0'), (7, 5446, '0', '2025-12-01', '0', '0'), (7, 5252, '0', '2025-12-01', '0', '0'), (7, 5388, '0', '2025-12-01', '0', '0'), (7, 1013, '0', '2025-12-01', '0', '0'), (7, 1000, '0', '2025-12-01', '0', '0'), (7, 5250, '0', '2025-12-01', '0', '0'), (7, 5016, '0', '2025-12-01', '0', '0'), (7, 5064, '0', '2025-12-01', '0', '0') |
| 14:28:55.394 | 0.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_provident_fund_verify_rels" WHERE ("status"=0) AND ("erp_provident_fund_id"=7) ORDER BY "id" |
| 14:28:55.395 | 0.7 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_provident_funds" SET "number"=22, "next_verify_user"=NULL WHERE "id"=7 |
| 14:28:55.396 | 0.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpProvidentFunds', 7, 'a:1:{s:6:"number";i:22;}', '', 1001, '223.72.15.22') |
| 14:28:55.397 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_provident_funds" WHERE "id"=7 |
| 14:28:55.398 | 4.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-12-18') |
| 14:28:55.402 | 0.9 ms | UPDATE | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=844, "last_visit_at"='now()' WHERE "id"=59588 |
| 14:28:55.403 | 1.0 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-provident-fund/save-new', '{"ErpProvidentFunds":{"id":"","wrote_date":"2025-12-18","settle_month":"2025-12","serial_no":"GJJD-20251218-00001","abstract":"","status":"0","files":"","erpProvidentFundVerifyRels":"","erpProvidentFundAmounts":[{"user_id":"1001","company_amount":"0","personal_amount":"0"},{"user_id":"5087","company_amount":"0","personal_amount":"0"},{"user_id":"5300","company_amount":"0","personal_amount":"0"},{"user_id":"5295","company_amount":"0","personal_amount":"0"},{"user_id":"1004","company_amount":"0","personal_amount":"0"},{"user_id":"1005","company_amount":"0","personal_amount":"0"},{"user_id":"5449","company_amount":"0","personal_amount":"0"},{"user_id":"5085","company_amount":"0","personal_amount":"0"},{"user_id":"5248","company_amount":"0","personal_amount":"0"},{"user_id":"1015","company_amount":"0","personal_amount":"0"},{"user_id":"1022","company_amount":"0","personal_amount":"0"},{"user_id":"1023","company_amount":"0","personal_amount":"0"},{"user_id":"1011","company_amount":"0","personal_amount":"0"},{"user_id":"5360","company_amount":"0","personal_amount":"0"},{"user_id":"5446","company_amount":"0","personal_amount":"0"},{"user_id":"5252","company_amount":"0","personal_amount":"0"},{"user_id":"5388","company_amount":"0","personal_amount":"0"},{"user_id":"1013","company_amount":"0","personal_amount":"0"},{"user_id":"1000","company_amount":"0","personal_amount":"0"},{"user_id":"5250","company_amount":"0","personal_amount":"0"},{"user_id":"5016","company_amount":"0","personal_amount":"0"},{"user_id":"5064","company_amount":"0","personal_amount":"0"}]}}', '{"code":2000,"result":{"id":7},"status":1,"msg":[{"name":"success","success":"\u65b0\u516c\u79ef\u91d1\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"223.72.15.22","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko\/20100101 Firefox\/146.0"}', FALSE, '2025-12-18 14:28:55') RETURNING "id" |