Commit 8f02161c by 仲光辉

feat: add sql.

parent 27d1671b
alter table admin
# alter table admin
alter table admin
add disabled tinyint(1) default 0 null comment '是否禁用 0:未禁用 1:已禁用 default: 0';
\ No newline at end of file
# alter table admin
# add disabled tinyint(1) default 0 null comment '是否禁用 0:未禁用 1:已禁用 default: 0';
#
# alter table expand_data
# modify data_system_name int(1) not null comment '数据在系统内的名称. 1.改造复原 2:天花板 3:墙面 4:形象墙 5:地面 6:照明设施 7:门窗 8:配电设施 9:门禁 10:家私损坏 11:门锁 12:其他 13:打印费及其他费用 14:家私缺陷/清理费用 15:清洁费用 16:商务服务费 17:是否办妥以租赁单元为注册地址或营业地址的工商注销或变更手续 18:应交商务服务费用 19:应交滞纳金及违约金 20:应交总结金额 21:交楼单验收项目 22: 企业资料 23: 推荐入驻商务小程序二维码 24: 城市仲裁院信息 25:应交滞纳金及违约金(租赁主体) 26:应交滞纳金及违约金(运营管理主体) 在系统内是一个枚举';
#
# 执行时间: 2023728 14:23
\ No newline at end of file
### 访人数据查询
### 访人数据查询
......@@ -57,4 +57,22 @@ WHERE b.bill_code IN (
'ZD-CDS-CDLRZDGC-2608-202306-1338798'
)
AND b.is_delete = 0
AND bi.is_delete = 0;
\ No newline at end of file
AND bi.is_delete = 0;
SELECT c.uuid AS `合同ID`,
c.contract_code AS `合同编号`,
c.project_name AS `项目名称`,
c.leased_area AS `合同租赁面积`,
l.uuid AS `意向书ID`,
l.contract_code AS `意向书编号`,
l.leased_area AS `意向书租赁面积`
FROM contract AS c
INNER JOIN contract AS l ON c.associations_uuid = l.uuid
WHERE c.is_delete = 0
AND c.is_draft = 0
AND c.contract_type=1
AND c.associations_uuid is not null
AND l.is_delete = 0
AND l.is_draft = 0
AND l.contract_type=2
AND c.leased_area != l.leased_area;
\ No newline at end of file
UPDATE project_floor_sub_item
UPDATE project_floor_sub_item
......@@ -1072,6 +1072,13 @@ UPDATE mfg.bill t
SET t.type = 1
WHERE t.uuid = 1595341300666269698;
UPDATE mfg.contract_company t
SET t.is_delete = 1
WHERE t.uuid = 1682223097152339970;
......
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