Commit 9fb5d900 by 仲光辉

feat: add sql.

parent 6450aeaf
### 到访人数据查询
### 到访人数据查询
SELECT cc.uuid opportunity_contact_uuid,
cc.NAME opportunity_contact_name,
o.uuid opportunity_uuid,
o.NAME opportunity_name,
cc.phone
FROM company_contacts cc
JOIN opportunity o ON cc.opportunity_uuid = o.uuid AND o.is_delete = 0
WHERE cc.is_delete = 0
AND cc.phone='18516698042'
ORDER BY cc.sort, cc.uuid
\ No newline at end of file
UPDATE project_floor_sub_item UPDATE project_floor_sub_item
...@@ -45,3 +45,165 @@ LIMIT 16; ...@@ -45,3 +45,165 @@ LIMIT 16;
UPDATE mfg.contract t SET t.opportunity_uuid = 1624981010162188290, t.opportunity_contact_uuid = 'bd48613fa7a066c46ab5ba2c89678108', t.opportunity_contact_name = '杜敏' WHERE t.uuid = 1613730111323897857 UPDATE mfg.contract t SET t.opportunity_uuid = 1624981010162188290, t.opportunity_contact_uuid = 'bd48613fa7a066c46ab5ba2c89678108', t.opportunity_contact_name = '杜敏' WHERE t.uuid = 1613730111323897857
UPDATE mfg.contract t
SET t.opportunity_uuid = 1601169595133194241,
t.opportunity_contact_uuid = '68bcd4c2ae850ae248c7f27225d6f87e',
t.opportunity_contact_name = '罗总'
WHERE t.uuid = 1597231717989023745
AND t.contract_type = 1
AND t.old_contract_uuid IS NULL
AND t.new_contract_uuid IS NULL
AND t.contract_code LIKE 'HT-CDS-IFSCDGJJRZX2H-3605-202211-1504' ESCAPE
'#' AND t.contract_status = 6 AND t.contract_lease_type = 1 AND
t.company_uuid LIKE 'cf0bd466d4c747e5bb5b3662cd42a542' ESCAPE '#' AND
t.company_name LIKE '四川信科盛科技有限公司' ESCAPE
'#' AND t.sign_contract_date = '2022-11-10' AND
t.office_capacity = 12 AND t.lease_effect_uuid LIKE
'1522774358977757186' ESCAPE
'#' AND
t.lease_start_date =
'2022-11-10' AND
t.lease_end_date =
'2024-05-31' AND
t.contract_save_status =
1 AND
t.contract_type_tag =
1 AND
t.has_custom_field =
1 AND t.is_delete = 0 AND
t.create_uuid LIKE
'416196ddf1ac4d3587b9ee021c395744' ESCAPE
'#' AND
t.update_uuid LIKE
'db8a8f14734144c3bad53aefa6af1f0c' ESCAPE
'#' AND t.create_time =
'2022-11-28 22:11:31' AND
t.update_time =
'2023-01-30 11:47:29' AND
t.property_management IS NULL AND
t.property_service IS NULL AND
t.property_fees =
35.00 AND
t.property_fees_sum =
5525.10 AND
t.rent_deposit =
46000.00 AND
t.rent_deposit_months =
2.00 AND
t.property_deposit =
0.00 AND
t.water_electricity_deposit =
4700.00 AND
t.water_and_electricity =
150.00 AND
t.water_and_electricity_is_follow_rent =
1 AND
t.water_and_electricity_division IS NULL AND
t.water_and_electricity_second_lease_term_division IS NULL AND
t.leased_area =
157.86 AND t.unit_type =
1 AND
t.project_uuid LIKE
'1e81918c45ae40e5a47909f1860df1f2' ESCAPE
'#' AND
t.project_name LIKE
'IFS成都国际金融中心2号楼' ESCAPE
'#' AND
t.contract_generate_time IS NULL AND
t.contract_generator_uuid IS NULL AND
t.contract_generator_name IS NULL AND
t.contract_model_uuid IS NULL AND
t.emergency_degree =
1 AND t.creator_name LIKE
'邱野-Richard' ESCAPE
'#' AND
t.updater_name LIKE
'刘玉洁-Keira' ESCAPE
'#' AND
t.delivery_date =
'2022-11-10' AND
t.associations_uuid IS NULL AND
t.associations_code IS NULL AND
t.contract_step =
3 AND
t.contract_contains_remark =
0 AND
t.audit_remark IS NULL AND
t.approval_status =
4 AND
t.is_finished =
1 AND
t.fid IS NULL AND
t.approval_type IS NULL AND
t.change_user_type =
0 AND
t.change_type =
0 AND
t.change_effective_time IS NULL AND
t.is_draft = 0 AND
t.reason IS NULL AND
t.rent_refund_date IS NULL AND
t.surrender_type IS NULL AND
t.business_registration_address_change_date IS NULL AND
t.opportunity_uuid =
-1 AND
t.rent_refund_signing_date IS NULL AND
t.opportunity_name IS NULL AND
t.opportunity_contact_uuid LIKE
'-1' ESCAPE '#' AND
t.opportunity_contact_name LIKE
'无到访' ESCAPE
'#' AND
t.origin_uuid IS NULL AND
t.is_archive =
0 AND
t.account_subject_info_uuid IS NULL AND
t.text_data_uuid_str IS NULL AND
t.registration IS NULL AND
t.contract_termination_data IS NULL AND
t.order_maker IS NULL AND
t.refund_reason IS NULL AND
t.is_notify IS NULL AND
t.fill_form_date IS NULL AND
t.total_guarantee IS NULL AND
t.transaction_time =
'2022-12-01 17:11:32' AND
t.contract_creator_uuid IS NULL AND
t.contract_creator_name IS NULL AND
t.first_final_payment_day LIKE
'三' ESCAPE
'#' AND
t.trance_id IS NULL AND
t.oa_status_repeat_updated_count =
0 AND
t.is_need_stamp =
0 AND
t.is_save_edit_bill =
1 AND
t.meter_reading_date_num =
10 AND
t.enable_operating_management_bill =
0;
UPDATE bill AS b
INNER JOIN bill_item AS bi ON bi.bill_uuid=b.uuid AND bi.is_parent=1
SET b.payment_date=bi.pay_date
WHERE bi.fee_type_uuid='1494239635921162240'
UPDATE mfg.contract t
SET t.opportunity_uuid = 1626422072642699265,
t.opportunity_name = '上海威奥颐摩健康科技有限公司',
t.opportunity_contact_uuid = '96762049ffcba55da959587755ccad2a',
t.opportunity_contact_name = '甘雨'
WHERE t.uuid = 1620271886740553729;
UPDATE mfg.admin t
SET t.mobile = '15928537751'
WHERE t.uuid LIKE '1ebf650006de41a99031c6ad2d4c5573' 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