版权声明:欢迎转载,请附上转载地址 https://blog.csdn.net/qq_20143059/article/details/83443154
//按照条码类别倒序,条码编码正序排列
Collections.sort(result, new Comparator<BarcodeManageVo>() {
@Override
public int compare(BarcodeManageVo bo1, BarcodeManageVo bo2) {
return bo2.getBatchCode().compareTo(bo1.getBatchCode());
//String的逆序排列
}
});