Commit 30eba9f8 by 杨林龙

1.7.0 开发区域查车接口

1 parent 4e860656
...@@ -380,5 +380,5 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> { ...@@ -380,5 +380,5 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
@DataPerm(permTable = "tv", showSql = true) @DataPerm(permTable = "tv", showSql = true)
@DataPermShare(linkTable = "t_vehicle", showSql = true) @DataPermShare(linkTable = "t_vehicle", showSql = true)
List<RegionalSearchVO> getVehicleInfoListBySns(@Param("snList") List<String> snList); List<RegionalSearchVO> getVehicleInfoListBySns(@Param("sns") String sns);
} }
\ No newline at end of file \ No newline at end of file
...@@ -2539,6 +2539,9 @@ public class VehicleService extends AbstractCommonService { ...@@ -2539,6 +2539,9 @@ public class VehicleService extends AbstractCommonService {
* @return 车辆基本信息 * @return 车辆基本信息
*/ */
public List<RegionalSearchVO> getVehicleInfoListBySns(List<String> snList) { public List<RegionalSearchVO> getVehicleInfoListBySns(List<String> snList) {
return vehicleMapper.getVehicleInfoListBySns(snList); StringBuilder builder = new StringBuilder();
snList.forEach(sn -> builder.append("'").append(sn).append("'").append(","));
String sns = builder.substring(0, builder.toString().length() - 1);
return vehicleMapper.getVehicleInfoListBySns(sns);
} }
} }
...@@ -1450,12 +1450,7 @@ ...@@ -1450,12 +1450,7 @@
where tv.del_flag = 0 where tv.del_flag = 0
and tvd.bind_status = 1 and tvd.bind_status = 1
and tvd.del_flag = 0 and tvd.del_flag = 0
<if test="snList != null and snList.size() > 0"> and tvd.sn in (${sns})
and tvd.sn in
<foreach collection="snList" separator="," open="(" close=")" item="item">
#{item}
</foreach>
</if>
order by tvd.id desc order by tvd.id desc
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!