mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-04 14:08:01 +08:00
update 后管查询订单列表增加车牌号筛选
This commit is contained in:
@@ -456,14 +456,14 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
|||||||
Comparator.nullsLast(Comparator.naturalOrder())) // 处理可能的null值
|
Comparator.nullsLast(Comparator.naturalOrder())) // 处理可能的null值
|
||||||
);
|
);
|
||||||
|
|
||||||
// 4. 手动分页(取出当前页的数据)
|
// 手动分页(取出当前页的数据)
|
||||||
int fromIndex = (pageNum - 1) * pageSize;
|
int fromIndex = (pageNum - 1) * pageSize;
|
||||||
int toIndex = Math.min(fromIndex + pageSize, pileConnectorInfoList.size());
|
int toIndex = Math.min(fromIndex + pageSize, pileConnectorInfoList.size());
|
||||||
List<PileConnectorInfoVO> pagedList = pileConnectorInfoList.subList(fromIndex, toIndex);
|
List<PileConnectorInfoVO> pagedList = pileConnectorInfoList.subList(fromIndex, toIndex);
|
||||||
|
|
||||||
// PageInfo<PileConnectorInfoVO> pageInfo = new PageInfo<>(pileConnectorInfoList);
|
// PageInfo<PileConnectorInfoVO> pageInfo = new PageInfo<>(pileConnectorInfoList);
|
||||||
|
|
||||||
// 5. 构造 PageInfo(注意:PageInfo 需要总记录数)
|
// 构造 PageInfo(注意:PageInfo 需要总记录数)
|
||||||
PageInfo<PileConnectorInfoVO> pageInfo = new PageInfo<>(pagedList);
|
PageInfo<PileConnectorInfoVO> pageInfo = new PageInfo<>(pagedList);
|
||||||
pageInfo.setTotal(pileConnectorInfoList.size()); // 设置总记录数
|
pageInfo.setTotal(pileConnectorInfoList.size()); // 设置总记录数
|
||||||
pageInfo.setPageNum(pageNum); // 设置当前页码
|
pageInfo.setPageNum(pageNum); // 设置当前页码
|
||||||
|
|||||||
@@ -1828,6 +1828,9 @@
|
|||||||
<if test="vinCode != null and vinCode != ''">
|
<if test="vinCode != null and vinCode != ''">
|
||||||
and t1.vin_code = #{vinCode,jdbcType=VARCHAR}
|
and t1.vin_code = #{vinCode,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="plateNumber != null and plateNumber != ''">
|
||||||
|
and t1.plate_number = #{plateNumber,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
<if test="stationDeptIds != null and stationDeptIds.size() != 0">
|
<if test="stationDeptIds != null and stationDeptIds.size() != 0">
|
||||||
and t3.dept_id in
|
and t3.dept_id in
|
||||||
<foreach close=")" collection="stationDeptIds" item="stationDeptId" open="(" separator=",">
|
<foreach close=")" collection="stationDeptIds" item="stationDeptId" open="(" separator=",">
|
||||||
|
|||||||
Reference in New Issue
Block a user