ll
liukangdong
2025-01-22 a5f40b4c2590a3d61592f1918d689d4932545248
server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/YwWarehouseServiceImpl.java
@@ -120,6 +120,18 @@
    }
    @Override
    @Transactional(rollbackFor = {Exception.class,BusinessException.class})
    public void updateStatusById(YwWarehouse ywWarehouse) {
        if(Objects.isNull(ywWarehouse)
                || Objects.isNull(ywWarehouse.getStatus())
                || Objects.isNull(ywWarehouse.getId())
        ){
            throw new BusinessException(ResponseStatus.BAD_REQUEST);
        }
        ywWarehouseMapper.update(new UpdateWrapper<YwWarehouse>().lambda().eq(YwWarehouse::getId,ywWarehouse.getId()).set(YwWarehouse::getStatus,ywWarehouse.getStatus()));
    }
    @Override
    public void updateByIdInBatch(List<YwWarehouse> ywWarehouses) {
        if (CollectionUtils.isEmpty(ywWarehouses)) {
            return;