|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -5741,13 +5742,19 @@ public class StorageBillServiceImpl extends ServiceImpl<StorageBillMapper, Stora
|
|
|
}
|
|
|
|
|
|
if (updated) {
|
|
|
- this.updateById(newBill);
|
|
|
+ update(newBill, new UpdateWrapper<StorageBill>()
|
|
|
+ .eq("id", newBill.getId())
|
|
|
+ .set("car_num", newBill.getCarNum())
|
|
|
+ .set("car_all_num", newBill.getCarAllNum()));
|
|
|
}
|
|
|
|
|
|
// 更新交班 outCarNum(依赖 carAllNum,不管车牌状态)
|
|
|
if (shiftRecord.getOutCarNum() == null || shiftRecord.getOutCarNum() == 0) {
|
|
|
- shiftRecord.setOutCarNum(bill.getCarAllNum());
|
|
|
- billetHotsendChangeShiftService.updateById(shiftRecord);
|
|
|
+ UpdateWrapper<BilletHotsendChangeShift> updateWrapper = new UpdateWrapper<>();
|
|
|
+ updateWrapper.eq("id", shiftRecord.getId())
|
|
|
+ .set("out_car_num", bill.getCarAllNum());
|
|
|
+
|
|
|
+ billetHotsendChangeShiftService.update(null, updateWrapper);
|
|
|
}
|
|
|
}
|
|
|
|