Pu Zhibing
2 天以前 e809f5955584e600d8612540ea814977c49774c2
ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TSiteController.java
@@ -142,11 +142,7 @@
            endTime = timeArray[1];
        }
        Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage();
        if (shiroExtUtil.getUser().getRoleType() != 1) {
            page.setRecords(null);
        } else {
            page.setRecords(tSiteService.getSiteList(page, beginTime, endTime, name, insertUser, city, state));
        }
        page.setRecords(tSiteService.getSiteList(page, beginTime, endTime, name, insertUser, city, state, shiroExtUtil.getUser().getObjectId()));
        return super.packForBT(page);
    }
@@ -159,6 +155,7 @@
        tSite.setInsertTime(new Date());
        tSite.setInsertUserId(shiroExtUtil.getUser().getId());
        tSite.setState(1);
        tSite.setCompanyId(shiroExtUtil.getUser().getObjectId());
        tSiteService.insert(tSite);
    
        //添加站点区域