| | |
| | | public ArdSyCar getArdSyTankCarByCarId(String carId); |
| | | |
| | | public long getCountByCarIdList(@Param("carIdList") List<String> carIdList); |
| | | |
| | | public List<ArdSyCar> getCarListByDeptIdList(@Param("deptIdList") List<Long> deptIdList); |
| | | } |
| | |
| | | map.put("list", new ArrayList()); |
| | | return map; |
| | | } |
| | | QueryWrapper<ArdSyCar> queryWrapper = new QueryWrapper<>(); |
| | | /*QueryWrapper<ArdSyCar> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.in("dept_id", deptList); |
| | | List<ArdSyCar> carListTable = ardSyCarMapper.selectList(queryWrapper); |
| | | List<ArdSyCar> carListTable = ardSyCarMapper.selectList(queryWrapper);*/ |
| | | List<ArdSyCar> carListTable = new ArrayList(); |
| | | if(!deptList.isEmpty()){ |
| | | carListTable = ardSyCarMapper.getCarListByDeptIdList(deptList); |
| | | } |
| | | int online = 0; |
| | | for (Map<String, Object> map : (List<Map<String, Object>>) result0.get("list")) { |
| | | Map<String, Object> resultMap = sYClient.getTeamCarList(syURL, (String) map.get("teamId"), result.get("sessionId")); |
| | |
| | | <result property="reserved3" column="reserved_3" /> |
| | | </resultMap> |
| | | |
| | | <!--<resultMap type="ArdSyCar" id="ArdSyCarLockResult"> |
| | | <resultMap type="ArdSyCar" id="ArdSyCarLockResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="carId" column="car_id" /> |
| | | <result property="carModel" column="car_model" /> |
| | |
| | | <result property="restartState" column="restart_state" /> |
| | | <result property="onlineTime" column="online_time" /> |
| | | </collection> |
| | | </resultMap>--> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdSyCarVo"> |
| | | select id, car_id, car_model, car_type, car_brand, dept_id, car_picture, reserved_1, reserved_2, reserved_3 from ard_sy_car |
| | |
| | | #{carId} |
| | | </foreach> |
| | | </select> |
| | | <select id="getCarListByDeptIdList" resultMap="ArdSyCarResult"> |
| | | select * from ard_sy_car where dept_id in |
| | | <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |