Pu Zhibing
2 天以前 e809f5955584e600d8612540ea814977c49774c2
ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TLineController.java
@@ -160,11 +160,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(tLineService.getLineList(page, beginTime, endTime, name, insertUser, modelStr, state));
        }
        page.setRecords(tLineService.getLineList(page, beginTime, endTime, name, insertUser, modelStr, state, shiroExtUtil.getUser().getObjectId()));
        return super.packForBT(page);
    }
@@ -183,6 +179,7 @@
        tLine.setState(1);
        tLine.setInsertTime(new Date());
        tLine.setInsertUserId(shiroExtUtil.getUser().getId());
        tLine.setCompanyId(shiroExtUtil.getUser().getObjectId());
        tLineService.insert(tLine);
    
        //添加线路站点起点+终点