| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import jakarta.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | |
| | | if (!taskService.updateById(task)) { |
| | | throw new CoolException("任务状态更新失败"); |
| | | } |
| | | if (task.getTaskType().equals(TaskType.TASK_TYPE_OUT.type)) { |
| | | BasStation basStation = basStationService.getOne(new LambdaQueryWrapper<BasStation>() |
| | | .eq(BasStation::getBarcode, param.getContainerNo())); |
| | | if (!Cools.isEmpty(basStation)) { |
| | | basStation.setUseStatus(LocStsType.LOC_STS_TYPE_D.type); |
| | | basStation.setUpdateTime(new Date()); |
| | | if (!basStationService.updateById(basStation)){ |
| | | throw new CoolException("站点状态更新失败"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | return R.ok(); |