|
@@ -1617,6 +1617,24 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
|
|
|
return Result.OK("炼钢到达时间确认成功!");
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "确认支数时间", notes = "确认支数时间")
|
|
|
+ @PostMapping("/updateConfirmNumTime")
|
|
|
+ public Result<String> confirmNumTime(@RequestBody StorageBillUpdateVo storageBillUpdateVo) {
|
|
|
+ // 先根据装运单id,判断装运单信息是否存在
|
|
|
+ StorageBill storageBill1 = storageBillService.getById(storageBillUpdateVo.getId());
|
|
|
+ if (storageBill1 == null) {
|
|
|
+ return Result.error("装运单不存在,确认支数时间失败!");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (storageBillUpdateVo.getUpdateType() == 1){
|
|
|
+ storageBill1.setAmountTotal(storageBillUpdateVo.getAmountTotal());
|
|
|
+ }
|
|
|
+ storageBill1.setConfirmNumTime(new Date());
|
|
|
+ storageBillService.updateById(storageBill1);
|
|
|
+ return Result.OK("确认支数成功!");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 通过车牌号查询装运单信息
|
|
|
* @param licensePlate
|