|
@@ -2668,6 +2668,21 @@ public class StorageBillServiceImpl extends ServiceImpl<StorageBillMapper, Stora
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void updateStatusByLicensePlate(Integer licensePlateStatus, String licensePlate) {
|
|
|
+
|
|
|
+ LambdaQueryWrapper<StorageBill> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(StorageBill::getLicensePlate, licensePlate)
|
|
|
+ .orderByDesc(StorageBill::getCreateTime)
|
|
|
+ .last("limit 1");
|
|
|
+
|
|
|
+ StorageBill bill = storageBillMapper.selectOne(queryWrapper);
|
|
|
+ bill.setLicensePlateStatus(licensePlateStatus);
|
|
|
+
|
|
|
+ storageBillMapper.updateById(bill);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// 计算整数总和的方法
|
|
|
private int calculateIntSum(List<DestinationStatisticsDetails> list) {
|