|
|
|
@@ -51,6 +51,108 @@ update wx_rent_contract set |
|
|
|
) |
|
|
|
where (LENGTH(shop_name) - LENGTH( REPLACE (shop_name, ',',''))) = 3 and rent_input_way = 1 and cashtype_lsit is null; |
|
|
|
|
|
|
|
--4 |
|
|
|
update wx_rent_contract set |
|
|
|
cashtype_lsit = '[{"label": "一般押金", "value": "0", "disabled": true}, {"label": "合同保证金", "value": "1", "disabled": false}, {"label": "质量保证金", "value": "2", "disabled": false}]', |
|
|
|
cashtype_content_lsit = concat('[{"value": "',ROUND(deposit/100,2),'", "deposit": "1"}]') , |
|
|
|
other_rent_price_info = '{"siteMoney": "", "facilityMoney": "", "administratorMoney": ""}', |
|
|
|
rent_info = json_set(rent_info, |
|
|
|
"$[0].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[0].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[0].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[1].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[1].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[1].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[2].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[2].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[2].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[3].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[3].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[3].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", "") |
|
|
|
) |
|
|
|
where (LENGTH(shop_name) - LENGTH( REPLACE (shop_name, ',',''))) = 4 and rent_input_way = 1 and cashtype_lsit is null; |
|
|
|
|
|
|
|
--5 |
|
|
|
update wx_rent_contract set |
|
|
|
cashtype_lsit = '[{"label": "一般押金", "value": "0", "disabled": true}, {"label": "合同保证金", "value": "1", "disabled": false}, {"label": "质量保证金", "value": "2", "disabled": false}]', |
|
|
|
cashtype_content_lsit = concat('[{"value": "',ROUND(deposit/100,2),'", "deposit": "1"}]') , |
|
|
|
other_rent_price_info = '{"siteMoney": "", "facilityMoney": "", "administratorMoney": ""}', |
|
|
|
rent_info = json_set(rent_info, |
|
|
|
"$[0].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[0].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[0].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[1].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[1].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[1].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[2].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[2].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[2].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[3].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[3].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[3].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[4].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[4].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[4].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", "") |
|
|
|
) |
|
|
|
where (LENGTH(shop_name) - LENGTH( REPLACE (shop_name, ',',''))) = 5 and rent_input_way = 1 and cashtype_lsit is null; |
|
|
|
|
|
|
|
--6 |
|
|
|
update wx_rent_contract set |
|
|
|
cashtype_lsit = '[{"label": "一般押金", "value": "0", "disabled": true}, {"label": "合同保证金", "value": "1", "disabled": false}, {"label": "质量保证金", "value": "2", "disabled": false}]', |
|
|
|
cashtype_content_lsit = concat('[{"value": "',ROUND(deposit/100,2),'", "deposit": "1"}]') , |
|
|
|
other_rent_price_info = '{"siteMoney": "", "facilityMoney": "", "administratorMoney": ""}', |
|
|
|
rent_info = json_set(rent_info, |
|
|
|
"$[0].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[0].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[0].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[1].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[1].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[1].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[2].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[2].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[2].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[3].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[3].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[3].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[4].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[4].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[4].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[5].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[5].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[5].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", "") |
|
|
|
) |
|
|
|
where (LENGTH(shop_name) - LENGTH( REPLACE (shop_name, ',',''))) = 6 and rent_input_way = 1 and cashtype_lsit is null; |
|
|
|
|
|
|
|
--7 |
|
|
|
update wx_rent_contract set |
|
|
|
cashtype_lsit = '[{"label": "一般押金", "value": "0", "disabled": true}, {"label": "合同保证金", "value": "1", "disabled": false}, {"label": "质量保证金", "value": "2", "disabled": false}]', |
|
|
|
cashtype_content_lsit = concat('[{"value": "',ROUND(deposit/100,2),'", "deposit": "1"}]') , |
|
|
|
other_rent_price_info = '{"siteMoney": "", "facilityMoney": "", "administratorMoney": ""}', |
|
|
|
rent_info = json_set(rent_info, |
|
|
|
"$[0].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[0].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[0].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[1].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[1].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[1].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[2].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[2].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[2].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[3].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[3].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[3].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[4].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[4].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[4].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[5].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[5].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[5].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", ""), |
|
|
|
"$[6].cashtypeLsit",JSON_ARRAY(JSON_OBJECT("label", "一般押金", "value", "0", "disabled", false),JSON_OBJECT("label", "合同保证金", "value", "1", "disabled", false),JSON_OBJECT("label", "质量保证金", "value", "2", "disabled", false)), |
|
|
|
"$[6].cashtypeContentLsit",JSON_ARRAY(JSON_OBJECT("value", "", "deposit", "")), |
|
|
|
"$[6].otherRentPriceInfo",JSON_OBJECT("siteMoney", "", "facilityMoney", "", "administratorMoney", "") |
|
|
|
) |
|
|
|
where (LENGTH(shop_name) - LENGTH( REPLACE (shop_name, ',',''))) = 7 and rent_input_way = 1 and cashtype_lsit is null; |
|
|
|
|
|
|
|
|
|
|
|
--多店铺分铺 |
|
|
|
--2 |
|
|
|
@@ -103,6 +205,8 @@ where (LENGTH(shop_name) - LENGTH( REPLACE (shop_name, ',',''))) = 3 and rent_in |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--10 |
|
|
|
|