xhxu 3 лет назад
Родитель
Сommit
1a735157c3
2 измененных файлов: 10 добавлений и 5 удалений
  1. +2
    -5
      mallinkAdmin/src/main/resources/db/migration/V2022102600002__add_mall_permission.sql
  2. +8
    -0
      mallinkService/src/main/resources/mapper/WxProfitSharingReceiverApplyMapper.xml

+ 2
- 5
mallinkAdmin/src/main/resources/db/migration/V2022102600002__add_mall_permission.sql Просмотреть файл

@@ -16,14 +16,11 @@ UPDATE `mallink`.`mall_sale_type` SET `menus` = '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10,



-----------------------------------------------------------------------------------------------------

--INSERT INTO `mallink`.`mall_permission`(`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`) VALUES (1102, '商户号管理', 100, 'Y', NULL, 1, NULL, NULL, 'tenant_receiver_apply', 'icon-shenpiguanli', 0, 1101);


INSERT INTO `mallink`.`mall_permission`(`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`) VALUES (1102, '商户号管理', 100, 'Y', NULL, 1, NULL, NULL, 'tenant_receiver_apply', 'icon-shenpiguanli', 0, 1101);


INSERT INTO `mallink`.`mall_permission`(`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`) VALUES (224, '商户号管理', 202, 'Y', NULL, 1, NULL, NULL, 'receiver_apply', null, 0, 222);
--INSERT INTO `mallink`.`mall_permission`(`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`) VALUES (224, '商户号管理', 202, 'Y', NULL, 1, NULL, NULL, 'receiver_apply', null, 0, 222);


UPDATE `mallink`.`mall_sale_type` SET `menus` = '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 50, 101, 102, 103, 104, 105, 106, 107, 108, 109, 201, 202, 203, 204, 205, 206, 209, 211, 212, 221, 222, 224, 251, 299, 300, 301, 302, 303, 304, 305, 306, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 420, 421, 422, 501, 502, 503, 504, 505, 506, 507, 508, 509, 511, 512, 513, 514, 521, 522, 523, 531, 532, 533, 591, 592, 595, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 621, 622, 623, 624, 625, 626, 627, 641, 642, 643, 644, 645, 646, 651, 661, 662, 663, 664, 665, 666, 671, 672, 673, 674, 675, 681, 682, 683, 684, 685, 687, 691, 692, 693, 694, 695, 701, 702, 703, 704, 711, 712, 713, 714, 901, 902, 903, 904, 905, 906, 907, 908, 910, 931, 932, 951, 952, 961, 962, 963, 965, 966, 967, 968, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 6611, 60701, 60702]' WHERE `id` = 1;


+ 8
- 0
mallinkService/src/main/resources/mapper/WxProfitSharingReceiverApplyMapper.xml Просмотреть файл

@@ -101,6 +101,10 @@
and `applyment_id` = #{applymentId}
</if>

<if test=" null != subMchid and '' != subMchid ">
and `sub_mchid` = #{subMchid}
</if>

<if test=" null != applymentState ">
and `applyment_state` = #{applymentState}
</if>
@@ -214,6 +218,10 @@
and wpsra.`applyment_id` = #{applymentId}
</if>

<if test=" null != subMchid and '' != subMchid ">
and wpsra.`sub_mchid` = #{subMchid}
</if>

<if test=" null != applymentState ">
and wpsra.`applyment_state` = #{applymentState}
</if>


Загрузка…
Отмена
Сохранить