From 04623a578295d26cb9d3a70afb7d3fb01c5af885 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Mon, 25 Mar 2024 11:18:34 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=89=93=E5=8C=85=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/24年2月变更.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/db/24年2月变更.sql b/db/24年2月变更.sql index b4e54935..e9a0dc44 100644 --- a/db/24年2月变更.sql +++ b/db/24年2月变更.sql @@ -146,3 +146,16 @@ INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `com INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`, `external_terminal_show`) VALUES ('1771021055282999297', '1771015606961774594', '编辑', NULL, NULL, NULL, NULL, 2, 'approvalDocumentNumber:edit', '1', 1.00, 0, NULL, 1, 1, 0, 0, NULL, 'LKGLZ', '2024-03-22 11:48:18', NULL, NULL, 0, 0, '1', 0, 1); INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`, `external_terminal_show`) VALUES ('1771020961842294785', '1771015606961774594', '新增', '', NULL, NULL, NULL, 2, 'approvalDocumentNumber:add', '1', 1.00, 0, NULL, 1, 1, 0, 0, NULL, 'LKGLZ', '2024-03-22 11:47:56', NULL, NULL, 0, 0, '1', 0, 1); INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`, `external_terminal_show`) VALUES ('1771015606961774594', '1438394322899558402', '批复文号设置', '/incomePayments/approvalDocument/TbApprovalDocumentNumberList', 'incomePayments/approvalDocument/TbApprovalDocumentNumberList', NULL, NULL, 1, NULL, '1', 9.00, 0, NULL, 1, 0, 0, 0, NULL, 'LKGLZ', '2024-03-22 11:26:39', NULL, NULL, 0, 0, '1', 0, 1); + +# 打包管理历史数据处理SQL +UPDATE pay_pack_company ppc +SET ppc.receivable_amount = ppc.pack_charge_total, + ppc.need_invoice = 0, + ppc.in_account = 0, + ppc.need_invoice = 1, + ppc.make_invoice = 0, + ppc.income_affirm = 0 +WHERE + ppc.receivable_amount IS NULL + AND ppc.pack_year = '2024' + AND ppc.pack_charge_total IS NOT NULL \ No newline at end of file