zhangfeng
2023-01-06 c128ed33c2447e8daea89d70795098748bd5b2af
equipment/equipment-service/src/main/java/com/gkhy/safePlatform/equipment/service/baseService/impl/MaterialReceiveRecordsInfoServiceImpl.java
@@ -14,6 +14,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.springframework.util.ObjectUtils;
import java.util.List;
@@ -66,4 +67,14 @@
        }
        return repository.getReceiveRecordsByReceiveUids(bo);
    }
    @Override
    public List<MaterialReceiveRecordsInfo> listByReceiveBaseId(Long id) {
        if (ObjectUtils.isEmpty(id)) {
            throw new EquipmentException(ResultCodes.CLIENT_PARAM_NULL);
        }
        List<MaterialReceiveRecordsInfo> receiveRecordsInfoList = repository.selectList(new LambdaQueryWrapper<MaterialReceiveRecordsInfo>()
                .eq(MaterialReceiveRecordsInfo::getReceiveBaseId, id));
        return receiveRecordsInfoList;
    }
}