|
@@ -21,7 +21,6 @@ import com.github.zuihou.log.annotation.SysLog;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
-import org.apache.commons.collections.map.HashedMap;
|
|
|
|
import org.apache.commons.compress.utils.Lists;
|
|
import org.apache.commons.compress.utils.Lists;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -124,11 +123,12 @@ public class StationUserController extends SuperController<StationUserService, L
|
|
|
|
|
|
@ApiOperation(value = "查询上下料用户", notes = "查询上下料用户")
|
|
@ApiOperation(value = "查询上下料用户", notes = "查询上下料用户")
|
|
@GetMapping("/stationUser")
|
|
@GetMapping("/stationUser")
|
|
- public R<List<StationUser>> getStationUser(@RequestParam(value="userId",required = false) Long userId) {
|
|
|
|
|
|
+ public R getStationUser(@RequestParam(value="userId",required = false) Long userId) {
|
|
LbqWrapper<StationUser> wrapper = Wraps.<StationUser>lbQ();
|
|
LbqWrapper<StationUser> wrapper = Wraps.<StationUser>lbQ();
|
|
if(userId!= null){
|
|
if(userId!= null){
|
|
wrapper.eq(StationUser::getUserId, userId);
|
|
wrapper.eq(StationUser::getUserId, userId);
|
|
}
|
|
}
|
|
|
|
+
|
|
return success(baseService.getStationUser(wrapper));
|
|
return success(baseService.getStationUser(wrapper));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -140,13 +140,9 @@ public class StationUserController extends SuperController<StationUserService, L
|
|
wrapper.eq(StationUserLoginInfo::getUserId, userId);
|
|
wrapper.eq(StationUserLoginInfo::getUserId, userId);
|
|
}
|
|
}
|
|
StationUserLoginInfo stationUserLoginInfo = stationUserLoginInfoMapper.selectOne(wrapper);
|
|
StationUserLoginInfo stationUserLoginInfo = stationUserLoginInfoMapper.selectOne(wrapper);
|
|
- // 查找上下料站信息
|
|
|
|
- Productionresource productionresource = productionresourceBizMapper.selectById(stationUserLoginInfo.getStationId());
|
|
|
|
-// Productionresource productionresource = new Productionresource();
|
|
|
|
-// productionresource.setId( Long.valueOf("1496363582865014784"));
|
|
|
|
-// productionresource.setName("保障中心_上下料站1");
|
|
|
|
- List<Productionresource> stations = new ArrayList<Productionresource>();
|
|
|
|
- stations.add(productionresource);
|
|
|
|
- return success(stations);
|
|
|
|
|
|
+ com.github.zuihou.business.productionResourceCenter.entity.Productionresource productionresource = productionresourceBizMapper.selectById(stationUserLoginInfo.getStationId());
|
|
|
|
+ List<Productionresource> productionresources = new ArrayList<>();
|
|
|
|
+ productionresources.add(productionresource);
|
|
|
|
+ return success(productionresources);
|
|
}
|
|
}
|
|
}
|
|
}
|