Database Queries

总计43条数据
TimeDurationTypeQuery
  
15:35:11.4812.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

15:35:11.4841.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:35:11.4885.6 msSELECTSELECT 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_other_payment_tickets' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

15:35:11.4947.5 msSELECTselect 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_other_payment_tickets' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

15:35:11.5050.4 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_users" ORDER BY "id"

15:35:11.5053.4 msSELECTSELECT COUNT(*) FROM (SELECT r.* FROM "a57be577deb434"."tbl_erp_other_payment_tickets" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_payment_ticket_verify_rels" "rvr" ON rvr.erp_other_payment_ticket_id = r.id WHERE ("is_start"=TRUE) AND (("r"."created_by"=1001) OR ("rvr"."user_id"=1001) OR ("r"."created_by" IN (1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1025, 1026, 1027, 1028, 1029, 1030, 5015, 5016, 5022, 5023, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5037, 5043, 5044, 5045, 5047, 5048, 5049, 5050, 5062, 5063, 5064, 5065, 5066, 5069, 5070, 5071, 5072, 5073, 5074, 5075, 5076, 5078, 5079, 5080, 5081, 5082, 5083, 5085, 5086, 5087, 5088, 5089, 5093, 5094, 5095, 5096, 5101, 5102, 5104, 5105, 5123, 5124, 5125, 5126, 5128, 5135, 5203, 5208, 5209, 5229, 5230, 5247, 5248, 5249, 5250, 5252, 5258, 5259, 5293, 5294, 5295, 5296, 5297, 5298, 5299, 5300, 5301, 5302, 5303, 5304, 5305, 5309, 5311, 5329, 5332, 5333, 5351, 5356, 5357, 5358, 5359, 5360, 5364, 5388, 5393, 5404, 5409, 5411, 5412, 5413, 5419, 5420, 5440, 5445, 5446, 5448, 5449))) AND (("r"."status" != 0) OR (("r"."status"=0) AND ("r"."created_by"=1001))) GROUP BY "r"."id" ORDER BY case when r.status = 1 then 0 when r.status = 5 then 1 else 2 end asc, r.created_at DESC) "c"

15:35:11.5090.8 msSELECTSELECT r.* FROM "a57be577deb434"."tbl_erp_other_payment_tickets" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_payment_ticket_verify_rels" "rvr" ON rvr.erp_other_payment_ticket_id = r.id WHERE ("is_start"=TRUE) AND (("r"."created_by"=1001) OR ("rvr"."user_id"=1001) OR ("r"."created_by" IN (1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1025, 1026, 1027, 1028, 1029, 1030, 5015, 5016, 5022, 5023, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5037, 5043, 5044, 5045, 5047, 5048, 5049, 5050, 5062, 5063, 5064, 5065, 5066, 5069, 5070, 5071, 5072, 5073, 5074, 5075, 5076, 5078, 5079, 5080, 5081, 5082, 5083, 5085, 5086, 5087, 5088, 5089, 5093, 5094, 5095, 5096, 5101, 5102, 5104, 5105, 5123, 5124, 5125, 5126, 5128, 5135, 5203, 5208, 5209, 5229, 5230, 5247, 5248, 5249, 5250, 5252, 5258, 5259, 5293, 5294, 5295, 5296, 5297, 5298, 5299, 5300, 5301, 5302, 5303, 5304, 5305, 5309, 5311, 5329, 5332, 5333, 5351, 5356, 5357, 5358, 5359, 5360, 5364, 5388, 5393, 5404, 5409, 5411, 5412, 5413, 5419, 5420, 5440, 5445, 5446, 5448, 5449))) AND (("r"."status" != 0) OR (("r"."status"=0) AND ("r"."created_by"=1001))) GROUP BY "r"."id" ORDER BY case when r.status = 1 then 0 when r.status = 5 then 1 else 2 end asc, r.created_at DESC LIMIT 20

15:35:11.5150.5 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:35:11.5160.7 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

15:35:11.5170.4 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4

15:35:11.5180.7 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id" IN (3306, 2182)

15:35:11.5190.5 msSELECTSELECT "id", "id" AS "key", "serial_no" AS "name" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4048

15:35:11.5191.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_carbon_copy_rels" WHERE "erp_other_payment_ticket_id" IN (4, 1)

15:35:11.5200.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_verify_rels" WHERE "erp_other_payment_ticket_id" IN (4, 1) ORDER BY "id"

15:35:11.5210.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_verify_rels" WHERE ("status"=0) AND ("erp_other_payment_ticket_id" IN (4, 1)) ORDER BY "id"

15:35:11.5210.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_verify_rels" WHERE ("status" != 0) AND ("erp_other_payment_ticket_id" IN (4, 1)) ORDER BY "id"

15:35:11.5220.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_verify_rels" WHERE ("status" = 0) AND ("user_id"=1001) AND ("erp_other_payment_ticket_id" IN (4, 1))

15:35:11.5221.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_stop_verify_rels" WHERE "erp_other_payment_ticket_id" IN (4, 1) ORDER BY "id"

15:35:11.5230.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_stop_verify_rels" WHERE ("status"=0) AND ("erp_other_payment_ticket_id" IN (4, 1)) ORDER BY "id"

15:35:11.5240.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_stop_verify_rels" WHERE ("status" != 0) AND ("erp_other_payment_ticket_id" IN (4, 1)) ORDER BY "id"

15:35:11.5240.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_stop_verify_rels" WHERE ("status" = 0) AND ("user_id"=1001) AND ("erp_other_payment_ticket_id" IN (4, 1))

15:35:11.5241.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_amounts" WHERE "erp_other_payment_ticket_id" IN (4, 1) ORDER BY "id"

15:35:11.5262.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_payment_ticket_bank_ins" WHERE "erp_other_payment_ticket_id" IN (4, 1) ORDER BY "id"

15:35:11.5292.8 msSELECTSELECT "r".* FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("t"."status" IN (2, 5)) AND ("r"."erp_other_payment_ticket_id" IN (4, 1))

15:35:11.5322.7 msSELECTSELECT 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_payment_ticket_settles' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

15:35:11.5346.5 msSELECTselect 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_payment_ticket_settles' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

15:35:11.5410.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_payment_tickets" WHERE "id"=2076

15:35:11.5420.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:35:11.5420.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

15:35:11.5420.1 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4

15:35:11.5430.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:35:11.5430.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

15:35:11.5430.1 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4

15:35:11.5442.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20034) AND ("object_id" IN (4, 1))

15:35:11.5462.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20035) AND ("object_id" IN (4, 1))

15:35:11.5480.4 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=27254

15:35:11.5490.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:35:11.5490.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

15:35:11.5490.1 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4

15:35:11.55022.0 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=20020) AND ("object_id" IN (4, 1)) GROUP BY "object_id"

15:35:11.57217.4 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=20020) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id" IN (4, 1)) GROUP BY "object_id"

15:35:11.5900.9 msSELECTSELECT SUM(amount) FROM (SELECT "amount" FROM "a57be577deb434"."tbl_erp_other_payment_tickets" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_payment_ticket_verify_rels" "rvr" ON rvr.erp_other_payment_ticket_id = r.id WHERE ("is_start"=TRUE) AND (("r"."created_by"=1001) OR ("rvr"."user_id"=1001) OR ("r"."created_by" IN (1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1025, 1026, 1027, 1028, 1029, 1030, 5015, 5016, 5022, 5023, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5037, 5043, 5044, 5045, 5047, 5048, 5049, 5050, 5062, 5063, 5064, 5065, 5066, 5069, 5070, 5071, 5072, 5073, 5074, 5075, 5076, 5078, 5079, 5080, 5081, 5082, 5083, 5085, 5086, 5087, 5088, 5089, 5093, 5094, 5095, 5096, 5101, 5102, 5104, 5105, 5123, 5124, 5125, 5126, 5128, 5135, 5203, 5208, 5209, 5229, 5230, 5247, 5248, 5249, 5250, 5252, 5258, 5259, 5293, 5294, 5295, 5296, 5297, 5298, 5299, 5300, 5301, 5302, 5303, 5304, 5305, 5309, 5311, 5329, 5332, 5333, 5351, 5356, 5357, 5358, 5359, 5360, 5364, 5388, 5393, 5404, 5409, 5411, 5412, 5413, 5419, 5420, 5440, 5445, 5446, 5448, 5449))) AND (("r"."status" != 0) OR (("r"."status"=0) AND ("r"."created_by"=1001))) GROUP BY "r"."id") "c"

15:35:11.5921.4 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/setting/list-erp-other-payment-ticket', '{"is_delete":"","keyword":"","page":"1","web_access_token":"0OmNcjMNpl7I6Nbm2bTJGMI-xreQBLAo"}', '{"code":2000,"result":{"list":[{"id":4,"serial_no":"QTYFD-20250818-00002","wrote_date":"2025-08-18","from_date":"","ticket_type":4,"handler":1001,"client_id":3306,"sales_contract_id":"","supplier_id":"","purchase_contract_id":"","status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":"","next_stop_verify_user":"","verify_at":"2025-08-18 10:18:29","stop_at":"","refuse_description":"","is_resubmitted":false,"amount":"4000","settle_amount":"1","created_by":1001,"stop_description":"","is_settle":false,"created_at":"2025-08-18 10:18:29","updated_at":"2025-08-18 10:18:29","paid_amount":"0","un_paid_amount":3999,"contact_id":"","is_start":true,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"client":{"id":3306,"key":3306,"name":"\u5317\u4eac\u534e\u6052\u4fe1\u5b89\u79d1\u6280\u6709\u9650\u516c\u53f8"},"salesContract":"","supplier":"","purchaseContract":"","erpOtherPaymentTicketCarbonCopyRels":[],"erpOtherPaymentTicketVerifyRels":[],"lastErpOtherPaymentTicketVerifyRel":"","haveErpOtherPaymentTicketVerifyRel":"","selfErpOtherPaymentTicketVerifyRel":"","erpOtherPaymentTicketStopVerifyRels":[],"lastErpOtherPaymentTicketStopVerifyRel":"","haveErpOtherPaymentTicketStopVerifyRel":"","selfErpOtherPaymentTicketStopVerifyRel":"","erpOtherPaymentTicketAmounts":[{"id":15,"erp_other_payment_ticket_id":4,"amount":"4000","description":"\u6d4b\u8bd5"}],"erpOtherPaymentTicketBankIns":[],"erpPaymentTicketSettles":[{"id":2077,"erp_payment_ticket_id":2076,"sales_contract_id":"","purchase_contract_id":"","erp_cost_ticket_id":"","erp_other_payment_ticket_id":4,"amount":"1","description":"","erpPaymentTicket":{"id":2076,"serial_no":"FKD-20250819-00001","wrote_date":"2025-08-19","from_date":"","handler":1001,"client_id":3306,"sales_contract_id":"","supplier_id":"","purchase_contract_id":"","status":2,"abstract":"\u6d4b\u8bd5","description":"\u6d4b\u8bd5","verify_type":1,"next_verify_user":"","next_stop_verify_user":"","verify_at":"2025-08-19 10:25:55","stop_at":"","refuse_description":"","is_resubmitted":false,"amount":"1","settle_amount":"0","created_by":1001,"stop_description":"","is_settle":false,"is_payment_settle":false,"is_old":false,"created_at":"2025-08-19 10:25:51","updated_at":"2025-08-19 10:25:55","paid_amount":"0","contact_id":"","handlerPerson":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"bgcolor":"#c280ff","status_display":"\u5f85\u4ed8\u6b3e"}}],"attachmentRelationships":[],"files":[],"handlerPerson":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"contact":"","commentCount":"","unreadComments":"","unread":0,"can_update":false,"can_delete":false,"can_resubmit":false,"can_verify":false,"can_refuse":false,"can_stop":false,"can_stop_verify":false,"can_stop_refuse":false,"bgcolor":"#c280ff","status_display":"\u5f85\u4ed8\u6b3e","bankAmount":0,"ticket_type_display":"\u5176\u4ed6","un_settle_amount":3999,"can_create_erp_payment_ticket":true},{"id":1,"serial_no":"QTYFD-20250817-00001","wrote_date":"2025-08-17","from_date":"","ticket_type":4,"handler":1001,"client_id":2182,"sales_contract_id":4048,"supplier_id":"","purchase_contract_id":"","status":0,"abstract":"\u6d4b\u8bd5","description":"","verify_type":1,"next_verify_user":"","next_stop_verify_user":"","verify_at":"","stop_at":"","refuse_description":"","is_resubmitted":false,"amount":"20","settle_amount":"0","created_by":1001,"stop_description":"","is_settle":false,"created_at":"2025-08-17 20:55:40","updated_at":"2025-08-17 20:55:59","paid_amount":"0","un_paid_amount":20,"contact_id":"","is_start":true,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"client":{"id":2182,"key":2182,"name":"\u5317\u4eac\u5357\u65b9\u65af\u5948\u514b\u739b\u6da1\u8f6e\u6280\u672f\u6709\u9650\u516c\u53f8"},"salesContract":{"id":4048,"key":4048,"name":"PO-2025-07-0011"},"supplier":"","purchaseContract":"","erpOtherPaymentTicketCarbonCopyRels":[],"erpOtherPaymentTicketVerifyRels":[],"lastErpOtherPaymentTicketVerifyRel":"","haveErpOtherPaymentTicketVerifyRel":"","selfErpOtherPaymentTicketVerifyRel":"","erpOtherPaymentTicketStopVerifyRels":[],"lastErpOtherPaymentTicketStopVerifyRel":"","haveErpOtherPaymentTicketStopVerifyRel":"","selfErpOtherPaymentTicketStopVerifyRel":"","erpOtherPaymentTicketAmounts":[{"id":5,"erp_other_payment_ticket_id":1,"amount":"15","description":""},{"id":6,"erp_other_payment_ticket_id":1,"amount":"5","description":""}],"erpOtherPaymentTicketBankIns":[],"erpPaymentTicketSettles":[],"attachmentRelationships":[],"files":[{"id":48098,"object_type":20035,"object_id":1,"attachment_id":27254,"attachment":{"id":27254,"key":27254,"name":"faa5ceac-78c5-3013-accd-f09ff556bcea","extension":"png","path":"\/vue\/attachment\/view\/faa5ceac-78c5-3013-accd-f09ff556bcea\/\u622a\u5c4f2025-08-17 20.35.51.png","orig_name":"\u622a\u5c4f2025-08-17 20.35.51.png"}}],"handlerPerson":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"contact":"","commentCount":"","unreadComments":"","unread":0,"can_update":true,"can_delete":true,"can_resubmit":false,"can_verify":false,"can_refuse":false,"can_stop":false,"can_stop_verify":false,"can_stop_refuse":false,"bgcolor":"#555555","status_display":"\u8349\u7a3f","bankAmount":0,"ticket_type_display":"\u5176\u4ed6","un_settle_amount":20,"can_create_erp_payment_ticket":false}],"can_create":true,"pagenation":{"totalcount":2,"thispage":1,"pagesize":20},"sum":"4020"},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-21 15:35:11') RETURNING "id"