瀏覽代碼

【CHG】取登录用户的所在车间

xczzmn 4 年之前
父節點
當前提交
ee94245839

+ 3 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BaseStationServiceImpl.java

@@ -114,6 +114,9 @@ public class BaseStationServiceImpl implements IBaseStationService {
    */
   @Override
   public BaseDeptStation getInfo(Long deptId, Long lineId, Long stationId) {
+    if(null == deptId){
+      deptId = SecurityUtils.getDeptId();
+    }
     BaseStationQuery query = new BaseStationQuery();
     query.setDeptId(deptId);
     query.setLineId(lineId);