bug、优化

This commit is contained in:
zt
2025-08-25 20:13:30 +08:00
parent 126fdeb6ba
commit 57a39ad727
3 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,7 @@ public class BusEnterRoadController extends BaseController {
}
@SaCheckPermission("land:enterRoad:add")
@PostMapping("upload/{projectId}")
public R<Boolean> upload(MultipartFile file, @NotNull(message = "所属项目不明确")
@PathVariable Long projectId) {

View File

@ -118,6 +118,7 @@ public class BusLandBlockController extends BaseController {
return toAjax(busLandBlockService.deleteWithValidByIds(List.of(ids), true));
}
@SaCheckPermission("land:landBlock:add")
@PostMapping("upload/{projectId}")
public R<Boolean> upload(MultipartFile file,@NotNull(message = "所属项目不明确")
@PathVariable Long projectId) {

View File

@ -414,6 +414,9 @@ public class MatMaterialsInventoryServiceImpl extends ServiceImpl<MatMaterialsIn
*/
@Override
public List<MatMaterialsInventory> selectLatestByMaterialIds(List<Long> materialIds) {
if (CollUtil.isEmpty(materialIds)) {
return new ArrayList<>();
}
return baseMapper.selectLatestByMaterialIds(materialIds);
}
}