FengChaoYu преди 1 година
родител
ревизия
d0cbb5d0d4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mall-server-api/src/main/java/com/gree/mall/manager/logic/material/manage/WebsitPartsConfigLogic.java

+ 1 - 1
mall-server-api/src/main/java/com/gree/mall/manager/logic/material/manage/WebsitPartsConfigLogic.java

@@ -39,7 +39,7 @@ public class WebsitPartsConfigLogic {
         AdminUserCom adminUser = commonLogic.getAdminUser();
         FieldUtils.materialParam(zfireParamBean, WebsitPartsConfigVO.class, adminUser);
         IPage<WebsitPartsConfigVO> page = materialMapper.websitPartsConfigPage(new Page(zfireParamBean.getPageNum(), zfireParamBean.getPageSize()), zfireParamBean);
-        if (CollectionUtil.isEmpty(page.getRecords()) && adminUser.getType() == 0) {
+        if (CollectionUtil.isEmpty(page.getRecords()) && adminUser.getType() != 2) {
             page.setRecords(new ArrayList<>());
             WebsitPartsRefundConfig refundConfig = websitPartsRefundConfigService.lambdaQuery()
                     .eq(WebsitPartsRefundConfig::getCompanyWechatId, adminUser.getCompanyWechatId())