15:47:39.914 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
15:47:39.914 | trace | yii\base\Module::getModule | Loading module: debug |
15:47:39.914 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
15:47:39.914 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
15:47:39.914 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
15:47:39.914 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.914 | trace | yii\base\Module::getModule | Loading module: gii |
15:47:39.914 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
15:47:39.915 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
15:47:39.915 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-wage-ticket/save-new' |
15:47:39.915 | trace | yii\base\Module::getModule | Loading module: vue |
15:47:39.915 | info | yii\web\Session::open | Session started |
15:47:39.915 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
15:47:39.915 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
15:47:39.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:39.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:39.921 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:47:39.922 | trace | yii\base\Controller::runAction | Route to run: vue/erp-wage-ticket/save-new |
15:47:39.923 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.924 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
15:47:39.924 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpWageTicketController::actionSaveNew() |
15:47:39.924 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpWageTickets'. |
15:47:39.924 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.924 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:39.924 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpWageTicketVerifyRels' in 'app\models\ErpWageTickets'. |
15:47:39.924 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpWageTickets'. |
15:47:39.924 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpWageTicketAmounts' in 'app\models\ErpWageTickets'. |
15:47:39.924 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.925 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.925 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_tickets" WHERE ("created_at" >= '2025-09-15 00:00:00') AND ("created_at" <= '2025-09-15 23:59:59') AND ("serial_no" ILIKE '%GZD-20250915-%') AND (LENGTH(serial_no) = 18) ORDER BY "serial_no" DESC |
15:47:39.927 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_wage_tickets" WHERE "serial_no"='GZD-20250915-00001') |
15:47:39.928 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
15:47:39.928 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_wage_tickets" ("wrote_date", "settle_month", "serial_no", "abstract", "verify_type", "created_by", "created_at", "status", "is_resubmitted", "amount", "settle_amount") VALUES ('now()', '2025-09-01', 'GZD-20250915-00001', '测试', 2, 1001, 'now()', 1, FALSE, '0', '0') RETURNING "id" |
15:47:39.934 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.934 | info | yii\db\Command::query | 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_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:47:39.938 | info | yii\db\Command::query | 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_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:47:39.942 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:39.942 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:47:39.942 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpWageTickets', 4, 'a:23:{s:2:"id";i:4;s:9:"serial_no";s:18:"GZD-20250915-00001";s:10:"wrote_date";s:5:"now()";s:12:"settle_month";s:10:"2025-09-01";s:6:"status";i:1;s:8:"abstract";s:6:"测试";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;}', '', 1001, '114.246.237.213') |
15:47:39.945 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20039) AND ("object_id"=4) |
15:47:39.947 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_wage_ticket_verify_rels" WHERE "erp_wage_ticket_id"=4 |
15:47:39.947 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.947 | info | yii\db\Command::query | 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_wage_ticket_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:47:39.950 | info | yii\db\Command::query | 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_wage_ticket_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:47:39.954 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:39.954 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:47:39.954 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_wage_ticket_verify_rels" ("erp_wage_ticket_id", "user_id", "status") VALUES (4, 1001, 0) |
15:47:39.956 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_wage_ticket_amounts" WHERE "erp_wage_ticket_id"=4 |
15:47:39.957 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.957 | info | yii\db\Command::query | 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_wage_ticket_amounts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:47:39.959 | info | yii\db\Command::query | 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_wage_ticket_amounts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:47:39.963 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:39.963 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:47:39.963 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_wage_ticket_amounts" ("erp_wage_ticket_id", "user_id", "amount", "in_amount", "out_amount", "settle_month", "wage_amount", "settle_amount") VALUES (4, 1001, '0', '0', '0', '2025-09-01', '33', '0') RETURNING "id" |
15:47:39.965 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpWageTicketAmounts', 102, 'a:10:{s:2:"id";i:102;s:18:"erp_wage_ticket_id";i:4;s:7:"user_id";s:4:"1001";s:6:"amount";i:0;s:11:"wage_amount";s:2:"33";s:9:"in_amount";i:0;s:10:"out_amount";i:0;s:14:"payment_amount";N;s:12:"settle_month";s:10:"2025-09-01";s:13:"settle_amount";i:0;}', '', 1001, '114.246.237.213') |
15:47:39.966 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.966 | info | yii\db\Command::query | 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_wage_ticket_amount_ins'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:47:39.969 | info | yii\db\Command::query | 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_wage_ticket_amount_ins'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:47:39.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:39.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:47:39.973 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_wage_ticket_amount_ins" ("erp_wage_ticket_id", "erp_wage_ticket_amount_id", "erp_wage_in_id", "user_id", "amount") VALUES (4, 102, 1, 1001, '0'), (4, 102, 2, 1001, '0') |
15:47:39.975 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:39.975 | info | yii\db\Command::query | 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_wage_ticket_amount_outs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:47:39.978 | info | yii\db\Command::query | 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_wage_ticket_amount_outs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:47:39.982 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:39.982 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:47:39.982 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_wage_ticket_amount_outs" ("erp_wage_ticket_id", "erp_wage_ticket_amount_id", "erp_wage_out_id", "user_id", "amount") VALUES (4, 102, 1, 1001, '0') |
15:47:39.984 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_wage_ticket_amounts" SET "amount"='33' WHERE "id"=102 |
15:47:39.985 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpWageTicketAmounts', 102, 'a:1:{s:14:"payment_amount";N;}', '', 1001, '114.246.237.213') |
15:47:39.986 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_wage_ticket_amounts" ("erp_wage_ticket_id", "user_id", "amount", "in_amount", "out_amount", "settle_month", "wage_amount", "settle_amount") VALUES (4, 1017, '0', '0', '0', '2025-09-01', '33', '0') RETURNING "id" |
15:47:39.987 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpWageTicketAmounts', 103, 'a:10:{s:2:"id";i:103;s:18:"erp_wage_ticket_id";i:4;s:7:"user_id";s:4:"1017";s:6:"amount";i:0;s:11:"wage_amount";s:2:"33";s:9:"in_amount";i:0;s:10:"out_amount";i:0;s:14:"payment_amount";N;s:12:"settle_month";s:10:"2025-09-01";s:13:"settle_amount";i:0;}', '', 1001, '114.246.237.213') |
15:47:39.988 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_wage_ticket_amount_ins" ("erp_wage_ticket_id", "erp_wage_ticket_amount_id", "erp_wage_in_id", "user_id", "amount") VALUES (4, 103, 1, 1017, '0'), (4, 103, 2, 1017, '0') |
15:47:39.989 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_wage_ticket_amount_outs" ("erp_wage_ticket_id", "erp_wage_ticket_amount_id", "erp_wage_out_id", "user_id", "amount") VALUES (4, 103, 1, 1017, '0') |
15:47:39.990 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_wage_ticket_amounts" SET "amount"='33' WHERE "id"=103 |
15:47:39.991 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpWageTicketAmounts', 103, 'a:1:{s:14:"payment_amount";N;}', '', 1001, '114.246.237.213') |
15:47:39.992 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_ticket_verify_rels" WHERE ("status"=0) AND ("erp_wage_ticket_id"=4) ORDER BY "id" |
15:47:39.992 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_wage_tickets" SET "amount"='66', "number"=2, "next_verify_user"=1001 WHERE "id"=4 |
15:47:39.993 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpWageTickets', 4, 'a:1:{s:6:"amount";i:66;}', '', 1001, '114.246.237.213') |
15:47:39.994 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_tickets" WHERE "id"=4 |
15:47:39.994 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_ticket_bank_outs" WHERE "erp_wage_ticket_id"=4 ORDER BY "id" |
15:47:39.995 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_tickets" WHERE "id"=4 |
15:47:39.995 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_ticket_amounts" WHERE "erp_wage_ticket_id"=4 ORDER BY "id" |
15:47:39.996 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_erp_wage_ticket_settle_users" WHERE "erp_wage_ticket_amount_id"=102 |
15:47:39.996 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_wage_ticket_amounts" SET "settle_amount"=NULL WHERE "id"=102 |
15:47:39.997 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpWageTicketAmounts', 102, 'a:1:{s:13:"settle_amount";N;}', '', 1001, '114.246.237.213') |
15:47:39.998 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_erp_wage_ticket_settle_users" WHERE "erp_wage_ticket_amount_id"=103 |
15:47:39.998 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_wage_ticket_amounts" SET "settle_amount"=NULL WHERE "id"=103 |
15:47:39.999 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpWageTicketAmounts', 103, 'a:1:{s:13:"settle_amount";N;}', '', 1001, '114.246.237.213') |
15:47:39.999 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_wage_tickets" SET "settle_amount"='0' WHERE "id"=4 |
15:47:40.000 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpWageTickets', 4, 'a:0:{}', '', 1001, '114.246.237.213') |
15:47:40.001 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_ticket_amount_payments" WHERE (erp_other_collect_ticket_id is not null) AND ("erp_wage_ticket_id"=4) ORDER BY "id" |
15:47:40.001 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:47:40.002 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_ticket_verify_rels" WHERE ("status"=0) AND ("erp_wage_ticket_id"=4) ORDER BY "id" |
15:47:40.002 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_wage_ticket_verify_rels" WHERE ("status"=0) AND ("erp_wage_ticket_id"=4) ORDER BY "id" |
15:47:40.003 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:47:40.004 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:40.006 | info | yii\db\Command::query | 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_object_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:47:40.010 | info | yii\db\Command::query | 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_object_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:47:40.014 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:40.014 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:47:40.015 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 4, 20023, 1001, '2025-09-15 15:47:39', '{"id":4,"serial_no":"GZD-20250915-00001","wrote_date":"2025-09-15","settle_month":"2025-09-01","status":1,"abstract":"\u6d4b\u8bd5","description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"66","number":2,"settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"created_at":"2025-09-15 15:47:39","updated_at":"2025-09-15 15:47:39"}', '{"id":4,"serial_no":"GZD-20250915-00001","wrote_date":"2025-09-15","settle_month":"2025-09-01","status":1,"abstract":"\u6d4b\u8bd5","description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"66","number":2,"settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"created_at":"2025-09-15 15:47:39","updated_at":"2025-09-15 15:47:39"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u8d44\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
15:47:40.017 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 565400, 'a:13:{s:2:"id";i:565400;s:9:"object_id";i:4;s:11:"object_type";i:20023;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:502:"{"id":4,"serial_no":"GZD-20250915-00001","wrote_date":"2025-09-15","settle_month":"2025-09-01","status":1,"abstract":"\u6d4b\u8bd5","description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"66","number":2,"settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"created_at":"2025-09-15 15:47:39","updated_at":"2025-09-15 15:47:39"}";s:9:"new_value";s:502:"{"id":4,"serial_no":"GZD-20250915-00001","wrote_date":"2025-09-15","settle_month":"2025-09-01","status":1,"abstract":"\u6d4b\u8bd5","description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"66","number":2,"settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"created_at":"2025-09-15 15:47:39","updated_at":"2025-09-15 15:47:39"}";s:11:"description";s:99:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u8d44\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-09-15 15:47:39";s:9:"is_delete";N;}', '', 1001, '114.246.237.213') |
15:47:40.018 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:40.018 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:40.018 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-09-15') |
15:47:40.022 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:40.022 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:47:40.022 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=1301, "last_visit_at"='now()' WHERE "id"=56557 |
15:47:40.023 | info | yii\db\Command::query | 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-wage-ticket/save-new', '{"ErpWageTickets":{"id":"","wrote_date":"2025-09-15","settle_month":"2025-09","serial_no":"GZD-20250915-00001","erpWageTicketVerifyRels":["1001"],"abstract":"\u6d4b\u8bd5","files":"","erpWageTicketAmounts":[{"user_id":"1001","wage_amount":"33","amount":"33","erpWageTicketAmountIns":[{"id":"1","amount":"0"},{"id":"2","amount":"0"}],"erpWageTicketAmountOuts":{"2":{"id":"1","amount":"0"}},"erpWageTicketAmountPayments":""},{"user_id":"1017","wage_amount":"33","amount":"33","erpWageTicketAmountIns":[{"id":"1","amount":"0"},{"id":"2","amount":"0"}],"erpWageTicketAmountOuts":{"2":{"id":"1","amount":"0"}},"erpWageTicketAmountPayments":""}]},"web_access_token":"S7OJrULURAq348jTGnVvRiAMpe10N7Zn"}', '{"code":2000,"result":{"id":4},"status":1,"msg":[{"name":"success","success":"\u65b0\u5de5\u8d44\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-09-15 15:47:40') RETURNING "id" |
15:47:40.025 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:47:40.025 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |