Commit ac5d2336 by 仲光辉

feat: add sql.

parent 8fccf9cc
# # 2022.05.25 # # 2022.05.25
...@@ -5803,6 +5803,9 @@ create index company_region_uuid_index ...@@ -5803,6 +5803,9 @@ create index company_region_uuid_index
alter table bill_item alter table bill_item
modify bill_tag int(1) default 0 null comment '账单标签: 0:普通账单 1:退租合同账单快照(用于撤销退租之后的账单回退) 2:退租手动添加账单 (用于撤销退租之后删除退租时手动添加的账单) 3:账单金额已编辑(退租时编辑) 4:结清时生产的滞纳金 5:仅计算不收取的时候,不需要计算的被删除的滞纳金 6: 定时任务计算的滞纳金 default: 0'; modify bill_tag int(1) default 0 null comment '账单标签: 0:普通账单 1:退租合同账单快照(用于撤销退租之后的账单回退) 2:退租手动添加账单 (用于撤销退租之后删除退租时手动添加的账单) 3:账单金额已编辑(退租时编辑) 4:结清时生产的滞纳金 5:仅计算不收取的时候,不需要计算的被删除的滞纳金 6: 定时任务计算的滞纳金 default: 0';
alter table contract
modify surrender_type int(1) null comment '退租类型: 1:正常退租 2:提前退租(和平解约) 4:异常退租(跑路退租)';
### 访人数据查询 ### 访人数据查询
...@@ -29,4 +29,20 @@ WHERE ccprs.is_delete = 0 ...@@ -29,4 +29,20 @@ WHERE ccprs.is_delete = 0
'8f906e20ce0f4d10b2b0d8c95436fe61' '8f906e20ce0f4d10b2b0d8c95436fe61'
) )
GROUP BY c.uuid GROUP BY c.uuid
HAVING SUM(cu.rent) <> `合同单价`; HAVING SUM(cu.rent) <> `合同单价`;
\ No newline at end of file
SELECT
contract_code AS `合同编号`,
bill_code AS `账单编号`,
fee_type AS `费用类型`,
should_amount AS `应收金额`,
charging_start_date AS `计费开始日期`,
charging_end_date AS `计费结束日期`,
pay_date AS `付款日期`,
create_time AS `创建时间`,
bill_uuid AS `账单UUID`,
add_bills_manually,
is_delete
FROM bill_item
WHERE contract_code='HT-CQS-GJZXT1-2705-07-202302-1368'
AND fee_type ='滞纳金';
\ No newline at end of file
UPDATE project_floor_sub_item UPDATE project_floor_sub_item
...@@ -403,6 +403,24 @@ WHERE t.uuid = 1547787933098000386; ...@@ -403,6 +403,24 @@ WHERE t.uuid = 1547787933098000386;
UPDATE mfg.bill_item t
SET t.settlement_status = 3
WHERE t.uuid = 1595763261380820994;
UPDATE mfg.bill t
SET t.settlement_status = 3
WHERE t.uuid = 1595763261141745683;
UPDATE mfg.bill_item t
SET t.real_amount = 0.00
WHERE t.uuid = 1595763261368238081;
UPDATE mfg.project_unit_rental t
SET t.delete_time = null
WHERE t.uuid LIKE '443ed24ca2a449a18dd6ba8ab4435ea8' ESCAPE '#';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment